backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
[gnulib.git] / ChangeLog
blobd21388a996f4c82be5a7aeef419f40d121258929
1 2020-12-20  Bruno Haible  <bruno@clisp.org>
3         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
4         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
5         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
6         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
8 2020-12-20  Bruno Haible  <bruno@clisp.org>
10         float: Fix compilation error when gnulib's float.h exists twice.
11         Reported by Santiago Vila <sanvila@unex.es>.
12         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
14 2020-12-19  Bruno Haible  <bruno@clisp.org>
16         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
17         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
18         Don't trust _POSIX_VERSION for this test.
20 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22         free-posix: port to GNU/Linux
23         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
24         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
25         other GNU/Linux hosts.
27 2020-12-19  Bruno Haible  <bruno@clisp.org>
29         free-posix: Add tests.
30         * tests/test-free.c: New file.
31         * tests/macros.h (ASSERT_NO_STDIO,
32         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
33         WRITE_TO_STDERR): New macros.
34         * modules/free-posix-tests: New file.
36 2020-12-18  Bruno Haible  <bruno@clisp.org>
38         free-posix: Add C++ declaration test.
39         * tests/test-stdlib-c++.cc (free): New declaration.
41 2020-12-18  Bruno Haible  <bruno@clisp.org>
43         free-posix: New module, renamed from 'free'.
44         * modules/free-posix: Renamed from modules/free.
45         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
46         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
47         not GNULIB_FREE.
48         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
49         GNULIB_FREE.
50         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
51         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
52         what it does.
53         * NEWS: Mention that module 'free' no longer exists.
54         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
55         * modules/canonicalize-lgpl (Depends-on): Likewise.
57 2020-12-18  Bruno Haible  <bruno@clisp.org>
59         free: Remove support for obsolete platforms.
60         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
61         CANNOT_FREE_NULL.
62         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
63         * modules/free (Description): Update.
64         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
66 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68         intprops: port to ICC 2021.1 Beta 20201112
69         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
70         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
71         Add a clause for other compilers that claim to support
72         __builtin_mul_overflow_p, since we might as well find out about
73         slackers other than Clang and ICC.
74         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
75         like older GCCs even when it claims to be a newer one.
77 2020-12-18  Bruno Haible  <bruno@clisp.org>
79         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
80         Reported by Stefan Liebler <stli@linux.ibm.com> in
81         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
82         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
83         GCC 5.x and 6.x.
84         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
85         GCC 5.x and 6.x.
87 2020-12-17  Bruno Haible  <bruno@clisp.org>
89         free: Fix warning.
90         Reported by Pádraig Brady <P@draigBrady.com> in
91         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
92         * lib/stdlib.in.h (free): New declaration.
93         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
94         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
95         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
96         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
97         'free' as a macro here.
98         * modules/free (Depends-on): Add stdlib.
99         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
101 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
103         canonicalize-lgpl: fix AIX test failures
104         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
105         Problem reported by Bruno Haible in:
106         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
107         * lib/canonicalize-lgpl.c: Include sys/stat.h.
108         (__realpath): When testing a file name ending in '/', use stat
109         rather than readlink, so that it does the right thing on AIX.
110         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
112         canonicalize: omit second readlink when not needed
113         * lib/canonicalize.c (canonicalize_filename_mode_stk):
114         Omit second readlink when (can_exist != CAN_MISSING
115         && startlen != 0 && !logical).  Simplify.
117         canonicalize: remove arbitrary 8192-byte limit
118         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
119         like GNU Hurd that do not define the PATH_MAX macro, and similarly
120         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
121         using scratch buffers.  Lessen the number of differences between
122         the two source files, to simplify this and future maintenance.
123         * lib/canonicalize-lgpl.c (__realpath):
124         * lib/canonicalize.c (canonicalize_filename_mode_stk):
125         Use scratch buffers instead of malloc and malloca.  This avoids
126         the need for alloca, and avoids the need for malloc in most cases.
127         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
128         easier to compare, e.g., by sorting include files and by switching
129         to the GNU convention of calling file names "file names", not
130         "path names".  Include stdbool.h, scratch_buffer.h.
131         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
132         (malloca) [_LIBC]: Remove.
133         [!_LIBC]: Do not include malloca.h.
134         (get_path_max): New function, so that pathconf is called only in
135         the rare and dubious case when when RESOLVED is not null and
136         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
137         file name, as we care about the longest file name starting from
138         "/" (not from the input file name), and POSIX does not specify
139         what pathconf does on a non-directory file anyway.  If PATH_MAX is
140         not defined, do not worry about overriding a path_max of 0, and do
141         not let path_max exceed IDX_MAX.
142         (__realpath): Remove an assumption that file name components
143         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
144         the Hurd, presumably).
145         When allocating the result, allocate it to just the right size;
146         this costs nothing when the result is smaller than 1023 bytes,
147         and for larger results it's probably worth the CPU to call realloc,
148         as canonicalize.c already does.
149         * lib/canonicalize.c: Include attribute.h.
150         Do not include pathmax.h or xgetcwd.h.
151         (PATH_MAX): Do not define, so file names longer than 8192 bytes
152         work on platforms with no fixed limit.
153         (canonicalize_filename_mode_stk): New function, with
154         the content of the old canonicalize_filename_mode.
155         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
156         since the scratch buffers now do memory management for us.
157         Use rawmemchr instead of adding strlen.
158         Use mempcpy instead of mempcpy + size.
159         Assume free preserves errno.
160         (canonicalize_filename_mode): Use it.
161         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
162         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
163         scratch_buffer, stdbool, xalloc-die.
164         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
165         malloca, realloc-posix.  Add scratch_buffer, stdbool.
167         canonicalize-lgpl: simplify merge to glibc
168         This patch lessens the differences between git glibc
169         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
170         The (perhaps wishful) goal is to make them identical.
171         * lib/canonicalize-lgpl.c [!_LIBC]:
172         Include <libc-config.h>, not config.h.
173         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
174         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
175         Do not include alloca.h, since we use malloca now.
176         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
177         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
178         freea so that the mainline code can be kept #ifdef free.
179         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
180         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
181         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
182         __eloop_threshold.  All uses of their definiens changed.
183         (SIZE_MAX): Remove; no longer needed.
184         (alloc_failed): Remove, and remove all instances.
185         No need for alloc_failed now that free preserves errno.
186         (__realpath): Default path_max to 1024 instead of 8192, as that’s
187         the glibc tradition and is safer when the 2nd argument is null.
188         Use __rawmemchr instead of strchr.
189         Use __mempcpy where appropriate.
190         Simplify test for overflow so that it does not need SIZE_MAX.
191         Do not preserve errno around free or freea calls; no longer needed.
192         Mark __realpath with libc_hidden_def.
193         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
194         malloc-posix, mempcpy, realloc-posix, rawmemchr.
195         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
197         free: preserve errno
198         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
199         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
200         platforms that do not preserve errno.
201         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
202         Also, define CANNOT_FREE_NULL if free cannot free NULL.
203         * modules/free (configure.ac): Also replace 'free' if
204         it does not preserve errno.
206         idx: simplify IDX_MAX, remove IDX_WIDTH
207         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
208         to UNSIGNED_IDX_T.
209         (IDX_WIDTH): Remove, since it’s not used and its value
210         arguably should be PTRDIFF_WIDTH anyway.
212 2020-12-16  Bruno Haible  <bruno@clisp.org>
214         posix_spawn_file_actions_addfchdir-tests: Rename test.
215         * tests/test-posix_spawn-fchdir.c: Renamed from
216         tests/test-posix_spawn5.c.
217         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
218         Update.
220         posix_spawn_file_actions_addchdir-tests: Rename test.
221         * tests/test-posix_spawn-chdir.c: Renamed from
222         tests/test-posix_spawn4.c.
223         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
224         Update.
226         posix_spawn-tests: Rename test.
227         * tests/test-posix_spawn-open1.c: Renamed from
228         tests/test-posix_spawn3.c.
229         * modules/posix_spawn-tests (Files, Makefile.am): Update.
231         posix_spawnp-tests: Rename test.
232         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
233         tests/test-posix_spawn2.c.
234         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
235         tests/test-posix_spawn2.in.sh.
236         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
238         posix_spawnp-tests: Rename test.
239         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
240         tests/test-posix_spawn1.c.
241         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
242         tests/test-posix_spawn1.in.sh.
243         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
245 2020-12-14  Bruno Haible  <bruno@clisp.org>
247         findprog-in: Allow overriding the current directory.
248         * lib/findprog.h (find_in_given_path): Add directory argument.
249         * lib/findprog-in.c (find_in_given_path): Likewise.
250         * lib/execute.c (execute): Update caller.
251         * lib/spawn-pipe.c (create_pipe): Likewise.
252         * lib/windows-spawn.c (spawnpvech): Likewise.
253         * NEWS: Mention the change.
255 2020-12-14  Bruno Haible  <bruno@clisp.org>
257         posix_spawn-internal: Make better use of 'const'.
258         * lib/spawn_int.h (__spawni): Does not need write access to the elements
259         of argv and envp.
260         * lib/spawni.c (__spawni, script_execute): Likewise.
261         * lib/spawn.c (posix_spawn): Update caller.
262         * lib/spawnp.c (posix_spawnp): Likewise.
264 2020-12-14  Bruno Haible  <bruno@clisp.org>
266         spawn: Make it compile on native Windows.
267         * modules/spawn (Depends-on): Add signal-h.
269 2020-12-14  Bruno Haible  <bruno@clisp.org>
271         windows-spawn: Avoid shadowing a variable.
272         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
274 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
276         string: port memchr macro to AIX 7.2 XLC
277         Its <string.h> defines a memchr macro to help inlining.
278         * lib/string.in.h (memchr): #undef before #defining.
280         canonicalize: fix AIX test failures
281         Problem reported by Bruno Haible in:
282         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
283         * lib/canonicalize.c (canonicalize_filename_mode):
284         When testing a file name ending in '/', use stat rather than
285         readlink, so that it does the right thing on AIX.
286         * modules/canonicalize (Depends-on): Add readlink, to pull in the
287         recent changes in the Gnulib readlink module.
289         Assume readlink/readlinkat ERANGE fix
290         * lib/areadlink-with-size.c (areadlink_with_size):
291         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
292         * lib/careadlinkat.c (readlink_stk):
293         Do not worry about readlink or readlinkat failing with errno == ERANGE,
294         since the Gnulib readlink and readlinkat modules now fix that.
296         getcwd: port to AIX
297         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
298         in case our sys/stat.h #defined a function macro with the same name.
300         readlink, readlinkat: add ERANGE portability
301         Fix some portability issues with Gnulib's readlink and readlinkat,
302         notably mostly working around the ERANGE problem in AIX and HP-UX.
303         * doc/posix-functions/readlink.texi:
304         * doc/posix-functions/readlinkat.texi:
305         ERANGE problem is mostly fixed now.  Mention AIX problem with
306         trailing / and EINVAL.  Lessen differences between these two files.
307         * lib/readlink.c (rpl_readlink):
308         * lib/readlinkat.c (rpl_readlinkat):
309         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
310         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
311         Lessen spurious differences between the readlink and readlinkat code.
312         * lib/readlinkat.c (rpl_readlinkat):
313         Fix bug where stat was used where fstatat was intended.
314         * m4/readlink.m4 (gl_FUNC_READLINK):
315         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
316         to identify readlink problems more precisely.  All uses changed.
317         Guess no on AIX or HP-UX for this variable.
318         Add check for whether readlink truncates results,
319         and define new macro READLINK_TRUCATE_BUG accordingly.
320         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
321         Also check gl_cv_func_readlink_trailing_slash when deciding
322         whether to replace readlinkat.
323         * modules/readlinkat (Depends-on): Most dependencies are also
324         needed if replacing readlinkat.  fstatat is different, as it
325         is needed only if replacing an existing readlinkat.
327 2020-12-13  Bruno Haible  <bruno@clisp.org>
329         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
330         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
331         the stdin_handle and/or stdout_handle.
333 2020-12-12  Bruno Haible  <bruno@clisp.org>
335         Fix gnulib-tool error when some modules occur in tests/.
336         * doc/gnulib.texi (Specification): Update statistics.
337         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
338         (Using AC_LIBOBJ): New section.
339         * check-AC_LIBOBJ: New file.
340         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
341         * modules/fopen-gnu (Files): Add lib/fopen.c.
342         * modules/memmem (Files): Add lib/memmem.c.
343         * modules/renameat (Files): Add lib/at-func2.c.
344         * modules/strcasestr (Files): Add lib/strcasestr.c.
345         * modules/strstr (Files): Add lib/strstr.c.
347 2020-12-11  Bruno Haible  <bruno@clisp.org>
349         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
350         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
351         elements of argv.
352         * lib/sh-quote.c (shell_quote_argv): Likewise.
353         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
354         the return type.
355         * lib/windows-spawn.c (prepare_spawn): Likewise.
356         * lib/os2-spawn.h (prepare_spawn): Likewise.
357         * lib/os2-spawn.c (prepare_spawn): Likewise.
358         * lib/execute.h (execute): Does not need write access to the elements of
359         prog_argv.
360         * lib/execute.c (execute): Likewise.
361         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
362         Likewise.
363         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
364         create_pipe_out): Likewise.
365         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
366         Likewise.
367         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
368         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
369         * lib/javaexec.h (execute_fn): Does not need write access to the
370         elements of prog_argv.
371         * lib/javaexec.c (execute_java_class): Update variable types and remove
372         casts to 'char *'.
373         * lib/csharpexec.h (execute_fn): Does not need write access to the
374         elements of prog_argv.
375         * lib/csharpexec.c (execute_csharp_using_mono,
376         execute_csharp_using_sscli): Update variable types and remove casts to
377         'char *'.
378         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
379         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
380         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
381         is_jikes_present): Update variable types and remove casts to 'char *'.
382         * lib/javaversion.c (execute_and_read_line): Does not need write access
383         to the elements of prog_argv.
384         * lib/csharpcomp.c (compile_csharp_using_mono,
385         compile_csharp_using_sscli): Update variable types and remove casts to
386         'char *'.
387         * tests/test-sh-quote.c (main): Update variable types and remove casts
388         to 'char *'.
389         * tests/test-execute-main.c (main): Update variable types and remove
390         casts to 'char *'.
391         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
392         remove casts to 'char *'.
393         * NEWS: Mention the changes.
395 2020-12-11  Bruno Haible  <bruno@clisp.org>
397         execute-tests: Fix compilation error with MSVC.
398         * tests/test-execute-child.c (is_device): With _fstat, use
399         'struct _stat', not 'struct stat'.
401 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
403         vararrays: just use 2.70
404         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
405         and later, since Autoconf 2.70 matches Gnulib now.
407         sys_types: just use 2.70
408         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
409         Reindent to match Autoconf sources.
410         Use Autoconf 2.70 as a prerequisite, not 2.69c.
412         stdint: port to Autoconf 2.70
413         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
414         instead of assuming that AC_INCLUDES_DEFAULT does it.
415         The old code relied on AC_INCLUDES_DEFAULT being called
416         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
417         but this does not occur in Autoconf 2.70.
419         pid_t.m4: just use 2.70
420         * m4/pid_t.m4 (AC_TYPE_PID_T):
421         Use Autoconf 2.70 as a prerequisite, not 2.69c.
423         largefile: just use 2.70
424         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
425         Use Autoconf 2.70 as a prerequisite, not 2.69c.
427         AC_C_RESTRICT: update from Autoconf
428         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
429         as a prerequisite, not 2.69c, since 2.70 is now out.
430         (AC_C_RESTRICT): Define only for 2.70 or earlier.
431         Try __restrict__ before __restrict.
433         extensions: update from Autoconf
434         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
435         Provide a default implementation for Autoconf 2.69 or earlier.
436         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
437         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
439         alloca: update from Autoconf
440         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
441         Trivial update to match Autoconf 2.70.
443 2020-12-11  Bruno Haible  <bruno@clisp.org>
445         memchr: Work around memory overrun bug on AIX 7.2.
446         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
447         * doc/posix-functions/memchr.texi: Mention the AIX bug.
449 2020-12-11  Bruno Haible  <bruno@clisp.org>
451         execute-tests: Fix compilation error on AIX in 32-bit mode.
452         * tests/test-execute-child.c: In order to get the original definition of
453         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
454         include the system's <sys/stat.h> and use it before including other
455         header files.
457 2020-12-10  Bruno Haible  <bruno@clisp.org>
459         windows-spawn: Relicense under LGPLv2+.
460         * modules/windows-spawn (License): Change to LGPLv2+.
462 2020-12-10  Bruno Haible  <bruno@clisp.org>
464         execute, spawn-pipe: Fix memory leak on native Windows.
465         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
466         * lib/windows-spawn.c: Don't include xalloc.h.
467         (quoted_arg_length, quoted_arg_string): New functions, extracted from
468         prepare_spawn.
469         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
470         elements of *new_argv together.
471         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
472         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
473         * lib/os2-spawn.c: Don't include xalloc.h.
474         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
475         elements of *new_argv together.
476         * lib/execute.c: Include xalloc.h.
477         (execute): Check return value of prepare_spawn. Free the memory
478         allocated by prepare_spawn.
479         * modules/execute (Depends-on): Add xalloc-die.
480         * lib/spawn-pipe.c: Include xalloc.h.
481         (create_pipe): Check return value of prepare_spawn. Free the memory
482         allocated by prepare_spawn.
483         * modules/spawn-pipe (Depends-on): Add xalloc-die.
485 2020-12-10  Bruno Haible  <bruno@clisp.org>
487         findprog-in: Relicense under LGPLv2+.
488         Paul Smith's approval is in
489         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
490         * modules/findprog-in (License): Change to LGPLv2+.
492 2020-12-10  Bruno Haible  <bruno@clisp.org>
494         findprog-in: Don't exit upon out-of-memory.
495         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
496         code.
497         * lib/findprog-in.c: Don't include xalloc.h.
498         (find_in_given_path): Call concatenated_filename, not
499         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
500         return NULL with errno set.
501         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
502         concat-filename, strdup-posix, malloc-posix.
504 2020-12-09  Bruno Haible  <bruno@clisp.org>
506         fmaf: Work around a bug on FreeBSD 12.2/arm.
507         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
508         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
510 2020-12-09  Bruno Haible  <bruno@clisp.org>
512         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
513         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
514         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
515         * lib/glthread/threadlib.c: Include <errno.h>.
516         (glthread_in_use): For FreeBSD, provide an alternative implementation
517         that uses pthread_key_create.
519 2020-12-09  Bruno Haible  <bruno@clisp.org>
521         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
522         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
523         not 'isnan'.
525 2020-12-08  Bruno Haible  <bruno@clisp.org>
527         std-gnu11: Make compatible with Autoconf 2.70.
528         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
529         use.
531 2020-12-08  Bruno Haible  <bruno@clisp.org>
533         argp: Avoid undefined behaviour when invoking qsort().
534         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
535         Reported by Jeffrey Walton <noloader@gmail.com> in
536         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
537         * lib/argp-help.c (group_cmp): Remove third argument.
538         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
539         upon hol_cluster_cmp.
540         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
541         (hol_entry_cmp): Rewritten to implement a total order.
543 2020-12-08  Bruno Haible  <bruno@clisp.org>
545         argp: Improve comments.
546         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
547         null pointer.
548         (struct hol_entry): Fix comment regarding sort order of group.
549         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
550         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
551         (hol_cluster_is_child, argp_hol): Move functions.
552         (HOL_ENTRY_PTRCMP): Remove unused macro.
554 2020-12-08  Bruno Haible  <bruno@clisp.org>
556         argp: Don't pass invalid arguments to isspace() and isalnum().
557         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
558         before passing it to isspace() or isalnum().
560 2020-12-08  Bruno Haible  <bruno@clisp.org>
562         argp: Don't rely on undefined behaviour of _tolower().
563         Patch by Eric Blake
564         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
565         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
566         not upper-case.  Pass correct range to tolower.
568 2020-12-07  Bruno Haible  <bruno@clisp.org>
570         unicodeio: Fix wrong result on FreeBSD.
571         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
572         characters on all platforms.
574 2020-12-07  Bruno Haible  <bruno@clisp.org>
576         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
577         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
578         FreeBSD systems.
580 2020-12-07  Bruno Haible  <bruno@clisp.org>
582         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
583         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
584         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
585         trivially of sbrk is not available.
586         * doc/glibc-functions/sbrk.texi: Mention that the function does not
587         exist in FreeBSD 12.2/arm64.
588         * doc/glibc-functions/brk.texi: Likewise.
590 2020-12-07  Bruno Haible  <bruno@clisp.org>
592         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
593         Suggested by Zack Weinberg in
594         <https://savannah.gnu.org/support/?110294>.
595         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
596         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
598 2020-12-07  Bruno Haible  <bruno@clisp.org>
600         Tweak the Windows oldnames workaround.
601         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
602         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
603         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
604         always.
605         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
606         * lib/stdlib.in.h (putenv): Likewise.
608 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
610         doc: fix flat address space discussion
611         * doc/gnulib-readme.texi (Other portability assumptions):
612         Move the all-bits-zero assumption outside the flat address space
613         section, since the two issues are independent.
615         doc: document -static-libubsan more
616         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
617         -static-libubsan a bit more.  Mostly cons.
619 2020-12-06  Bruno Haible  <bruno@clisp.org>
621         doc: Add more details regarding the undefined behaviour sanitizer.
622         * doc/gnulib-readme.texi (High Quality): Describe
623         -fsanitize-undefined-trap-on-error better.
625 2020-12-06  Bruno Haible  <bruno@clisp.org>
627         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
628         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
629         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
630         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
631         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
632         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
633         a preprocessor #define.
634         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
635         * lib/search.in.h (lfind, lsearch): Likewise.
636         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
637         Likewise.
638         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
639         * lib/string.in.h (memccpy, strdup): Likewise.
640         * lib/sys_stat.in.h (chmod, umask): Likewise.
641         * lib/time.in.h (tzset): Likewise.
642         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
643         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
644         read, rmdir, swab, unlink, write): Likewise.
645         * lib/utime.in.h (utime): Likewise.
646         * lib/wchar.in.h (wcsdup): Likewise.
647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
648         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
649         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
651         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
652         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
653         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
654         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
656         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
657         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
658         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
659         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
660         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
662 2020-12-06  Bruno Haible  <bruno@clisp.org>
664         doc: Mention some missing function declarations.
665         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
666         AIX.
667         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
668         FreeBSD.
669         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
670         Cygwin.
671         * doc/pastposix-functions/fcvt.texi: Likewise.
672         * doc/pastposix-functions/gcvt.texi: Likewise.
674 2020-12-06  Bruno Haible  <bruno@clisp.org>
676         doc: Tweak example.
677         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
678         'print'.
680 2020-12-06  Bruno Haible  <bruno@clisp.org>
682         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
683         * tests/test-filenamecat.c: Include idx.h.
684         (main): Mark prefixlen as nonnegative.
685         * modules/filenamecat-tests (Depends-on): Add idx.
687 2020-12-06  Bruno Haible  <bruno@clisp.org>
689         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
690         * lib/time_rz.c: Include idx.h.
691         (save_abbr): Mark zone_size as nonnegative.
692         * modules/time_rz (Depends-on): Add idx.
694 2020-12-06  Bruno Haible  <bruno@clisp.org>
696         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
697         * lib/parse-datetime.y: Include idx.h.
698         (textint): Mark digits as nonnegative.
699         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
700         dsts_seen, times_seen, zones_seen as nonnegative.
701         (lookup_word): Mark wordlen as nonnegative.
702         (yylex): Mark count as nonnegative.
703         (parse_datetime2): Mark tzsize as nonnegative.
704         * modules/parse-datetime (Depends-on): Add idx.
706 2020-12-06  Bruno Haible  <bruno@clisp.org>
708         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
709         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
710         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
711         nonnegative.
712         * modules/fnmatch (Depends-on): Add idx.
714 2020-12-06  Bruno Haible  <bruno@clisp.org>
716         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
717         * lib/c-stack.c: Include idx.h.
718         (die): Mark buflen as nonnegative.
719         * modules/c-stack (Depends-on): Add idx.
721 2020-12-06  Bruno Haible  <bruno@clisp.org>
723         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
724         * lib/backupfile.c: Include idx.h.
725         (numbered_backup): Mark base_offset as nonnegative.
726         (backupfile_internal): Likewise.
727         * modules/backup-rename (Depends-on): Add idx.
728         * modules/backupfile (Depends-on): Likewise.
730 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
732         doc: fix curved quotes issue
733         * doc/gnulib.texi: Set txicodequoteundirected and
734         txicodequotebacktick so that ` and ' in examples do not generate
735         curved single quotes that do the wrong thing when cut and pasted.
737         doc: mention static and dynamic checking
738         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
739         for static and dynamic checking.
741         intprops: Add INT_ADD_OK etc.
742         * doc/intprops.texi (Checking Integer Overflow): New section.
743         * lib/intprops.h: From a suggestion by Bruno Haible in:
744         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
745         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
747         doc: move exotic platfroms to Target Platforms
748         * doc/gnulib-intro.texi (Supported Platforms)
749         (Formerly Supported Platforms, Unsupported Platforms):
750         New subsections, split off from Target Platforms.
751         (Unsupported Platforms): Move the exotic-platform stuff here ...
752         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
753         section.
755         doc: mention intptr_t etc. and IBM i
756         * doc/gnulib-readme.texi (Other portability assumptions):
757         Mention intptr_t and uintptr_t, and that arithmetic on them
758         works in the usual way.
759         (Exotic platforms): New section, containing material from
760         the old 'Integer Portability' section.  Also mention IBM i.
761         * doc/intprops.texi (Wraparound Arithmetic):
762         Say that the macros work on unsigned integers too.
763         (Integer Portability): Remove.
765 2020-12-04  Bruno Haible  <bruno@clisp.org>
767         utime: Fix a test failure on macOS 10.13.
768         Reported by Martin Storsjö <martin@martin.st> in
769         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
770         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
771         slashes on files.
772         * lib/utime.c (utime): Add alternative implementation for Unix
773         platforms.
774         * modules/utime (Depends-on): Add stat.
775         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
776         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
777         trailing-slash bug.
778         * doc/posix-functions/open.texi: Likewise.
779         * doc/posix-functions/stat.texi: Likewise.
780         * doc/posix-functions/symlink.texi: Likewise.
782 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
784         intprops: update doc and mention Unisys
785         * doc/gnulib-readme.texi (Other portability assumptions):
786         Also mention ptrdiff_t when talking about widths and overflow.
787         * doc/intprops.texi (Integer Properties): Summarize new section.
788         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
789         evaluates its argument.
790         (Integer Bounds): Fix typo.
791         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
792         Document that the _WRAPV macros now support pointers to unsigned
793         integers.
794         (Integer Range Overflow): Update SEI CERT citation.
795         (Integer Portability): New subsection, which mentions
796         the oddball Unisys platforms as non-Gnulib targets.
798 2020-12-03  Bruno Haible  <bruno@clisp.org>
800         idx: Clarify that idx_t always behaves like a signed type.
801         Suggested by Paul Eggert in
802         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
803         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
804         Don't test UNSIGNED_IDX_T.
806 2020-12-03  Bruno Haible  <bruno@clisp.org>
808         idx: New module.
809         * lib/idx.h: New file.
810         * modules/idx: New file.
811         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
812         ptrdiff_t.
813         * lib/canonicalize.c: Likewise.
814         * modules/canonicalize-lgpl (Depends-on): Add idx.
815         * modules/canonicalize (Depends-on): Likewise.
817 2020-12-03  Bruno Haible  <bruno@clisp.org>
819         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
820         Reported by Martin Storsjö <martin@martin.st> in
821         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
822         * tests/test-fprintf-posix3.c: Skip the test on macOS.
823         (main): Return a different exit code at each point. Allow 100 KB extra
824         memory consumption.
825         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
826         doesn't work" diagnostic.
828 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
830         canonicalize: refactor can_mode flag
831         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
832         (multiple_bits_set): ... this new static function.  Uses changed.
833         (canonicalize_filename_mode): Refactor for clarity to avoid
834         modifying the CAN_MODE argument.
836         canonicalize: prefer signed integer types
837         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
838         (seen_triple, canonicalize_filename_mode): Prefer signed to
839         unsigned types where either will do, as they avoid some glitches
840         in comparisons and can trap on overflow when debugging.
842         canonicalize: fix most of another EOVERFLOW issue
843         * lib/canonicalize.c (canonicalize_filename_mode):
844         Do not call stat if fewer than 20 symlinks have been traversed.
845         This avoids EOVERFLOW failure in the common case where there
846         are not that many symlinks, while continuing to catch loops
847         (or fail due to EOVERFLOW) in the unusual case when there
848         are many symlinks to traverse.
850         canonicalize: do not assume symlinks have st_ino
851         * lib/canonicalize.c (canonicalize_filename_mode):
852         When checking for loops, use st_dev and st_ino from the parent
853         directory not from the symlink, as pre-2017 POSIX says these
854         members are not reliable for symlinks.  Couple this with START
855         (the remaining file name to be resolved), not NAME (the whole file
856         name with START as its suffix).
857         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
859         canonicalize: fix EOVERFLOW bug
860         * lib/canonicalize.c (canonicalize_filename_mode):
861         When testing whether a directory entry is a symbolic link, or a
862         directory or other, do not use lstat or stat or
863         areadlink_with_size.  Just use areadlink, as this suffices and it
864         avoids the EOVERFLOW problem that lstat and stat have.
865         * modules/canonicalize (Depends-on): Depend on areadlink instead
866         of areadlink-with-size and stat.
868         canonicalize-lgpl: fix EOVERFLOW bug
869         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
870         (__realpath): Do not use lstat.  Just use readlink, as this
871         suffices and it avoids the EOVERFLOW problem that lstat has.
872         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
874 2020-12-02  Bruno Haible  <bruno@clisp.org>
876         strsignal-tests: Fix test failure on macOS 10.13.
877         Reported by Martin Storsjö <martin@martin.st> in
878         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
879         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
880         to be longer than the expected result.
882 2020-12-02  Bruno Haible  <bruno@clisp.org>
884         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
885         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
886         recursive self-include problem on FreeBSD 12.2 in C++ mode.
888 2020-12-02  Bruno Haible  <bruno@clisp.org>
890         spawn-pipe: Allow caller to specify directory for the subprocess.
891         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
892         Add directory argument.
893         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
894         (create_pipe): Add directory argument. If specified, resolve the program
895         file name and make it absolute, first. Pass the directory to spawnpvech
896         and posix_spawn_file_actions_addchdir.
897         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
898         argument.
899         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
900         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
901         * tests/test-spawn-pipe-main.c (test_pipe): Update.
902         * NEWS: Mention the change.
903         * lib/csharpcomp.c (compile_csharp_using_mono,
904         compile_csharp_using_sscli): Update.
905         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
906         is_gcj_43): Update.
907         * lib/javaversion.c (execute_and_read_line): Update.
908         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
909         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
911 2020-12-02  Bruno Haible  <bruno@clisp.org>
913         execute: Allow caller to specify directory for the subprocess.
914         * lib/execute.h (execute): Add directory argument.
915         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
916         (execute): Add directory argument. If specified, resolve the program
917         file name and make it absolute, first. Pass the directory to spawnpvech
918         and posix_spawn_file_actions_addchdir.
919         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
920         posix_spawn, posix_spawn_file_actions_addchdir.
921         * tests/test-execute-main.c: Add test for passing a directory.
922         * tests/test-execute-child.c: Likewise.
923         * tests/test-execute.sh: Update.
924         * modules/execute-tests (Depends-on): Add mkdir.
925         * NEWS: Mention the change.
926         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
927         * lib/csharpexec.c (execute_csharp_using_mono,
928         execute_csharp_using_sscli): Update.
929         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
930         compile_using_javac, compile_using_jikes, is_javac_present,
931         is_jikes_present): Update.
932         * lib/javaexec.c (execute_java_class): Update.
934 2020-12-01  Bruno Haible  <bruno@clisp.org>
936         vma-iter: Add support for macOS11/arm64.
937         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
938         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
939         and by Martin Storsjö <martin@martin.st> in
940         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
941         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
943 2020-12-01  Bruno Haible  <bruno@clisp.org>
945         spawn-pipe: Fix handling of OS/2 kLIBC.
946         Reported by KO Myung-Hun <komh78@gmail.com> in
947         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
948         * modules/spawn-pipe (configure.ac): Use the common idiom for
949         recognizing the OS/2 operating system.
951 2020-11-30  Bruno Haible  <bruno@clisp.org>
953         execute: Fix uninitialized use of errno.
954         * lib/execute.c (execute): Preserve errno across several system calls.
956 2020-11-30  Bruno Haible  <bruno@clisp.org>
958         access tests: Fix test failure on native Windows.
959         * tests/test-access.c (main): Change permissions of f2 file before
960         attempting to remove it.
962 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
964         faccessat: link with $(LIB_EACCESS)
965         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
966         module depends on euidaccess.
968 2020-11-30  Bruno Haible  <bruno@clisp.org>
970         execute, spawn-pipe: Make multithread-safe on native Windows.
971         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
972         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
973         (spawnpvech): New declaration.
974         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
975         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
976         (_): Remove macro.
977         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
978         undup_safer_noinherit): Remove functions.
979         (spawnpvech): New function.
980         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
981         cloexec, dup2, error, gettext-h.
982         * lib/execute.c: Include msvc-nothrow.h.
983         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
984         * lib/spawn-pipe.c: Include msvc-nothrow.h.
985         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
986         instead of _spawnvpe.
987         * modules/execute (Depends-on): Add msvc-nothrow.
988         * modules/spawn-pipe (Depends-on): Likewise.
990 2020-11-30  Bruno Haible  <bruno@clisp.org>
992         execute, spawn-pipe: Improve documentation.
993         * lib/execute.h: Describe progname, prog_path, prog_argv.
994         * lib/spawn-pipe.h: Likewise.
996 2020-11-30  Bruno Haible  <bruno@clisp.org>
998         execute tests: Add more tests.
999         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
1000         inherited file descriptors >= 3.
1001         * tests/test-execute-child.c: Likewise.
1002         * tests/test-execute.sh: Update.
1004 2020-11-30  Bruno Haible  <bruno@clisp.org>
1006         havelib: Fix for non-ELF platforms (regression 2019-11-17).
1007         Reported by comex <comexk@gmail.com> in
1008         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
1009         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
1010         don't expect an ELF header.
1012 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1014         bitset: use integer_length in table implementation
1015         * lib/bitset/table.c (tbitset_list_reverse): Use
1016         BITSET_FOR_EACH_BIT_REVERSE.
1018 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1020         bitset: use integer_length in list implementation
1021         * lib/bitset/list.c (lbitset_list_reverse): Use
1022         BITSET_FOR_EACH_BIT_REVERSE.
1024 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1026         bitset: use integer_length in vector implementation
1027         * lib/bitset/array.c (vbitset_list_reverse): Use
1028         BITSET_FOR_EACH_BIT_REVERSE.
1030 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1032         bitset: use integer_length in array implementation
1033         * modules/bitset (Depends-on): Add integer_length_l.
1034         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
1035         * lib/bitset/array.c (abitset_list_reverse): Use it.
1037 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1039         bitset: style: use consistent names
1040         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
1041         and 'boffset' as 'bitoff', for consistency with the other
1042         implementations.
1043         * bitset/table.c (tbitset_list_reverse): Likewise.
1045 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1047         bitset: style: sort header
1048         * lib/bitset/base.h (bitset_ffs): Rename as...
1049         (bitset_ffs_): this.
1050         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
1052 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
1054         bitset: tests: check BITSET_FOR_EACH_REVERSE
1055         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
1056         Check BITSET_FOR_EACH_REVERSE.
1058 2020-11-29  Bruno Haible  <bruno@clisp.org>
1060         spawn-pipe tests: Fix test failure with MSVC.
1061         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
1062         (gl_msvc_invalid_parameter_handler): New function.
1063         (main): Set a global invalid-parameter handler.
1064         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
1066 2020-11-29  Bruno Haible  <bruno@clisp.org>
1068         execute: Add tests.
1069         * tests/test-execute.sh: New file.
1070         * tests/test-execute-main.c: New file.
1071         * tests/test-execute-child.c: New file.
1072         * modules/execute-tests: New file.
1074 2020-11-29  Bruno Haible  <bruno@clisp.org>
1076         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
1077         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
1078         works.
1079         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
1080         fallback implementation as on Haiku.
1081         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
1082         effective.
1083         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
1085 2020-11-29  Bruno Haible  <bruno@clisp.org>
1087         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
1088         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
1089         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
1090         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
1091         * lib/windows-spawn.c: Remove modifications for kLIBC.
1092         * modules/spawn-pipe (Files): Add the new files.
1093         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
1095 2020-11-28  Bruno Haible  <bruno@clisp.org>
1097         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
1098         Reported by Paul Eggert in
1099         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
1100         * m4/sparcv8+.m4: New file.
1101         * modules/sparcv8+: New file.
1102         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
1104 2020-11-28  Bruno Haible  <bruno@clisp.org>
1106         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
1107         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
1109 2020-11-28  Bruno Haible  <bruno@clisp.org>
1111         windows-spawn: New module.
1112         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
1113         implementations.
1114         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
1115         * modules/windows-spawn: New file.
1116         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
1117         * lib/spawn-pipe.c: Likewise.
1118         * modules/execute (Files): Remove lib/w32spawn.h.
1119         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1120         xalloc.
1121         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1122         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
1123         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
1124         xalloc.
1125         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
1127 2020-11-27  Bruno Haible  <bruno@clisp.org>
1129         ssfmalloc tests: Port to macOS 11.
1130         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
1132 2020-11-26  Bruno Haible  <bruno@clisp.org>
1134         Fix dependencies of modules that use '_exit' on native Windows.
1135         Reported by Jim Meyering in
1136         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
1137         * modules/_Exit (Depends-on): Add unistd.
1138         * modules/closein (Depends-on): Likewise.
1139         * modules/closeout (Depends-on): Likewise.
1140         * modules/forkpty (Depends-on): Likewise.
1141         * modules/posix_spawn-internal (Depends-on): Likewise.
1142         * modules/savewd (Depends-on): Likewise.
1143         * modules/stat-time-tests (Depends-on): Likewise.
1145 2020-11-26  Bruno Haible  <bruno@clisp.org>
1147         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
1148         * modules/raise-tests (Depends-on): Add unistd.
1149         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
1151 2020-11-25  Jim Meyering  <meyering@fb.com>
1153         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
1154         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
1155         non-NULL, since we don't bother handing strdup failure.
1157         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
1158         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
1159         * tests/test-raise.c: Include unistd.h.
1160         (handler): Use _exit, not exit.
1162 2020-11-23  Bruno Haible  <bruno@clisp.org>
1164         Use the correct printf format attribute for mingw.
1165         Reported by Reuben Thomas <rrt@sc3d.org> in
1166         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
1168         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
1169         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
1171         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
1172         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
1173         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1174         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
1175         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
1176         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
1178         * modules/vasnprintf (Depends-on): Add stdio.
1179         * lib/vasnprintf.h: Include <stdio.h>.
1180         (asnprintf, vasnprintf): Use the standard printf format attribute.
1182         * modules/xvasprintf (Depends-on): Add stdio.
1183         * lib/xvasprintf.h: Include <stdio.h>.
1184         (xasprintf, xvasprintf): Use the standard printf format attribute.
1186         * modules/xprintf (Depends-on): List stdio first.
1187         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
1188         depends on GNULIB_VPRINTF_POSIX.
1189         (xfprintf, xvfprintf): Use a printf format attribute that depends on
1190         GNULIB_VFPRINTF_POSIX.
1192         * modules/c-vasnprintf (Depends-on): Add stdio.
1193         * lib/c-vasnprintf.h: Include <stdio.h>.
1194         (c_vasnprintf): Use the standard printf format attribute.
1196         * modules/c-vasprintf (Depends-on): Add stdio.
1197         * lib/c-vasprintf.h: Include <stdio.h>.
1198         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
1200         * modules/c-vsnprintf (Depends-on): Add stdio.
1201         * lib/c-vsnprintf.h: Include <stdio.h>.
1202         (c_vsnprintf): Use the standard printf format attribute.
1204         * modules/c-snprintf (Depends-on): Add stdio.
1205         * lib/c-snprintf.h: Include <stdio.h>.
1206         (c_snprintf): Use the standard printf format attribute.
1208         * modules/c-xvasprintf (Depends-on): Add stdio.
1209         * lib/c-xvasprintf.h: Include <stdio.h>.
1210         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
1212         * modules/error (Depends-on): Depend on stdio always.
1213         * lib/error.h: Include <stdio.h>.
1214         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
1215         (error, error_at_line): Use a printf format attribute that depends on
1216         GNULIB_VFPRINTF_POSIX.
1217         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
1218         _GL_ATTRIBUTE_FORMAT_PRINTF.
1220         * modules/verror (Depends-on): Add stdio.
1221         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
1222         (verror, verror_at_line): Use the standard printf format attribute.
1223         * lib/verror.c: Include "error.h".
1225         * modules/argp (Depends-on): Add stdio.
1226         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
1227         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
1229         * modules/libtextstyle-optional (Depends-on): Add stdio.
1230         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
1231         printf format attribute.
1233         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
1234         format attribute.
1236 2020-11-23  Pádraig Brady  <P@draigBrady.com>
1238         selinux-at, selinux-h: use const correct declarations
1239         * lib/se-selinux.in.h: Use const for "set" functions,
1240         to match current selinux, and support cleaner user code.
1241         * lib/selinux-at.c: Likewise.
1242         * lib/selinux-at.h: Likewise.
1244 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1246         canonicalize-lgpl: fix memory leak
1247         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
1248         which could have occurred if BUF was so large that malloc was
1249         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
1250         this eliminates the need to free BUF separately.
1252 2020-11-22  Bruno Haible  <bruno@clisp.org>
1254         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1255         * modules/xvasprintf (Depends-on): Add xalloc.
1256         * modules/pipe-filter-gi (Depends-on): Likewise.
1257         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1258         * modules/spawn-pipe (Depends-on): Likewise.
1260 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1262         bootstrap: add option hooks
1263         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1264         (bootstrap_option_hook): Likewise.
1265         (usage): Call bootstrap_print_option_usage_hook.
1267 2020-11-22  Bruno Haible  <bruno@clisp.org>
1269         argp: Don't break getprogname on non-glibc systems.
1270         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1271         program_invocation_name and program_invocation_short_name.
1273 2020-11-22  Bruno Haible  <bruno@clisp.org>
1275         doc: Document <link.h>.
1276         * doc/glibc-headers/link.texi: New file.
1277         * doc/gnulib.texi: Include it.
1279 2020-11-22  Bruno Haible  <bruno@clisp.org>
1281         doc: Add references to the LSB.
1282         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1283         * doc/posix-functions/*.texi: Likewise.
1285 2020-11-22  Bruno Haible  <bruno@clisp.org>
1287         doc: Fix a makeinfo warning (regression 2020-11-03).
1288         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1290 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1292         parse-datetime: fix printf format typo
1293         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1294         previous patch to this file.  Problem reported by Chris Elvidge in
1295         <https://bugs.gnu.org/44763#32>.
1297         setlocale-null-tests: work around GCC bug 44511
1298         * tests/test-setlocale_null-mt-all.c:
1299         * tests/test-setlocale_null-mt-one.c:
1300         Ignore -Wreturn-type, to work around GCC bug 44511.
1302         nl_langinfo-tests: work around GCC bug 44511
1303         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1304         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1305         Problem reported for GNU grep by Andreas Schwab
1306         <https://bugs.gnu.org/44535>.
1308         selinux-h: add stubs for selabel_open etc.
1309         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1310         because matchpathcon is deprecated in favor of selabel_open etc.,
1311         so this patch adds stubs for these functions.
1312         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1313         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1314         as it is needed for selabel_open and selinux/selinux.h declares
1315         this type here.
1316         * modules/selinux-h (Files): Add the new files.
1317         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1318         (lib_SOURCES): Add se-label.in.h, se-label.c.
1319         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1320         (selinux/label.h): New rule, mimicking selinux/context.h.
1321         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1322         (Include): Add selinux/label.h.
1324 2020-11-21  Bruno Haible  <bruno@clisp.org>
1326         Update after 'test-driver' in Automake changed.
1327         * build-aux/test-driver.diff: Rebase.
1329 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1331         read-file: remove dead assignment
1332         * lib/read-file.c (fread_file): Remove dead assignment when
1333         RF_SENSITIVE is set, flagged by clang-analyzer.
1335 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1337         bitset: tests: exercise the stats too
1339         * tests/test-bitset.c: Display the stats at the end of the test.
1340         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1341         last bin, display "256-..." rather that "256-511", since the last bin
1342         does count item greater than or equal to 256.
1344 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1346         bitset: tests: try harder to break it
1347         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1348         BITSET_LIST_SIZE.
1349         (main): Likewise.
1350         While at it, also exercise super small bitsets.
1352 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1354         bitset: use ffs where possible in the vector implementation
1355         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1357 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1359         bitset: use ffs where possible in the table implementation
1360         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1362 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1364         bitset: check empty and full bitsets
1365         * tests/test-bitset.c (check_zero, check_ones): New.
1366         (check_attributes): Use them.
1368 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1370         bitset: be sure to always return a value
1371         * lib/bitset/array.c (abitset_small_list): Always update *next and
1372         return a value.
1374 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1376         vcs-to-changelog: Expect spaces in file names
1377         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1378         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1379         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1380         tabs to spaces.
1381         (list_changes): Use tabs to identify file names.
1383 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1385         bitset: strengthen tests
1386         * tests/test-bitset.c (compare): Also check count.
1387         Deal only with random values, move the one-bit tests to...
1388         (check_one_bit): this new function.
1389         (check_attributes): Call it.
1391 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1393         bitset: fix iteration over table bitsets
1394         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1396 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1398         bitset: rename internal details for consistency
1399         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1401 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1403         bitset: test: run deterministic tests on several bitset sizes
1404         * tests/test-bitset.c (check_attributes): Run it with small and large
1405         sizes.
1407 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1409         bitset: use ffs where possible in the list implementation
1410         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1412 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1414         bitset: use ffs where possible in array implementation
1415         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1417 2020-11-17  Bruno Haible  <bruno@clisp.org>
1419         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1420         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1421         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1422         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1423         C++ mode.
1425 2020-11-17  Bruno Haible  <bruno@clisp.org>
1427         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1428         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1429         is always declared.
1430         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1431         declared.
1433 2020-11-17  Bruno Haible  <bruno@clisp.org>
1435         Fix link errors on AIX.
1436         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1437         * modules/getumask (Link): Link with $(LIBTHREAD).
1438         * modules/getumask-tests (Makefile.am): Link test-getumask with
1439         $(LIBTHREAD).
1440         * modules/supersede (Link): Link with $(LIBTHREAD).
1441         * modules/supersede-tests (Makefile.am): Link test-supersede with
1442         $(LIBTHREAD).
1443         * modules/fatal-signal (Link): New section.
1444         * modules/execute (Link): New section.
1445         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1446         * modules/javaexec (Link): Link with $(LIBTHREAD).
1447         * modules/spawn-pipe (Link): New section.
1448         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1449         $(LIBTHREAD).
1450         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1451         * modules/javacomp (Link): Link with $(LIBTHREAD).
1452         * modules/javaversion (Link): Link with $(LIBTHREAD).
1453         * modules/pipe-filter-gi (Link): New section.
1454         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1455         test-pipe-filter-gi2-main with $(LIBTHREAD).
1456         * modules/pipe-filter-ii (Link): New section.
1457         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1458         test-pipe-filter-ii2-main with $(LIBTHREAD).
1459         * modules/term-style-control (Link): New section.
1460         * modules/term-style-control-tests (Makefile.am): Link
1461         test-term-style-control-hello, test-term-style-control-yes with
1462         $(LIBTHREAD).
1463         * modules/wait-process (Link): New section.
1464         * modules/nonblocking-pipe-tests (Makefile.am): Link
1465         test-nonblocking-pipe-main with $(LIBTHREAD).
1466         * modules/nonblocking-socket-tests (Makefile.am): Link
1467         test-nonblocking-socket-main with $(LIBTHREAD).
1469 2020-11-16  Bruno Haible  <bruno@clisp.org>
1471         Fix link errors on platforms with libunistring.
1472         * modules/c32isalnum (Link): New section.
1473         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1474         $(LIBUNISTRING).
1475         * modules/c32isalpha (Link): New section.
1476         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1477         $(LIBUNISTRING).
1478         * modules/c32isblank (Link): New section.
1479         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1480         $(LIBUNISTRING).
1481         * modules/c32iscntrl (Link): New section.
1482         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1483         $(LIBUNISTRING).
1484         * modules/c32isdigit (Link): New section.
1485         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1486         $(LIBUNISTRING).
1487         * modules/c32isgraph (Link): New section.
1488         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1489         $(LIBUNISTRING).
1490         * modules/c32islower (Link): New section.
1491         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1492         $(LIBUNISTRING).
1493         * modules/c32isprint (Link): New section.
1494         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1495         $(LIBUNISTRING).
1496         * modules/c32ispunct (Link): New section.
1497         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1498         $(LIBUNISTRING).
1499         * modules/c32isspace (Link): New section.
1500         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1501         $(LIBUNISTRING).
1502         * modules/c32isupper (Link): New section.
1503         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1504         $(LIBUNISTRING).
1505         * modules/c32isxdigit (Link): New section.
1506         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1507         $(LIBUNISTRING).
1508         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1509         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1510         $(LIBUNISTRING).
1512 2020-11-16  Bruno Haible  <bruno@clisp.org>
1514         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1515         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1516         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1517         * modules/getumask-tests (Makefile.am): Link test-getumask with
1518         $(LIBINTL).
1519         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1520         * modules/supersede-tests (Makefile.am): Link test-supersede with
1521         $(LIBINTL).
1522         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1523         $(LIBINTL).
1525 2020-11-16  Bruno Haible  <bruno@clisp.org>
1527         getumask: Document link dependencies.
1528         * modules/getumask (Link): New section.
1530 2020-11-16  Bruno Haible  <bruno@clisp.org>
1532         Update link dependencies in modules after 2020-09-09 change.
1533         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1534         * modules/mkdtemp (Link): Likewise.
1535         * modules/mkostemp (Link): Likewise.
1536         * modules/mkostemps (Link): Likewise.
1537         * modules/mkstemp (Link): Likewise.
1538         * modules/mkstemps (Link): Likewise.
1539         * modules/supersede (Link): Likewise.
1540         * modules/tmpfile (Link): Likewise.
1541         * modules/tmpfile-safer (Link): Likewise.
1543 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1545         getumask-tests: port to Solaris 10 etc.
1546         Problem reported by Tom Christensen in:
1547         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1548         * modules/getumask-tests (test_getumask_LDADD):
1549         Add $(LIB_CLOCK_GETTIME).
1551 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1553         bitset: use ffsl to accelerate iterations over set bits
1554         Suggested by Bruno Haible.
1555         * modules/bitset: Depend upon ffsl.
1556         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1557         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1559 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1561         bitset: more tests
1562         * tests/test-bitset.c (compare): Make it clear that the random values
1563         should not be modified.
1564         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1566 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1568         bitset: fix the copy from lbitset to other types
1569         * lib/bitset/list.c (lbitset_copy): Rename as...
1570         (lbitset_copy_): this.
1571         (lbitset_copy): New.
1572         Dispatch to heterogeneous/homogeneous copy.
1574 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1576         bitset: making debug traces more useful
1577         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1579         bitset: comment changes
1580         * lib/bitset.c: Move some documenting comments to...
1581         * lib/bitset.h: here.
1582         * lib/bitset/array.c: Fix some comments.
1584 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1586         careadlinkat: warn better about GCC bug 93644
1587         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1588         not in effect, use "#warning" to let builders know more clearly
1589         about GCC bug 93644, because the bug triggers even if no -W option
1590         is given to GCC.
1592 2020-11-13  Jim Meyering  <meyering@fb.com>
1594         hard-locale-tests: avoid a -Wstrict-prototypes warning
1595         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1596         changing "main ()" to "main (void)". This was the only case that
1597         triggered a warning when building grep with --enable-gcc-warnings.
1599 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1601         time_rz: simplify CVE-2017-7476 fix
1602         * lib/time_rz.c: Do not include limits.h; I think it was included
1603         under the mistaken impression that limits.h defines SIZE_MAX.
1604         (SIZE_MAX): Remove.
1605         (save_abbr): Put string length into a ptrdiff_t variable,
1606         so that the size comparison works naturally.  This
1607         fixes CVE-2017-7476 in a cleaner way.
1609         parse-datetime: streamline overflow checking
1610         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1611         did not work for unsigned destinations, and since time_t might
1612         be unsigned that meant it did not work for time_t destinations.
1613         This limitation of INT_ADD_WRAPV has been fixed, so we can
1614         now streamline parse-datetime.y a bit.
1615         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1616         has not been used for a while.
1617         (yylex, parse_datetime2): Assume C99 declarations after statements.
1618         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1619         to TYPE_MINIMUM.
1620         (parse_datetime2): No need for time_overflow now that
1621         INT_ADD_WRAPV works for unsigned results.
1623         parse-datetime-tests: port to Alpine Linux 3.12.1
1624         * tests/test-parse-datetime.c: Include errno.h for errno,
1625         and unistd.h for _SC_TZNAME_MAX and sysconf.
1626         (main): In the outlandishly-long time zone abbreviation test,
1627         do not exceed TZNAME_MAX as this has undefined behavior,
1628         and on Alpine Linux 3.12.1 it makes the test fail.
1630 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1632         mgetgroups: avoid warning with clang
1633         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1634         so disable -Wpointer-sign for all clang versions.
1636 2020-11-07  Bruno Haible  <bruno@clisp.org>
1638         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1639         Reported by Simon Josefsson in
1640         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1641         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1642         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1643         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1645 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1647         tests: pacify Sun C 5.9
1648         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1649         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1650         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1651         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1652         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1653         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1654         Remove unreachable ‘return NULL;’s.
1656         tests: port better to XLC 12.01
1657         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1658         even in code that is not executed, as IBM XLC 12.01 complains "The
1659         subscript -1 is less than zero."
1660         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1661         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1662         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1663         arguments than are required by the macro definition."
1665 2020-11-03  Bruno Haible  <bruno@clisp.org>
1667         aligned-malloc: Use fixes from the new modules.
1668         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1669         aligned_alloc, memalign.
1670         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1672 2020-11-03  Bruno Haible  <bruno@clisp.org>
1674         aligned_alloc: Add tests.
1675         * tests/test-aligned_alloc.c: New file.
1676         * modules/aligned_alloc-tests: New file.
1678         aligned_alloc: New module.
1679         * lib/stdlib.in.h (aligned_alloc): New declaration.
1680         * lib/aligned_alloc.c: New file.
1681         * m4/aligned_alloc.m4: New file.
1682         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1683         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1684         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1685         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1686         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1687         * modules/aligned_alloc: New file.
1688         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1689         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1690         AIX bug.
1692 2020-11-03  Bruno Haible  <bruno@clisp.org>
1694         posix_memalign: Add tests.
1695         * tests/test-posix_memalign.c: New file.
1696         * modules/posix_memalign-tests: New file.
1698         posix_memalign: New module.
1699         * lib/stdlib.in.h (posix_memalign): New declaration.
1700         * lib/posix_memalign.c: New file.
1701         * m4/posix_memalign.m4: New file.
1702         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1703         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1704         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1705         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1706         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1707         * modules/posix_memalign: New file.
1708         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1709         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1710         the OpenBSD bug.
1712 2020-11-03  Bruno Haible  <bruno@clisp.org>
1714         memalign: Add tests.
1715         * tests/test-memalign.c: New file.
1716         * modules/memalign-tests: New file.
1718         memalign: New module.
1719         * modules/memalign: New file.
1720         * doc/glibc-functions/memalign.texi: Mention the new module.
1722 2020-11-03  Bruno Haible  <bruno@clisp.org>
1724         verify tests: Fix crash with GCC (regression 2020-11-02).
1725         * tests/test-verify.c (main): Fix initializer of s.
1727 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1729         mountlist: recognize more file system types as remote
1731         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1732         "remote" file systems from stat.c in coreutils.
1734 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1736         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1737         * tests/test-verify.c (main): Initialize state variable.
1738         Reported by Bruno Haible for GCC 5.4.0.
1740 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1742         dfa.h: support inclusion from C++
1743         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1744         C++ code.  The latter was suggested by Arnold Robbins.
1746 2020-11-01  Bruno Haible  <bruno@clisp.org>
1748         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1749         * tests/test-ssfmalloc.c: Include <limits.h>.
1750         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1752 2020-11-01  Bruno Haible  <bruno@clisp.org>
1754         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1755         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1757 2020-11-01  Jim Meyering  <meyering@fb.com>
1759         dfa-tests: test for today's invalid-merge fix
1760         * tests/test-dfa-invalid-merge.sh: New file.
1761         * modules/dfa-tests (Files): Add it.
1762         (TESTS): Add it.
1764 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1766         dfa: retain sequences of similar nodes in optimization
1767         DFA was merging similar nodes when it should not.  For example,
1768         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1769         is not merged.  Problem reported by Gonzalo Padrino in
1770         https://bugs.gnu.org/44351
1771         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1772         optimization.
1774 2020-11-01  Jim Meyering  <meyering@fb.com>
1776         test-dfa-match-aux.c: accept EREs, not BREs
1777         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1778         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1780 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1782         verify tests: avoid -Wmissing-declarations warnings
1783         * tests/test-verify.c (test_assume_expressions): Add declaration.
1784         (test_assume_optimization): Likewise.
1785         (test_assume_noreturn): Likewise.
1786         (main): Move down after all other definitions.  While at it, also
1787         call test_assume_expressions and test_assume_optimization as a
1788         runtime check.
1790 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1792         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1793         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1794         Perhaps these macros should be removed, as they’re not in either
1795         POSIX or GNU.  They could be moved to stat-macros.h, which would
1796         be cleaner in some sense.
1798 2020-10-25  Bruno Haible  <bruno@clisp.org>
1800         ssfmalloc tests: Small tweaks.
1801         * tests/test-ssfmalloc.c: Add comments.
1802         (alloc_pages): Don't require PROT_EXEC bits.
1803         (block_sizes): Add more small sizes, for better coverage of
1804         ssfmalloc-bitmap.h.
1806         ssfmalloc tests: Portability to Minix.
1807         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1808         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1809         * m4/mmap-anon.m4: Update comment.
1811         ssfmalloc: Portability to AIX.
1812         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1813         (Link): New section.
1814         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1815         $(LIBTHREAD).
1817         ssfmalloc: Portability to Cygwin.
1818         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1819         (pg_offset_t): Define depending on PAGESIZE_MAX.
1820         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1821         (PAGESIZE_MAX): New macro.
1823         ssfmalloc: Fix buffer overrun in bitmap search.
1824         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1825         word *words_end.
1827 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1829         doc: mention ‘restrict’ and C++
1830         * doc/gnulib-readme.texi (C99 features assumed): Document
1831         that ‘restrict’ should be avoided in C++ code.
1833 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1835         selinux-at, selinux-h: port to SELinux 3.1
1836         The new release finally deprecated the typedef 'security_context_t',
1837         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1838         Use the simpler 'char *' instead.
1839         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1840         (lgetfilecon): Likewise.
1841         (fgetfilecon): Likewise.
1842         (map_to_failure): Likewise.
1843         (rpl_getfilecon): Likewise.
1844         (rpl_lgetfilecon): Likewise.
1845         (rpl_fgetfilecon): Likewise.
1846         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1847         (getcon): Adjust type of context parameter.
1848         (freecon): Likewise.
1849         (getfscreatecon): Likewise.
1850         (setfscreatecon): Likewise.
1851         (matchpathcon): Likewise.
1852         (getfilecon): Likewise.
1853         (lgetfilecon): Likewise.
1854         (fgetfilecon): Likewise.
1855         (setfilecon): Likewise.
1856         (lsetfilecon): Likewise.
1857         (fsetfilecon): Likewise.
1858         (security_check_context): Likewise.
1859         (security_check_context_raw): Likewise.
1860         (setexeccon): Likewise.
1861         (security_compute_create): Likewise.
1862         * lib/selinux-at.c (getfileconat): Likewise.
1863         (lgetfileconat): Likewise.
1864         (setfileconat): Likewise.
1865         (lsetfileconat): Likewise.
1866         * lib/selinux-at.h: Likewise.
1868 2020-10-19  Bruno Haible  <bruno@clisp.org>
1870         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1871         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1872         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1873         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1874         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1875         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1876         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1878 2020-10-18  Bruno Haible  <bruno@clisp.org>
1880         ssfmalloc: Add tests.
1881         * tests/test-ssfmalloc.c: New file.
1882         * modules/ssfmalloc-tests: New file.
1884         ssfmalloc: New module.
1885         * lib/ssfmalloc.h: New file.
1886         * lib/ssfmalloc-bitmap.h: New file.
1887         * modules/ssfmalloc: New file.
1889 2020-10-18  Bruno Haible  <bruno@clisp.org>
1891         wchar: Fix configure test result on some versions of AIX.
1892         Reported by Clément Chigot <clement.chigot@atos.net> in
1893         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1894         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1895         systems.
1897 2020-10-18  Bruno Haible  <bruno@clisp.org>
1899         time: Fix warning about asctime when asctime is not used.
1900         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1901         invocation.
1903 2020-10-18  Bruno Haible  <bruno@clisp.org>
1905         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1906         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1907         '_GL_ATTRIBUTE_CONST'.
1908         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1909         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1910         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1911         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1912         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1913         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1914         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1916 2020-10-18  Bruno Haible  <bruno@clisp.org>
1918         obstack: Fix a clang warning.
1919         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1921 2020-10-16  Bruno Haible  <bruno@clisp.org>
1923         hash: Rename hash_delete to hash_remove.
1924         * lib/hash.h (hash_remove): Renamed from hash_delete.
1925         (hash_delete): New declaration.
1926         * lib/hash.c (hash_remove): Renamed from hash_delete.
1927         (hash_delete): New function.
1928         * tests/test-hash.c (main): Update.
1929         * lib/fts-cycle.c (leave_dir): Likewise.
1930         * NEWS: Mention the change.
1932 2020-10-16  Bruno Haible  <bruno@clisp.org>
1934         hash, xhash: Make usable from C++.
1935         * lib/hash.h: Add extern "C".
1937 2020-10-16  Bruno Haible  <bruno@clisp.org>
1939         hash, xhash: Move comments to the .h file.
1940         * lib/hash.c: Move comments meant for the user from here...
1941         * lib/xhash.c: ... and here...
1942         * lib/hash.h: ... to here.
1944 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1946         Don't declare an intention to modify the return value of strerror.
1947         * tests/test-perror2.c (main): Assign the return value of strerror to a
1948         'const char *' variable.
1950 2020-10-11  Bruno Haible  <bruno@clisp.org>
1952         *printf: Avoid "expanded before it was required" warning.
1953         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1954         AC_DEFUN_ONCE.
1956 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1958         getprogname: Add support for OpenServer 6 and UnixWare 7.
1959         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1960         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1962 2020-10-11  Bruno Haible  <bruno@clisp.org>
1964         tests: Avoid a name clash on UnixWare.
1965         Reported by Tim Rice <tim@multitalents.net> in
1966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1967         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1969 2020-10-11  Bruno Haible  <bruno@clisp.org>
1971         stdioext: Update comments regarding UnixWare.
1972         Reported by Tim Rice <tim@multitalents.net> in
1973         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1974         * lib/fbufmode.c: Update comments.
1975         * lib/fflush.c: Likewise.
1976         * lib/fpending.c: Likewise.
1977         * lib/fpurge.c: Likewise.
1978         * lib/freadable.h: Likewise.
1979         * lib/freadable.c: Likewise.
1980         * lib/freadahead.c: Likewise.
1981         * lib/freading.h: Likewise.
1982         * lib/freading.c: Likewise.
1983         * lib/freadptr.c: Likewise.
1984         * lib/freadseek.c: Likewise.
1985         * lib/fseeko.c: Likewise.
1986         * lib/fseterr.c: Likewise.
1987         * lib/fwritable.h: Likewise.
1988         * lib/fwritable.c: Likewise.
1989         * lib/fwriting.h: Likewise.
1990         * lib/fwriting.c: Likewise.
1992 2020-10-11  Bruno Haible  <bruno@clisp.org>
1994         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1995         Reported by Tim Rice <tim@multitalents.net> in
1996         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1997         Uses the info from
1998         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1999         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
2001 2020-10-11  Bruno Haible  <bruno@clisp.org>
2003         stdioext: Avoid compilation errors on UnixWare 7.
2004         Reported by Tim Rice <tim@multitalents.net> in
2005         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
2006         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
2007         * lib/fpurge.c: Likewise.
2008         * lib/freadable.h: Likewise.
2009         * lib/freading.h: Likewise.
2010         * lib/fwritable.h: Likewise.
2011         * lib/fwriting.h: Likewise.
2012         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
2013         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2014         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
2015         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
2016         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
2017         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
2019 2020-10-11  Bruno Haible  <bruno@clisp.org>
2021         stdioext: Update comments regarding Cygwin.
2022         * lib/fpending.c: Update comments.
2023         * lib/fpurge.c: Likewise.
2024         * lib/freadable.h: Likewise.
2025         * lib/freadable.c: Likewise.
2026         * lib/freading.h: Likewise.
2027         * lib/freading.c: Likewise.
2028         * lib/fwritable.h: Likewise.
2029         * lib/fwritable.c: Likewise.
2030         * lib/fwriting.h: Likewise.
2031         * lib/fwriting.c: Likewise.
2033 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
2035         Fix "warning: implicit declaration of function 'pthread_sigmask'".
2036         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
2037         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
2039 2020-10-10  Bruno Haible  <bruno@clisp.org>
2041         *-list, *-oset, *-omap: Avoid possible compiler warnings.
2042         Reported by Marc Nieper-Wißkirchen in
2043         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
2044         * lib/gl_anylinked_list2.h (gl_linked_iterator,
2045         gl_linked_iterator_from_to): Mark as 'pure'.
2046         (gl_linked_iterator_free): Mark as 'const'.
2047         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
2048         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
2049         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
2050         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
2051         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
2052         (gl_tree_iterator_free): Mark as 'const'.
2053         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
2054         'pure'.
2055         (gl_tree_iterator_free): Mark as 'const'.
2056         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
2057         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
2058         (gl_tree_iterator_free): Mark as 'const'.
2059         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
2060         compare_position_threshold): Mark as 'pure'.
2061         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
2062         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
2063         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
2064         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
2065         'pure'.
2066         (gl_array_iterator_free): Mark as 'const'.
2067         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
2068         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
2069         (gl_array_iterator_free): Mark as 'const'.
2070         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
2071         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
2072         gl_array_iterator_atleast): Mark as 'pure'.
2073         (gl_array_iterator_free): Mark as 'const'.
2074         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
2075         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
2076         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
2077         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
2078         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
2079         gl_carray_sortedlist_search): Mark as 'pure'.
2080         (gl_carray_iterator_free): Mark as 'const'.
2082 2020-10-10  Bruno Haible  <bruno@clisp.org>
2084         rbtree-list: Avoid possible compiler warnings.
2085         This mirrors the change of avltree-list on 2014-09-16.
2086         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
2087         declaration. Add cast to void for ignored value of check_invariants.
2089 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2091         stack: New module.
2092         * MODULES.html.sh: Add entry for the stack module.
2093         * modules/stack: New file.
2094         * modules/stack-tests: New file.
2095         * lib/stack.h: New file.
2096         * tests/test-stack.c: New file.
2098 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2100         attribute: improve const, pure doc
2101         Problem reported by Marc Nieper-Wißkirchen in:
2102         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
2103         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
2104         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
2106 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2108         thread: pacify GCC on Solaris 10
2109         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
2110         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
2111         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
2112         where pthread_t is unsigned int.
2114 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2116         c-stack: avoid AS_IF
2117         Problem reported by Bruno Haible in:
2118         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
2119         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
2121         c-stack: pacify GCC 9.3.1 when using libsigsegv
2122         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
2124 2020-10-04  Bruno Haible  <bruno@clisp.org>
2126         localename: Fix a couple of "unused parameter" warnings.
2127         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
2128         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
2129         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
2130         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
2131         parameter list.
2133 2020-10-04  Bruno Haible  <bruno@clisp.org>
2135         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
2136         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
2137         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
2138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
2139         HAVE_SNPRINTF_TRUNCATION_C99.
2140         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
2141         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
2143 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2145         c-stack: streamline Solaris configuration
2146         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
2147         the code is used only if a test for sigaltstack worked
2148         in some other way.
2149         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
2150         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
2151         heuristic does not work).
2152         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
2153         we no longer require the libsigsegv module.
2154         (Depends-on): Depend on havelib, not libsigsegv.
2156         c-stack: stop using SIGSTKSZ
2157         It’s been proposed to stop making SIGSTKSZ an integer constant:
2158         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
2159         Also, using SIGSTKSZ in #if did not conform to current POSIX.
2160         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
2161         * lib/c-stack.c (SIGSTKSZ): Remove.
2162         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
2163         All uses changed.
2165         c-stack: fix libsigsegv typo
2166         Problem reported by Bruno Haible in:
2167         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
2168         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
2169         to be used only on Solaris (exactly where it is not needed!).
2171 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
2173         MODULES.html.sh: Fix typo.
2174         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
2176 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
2178         version-etc: pacify Oracle Studio 12.6
2179         Without this patch, it complains: "version-etc.h", line 64:
2180         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
2181         pedantic mode.
2182         * lib/version-etc.h (version_etc): Port to C89 macro rules.
2184 2020-09-27  Bruno Haible  <bruno@clisp.org>
2186         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
2187         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2188         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2189         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
2190         ourselves; don't use AC_DECL_SYS_SIGLIST.
2192 2020-09-27  Bruno Haible  <bruno@clisp.org>
2194         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
2195         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2196         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2197         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
2198         instead of _AC_COMPUTE_INT.
2200 2020-09-27  Bruno Haible  <bruno@clisp.org>
2202         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
2203         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2204         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
2205         Based on a patch by Paul Eggert.
2206         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
2207         test STDC_HEADERS. Assume <stdlib.h> exists.
2208         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
2210 2020-09-27  Bruno Haible  <bruno@clisp.org>
2212         Enable testing of prereleases of Autoconf 2.70.
2213         Suggested by Paul Eggert in
2214         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
2215         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
2216         >= 2.70.
2217         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
2218         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
2219         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
2221 2020-09-27  Bruno Haible  <bruno@clisp.org>
2223         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
2224         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2225         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2226         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
2227         AC_PROG_CC, depending on the Autoconf version.
2229 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
2231         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
2232         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
2233         of AC_HELP_STRING.
2234         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
2236 2020-09-27  Bruno Haible  <bruno@clisp.org>
2238         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
2239         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
2240         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
2241         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
2243 2020-09-27  Bruno Haible  <bruno@clisp.org>
2245         extensions: Simplify last commit.
2246         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
2247         AC_GNU_SOURCE ever.
2249 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2251         extensions: require AC_GNU_SOURCE only for <=2.63
2252         Problem reported by Gavin Smith in:
2253         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2255         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2256         shouldn’t be needed after that, and Autoconf 2.70 complains about
2257         it being obsolete.
2259 2020-09-26  Bruno Haible  <bruno@clisp.org>
2261         regex-tests: Make test more robust.
2262         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2263         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2265 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2267         regex-tests: fix possible Turkish false-alarm
2268         * modules/regex-tests (Depends-on): Add wctype-h.
2269         * tests/test-regex.c: Include wctype.h.
2270         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2271         as the Turkish regex test assumes this.
2273         regex-tests: fix test and add debug output
2274         Perhaps this will fix the recent grep test failure reported at:
2275         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2276         At least, the debug output should help narrow down the failure.
2277         * tests/test-regex.c: Include stdarg.h, stdio.h.
2278         (exit_status): New var.
2279         (report_error): New function.
2280         (main): Use it to report failures to stdout instead of merely
2281         exiting with some nonzero status.  The status info alone isn’t
2282         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2283         regex before calling re_compile_pattern, fixing a portability bug.
2285         regex: no longer match glibc
2286         * config/srclist.txt: Comment out regex_internal.c for now.
2288 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2290         regex: fix ignore-case Turkish bug
2291         * lib/regex_internal.c (build_wcs_upper_buffer):
2292         Do not assume that converting single-byte character to upper
2293         yields a single-byte character.  This is not true for Turkish,
2294         where towupper (L'i') yields L'İ', which is not single-byte.
2295         * tests/test-regex.c (main): Test for this bug.
2297         regex: port to weird isascii platforms
2298         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2300 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2302         dfa: make dfasupported a global function
2303         * lib/dfa.c (dfasupported): Rename, and make it global.
2304         Update caller.
2305         * lib/dfa.h (dfasupported): Add prototype.
2307 2020-09-20  Bruno Haible  <bruno@clisp.org>
2309         canonicalize: Add support for UNC file names on native Windows.
2310         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2311         <https://savannah.gnu.org/bugs/?59079>.
2312         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2313         extend the prefix to include the server.
2315 2020-09-20  Bruno Haible  <bruno@clisp.org>
2317         supersede: Fix test failures on native Windows.
2318         * lib/supersede.c (open_supersede): Handle non-regular files on native
2319         Windows like on Solaris.
2320         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2322 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2324         test-stdalign: test Oracle Studio better
2325         * doc/posix-headers/stdalign.texi (stdalign.h):
2326         * tests/test-stdalign.c (main):
2327         Sun Studio Bug #2125432 seems to be fixed.
2329         c-stack: output diagnostic in single 'write'
2330         * lib/c-stack.c (die): In the typical case, use just one 'write'
2331         syscall to output the diagnostic, as this lessens interleaving.
2332         (die, c_stack_action): Assume C99.
2333         * modules/c-stack (Depends-on): Add c99, mempcpy.
2335         c-stack: improve checking if !libsigsegv
2336         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2337         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2338         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2339         I found these problems while looking into this bug report:
2340         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2341         * lib/c-stack.c: Include c-stack.h first, to test interface.
2342         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2343         max_align_t, intprops.h for INT_ADD_WRAPV.
2344         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2345         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2346         for libsigsegv 2.8 and earlier since the bug should be fixed
2347         after that.
2348         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2349         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2350         Assume sprintf returns byte count; this assumption is safe now.
2351         (page_size): New static volatile variable, since sysconf isn’t
2352         documented to be async-signal-safe on Solaris.  This variable is
2353         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2354         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2355         SIGINFO_WORKS).
2356         (segv_handler): Use it if present.  Never report null pointer
2357         dereference as a stack overflow.  Check for (unlikely) unsigned
2358         and/or pointer overflow.
2359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2360         Rename cache variables to gl_cv_sys_stack_overflow_works
2361         and gl_cv_sys_xsi_stack_overflow_heuristic.
2362         All uses changed.
2363         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2364         c-stack no longer uses STACK_DIRECTION.
2365         Do not check for unistd.h, since we depend on unistd.
2366         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2367         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2368         stdbool, stddef.
2370 2020-09-20  Bruno Haible  <bruno@clisp.org>
2372         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2373         * m4/musl.m4: Revert 2020-09-19 patch.
2374         * m4/setlocale_null.m4: Likewise.
2375         * modules/setlocale-null: Likewise.
2377 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2378             Bruno Haible  <bruno@clisp.org>
2380         relocatable-prog: Fix for multiple relocatable library directories.
2381         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2382         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2383         being attached to a single one.
2385 2020-09-19  Jim Meyering  <meyering@fb.com>
2387         test-verify.c: avoid -Wshadow warnings
2388         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2389         (enum): Capitalize member names. Adjust uses.
2391 2020-09-19  Bruno Haible  <bruno@clisp.org>
2393         havelib: Avoid linking with libc.a on GNU systems.
2394         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2395         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2397         dependency_libs value of a .la file, ignore '-lc' options on GNU
2398         systems.
2400 2020-09-19  Bruno Haible  <bruno@clisp.org>
2402         Fix recognition of musl libc on Alpine Linux 3.10.
2403         Reported by Jeffrey Walton <noloader@gmail.com> in
2404         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2405         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2406         (gl_MUSL_LIBC): Require it.
2407         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2408         * modules/setlocale-null (Files): Add m4/musl.m4.
2410 2020-09-19  Bruno Haible  <bruno@clisp.org>
2412         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2413         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2414         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2415         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2416         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2417         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2418         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2419         or <threads.h>.
2420         (ITEMS, MAX_RESULT_LEN): New macros.
2421         (nl_langinfo_unlocked): New function.
2422         (gl_get_nl_langinfo_lock): New declaration.
2423         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2424         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2425         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2426         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2427         REPLACE_NL_LANGINFO.
2428         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2429         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2430         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2431         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2432         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2434 2020-09-18  Bruno Haible  <bruno@clisp.org>
2436         fsusage, getaddrinfo: Produce more regular configure output.
2437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2438         corresponding AC_MSG_RESULT.
2439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2441 2020-09-18  Bruno Haible  <bruno@clisp.org>
2443         Add back gl_SILENT.
2444         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2446 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2448         c-stack-tests: fix -fsanitize=undefined false alarm
2449         * tests/test-c-stack2.sh: Skip the test-harness self-test
2450         if ‘gcc -fsanitize=undefined’ is in use.
2452 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2454         signalblocking: simplify and remove gl_SILENT
2455         gl_SILENT was problematic because if a trap was sprung, stderr
2456         generated during the trap was lost.  Avoid the problem by
2457         removing the need for gl_SILENT.
2458         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2459         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2460         Simplify, avoiding the need for gl_SILENT while preserving the
2461         ability of the user to override the value of the cache variable,
2462         now ac_cv_func_sigprocmask.
2464 2020-09-17  Bruno Haible  <bruno@clisp.org>
2466         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2467         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2468         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2469         AS_MESSAGE_FD.
2471 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2473         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2474         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2475         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2476         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2477         Define to 0.
2478         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2479         Do not use __builtin_mul_overflow_p.
2481         libc-config: port __THROW to Ubuntu 4
2482         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2483         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2484         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2485         The GCC 3.3.4 documentation says the attribute should work, but
2486         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2487         little point or desire to research this circa-2004 platform further,
2488         so just avoid the attribute there.
2490 2020-09-17  Jim Meyering  <meyering@fb.com>
2492         test-dfa-match.sh: port timeout work-around to newer Busybox
2493         * tests/test-dfa-match.sh: Update timeout -t portability test to
2494         accommodate Busybox 1.30.0 and newer.
2496 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2498         fnmatch: adjust to match glibc fix
2499         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2500         This does not affect Gnulib; it merely keeps Gnulib and glibc
2501         closer together, to help with any eventual merge, by incorporating
2502         a recent glibc patch.  The patch and the following commentary is
2503         by Andreas Schwab.
2504         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2505         contains the index into the extra array, whereas wextra points
2506         into the extra array at this index, containing the length of the
2507         following collating sequence in the wide character representation.
2509 2020-09-16  Bruno Haible  <bruno@clisp.org>
2511         stat, fstat: Fix compilation error with old mingw headers.
2512         Reported by Eli Zaretskii <eliz@gnu.org> in
2513         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2514         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2515         define it.
2517 2020-09-16  Bruno Haible  <bruno@clisp.org>
2519         stat, fstat: Fix when compiling for versions older than Windows Vista.
2520         Reported by Eli Zaretskii <eliz@gnu.org> in
2521         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2522         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2523         that was originally set before we redefined it.
2524         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2525         (gl_PREREQ_STAT): Require it.
2526         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2528 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2530         dfa: remove dfa-heap-overrun workaround
2531         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2532         both sets map[*] and does other things.  This reverts
2533         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2534         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2535         fixed the underlying problem.
2537 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2539         dfa: avoid use of uninitialized constraint
2540         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2541         to zero here.
2542         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2543         use of an uninitialized constraint by later code when ! (flags[i]
2544         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2545         the constraint.  Problem found by running 'valgrind src/grep -E
2546         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2548         dfa: assume C99 in reorder_tokens
2549         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2551         dfa: fix dfa-heap-overrun failure
2552         * lib/dfa.c (reorder_tokens): When setting
2553         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2554         that (i < d->follows[i].elems[j].index), use two loops, one to set
2555         the map array and the other to use it.  The incorrect assumption
2556         caused some elements to be missed, and this in turn caused grep's
2557         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2558         with GCC.  I found this bug while investigating
2559         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2560         and I think the bug also occurs on GNU/Linux but with more-subtle
2561         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2562         recent changes make the bug more likely.
2564 2020-09-13  Bruno Haible  <bruno@clisp.org>
2566         parse-datetime: Make the build rule work with parallel 'make'.
2567         Reported by Daiki Ueno <ueno@gnu.org> in
2568         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2569         * modules/parse-datetime (Makefile.am): Use a phony target and the
2570         general idiom for rules that produce multiple files.
2572 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2574         getpass: Check for nonnull prompt argument while avoiding warnings.
2575         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2576         (getpass) [!_WIN32]: Print prompt only if nonnull.
2578 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2580         dfa: epsilon-closure tweaks (Bug#40634)
2581         Rename BACKWORD to BACKWARD consistently.
2582         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2583         (addtok_mb): Redo slightly to make it act more like a state machine.
2584         Check depth only when it increases.
2585         (epsclosure): Let the switch test the tokens.
2586         (dfaanalyze): Cache tindex.  Simplify position loops.
2587         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2588         only if it is not null, since we're testing that anyway.
2589         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2591 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2593         dfa: use backward set in removal of epsilon closure
2594         When removing in epsilon closure, the code searched all nodes
2595         sequentially, and this was slow for some cases.  Build a backward
2596         set before search, and only check previous position with the set.
2597         Problem reported in <https://bugs.gnu.org/40634>.
2598         * lib/dfa.c (struct dfa): New member 'epsilon'.
2599         (addtok_mb): Check whether a pattern has epsilon node or not.
2600         (epsclosure): New arg BACKWORD; caller changed.  When removing
2601         epsilon node and reconnecting, check only previous positions.
2602         Treat BEG as if it were character.
2603         (dfaanalyze): Build backward set.
2605 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2607         canonicalize: fix pointer indexing bugs
2608         Problem reported by Florian Weimer in:
2609         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2610         * lib/canonicalize-lgpl.c (__realpath):
2611         * lib/canonicalize.c (canonicalize_filename_mode):
2612         Do not generate a pointer past the end of the array.
2613         * lib/canonicalize.c (canonicalize_filename_mode):
2614         Do not use a pointer after passing it to realloc.
2616 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2618         tempname: help merge with glibc
2619         Inspired by draft patches by Adhemerval Zanella in:
2620         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2621         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2622         * lib/tempname.c: Include stdalign.h, time.h.
2623         If _LIBC, do not include random-bits.h.
2624         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2625         (RANDOM_BITS): Remove, replacing with ...
2626         (random_bits): ... this new static function.  All uses changed.
2627         Add entropy each time if getrandom is not supported.
2628         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2629         Assume 64-bit support a la C99.
2630         (try_tempname_len): Take advantage of ASLR when initializing
2631         random value.
2632         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2634         getcwd: merge recent glibc changes
2635         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2636         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2638 2020-09-06  Bruno Haible  <bruno@clisp.org>
2640         attribute: Clarify which file to include.
2641         * modules/attribute (Include): Add "attribute.h".
2643 2020-09-06  Bruno Haible  <bruno@clisp.org>
2645         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2646         * lib/pipe-filter-ii.c: Include <process.h>.
2647         * lib/pipe-filter-gi.c: Likewise.
2649 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2651         verify: avoid __builtin_assume
2652         Our latest attempt to use Clang’s __builtin_assume caused a crash
2653         in GNU Emacs that we spent quite some time tracking down as being
2654         caused by the switch to __builtin_assume.  It’s not known whether
2655         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2656         For now, play it safe and avoid __builtin_assume.
2657         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2658         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2660 2020-09-05  Bruno Haible  <bruno@clisp.org>
2662         Fix several "warning: no previous prototype for function".
2663         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2664         in front of the declaration of the lookup function in
2665         unicase/locale-languages.h.
2666         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2667         unictype/bidi_byname.h.
2668         * modules/unictype/category-byname (Makefile.am): Likewise in
2669         unictype/categ_byname.h.
2670         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2671         unictype/combiningclass_byname.h.
2672         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2673         unictype/joininggroup_byname.h.
2674         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2675         unictype/joiningtype_byname.h.
2676         * modules/unictype/property-byname (Makefile.am): Likewise in
2677         unictype/pr_byname.h.
2678         * modules/unictype/scripts (Makefile.am): Likewise in
2679         unictype/scripts_byname.h.
2680         * modules/uninorm/composition (Makefile.am): Likewise in
2681         uninorm/composition-table.h.
2683 2020-09-05  Bruno Haible  <bruno@clisp.org>
2685         select: Fix "warning: no previous prototype for function".
2686         * lib/select.c: Include <sys/select.h>.
2688 2020-09-05  Bruno Haible  <bruno@clisp.org>
2690         Use module 'c99' when needed for variadic macros with '...' syntax.
2691         * modules/crypto/sm3 (Depends-on): Add c99.
2693 2020-09-05  Bruno Haible  <bruno@clisp.org>
2695         Use module 'c99' when needed for subobject initializer syntax.
2696         * modules/tempname (Depends-on): Add c99.
2697         * modules/nstrftime-tests (Depends-on): Likewise.
2699 2020-09-05  Bruno Haible  <bruno@clisp.org>
2701         Use module 'c99' when needed for declaration-after-statement syntax.
2702         * modules/backup-rename (Depends-on): Add c99.
2703         * modules/backupfile (Depends-on): Likewise.
2704         * modules/bitset-tests (Depends-on): Likewise.
2705         * modules/bitsetv (Depends-on): Likewise.
2706         * modules/c-strtod (Depends-on): Likewise.
2707         * modules/c-strtold (Depends-on): Likewise.
2708         * modules/clean-temp (Depends-on): Likewise.
2709         * modules/copy-file (Depends-on): Likewise.
2710         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2711         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2712         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2713         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2714         * modules/crypto/md5-buffer (Depends-on): Likewise.
2715         * modules/crypto/md5-tests (Depends-on): Likewise.
2716         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2717         * modules/crypto/sha1-tests (Depends-on): Likewise.
2718         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2719         * modules/crypto/sha256-tests (Depends-on): Likewise.
2720         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2721         * modules/crypto/sha512-tests (Depends-on): Likewise.
2722         * modules/diffseq (Depends-on): Likewise.
2723         * modules/fatal-signal (Depends-on): Likewise.
2724         * modules/fchmodat (Depends-on): Likewise.
2725         * modules/fstrcmp (Depends-on): Likewise.
2726         * modules/fsusage (Depends-on): Likewise.
2727         * modules/fts (Depends-on): Likewise.
2728         * modules/fts-tests (Depends-on): Likewise.
2729         * modules/getumask (Depends-on): Likewise.
2730         * modules/git-merge-changelog (Depends-on): Likewise.
2731         * modules/hash-map (Depends-on): Likewise.
2732         * modules/hash-set (Depends-on): Likewise.
2733         * modules/lchmod (Depends-on): Likewise.
2734         * modules/libgmp-tests (Depends-on): Likewise.
2735         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2736         * modules/linkedhash-map (Depends-on): Likewise.
2737         * modules/linkedhash-set (Depends-on): Likewise.
2738         * modules/long-options (Depends-on): Likewise.
2739         * modules/mbrtoc32 (Depends-on): Likewise.
2740         * modules/memchr2-tests (Depends-on): Likewise.
2741         * modules/memmem-tests (Depends-on): Likewise.
2742         * modules/memrchr-tests (Depends-on): Likewise.
2743         * modules/mktime-internal (Depends-on): Likewise.
2744         * modules/nstrftime (Depends-on): Likewise.
2745         * modules/opendirat (Depends-on): Likewise.
2746         * modules/parse-datetime (Depends-on): Likewise.
2747         * modules/quotearg-simple-tests (Depends-on): Likewise.
2748         * modules/same (Depends-on): Likewise.
2749         * modules/supersede (Depends-on): Likewise.
2750         * modules/supersede-tests (Depends-on): Likewise.
2751         * modules/time_rz (Depends-on): Likewise.
2752         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2753         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2754         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2755         * modules/xalloc (Depends-on): Likewise.
2756         * modules/xnanosleep (Depends-on): Likewise.
2758 2020-09-05  Bruno Haible  <bruno@clisp.org>
2760         Fix "warning: array initialized from parenthesized string constant".
2761         * tests/test-memmem.c (main): Remove parentheses around string constant.
2762         * tests/test-c-strcasestr.c (main): Likewise.
2763         * tests/test-strcasestr.c (main): Likewise.
2765 2020-09-05  Bruno Haible  <bruno@clisp.org>
2767         argmatch tests: Fix ISO C compliance warning.
2768         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2769         invocation.
2771 2020-09-05  Bruno Haible  <bruno@clisp.org>
2773         uniname/uniname: Fix -Wshadow warning.
2774         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2775         * modules/uniname/uniname (Depends-on): Add c99.
2777 2020-09-05  Bruno Haible  <bruno@clisp.org>
2779         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2780         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2781         argument to size_t.
2782         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2783         n to size_t.
2785 2020-09-05  Bruno Haible  <bruno@clisp.org>
2787         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2788         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2789         u32_uctomb): Change type of last argument to ptrdiff_t.
2790         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2791         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2792         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2793         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2794         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2796 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2798         manywarnings: remove -Wchkp and -Wabi from C++ too
2799         Suggested by Reuben Thomas in:
2800         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2801         At some point somebody should merge the many other manywarnings-c.m4
2802         changes into manywarnings-c++.m4 too, e.g.,
2803         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2804         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2805         Remove -Wchkp, -Wabi.
2807 2020-08-30  Bruno Haible  <bruno@clisp.org>
2809         strerrorname_np: Add tests.
2810         * tests/test-strerrorname_np.c: New file.
2811         * modules/strerrorname_np-tests: New file.
2813         strerrorname_np: New module.
2814         * lib/string.in.h (strerrorname_np): New declaration.
2815         * lib/strerrorname_np.c: New file.
2816         * m4/strerrorname_np.m4: New file.
2817         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2818         is declared.
2819         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2820         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2821         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2822         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2823         * modules/strerrorname_np: New file.
2824         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2825         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2826         the glibc 2.32 bug.
2828 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2830         perror, strerror_r: remove unportable tests
2831         Problem reported by Florian Weimer in:
2832         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2833         * tests/test-perror2.c (main):
2834         * tests/test-strerror_r.c (main): Omit unportable tests.
2836 2020-08-26  Bruno Haible  <bruno@clisp.org>
2838         stdint, wchar, wctype-h: Change configure message.
2839         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2840         enough..." instead of "checking whether wint_t is too small...".
2842 2020-08-26  Bruno Haible  <bruno@clisp.org>
2844         time_rz: Change configure message.
2845         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2846         near extrema..." instead of "checking whether localtime loops forever
2847         near extrema...".
2849 2020-08-26  Bruno Haible  <bruno@clisp.org>
2851         stdint: Change configure message.
2852         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2853         without ISO C predefines..." instead of "checking whether stdint.h
2854         predates C++11...".
2856 2020-08-26  Bruno Haible  <bruno@clisp.org>
2858         socketlib: Change configure message.
2859         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2860         instead of "checking if we need to call WSAStartup in winsock2.h and
2861         -lws2_32...".
2863 2020-08-26  Bruno Haible  <bruno@clisp.org>
2865         include_next: Change configure message.
2866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2867         code line length is unlimited..." instead of "checking whether system
2868         header files limit the line length...".
2870 2020-08-26  Bruno Haible  <bruno@clisp.org>
2872         getcwd: Change configure message.
2873         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2874         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2875         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2877 2020-08-26  Bruno Haible  <bruno@clisp.org>
2879         chdir-long: Change configure message.
2880         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2881         system supports file names of any length..." instead of "checking
2882         whether this system has an arbitrary file name length limit...".
2883         Set gl_cv_have_unlimited_file_name_length instead of
2884         gl_cv_have_arbitrary_file_name_length_limit.
2885         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2887 2020-08-26  Bruno Haible  <bruno@clisp.org>
2889         ceill: Change configure message.
2890         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2891         instead of "checking whether ceill() breaks with small values...".
2893 2020-08-26  Bruno Haible  <bruno@clisp.org>
2895         iconv: Change configure message.
2896         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2897         with its POSIX signature..." instead of "checking for iconv
2898         declaration...". Remove K&R C support.
2900 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2902         getcwd: help the merge back into glibc
2903         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2904         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2905         The idea is to make it easier for Gnulib lib/getcwd.c to match
2906         glibc io/getcwd-generic.c.
2907         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2908         Include not-cancel.h.
2909         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2910         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2911         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2912         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2913         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2914         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2915         (__getcwd_generic): Rename from __getcwd.
2916         Use the abovementioned macros for consistency with glibc.
2917         (weak_alias): Remove.
2919 2020-08-25  Bruno Haible  <bruno@clisp.org>
2921         verify: Avoid warnings when assume(0) is used.
2922         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2923         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2924         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2925         the constant 0.
2926         * tests/test-verify.c (f): New function.
2927         (state): New type.
2928         (test_assume_expressions, test_assume_optimization,
2929         test_assume_noreturn): New functions.
2931 2020-08-25  Bruno Haible  <bruno@clisp.org>
2933         fstrcmp: Clarification regarding NOTE_ORDERED.
2934         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2936 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2938         diffseq: new option NOTE_ORDERED
2939         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2940         * NEWS: Mention this.
2941         * lib/diffseq.h (NOTE_ORDERED): New macro.
2942         (IF_LINT2): Remove; no longer needed.
2943         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2944         subproblem and iterate to do the larger.
2946 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2948         sys_types: let Autoconf 2.70 do pid_t
2949         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2950         only for Autoconf versions 2.69 and earlier, since 2.70
2951         will be fixed.
2953 2020-08-23  Bruno Haible  <bruno@clisp.org>
2955         tests: Don't assume that pid_t fits in an 'int'.
2956         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2957         of 'int'.
2958         * tests/test-nonblocking-socket-main.c (main): Likewise.
2960         sys_types: Fix definition of pid_t on 64-bit MSVC.
2961         * m4/pid_t.m4: New file.
2962         * modules/sys_types (Files): Add it.
2963         * modules/dirent (Files): Likewise.
2964         * modules/fcntl-h (Files): Likewise.
2965         * modules/sched (Files): Likewise.
2966         * modules/signal-h (Files): Likewise.
2967         * modules/spawn (Files): Likewise.
2968         * modules/sys_stat (Files): Likewise.
2969         * modules/sys_wait (Files): Likewise.
2970         * modules/termios (Files): Likewise.
2971         * modules/unistd (Files): Likewise.
2973 2020-08-23  Bruno Haible  <bruno@clisp.org>
2975         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2976         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2977         program.
2979 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2981         intprops: be consistent about +X vs X+0
2982         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2984         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2985         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2986         is a bit-field, on older GCC or non-GCC compilers where we do
2987         things ourselves instead of using __builtin_mul_overflow.
2988         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2989         to applying sizeof to a bit-field.
2990         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2991         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2993 2020-08-23  Bruno Haible  <bruno@clisp.org>
2995         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2996         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2997         via Thomas Klausner <tk@giga.or.at> in
2998         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2999         * lib/supersede.c (open_supersede): When opening an existing non-regular
3000         file on Solaris, use O_CREAT although it should not be necessary.
3002 2020-08-23  Bruno Haible  <bruno@clisp.org>
3004         verify: Make assume work on bit field expressions (regr. 2020-08-22).
3005         Reported by Benno Schulenberg <bensberg@telfort.nl> in
3006         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
3007         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
3008         variable.
3010 2020-08-23  Bruno Haible  <bruno@clisp.org>
3012         libc-config: Improve comments.
3013         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
3014         cannot use clang's __diagnose_if__ here.
3016 2020-08-22  Bruno Haible  <bruno@clisp.org>
3018         verify: Do use __builtin_assume on clang.
3019         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
3020         variable in a statement expression.
3022 2020-08-22  Bruno Haible  <bruno@clisp.org>
3024         sig2str: Add more signals.
3025         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
3027 2020-08-22  Bruno Haible  <bruno@clisp.org>
3029         doc: Update for OpenBSD 6.0, 6.7.
3030         * doc/*/*.texi: Update.
3031         * m4/printf.m4: Update comments and cross-compilation guesses.
3032         * m4/ceill.m4: Update comments.
3033         * m4/getcwd-abort-bug.m4: Likewise.
3034         * m4/ilogb.m4: Likewise.
3035         * m4/ilogbf.m4: Likewise.
3036         * m4/langinfo_h.m4: Likewise.
3037         * m4/modf.m4: Likewise.
3038         * m4/modff.m4: Likewise.
3040 2020-08-22  Bruno Haible  <bruno@clisp.org>
3042         doc: Mention sig2str module.
3043         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
3045 2020-08-21  Bruno Haible  <bruno@clisp.org>
3047         sigdescr_np: Add tests.
3048         * tests/test-sigdescr_np.c: New file.
3049         * modules/sigdescr_np-tests: New file.
3051         sigdescr_np: New module.
3052         * lib/string.in.h (sigdescr_np): New declaration.
3053         * lib/sigdescr_np.c: New file.
3054         * m4/sigdescr_np.m4: New file.
3055         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
3056         declared.
3057         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
3058         HAVE_SIGDESCR_NP.
3059         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
3060         HAVE_SIGDESCR_NP.
3061         * modules/sigdescr_np: New file.
3062         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
3063         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
3065 2020-08-20  Bruno Haible  <bruno@clisp.org>
3067         sigabbrev_np: Add tests.
3068         * tests/test-sigabbrev_np.c: New file.
3069         * modules/sigabbrev_np-tests: New file.
3071         sigabbrev_np: New module.
3072         * lib/string.in.h (sigabbrev_np): New declaration.
3073         * lib/sigabbrev_np.c: New file.
3074         * m4/sigabbrev_np.m4: New file.
3075         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
3076         declared.
3077         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
3078         HAVE_SIGABBREV_NP.
3079         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
3080         HAVE_SIGABBREV_NP.
3081         * modules/sigabbrev_np: New file.
3082         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
3083         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
3085 2020-08-20  Bruno Haible  <bruno@clisp.org>
3087         stdalign tests: Skip test with AIX xlclang.
3088         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
3090 2020-08-20  Bruno Haible  <bruno@clisp.org>
3092         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
3093         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
3094         workaround as for GCC versions < 4.9.
3096 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3098         Sync up ProjectQuirks comments and documentation
3099         Transform the ProjectQuirks comments into a docstring so that it can
3100         be accessed from python as ProjectQuirks.__doc__ and harmonize
3101         descriptions with the documentation.
3102         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
3103         Transform comments into a docstring.
3104         * doc/vcs-to-changelog.texi: Sync up description with comments.
3106         Split ProjectQuirks out into its own file
3107         ProjectQuirks is used by external quirks files and importing it from
3108         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
3109         is cleaner to put it in its own file anyway.
3110         * build-aux/vcstocl/projectquirks.py: A new file...
3111         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
3112         we move ProjectQuirks and import the file.
3114 2020-08-19  Bruno Haible  <bruno@clisp.org>
3116         uchar: Fix compilation errors in C++ mode on macOS.
3117         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
3118         system header file before attempting to use 'char16_t' and 'char32_t'.
3120 2020-08-19  Bruno Haible  <bruno@clisp.org>
3122         ansi-c++-opt: Work around an autoconf macro reordering problem.
3123         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
3124         section.
3126 2020-08-19  Bruno Haible  <bruno@clisp.org>
3128         math C++ tests: Fix compilation error in with GCC 10.
3129         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
3130         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
3131         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3133 2020-08-19  Bruno Haible  <bruno@clisp.org>
3135         uchar: Fix compilation errors in C++ mode on OpenBSD.
3136         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
3137         CXX_HAS_UCHAR_TYPES is 1.
3138         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
3139         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
3140         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
3142 2020-08-19  Bruno Haible  <bruno@clisp.org>
3144         Fix compilation errors in C++ mode on OpenBSD.
3145         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
3146         OpenBSD with clang, use the approach without C preprocessor macro.
3148 2020-08-18  Bruno Haible  <bruno@clisp.org>
3150         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
3151         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
3152         AC_LANG_POP.
3154 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3156         verify: avoid __built_assume on Clang
3157         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
3158         Clang 9 incorrectly diagnoses arguments as having side effects
3159         even when they do not.  I guess Clang 9 considers any function
3160         call as if it had a side effect here.
3162         libc-config: avoid Clang’s __diagnose_if__
3163         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
3164         For now, do not use __diagnose_if__ here, as this fails
3165         on Fedora 31 with Clang 9.0.1, with diagnostic
3166         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
3167         size than length of destination buffer
3168         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
3169         for functions that are not called?
3171         careadlinkat: speedup for GCC 10 with GCC_LINT
3172         Inspired by a suggestion by Bruno Haible in:
3173         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
3174         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
3175         (readlink_stk): New function, with most of the old careadlinkat
3176         contents and with a new STACK_BUF arg.  Inline it in GCC 10
3177         if GCC_LINT.
3178         (careadlinkat): Use the new function for everything but the
3179         stack buffer.
3181         * build-aux/gcc-warning.spec: Update comments.
3183 2020-08-17  Bruno Haible  <bruno@clisp.org>
3185         Assume autoconf >= 2.64.
3186         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
3188 2020-08-17  Bruno Haible  <bruno@clisp.org>
3190         Revert autoupdate's revert.
3191         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
3193 2020-08-17  Bruno Haible  <bruno@clisp.org>
3195         uchar C++ tests: Fix build error on FreeBSD 12.
3196         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
3197         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
3198         <cuchar> does not exist.
3200 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3202         time_rz: remove unused functions
3203         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
3205         time_rz: fix issues with mktime_z failures
3206         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
3207         Use a cheaper tm_yday test for failed mktime.
3209 2020-08-16  Bruno Haible  <bruno@clisp.org>
3211         intprops test: Strengthen on clang.
3212         * tests/test-intprops.c (VERIFY): Use verify_stmt.
3214 2020-08-16  Bruno Haible  <bruno@clisp.org>
3216         nstrftime: Guide inlining also on clang.
3217         * lib/nstrftime.c (iso_week_days): Inline also on clang.
3219 2020-08-16  Bruno Haible  <bruno@clisp.org>
3221         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
3222         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
3224 2020-08-16  Bruno Haible  <bruno@clisp.org>
3226         log2l: Disable MSVC workaround on clang.
3227         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
3229 2020-08-16  Bruno Haible  <bruno@clisp.org>
3231         argp: Emit a warning also with clang.
3232         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
3233         clang.
3235 2020-08-16  Bruno Haible  <bruno@clisp.org>
3237         libc-config: Enable __REDIRECT macro also on clang.
3238         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
3239         __ASMNAME2): Define on clang like on GCC.
3241 2020-08-16  Bruno Haible  <bruno@clisp.org>
3243         regex: Use initializer shorthand syntax also with clang.
3244         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
3245         with clang.
3247 2020-08-16  Bruno Haible  <bruno@clisp.org>
3249         regex: Use space optimization also with clang.
3250         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
3251         with clang.
3253 2020-08-16  Bruno Haible  <bruno@clisp.org>
3255         Use _Static_assert and static_assert primitives when present on clang.
3256         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3257         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3258         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3260 2020-08-16  Bruno Haible  <bruno@clisp.org>
3262         Use 'throw ()' for optimization in C++ mode also on clang.
3263         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3264         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3265         * lib/md5.h (__THROW): Likewise.
3267 2020-08-16  Bruno Haible  <bruno@clisp.org>
3269         absolute-header: Add support for clang.
3270         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3271         HAVE_INCLUDE_NEXT expression.
3273 2020-08-16  Bruno Haible  <bruno@clisp.org>
3275         Fix "warning: implicitly declaring library function 'strcasecmp'".
3276         * lib/argp-help.c: Include <strings.h>.
3278 2020-08-16  Bruno Haible  <bruno@clisp.org>
3280         stdio: Don't break attribute 'scanf' on clang.
3281         * lib/stdio.in.h (scanf): Treat clang like GCC.
3283 2020-08-16  Bruno Haible  <bruno@clisp.org>
3285         Use __restrict also on clang.
3286         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3287         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3288         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3290 2020-08-16  Bruno Haible  <bruno@clisp.org>
3292         pthread-spin: Use GCC built-ins also on clang.
3293         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3294         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3295         also on clang.
3297 2020-08-16  Bruno Haible  <bruno@clisp.org>
3299         asyncsafe-spin tests: Update.
3300         * tests/test-asyncsafe-spin2.c: Update to match the change in
3301         lib/asyncsafe-spin.c from 2020-08-11.
3303 2020-08-16  Bruno Haible  <bruno@clisp.org>
3305         setenv: Use tree code also with clang.
3306         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3308 2020-08-16  Bruno Haible  <bruno@clisp.org>
3310         math: Optimize signbit also on clang.
3311         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3312         on clang.
3314 2020-08-16  Bruno Haible  <bruno@clisp.org>
3316         avltreehash-list, rbtreehash-list: Optimize also on clang.
3317         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3318         __builtin_expect also on clang.
3320 2020-08-16  Bruno Haible  <bruno@clisp.org>
3322         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3323         * lib/socket.c: Use WSASocketW, not WSASocketA.
3325         Fix "warning: format specifies type 'unsigned long'".
3326         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3327         argument to match the format directive.
3329         Fix "warning: no case matching constant switch condition '0'".
3330         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3332         Fix "warning: integer overflow in expression".
3333         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3334         remove a 'long' overflow.
3336         Fix "warning: "getpagesize" redefined".
3337         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3338         macro.
3340         Fix "warning: implicitly declaring library function 'strncasecmp'".
3341         * lib/strptime.c: Include <strings.h>.
3343         Fix "warning: 'snprintf' macro redefined".
3344         * lib/strerror_r.c (snprintf): Undefine before redefining.
3346         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3347         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3349         Fix "warning: '__stat64' macro redefined".
3350         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3352         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3353         * lib/stdio.in.h (printf): Treat clang like GCC.
3355         Fix "warning: attribute declaration must precede definition" with clang.
3356         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3357         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3358         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3359         on non-glibc systems.
3360         * lib/netdb.in.h (gai_strerror): Likewise.
3361         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3362         * lib/sys_stat.in.h (fstat): Likewise.
3363         * lib/utime.in.h (utime): Likewise.
3365         Fix undesired warnings.
3366         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3367         clang.
3369 2020-08-16  Bruno Haible  <bruno@clisp.org>
3371         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3372         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3373         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3374         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3375         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3377 2020-08-16  Bruno Haible  <bruno@clisp.org>
3379         Don't use Autoconf quadrigraphs.
3380         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3381         Autoconf quadrigraph.
3382         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3383         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3384         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3385         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3386         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3387         * m4/math_h.m4 (gl_MATH_H): Likewise.
3388         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3390 2020-08-16  Bruno Haible  <bruno@clisp.org>
3392         Fix quoting of AC_LANG_PROGRAM arguments.
3393         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3394         arguments through [[...]].
3395         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3397         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3398         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3399         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3400         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3401         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3403         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3404         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3405         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3406         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3407         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3409 2020-08-16  Bruno Haible  <bruno@clisp.org>
3411         Assume autoconf >= 2.64.
3412         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3413         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3414         * NEWS: Mention the changed requirement.
3415         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3416         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3417         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3418         variables.
3419         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3420         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3421         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3422         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3423         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3424         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3425         Likewise.
3426         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3427         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3428         * m4/configmake.m4: Update comment.
3430 2020-08-16  Bruno Haible  <bruno@clisp.org>
3432         sys_ioctl: Simplify.
3433         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3434         AC_INCLUDES_DEFAULT.
3436 2020-08-16  Bruno Haible  <bruno@clisp.org>
3438         Fix quoting of AC_LANG_SOURCE arguments.
3439         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3440         GL_NOCRASH expansion.
3441         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3442         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3443         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3444         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3445         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3447 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3449         nstrftime: be more predictable about errno
3450         This aligns nstrftime better with draft POSIX 202x strftime.
3451         * lib/nstrftime.c: Include errno.h.
3452         (width_add, __strftime_internal): Set errno on failure,
3453         and preserve it on success.  Check for mktime_z failure.
3454         * modules/nstrftime (Depends-on): Add errno.
3455         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3456         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3457         (errno_test): New test function.
3458         (main): Call it.
3460 2020-08-15  Bruno Haible  <bruno@clisp.org>
3462         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3463         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3464         from dependency analysis first.
3466 2020-08-15  Bruno Haible  <bruno@clisp.org>
3468         Determine asm output option and filename suffix for MSVC/clang.
3469         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3470         clang-cl.
3472 2020-08-15  Bruno Haible  <bruno@clisp.org>
3474         doc: Update for MSVC/clang.
3475         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3476         that MSVC 14 does not have.
3478 2020-08-15  Bruno Haible  <bruno@clisp.org>
3480         Revert autoupdate's revert.
3481         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3483 2020-08-15  Bruno Haible  <bruno@clisp.org>
3485         frexpl: Fix configuration test result on MSVC.
3486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3487         zero.
3489 2020-08-15  Bruno Haible  <bruno@clisp.org>
3491         Support compiling without -loldnames on native Windows.
3492         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3493         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3494         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3495         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3496         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3498         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3499         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3500         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3501         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3502         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3503         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3504         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3505         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3506         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3507         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3508         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3510         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3511         Likewise.
3512         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3513         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3514         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3515         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3516         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3517         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3518         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3519         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3520         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3521         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3522         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3523         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3524         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3525         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3526         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3527         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3528         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3530         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3531         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3532         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3533         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3534         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3535         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3536         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3537         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3538         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3539         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3540         test for getcwd.
3541         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3542         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3543         with GL_MDA_DEFINES.
3544         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3545         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3546         prefixed symbol.
3547         * lib/search.in.h (lfind, lsearch): Likewise.
3548         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3549         Likewise.
3550         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3551         * lib/string.in.h (memccpy, strdup): Likewise.
3552         * lib/sys_stat.in.h (chmod, umask): Likewise.
3553         * lib/time.in.h (tzset): Likewise.
3554         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3555         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3556         read, rmdir, swab, unlink, write): Likewise.
3557         * lib/utime.in.h (utime): Likewise.
3558         * lib/wchar.in.h (wcsdup): Likewise.
3559         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3560         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3561         rpl_-prefixed macro.
3562         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3563         * lib/close.c (close_nothrow): On native Windows, use _close.
3564         * lib/creat.c (orig_creat): On native Windows, use _creat.
3565         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3566         * lib/dup2.c (dup2_nothrow): Use _dup2.
3567         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3568         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3569         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3570         * lib/open.c (orig_open): On native Windows, use _open.
3571         * lib/read.c (read_nothrow): Use _read.
3572         * lib/rmdir.c: On native Windows, use _rmdir.
3573         * lib/unlink.c: On native Windows, use _unlink.
3574         * lib/write.c (write_nothrow): Use _write.
3575         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3576         undefined symbol.
3577         * lib/sys_socket.in.h (close): Likewise.
3578         * lib/sys_time.in.h (close): Likewise.
3579         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3581 2020-08-15  Bruno Haible  <bruno@clisp.org>
3583         Fix "unknown pragma ignored" warnings with clang on native Windows.
3584         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3585         * lib/cbrtf.c: Likewise.
3586         * lib/ceil.c: Likewise.
3587         * lib/floor.c: Likewise.
3588         * lib/fma.c: Likewise.
3589         * lib/fmod.c: Likewise.
3590         * lib/rint.c: Likewise.
3591         * lib/round.c: Likewise.
3592         * lib/trunc.c: Likewise.
3593         * tests/test-ceil2.c: Likewise.
3594         * tests/test-ceilf2.c: Likewise.
3595         * tests/test-floor2.c: Likewise.
3596         * tests/test-floorf2.c: Likewise.
3597         * tests/test-trunc2.c: Likewise.
3598         * tests/test-truncf2.c: Likewise.
3599         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3600         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3602 2020-08-15  Bruno Haible  <bruno@clisp.org>
3604         Fix compilation errors in C++ mode with clang on native Windows.
3605         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3606         non-glibc systems.
3607         * lib/sched.in.h (sched_yield): Likewise.
3609 2020-08-14  Bruno Haible  <bruno@clisp.org>
3611         stdnoreturn: Work around problem with MSVC/clang.
3612         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3613         system header after <stdnoreturn.h>.
3614         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3616 2020-08-14  Bruno Haible  <bruno@clisp.org>
3618         utime-h: Generate an utime.h file always.
3619         * modules/utime-h (Makefile.am): Generate utime.h always.
3620         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3621         GL_GENERATE_UTIME_H.
3623 2020-08-14  Bruno Haible  <bruno@clisp.org>
3625         mktime, mktime-internal: Remove obsolete code.
3626         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3628 2020-08-14  Bruno Haible  <bruno@clisp.org>
3630         getcwd: Remove obsolete code.
3631         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3632         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3634 2020-08-14  Bruno Haible  <bruno@clisp.org>
3636         tzset: Assume the function exists.
3637         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3638         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3639         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3640         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3641         HAVE_TZSET.
3642         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3643         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3645         nstrftime: Assume tzset exists.
3646         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3647         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3648         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3650         mktime, mktime-internal: Assume tzset exists.
3651         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3652         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3654 2020-08-14  Bruno Haible  <bruno@clisp.org>
3656         strdup: Assume the function exists.
3657         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3658         whether strdup exists.
3659         * modules/strdup (Files): Remove lib/strdup.c.
3660         (configure.ac): Don't compile strdup.c.
3661         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3662         ac_cv_func_strdup.
3663         * doc/posix-functions/strdup.texi: Update.
3664         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3665         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3666         (Depends-on): Remove unistr/u8-strlen.
3668 2020-08-13  Bruno Haible  <bruno@clisp.org>
3670         sys_random: Work around an uClibc bug.
3671         Reported by akater <nuclearspace@gmail.com>
3672         via Stefan Kangas <stefan@marxist.se>
3673         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3674         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3675         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3676         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3677         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3679 2020-08-12  Bruno Haible  <bruno@clisp.org>
3681         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3682         Reported by Florian Weimer in
3683         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3684         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3685         the level3 array to 'unsigned int'.
3686         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3687         * lib/unictype/categ_*.h: Regenerated.
3688         * lib/unictype/ctype_*.h: Regenerated.
3689         * lib/unictype/pr_*.h: Regenerated.
3690         * lib/unictype/sy_*.h: Regenerated.
3691         * lib/unicase/cased.h: Regenerated.
3692         * lib/unicase/ignorable.h: Regenerated.
3694 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3696         stdint: port intptr_t to more-recent MinGW
3697         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3698         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3699         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3700         Apparently those two macros were removed in mingwrt-3.22
3701         dated 2016-07-14.
3703 2020-08-12  Bruno Haible  <bruno@clisp.org>
3705         thread-optim: Export function-like macros only.
3706         Suggested by Paul Eggert.
3707         * lib/thread-optim.h (gl_multithreaded): New macro.
3708         (IF_MT_DECL, IF_MT): Remove macros.
3709         * doc/multithread.texi (Multithreading Optimizations): Add a small
3710         example.
3711         * lib/fatal-signal.c: Update all uses.
3712         * lib/clean-temp.c: Likewise.
3713         * lib/localename.c: Likewise.
3714         * modules/localename (Depends-on): Add stdbool.
3716 2020-08-12  Bruno Haible  <bruno@clisp.org>
3718         Revert autoupdate's revert.
3719         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3721 2020-08-11  Bruno Haible  <bruno@clisp.org>
3723         thread-optim: Fix a compiler warning.
3724         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3726 2020-08-11  Bruno Haible  <bruno@clisp.org>
3728         Use __restrict also on clang.
3729         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3730         (__restrict_arr): On clang, define like on GCC.
3731         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3732         (_Restrict_arr_): Use _Restrict_ also on clang.
3733         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3734         (_Restrict_arr_): Use _Restrict_ also on clang.
3736 2020-08-11  Bruno Haible  <bruno@clisp.org>
3738         Use flexible array syntax also on clang.
3739         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3740         define like for GCC 3.
3742 2020-08-11  Bruno Haible  <bruno@clisp.org>
3744         fcntl: On native Windows, use _setmode, not setmode.
3745         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3746         * lib/binary-io.h: Update comment.
3747         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3748         * tests/test-dup2.c: Likewise.
3749         * tests/test-dup-safer.c: Likewise.
3750         * tests/test-fcntl.c: Likewise.
3752 2020-08-11  Bruno Haible  <bruno@clisp.org>
3754         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3755         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3756         * lib/spawn-pipe.c (create_pipe): Likewise.
3757         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3758         * tests/test-nonblocking-socket-main.c (main): Likewise.
3759         * lib/wait-process.c: Update comment.
3760         * doc/posix-functions/fork.texi: Update.
3762 2020-08-11  Bruno Haible  <bruno@clisp.org>
3764         asyncsafe-spin: Use GCC built-ins also on clang.
3765         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3766         the newer GCC built-ins also on clang.
3768 2020-08-11  Bruno Haible  <bruno@clisp.org>
3770         Use expression statements also on clang.
3771         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3772         * lib/obstack.h (__extension__): Likewise.
3773         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3774         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3775         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3776         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3777         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3778         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3780 2020-08-10  Bruno Haible  <bruno@clisp.org>
3782         Use many __attribute__s with clang.
3783         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3784         on clang.
3785         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3786         New macros.
3787         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3788         on clang.
3789         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3790         also on older clang versions.
3791         (__attribute__): Don't define to empty on clang.
3792         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3793         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3794         (__attribute_const__): Use __attribute__ __const__ also on clang.
3795         (__attribute_used__): Use __attribute__ __used__ also on clang.
3796         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3797         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3798         clang.
3799         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3800         clang.
3801         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3802         also on clang.
3803         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3804         (__attribute_warn_unused_result__): Use __attribute__
3805         __warn_unused_result__ also on clang.
3806         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3807         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3808         clang >= 7.
3809         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3810         clang versions.
3811         (_Noreturn): Don't redefine on clang >= 3.5.
3812         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3813         also on clang.
3814         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3815         on clang.
3816         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3817         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3818         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3819         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3820         also on clang.
3821         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3822         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3823         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3824         also on clang.
3825         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3826         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3827         __attribute__ __noreturn__ also on clang.
3828         * lib/obstack.h (__attribute_noreturn__): Likewise.
3829         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3830         clang.
3831         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3832         always_inline also on clang.
3833         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3834         clang.
3836 2020-08-10  Bruno Haible  <bruno@clisp.org>
3838         c-ldtoastr tests: Fix test failure.
3839         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3840         is longer than 'double'.
3842 2020-08-10  Bruno Haible  <bruno@clisp.org>
3844         Revert autoupdate's revert.
3845         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3847 2020-08-09  Bruno Haible  <bruno@clisp.org>
3849         string: Fix build error in C++ mode with clang (regression from today).
3850         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3851         parameters, one for GCC, one for clang.
3852         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3853         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3854         as return type.
3856 2020-08-09  Bruno Haible  <bruno@clisp.org>
3858         ftruncate: Use _chsize, not chsize.
3859         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3860         * lib/ftruncate.c: Test HAVE__CHSIZE.
3861         (chsize_nothrow): Use _chsize, not chsize.
3863 2020-08-09  Bruno Haible  <bruno@clisp.org>
3865         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3866         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3867         clang >= 10.
3868         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3869         * lib/fts.c (FALLTHROUGH): Likewise.
3870         * tests/macros.h (FALLTHROUGH): Likewise.
3871         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3872         * config/srclist.txt: Mark it as needing sync with glibc.
3874 2020-08-09  Bruno Haible  <bruno@clisp.org>
3876         stdbool tests: Enable the stricter tests also on clang.
3877         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3878         (e): Enable the address-to-bool conversion test also on clang.
3880 2020-08-09  Bruno Haible  <bruno@clisp.org>
3882         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3883         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3885 2020-08-09  Bruno Haible  <bruno@clisp.org>
3887         Use attribute __aligned__ with clang.
3888         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3889         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3891 2020-08-09  Bruno Haible  <bruno@clisp.org>
3893         Use __alignof__ with clang.
3894         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3895         on clang.
3896         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3897         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3898         clang.
3899         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3900         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3901         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3902         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3904 2020-08-09  Bruno Haible  <bruno@clisp.org>
3906         ignore-value: Simplify on clang.
3907         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3908         workaround.
3910 2020-08-09  Bruno Haible  <bruno@clisp.org>
3912         Use __typeof__ with clang.
3913         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3914         "clang -std=gnu99".
3915         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3916         * tests/test-stdint.c (verify_same_types): Enable the check also on
3917         clang.
3919 2020-08-09  Bruno Haible  <bruno@clisp.org>
3921         Add ability to emit user-defined warnings and errors with clang.
3922         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3923         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3924         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3925         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3926         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3927         attribute for clang.
3929 2020-08-09  Bruno Haible  <bruno@clisp.org>
3931         intprops: Fix typo in comment.
3932         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3934 2020-08-09  Bruno Haible  <bruno@clisp.org>
3936         Use __builtin_signbit* with clang.
3937         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3938         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3939         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3941         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3942         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3943         not REPLACE_SIGNBIT_USING_GCC.
3945 2020-08-09  Bruno Haible  <bruno@clisp.org>
3947         Use __builtin_isnan with clang.
3948         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3949         not __builtin_isnanf. Also on clang.
3950         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3951         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3952         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3953         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3954         built-in.
3955         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3956         not __builtin_isnanl. Also on clang.
3957         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3958         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3959         * lib/math.in.h (__has_builtin): Remove macro.
3960         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3961         __builtin_isnanf. Also on clang.
3962         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3963         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3964         __builtin_isnanl. Also on clang.
3965         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3966         on clang.
3968 2020-08-09  Bruno Haible  <bruno@clisp.org>
3970         thread-optim: Fix logic error.
3971         Reported by Paul Eggert.
3972         * lib/thread-optim.h (IF_MT): Fix logic error.
3974 2020-08-08  Bruno Haible  <bruno@clisp.org>
3976         localename: Use module 'thread-optim'.
3977         * lib/localename.c: Include thread-optim.h.
3978         (struniq): Use IF_MT macro.
3979         * modules/localename (Depends-on): Add thread-optim.
3981         clean-temp: Use module 'thread-optim'.
3982         * lib/clean-temp.c: Include thread-optim.h.
3983         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3984         register_temp_file, unregister_temp_file, register_temp_subdir,
3985         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3986         close_temp, fclose_variant_temp): Use IF_MT macro.
3987         * modules/clean-temp (Depends-on): Add thread-optim.
3989         fatal-signal: Use module 'thread-optim'.
3990         * lib/fatal-signal.c: Include thread-optim.h.
3991         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3992         macro.
3993         * modules/fatal-signal (Depends-on): Add thread-optim.
3995 2020-08-08  Bruno Haible  <bruno@clisp.org>
3997         New module 'thread-optim'.
3998         * lib/thread-optim.h: New file.
3999         * modules/thread-optim: New file.
4000         * doc/multithread.texi (Multithreading Optimizations): New section.
4002 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
4004         doc: more updates for glibc 2.32
4005         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
4006         * doc/posix-functions/fchmodat.texi: Update.
4008 2020-08-07  Bruno Haible  <bruno@clisp.org>
4010         doc: Update for glibc 2.32.
4011         * doc/glibc-functions/__libc_single_threaded.texi: New file.
4012         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
4013         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
4014         * doc/glibc-functions/sigabbrev_np.texi: New file.
4015         * doc/glibc-functions/sigdescr_np.texi: New file.
4016         * doc/glibc-functions/strerrordesc_np.texi: New file.
4017         * doc/glibc-functions/strerrorname_np.texi: New file.
4018         * doc/gnulib.texi: Include them.
4019         (Glibc sys/single_threaded.h): New section.
4020         * doc/pastposix-functions/h_errno.texi: Update.
4021         * doc/posix-functions/*.texi: Likewise.
4022         * doc/glibc-functions/*.texi: Likewise.
4024 2020-08-07  Bruno Haible  <bruno@clisp.org>
4026         alloca: No need to compile alloca.c with clang.
4027         * lib/alloca.c: Skip all code with clang.
4029         Use __builtin_alloca with clang.
4030         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
4032 2020-08-06  Bruno Haible  <bruno@clisp.org>
4034         Use __builtin_assume with clang.
4035         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
4036         (assume): Use __builtin_assume when available.
4038 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4040         libgmp: add <gmp/gmp.h> support
4041         * m4/libgmp.m4 (gl_LIBGMP):
4042         * modules/libgmp (configure.ac, Makefile.am):
4043         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
4044         ‘#include <gmp.h>’.
4046 2020-08-06  Bruno Haible  <bruno@clisp.org>
4048         Consider that clang defines __OPTIMIZE__ like GCC does.
4049         * lib/streq.h: Define the inline functions also on clang.
4050         * lib/c-strcaseeq.h: Likewise.
4051         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
4052         the GCC workaround to clang.
4054 2020-08-06  Bruno Haible  <bruno@clisp.org>
4056         safe-alloc: Remove unused code.
4057         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
4059 2020-08-06  Bruno Haible  <bruno@clisp.org>
4061         Use __builtin_expect with clang everywhere.
4062         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
4063         also on clang.
4065 2020-08-05  Bruno Haible  <bruno@clisp.org>
4067         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
4068         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
4069         built-in also on clang.
4070         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
4071         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
4073 2020-08-05  Bruno Haible  <bruno@clisp.org>
4075         Use __builtin_clz{,l,ll} with clang, also on Windows.
4076         * lib/integer_length.c: With clang, use the GCC built-in, not
4077         <intrin.h>.
4078         * lib/integer_length_l.c: Likewise.
4079         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
4080         also on clang.
4081         * lib/vasnprintf.c (divide): Likewise.
4083 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4085         Update srclist.txt as per recent glibc changes
4086         * config/srclist.txt: Uncomment lines to reflect recent merges
4087         from Gnulib to glibc.
4089 2020-08-03  Bruno Haible  <bruno@clisp.org>
4091         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4092         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
4094 2020-08-03  Bruno Haible  <bruno@clisp.org>
4096         integer_length_ll: Optimize for MSVC in 64-bit mode.
4097         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4098         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4100 2020-08-03  Bruno Haible  <bruno@clisp.org>
4102         integer_length_ll: Optimize for MSVC in 32-bit mode.
4103         * lib/integer_length_l.c: Include <intrin.h>.
4104         (integer_length): Define as inline function, like in
4105         lib/integer_length.c.
4107 2020-08-03  Bruno Haible  <bruno@clisp.org>
4109         integer_length: Optimize for MSVC.
4110         * lib/integer_length.c: Include <intrin.h>.
4111         (integer_length): With MSVC, use the _BitScanReverse built-in.
4113 2020-08-03  Bruno Haible  <bruno@clisp.org>
4115         ffsll: Optimize for MSVC in 64-bit mode.
4116         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
4117         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
4118         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
4120 2020-08-03  Bruno Haible  <bruno@clisp.org>
4122         ffsll: Optimize for MSVC in 32-bit mode.
4123         * lib/ffsl.h: Include <intrin.h>.
4124         (ffs): Define as inline function, like in lib/ffs.c.
4126 2020-08-03  Bruno Haible  <bruno@clisp.org>
4128         ffs: Optimize for MSVC.
4129         * lib/ffs.c: Include <intrin.h>.
4130         (ffs): With MSVC, use the _BitScanForward built-in.
4132 2020-08-03  Bruno Haible  <bruno@clisp.org>
4134         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
4135         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
4136         variable.
4138 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
4140         fopen: Avoid undesired interactions with glibc headers.
4141         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
4142         __need_FILE, as the latter does not work with glibc.
4144 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4146         fcntl: document some F_SETLK errno variations
4147         * doc/posix-functions/fcntl.texi (fcntl): Document
4148         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
4150 2020-08-02  Bruno Haible  <bruno@clisp.org>
4152         oset: Add an 'iterator_atleast' operation.
4153         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
4154         extracted from gl_array_search_atleast.
4155         (gl_array_search_atleast): Use it.
4156         (gl_array_iterator_atleast): New function.
4157         (gl_array_oset_implementation): Use it.
4158         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
4159         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
4160         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
4161         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
4162         member.
4163         (gl_oset_iterator_atleast): New function.
4164         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
4165         (gl_OSet::iterator): Add another auxiliary constructor.
4166         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
4167         New functions.
4168         (main): Test also gl_oset_iterator_atleast.
4169         * tests/test-avltree_oset.c (is_at_least): New function.
4170         (main): Test also gl_oset_iterator_atleast.
4171         * tests/test-rbtree_oset.c (is_at_least): New function.
4172         (main): Test also gl_oset_iterator_atleast.
4173         * tests/test-oset-c++.cc (is_at_most): New function.
4174         (main): Test also gl_OSet::begin_atleast.
4176 2020-08-02  Bruno Haible  <bruno@clisp.org>
4178         oset-c++, omap-c++: Remove restriction for search_atleast method.
4179         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
4180         a different type than the element.
4181         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
4182         a different type than the key.
4184 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4186         gnumakefile: say ‘$(MAKE)’ not ‘make’
4187         * top/GNUmakefile (abort-due-to-no-makefile):
4188         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
4189         This change is backported from Autoconf.
4191 2020-08-01  Bruno Haible  <bruno@clisp.org>
4193         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
4194         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
4195         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4196         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4197         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4198         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
4200 2020-08-01  Bruno Haible  <bruno@clisp.org>
4202         libtextstyle-optional: Update tests.
4203         * modules/libtextstyle-optional-tests (configure.ac): Invoke
4204         gl_LIBTEXTSTYLE_OPTIONAL.
4206 2020-08-01  Bruno Haible  <bruno@clisp.org>
4208         parse-datetime: Fix wrong #line statements.
4209         * modules/parse-datetime (Makefile.am): Correct #line statements also in
4210         parse-datetime-gen.h.
4212 2020-08-01  Bruno Haible  <bruno@clisp.org>
4214         libtextstyle[-optional]: Allow requesting a minimum version.
4215         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
4216         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
4217         gl_LIBTEXTSTYLE_SEARCH): New macros.
4218         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
4219         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
4220         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
4221         * modules/libtextstyle-optional (configure.ac): Don't invoke
4222         gl_LIBTEXTSTYLE_OPTIONAL.
4223         * NEWS: Mention the changes.
4225 2020-07-31  Bruno Haible  <bruno@clisp.org>
4227         _GL_CMP: Improve documentation.
4228         Reported by Paul Eggert in
4229         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
4230         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
4231         passed.
4233 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4235         largefile: sync with Autoconf master
4236         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
4237         Avoid undefined behavior on platforms where off_t is 32 bits.
4238         See: https://bugs.debian.org/742780
4240         alloca: sync with Autoconf master
4241         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4242         Do not define if Autoconf 2.70 or later, since Autoconf master
4243         now matches us.
4245 2020-07-30  Bruno Haible  <bruno@clisp.org>
4247         unicodeio: Add comment.
4248         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
4249         different iconv behaviours.
4251 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4253         Work around some Oracle Studio attribute bugs
4254         These were discovered when building bleeding-edge Emacs with
4255         Oracle Studio.
4256         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4257         Port to Oracle Studio 12.6, which mishandles __attribute__
4258         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4259         __has_attribute says they work.
4261 2020-07-29  Bruno Haible  <bruno@clisp.org>
4263         unicodeio: Fix wrong result on musl libc.
4264         Reported by A. Wilcox <awilfox@adelielinux.org> in
4265         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4266         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4267         on musl libc.
4268         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4269         * modules/unicodeio (Files): Add m4/musl.m4.
4271 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4273         fsusage, regex, stat-size: remove Cray support
4274         As near as I can make out this is actually support for UNICOS/mp,
4275         last released 2005, and Cray hasn’t supported that for years.
4276         * config/srclist.txt: Comment out regex.h for now.
4277         * lib/fsusage.c (get_fs_usage):
4278         * lib/regex.h (re_comp, re_exec):
4279         * lib/stat-size.h (ST_NBLOCKSIZE):
4280         Don’t worry about _CRAY.
4282 2020-07-29  Bruno Haible  <bruno@clisp.org>
4284         parse-datetime: Fix compilation error with bison 3.7.
4285         * modules/parse-datetime (Makefile.am): Create a generated header file
4286         parse-datetime-gen.h in the source directory. Correct #include and
4287         #line statements during preprocessing.
4289 2020-07-28  Bruno Haible  <bruno@clisp.org>
4291         fopen-gnu: Create files correctly (regression from 2020-05-24).
4292         * lib/fopen.c (rpl_open): Pass a third argument to open().
4294 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4296         xalloc-die: don’t depend on xalloc
4297         This removes a circular dependency, as xalloc depends on xalloc-die.
4298         * modules/xalloc-die (Files): Add lib/xalloc.h.
4299         (Depends-on): Remove xalloc.
4300         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4302         dfa-tests: port to MSVC
4303         Problem reported by Gisle Vanem in:
4304         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4305         Also, remove an unnecessary dependency on getprogname.
4306         * modules/dfa-tests (Depends-on): Remove getprogname.
4307         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4308         (exit_status): New static var.
4309         (dfawarn): Set it instead of exiting.
4310         Do not declare as _Noreturn, to pacify MSVC.
4311         (main): Return exit_status.
4313 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4315         argz: pacify MSVC
4316         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4317         Problem reported by Gisle Vanem.
4319         libgmp: remove dependency on havelib
4320         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4321         use the more-traditional AC_SEARCH_LIBS approach.
4322         This should work better with GNU Emacs configuration,
4323         which uses pkg-config instead of a havelib-style approach.
4324         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4325         * modules/libgmp (Depends-on): Remove havelib.
4327         libgmp: remove HAVE_GMP, LIB_GMP
4328         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4329         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4331 2020-07-26  Bruno Haible  <bruno@clisp.org>
4333         inttypes: Remove support for AIX 4.
4334         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4335         * m4/inttypes-pri.m4: Remove file.
4336         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4337         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4338         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4339         PRI_MACROS_BROKEN.
4340         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4342 2020-07-26  Bruno Haible  <bruno@clisp.org>
4344         gettimeofday: Remove workaround for Mac OS X 10.0.
4345         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4346         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4347         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4348         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4349         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4350         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4351         * modules/localtime-buffer: Remove file.
4352         * lib/localtime-buffer.h: Remove file.
4353         * lib/localtime-buffer.c: Remove file.
4354         * m4/localtime-buffer.m4: Remove file.
4355         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4357 2020-07-26  Bruno Haible  <bruno@clisp.org>
4359         tzset: Remove workaround for Solaris 2.6.
4360         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4361         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4362         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4363         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4364         * lib/localtime-buffer.c: Likewise.
4365         * lib/localtime.c: Likewise.
4366         * lib/tzset.c: Don't include localtime-buffer.h.
4367         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4368         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4369         is 1.
4370         * modules/tzset (Depends-on): Remove localtime-buffer.
4372 2020-07-26  Bruno Haible  <bruno@clisp.org>
4374         expl: Simplify autoconf test.
4375         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4376         with small values..." test into the "checking whether expl works..."
4377         test.
4379 2020-07-26  Bruno Haible  <bruno@clisp.org>
4381         alloca: Remove Cray-2 and Cray Y-MP support.
4382         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4383         Enable also on Autoconf >= 2.69.
4384         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4385         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4386         i00afunc): Remove.
4388 2020-07-25  Bruno Haible  <bruno@clisp.org>
4390         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4391         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4393 2020-07-25  Bruno Haible  <bruno@clisp.org>
4395         sigprocmask: Small autoconf macro improvement.
4396         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4397         user to override the value of gl_cv_func_sigprocmask.
4398         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4400 2020-07-25  Bruno Haible  <bruno@clisp.org>
4402         Small autoconf macro improvements.
4403         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4404         override the value of gl_cv_func_working_mktime.
4405         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4406         compiler produces multi-arch binaries..." in the configure output.
4407         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4408         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4410 2020-07-25  Bruno Haible  <bruno@clisp.org>
4412         doc: Update for NetBSD 7.1, 8.0, 9.0.
4413         * doc/*/*.texi: Update.
4414         * m4/exp2l.m4: Update comments.
4415         * m4/expl.m4: Likewise.
4416         * m4/ilogb.m4: Likewise.
4417         * m4/ilogbf.m4: Likewise.
4418         * m4/log10l.m4: Likewise.
4419         * m4/logl.m4: Likewise.
4420         * m4/printf.m4: Likewise.
4421         * m4/rintl.m4: Likewise.
4422         * m4/wcwidth.m4: Likewise.
4424 2020-07-24  Bruno Haible  <bruno@clisp.org>
4426         doc: Update for Mac OS X 10.13.
4427         * doc/*/*.texi: Update.
4428         * m4/expm1l.m4: Update comments.
4429         * m4/getgroups.m4: Likewise.
4430         * m4/getlogin_r.m4: Likewise.
4431         * m4/linkat.m4: Likewise.
4432         * m4/printf.m4: Likewise.
4434 2020-07-24  Bruno Haible  <bruno@clisp.org>
4436         doc: Update for Cygwin 2.9.0.
4437         * doc/*/*.texi: Update.
4439 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4441         parse-datetime: modernize doc
4442         * doc/parse-datetime.texi: Use more-current examples.
4443         Don’t lead with 32-bit time_t, as it’s on its way out.
4444         Capitalize “Epoch” to be consistent with POSIX.
4446         timespec: remove dependence on ‘verify’
4447         * lib/timespec.h: Do not include verify.h; no longer needed.
4448         * modules/timespec (Depends-on): Remove ‘verify’.
4450         Optimize a few more three-valued comparisons
4451         * lib/timespec.h (timespec_cmp, timespec_sign):
4452         * lib/utimecmp.c (utimecmpat):
4453         Avoid conditional branches by using _GL_CMP.
4455         Fix _GL_CMP parenthesization typo
4456         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4458 2020-07-24  Bruno Haible  <bruno@clisp.org>
4460         dfa: Revert breaking gawk.
4461         Reported by Arnold Robbins <arnold@skeeve.com>.
4462         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4464 2020-07-23  Bruno Haible  <bruno@clisp.org>
4466         Optimize three-valued comparison between integers.
4467         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4468         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4469         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4470         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4471         * lib/dfa.c (compare): Likewise.
4472         * lib/fts.c (fts_compare_ino): Likewise.
4473         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4474         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4475         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4476         * lib/memcasecmp.c (memcasecmp): Likewise.
4477         * lib/memcmp2.c (memcmp2): Likewise.
4478         * lib/savedir.c (direntry_cmp_inode): Likewise.
4479         * lib/strcasecmp.c (strcasecmp): Likewise.
4480         * lib/strncasecmp.c (strncasecmp): Likewise.
4481         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4483 2020-07-23  Bruno Haible  <bruno@clisp.org>
4485         lchmod: Use /proc on Cygwin.
4486         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4488 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4490         fchmodat: Use /proc on Cygwin
4491         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4493 2020-07-21  Bruno Haible  <bruno@clisp.org>
4495         aligned-malloc: Optionally use aligned_alloc.
4496         * lib/aligned-malloc.h: Verify the alignment.
4497         (aligned_malloc): Use aligned_alloc as an alternative.
4498         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4499         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4500         'aligned-malloc' and 'pagealign_alloc'.
4502 2020-07-21  Bruno Haible  <bruno@clisp.org>
4504         aligned-malloc: Add tests.
4505         * tests/test-aligned-malloc.c: New file.
4506         * modules/aligned-malloc-tests: New file.
4508         aligned-malloc: New module.
4509         * lib/aligned-malloc.h: New file.
4510         * m4/malloc-align.m4: New file.
4511         * modules/aligned-malloc: New file.
4512         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4513         * doc/glibc-functions/memalign.texi: Likewise.
4515 2020-07-21  Bruno Haible  <bruno@clisp.org>
4517         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4518         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4519         sure PRIPTR_PREFIX is defined to "ll", not "l".
4521 2020-07-21  Bruno Haible  <bruno@clisp.org>
4523         printf-posix: Make an autoconf test more future-proof.
4524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4525         using uintptr_t.
4527 2020-07-20  Bruno Haible  <bruno@clisp.org>
4529         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4530         * modules/list (License): Change to LGPLv2+.
4531         * modules/array-list (License): Likewise.
4532         * modules/carray-list (License): Likewise.
4533         * modules/linked-list (License): Likewise.
4534         * modules/avltree-list (License): Likewise.
4535         * modules/rbtree-list (License): Likewise.
4536         * modules/oset (License): Likewise.
4537         * modules/array-oset (License): Likewise.
4538         * modules/avltree-oset (License): Likewise.
4539         * modules/rbtree-oset (License): Likewise.
4540         * modules/omap (License): Likewise.
4541         * modules/array-omap (License): Likewise.
4542         * modules/avltree-omap (License): Likewise.
4543         * modules/rbtree-omap (License): Likewise.
4545 2020-07-20  Bruno Haible  <bruno@clisp.org>
4547         oset: Add an 'update' operation.
4548         * lib/gl_array_oset.c (gl_array_update): New function.
4549         (gl_array_oset_implementation): Use it.
4550         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4551         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4552         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4553         extracted from gl_tree_nx_add_before.
4554         (gl_tree_nx_add_before): Invoke it.
4555         (gl_tree_add_node_after): New function, extracted from
4556         gl_tree_nx_add_after.
4557         (gl_tree_nx_add_after): Invoke it.
4558         (gl_tree_remove_node_no_free): New function, extracted from
4559         gl_tree_remove_node.
4560         (gl_tree_remove_node): Invoke it.
4561         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4562         extracted from gl_tree_nx_add_before.
4563         (gl_tree_nx_add_before): Invoke it.
4564         (gl_tree_add_node_after): New function, extracted from
4565         gl_tree_nx_add_after.
4566         (gl_tree_nx_add_after): Invoke it.
4567         (gl_tree_remove_node_no_free): New function, extracted from
4568         gl_tree_remove_node.
4569         (gl_tree_remove_node): Invoke it.
4570         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4571         from gl_tree_iterator_next.
4572         (gl_tree_iterator_next): Invoke it.
4573         (gl_tree_prev_node, gl_tree_update): New functions.
4574         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4575         (gl_avltree_oset_implementation): Use gl_tree_update.
4576         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4577         (gl_rbtree_oset_implementation): Use gl_tree_update.
4578         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4579         (gl_oset_update): New function.
4580         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4581         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4582         * modules/rbtree-oset (configure.ac): Likewise.
4583         * tests/test-oset-update.h: New file.
4584         * tests/test-array_oset.c: Include test-oset-update.h.
4585         (main): Invoke test_update.
4586         * tests/test-avltree_oset.c: Likewise.
4587         * tests/test-rbtree_oset.c: Likewise.
4588         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4589         * modules/avltree-oset-tests (Files): Likewise.
4590         * modules/rbtree-oset-tests (Files): Likewise.
4591         * tests/test-oset-c++.cc (action): New function.
4592         (main): Test the 'update' member function.
4594 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4596         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4597         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4598         shell if, so that the argument to AC_CHECK_HEADERS is
4599         a simple string that does not require shell evaluation.
4600         This fixes a warning generated by Autoconf 2.69b.
4602 2020-07-12  Bruno Haible  <bruno@clisp.org>
4604         libgmp: Avoid warning when --without-libgmp is used.
4605         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4606         GCC >= 8, not for GCC >= 4.6.
4608 2020-07-12  Bruno Haible  <bruno@clisp.org>
4610         libgmp: Link to the correct shared library.
4611         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4612         * modules/libgmp (Depends-on): Add havelib.
4613         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4614         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4616 2020-07-12  Bruno Haible  <bruno@clisp.org>
4618         libgmp tests: Add some safety checks.
4619         * modules/libgmp-tests (Depends-on): Add verify.
4620         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4621         (main): Verify that gmp.h and libgmp versions match.
4623 2020-07-10  Bruno Haible  <bruno@clisp.org>
4625         unicodeio: Fix wrong result on NetBSD.
4626         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4627         characters also on NetBSD.
4629 2020-07-09  Bruno Haible  <bruno@clisp.org>
4631         unicodeio: Fix wrong result on Solaris 11.
4632         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4633         via Akim Demaille <akim.demaille@gmail.com> in
4634         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4635         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4636         characters on Solaris.
4637         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4638         UTF-8 output or the specified fallback.
4640 2020-07-08  Bruno Haible  <bruno@clisp.org>
4642         unicodeio: Add tests.
4643         * tests/test-unicodeio.c: New file.
4644         * tests/test-unicodeio1.sh: New file.
4645         * tests/test-unicodeio2.sh: New file.
4646         * tests/test-unicodeio3.sh: New file.
4647         * modules/unicodeio-tests: New file.
4649 2020-07-08  Bruno Haible  <bruno@clisp.org>
4651         unicodeio: Document link requirements.
4652         * modules/unicodeio (Link): New section.
4654 2020-07-07  Bruno Haible  <bruno@clisp.org>
4656         doc: Remove support for some very old platforms.
4657         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4658         * doc/posix-functions/memcpy.texi: Likewise.
4659         * doc/posix-functions/memmove.texi: Likewise.
4660         * doc/posix-functions/memset.texi: Likewise.
4661         * doc/posix-functions/getcwd.texi: Likewise.
4663         memchr: Remove support for some very old platforms.
4664         * m4/memchr-obsolete.m4: Remove file.
4665         * modules/memchr-obsolete: Remove file.
4666         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4667         absent. Don't define HAVE_MEMCHR.
4668         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4669         * modules/memchr (Depends-on): Remove memchr-obsolete.
4670         (configure.ac): Assume HAVE_MEMCHR is 1.
4671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4672         HAVE_MEMCHR.
4673         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4674         * doc/posix-functions/memchr.texi: Don't mention module
4675         'memchr-obsolete'.
4676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4677         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4678         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4680         dup2: Remove support for some very old platforms.
4681         * m4/dup2-obsolete.m4: Remove file.
4682         * modules/dup2-obsolete: Remove file.
4683         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4684         Don't define HAVE_DUP2.
4685         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4686         * lib/dup2.c: Likewise.
4687         * modules/dup2 (Depends-on, configure.ac): Likewise.
4688         (Depends-on): Remove dup2-obsolete.
4689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4690         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4691         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4693 2020-07-07  Bruno Haible  <bruno@clisp.org>
4695         canonicalize: Trim module dependencies.
4696         * lib/hash-triple.h: Group declarations.
4697         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4698         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4699         (STREQ): Remove macro.
4700         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4701         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4702         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4703         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4704         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4705         hash-triple-simple.
4706         * modules/file-set (Depends-on): Likewise.
4708 2020-07-07  Bruno Haible  <bruno@clisp.org>
4710         Clarify dependencies to double-slash-root.
4711         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4712         (Depends-on): Add double-slash-root.
4713         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4714         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4716 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4718         libgmp: new module
4719         The idea is to let programs simply include <gmp.h>, and
4720         so long as they live within the mini-gmp subset they need
4721         not worry about whether the GMP libraries are installed.
4722         * MODULES.html.sh: Mention it.
4723         * config/srclist.txt: Mention files copied from GMP source.
4724         * config/srclistvars.sh (GMP): New var.
4725         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4726         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4727         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4729 2020-07-05  Bruno Haible  <bruno@clisp.org>
4731         mkancesdirs: Trim module dependencies.
4732         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4733         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4735 2020-07-05  Bruno Haible  <bruno@clisp.org>
4737         getprogname: Trim module dependencies.
4738         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4739         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4740         basename-lgpl.
4742 2020-07-05  Bruno Haible  <bruno@clisp.org>
4744         filenamecat-lgpl: Trim module dependencies.
4745         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4746         dirname.h.
4747         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4748         basename-lgpl, filename.
4750 2020-07-05  Bruno Haible  <bruno@clisp.org>
4752         backupfile, backup-rename: Trim module dependencies.
4753         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4754         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4755         basename-lgpl.
4756         * modules/backup-rename (Depends-on): Likewise.
4758 2020-07-05  Bruno Haible  <bruno@clisp.org>
4760         argp: Trim module dependencies.
4761         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4762         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4764 2020-07-05  Bruno Haible  <bruno@clisp.org>
4766         basename-lgpl: New module.
4767         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4768         lib/basename-lgpl.c.
4769         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4770         <stdbool.h>, filename.h.
4771         (last_component): Rename a local variable.
4772         * lib/dirname.h: Include basename-lgpl.h.
4773         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4774         (last_component, base_len): Remove declarations.
4775         * modules/basename-lgpl: New file.
4776         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4777         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4778         (Makefile.am): Don't compile basename-lgpl.c.
4779         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4780         not 'dirname'.
4782 2020-07-05  Bruno Haible  <bruno@clisp.org>
4784         dirname, dirname-lgpl: Simplify.
4785         * m4/dirname.m4: Remove file.
4786         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4787         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4788         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4790 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4792         tests: avoid shadowing warning
4793         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4795 2020-07-05  Bruno Haible  <bruno@clisp.org>
4797         supersede: Add tests.
4798         * tests/test-supersede.c: New file.
4799         * tests/test-supersede-open.h: New file.
4800         * tests/test-supersede-fopen.h: New file.
4801         * modules/supersede-tests: New file.
4803         supersede: New module.
4804         * lib/supersede.h: New file.
4805         * lib/supersede.c: New file.
4806         * m4/supersede.m4: New file.
4807         * modules/supersede: New file.
4809 2020-07-05  Bruno Haible  <bruno@clisp.org>
4811         Add some copyright headers.
4812         * lib/dev-ino.h: Add copyright header.
4813         * lib/di-set.h: Likewise.
4814         * lib/fchown-stub.c: Likewise.
4815         * lib/file-set.h: Likewise.
4816         * lib/hash-triple.h: Likewise.
4817         * lib/idcache.h: Likewise.
4818         * lib/ino-map.h: Likewise.
4819         * lib/mkancesdirs.h: Likewise.
4820         * lib/scratch_buffer.h: Likewise.
4821         * lib/se-context.in.h: Likewise.
4822         * lib/stdopen.h: Likewise.
4823         * lib/userspec.h: Likewise.
4825 2020-07-04  Bruno Haible  <bruno@clisp.org>
4827         getrandom: Relicense under LGPLv2+.
4828         Paul Eggert's approval is in
4829         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4830         * modules/getrandom (License): Change to LGPLv2+.
4832 2020-07-04  Bruno Haible  <bruno@clisp.org>
4834         getumask: Add tests.
4835         * tests/test-getumask.c: New file.
4836         * modules/getumask-tests: New file.
4838         getumask: New module.
4839         * lib/sys_stat.in.h (getumask): New declaration.
4840         * lib/getumask.c: New file.
4841         * m4/getumask.m4: New file.
4842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4843         declared.
4844         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4845         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4846         HAVE_GETUMASK.
4847         * modules/getumask: New file.
4848         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4849         * doc/glibc-functions/getumask.texi: New file.
4850         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4852 2020-07-04  Bruno Haible  <bruno@clisp.org>
4854         clean-temp: Add support for temporary files with given mode.
4855         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4856         * lib/clean-temp.c (struct try_create_file_params): New type.
4857         (try_create_file): New function.
4858         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4859         gen_tempname.
4861 2020-07-04  Bruno Haible  <bruno@clisp.org>
4863         clean-temp: Document limitations.
4864         * lib/clean-temp.h: Document limitations.
4866 2020-07-04  Bruno Haible  <bruno@clisp.org>
4868         clean-temp: Add support for temporary files with unpredictable names.
4869         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4870         * lib/clean-temp.c: Include tempname.h.
4871         (gen_register_open_temp): New function.
4872         * modules/tempname (configure.ac): Define a module indicator.
4874 2020-07-04  Bruno Haible  <bruno@clisp.org>
4876         clean-temp: Add support for temporary files anywhere in the file system.
4877         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4878         cleanup_temporary_file): New declarations.
4879         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4880         variables.
4881         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4882         (dir_cleanup_list): Renamed from cleanup_list.
4883         (cleanup_action): Process the file_cleanup_list as well.
4884         (do_init_clean_temp): New function.
4885         (clean_temp_once): New variable.
4886         (init_clean_temp): New function.
4887         (create_temp_dir): Invoke it.
4888         (register_temporary_file, unregister_temporary_file,
4889         cleanup_temporary_file): New functions.
4890         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4891         argument.
4893 2020-07-04  Bruno Haible  <bruno@clisp.org>
4895         clean-temp: Improve comments.
4896         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4897         fwriteerror_temp, close_stream_temp): Clarify intended use.
4898         * lib/clean-temp.c: Likewise.
4900 2020-07-04  Bruno Haible  <bruno@clisp.org>
4902         clean-temp: Make multithread-safe, part 2.
4903         * lib/fatal-signal.h: Include <signal.h>.
4904         (get_fatal_signal_set): New declaration.
4905         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4906         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4907         (struct closeable_fd): New type.
4908         (fatal_signal_set): New variable.
4909         (init_fatal_signal_set): New function.
4910         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4911         (cleanup_action): Invoke asyncsafe_close instead of close.
4912         (create_temp_dir): Invoke init_fatal_signal_set.
4913         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4914         element.
4915         (unregister_fd): Remove function.
4916         (close_temp): Cleanup descriptors list on the fly. Invoke
4917         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4918         (fclose_variant_temp): New function.
4919         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4920         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4922 2020-07-04  Bruno Haible  <bruno@clisp.org>
4924         clean-temp: Make multithread-safe, part 1.
4925         * lib/clean-temp.c: Include glthread/lock.h.
4926         (cleanup_list_lock): New variable.
4927         (register_temp_file, unregister_temp_file, register_temp_subdir,
4928         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4929         (create_temp_dir): Likewise. Don't free the old array.
4930         (descriptors_lock): New variable.
4931         (register_fd, unregister_fd): Use it.
4932         * modules/clean-temp (Depends-on): Add lock.
4934 2020-07-04  Bruno Haible  <bruno@clisp.org>
4936         fatal-signal: Make multithread-safe.
4937         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4938         (do_init_fatal_signal_set): New function, extracted from
4939         init_fatal_signal_set.
4940         (fatal_signal_set_once): New variable.
4941         (init_fatal_signal_set): Use gl_once.
4943 2020-07-03  Bruno Haible  <bruno@clisp.org>
4945         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4946         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4947         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4948         <bcrypt.h>.
4950 2020-07-03  Bruno Haible  <bruno@clisp.org>
4952         dfa tests: Follow common file naming conventions.
4953         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4954         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4955         * tests/test-dfa-invalid-char-class.sh: Renamed from
4956         tests/dfa-invalid-char-class.sh. Update.
4957         * modules/dfa-tests (Files, Makefile.am): Update.
4959 2020-07-03  Bruno Haible  <bruno@clisp.org>
4961         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4962         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4963         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4965 2020-07-03  Bruno Haible  <bruno@clisp.org>
4967         asyncsafe-spin: Reduce code duplication.
4968         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4969         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4970         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4972 2020-07-03  Bruno Haible  <bruno@clisp.org>
4974         lchmod: Simplify after 2020-02-22 change.
4975         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4977 2020-07-03  Bruno Haible  <bruno@clisp.org>
4979         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4980         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4982 2020-07-03  Bruno Haible  <bruno@clisp.org>
4984         dfa: Make sure the compiler does not barf on 'inline'.
4985         * modules/dfa (configure.ac): Require AC_C_INLINE.
4987 2020-07-03  Bruno Haible  <bruno@clisp.org>
4989         bitset: Make sure the compiler does not barf on 'inline'.
4990         * modules/bitset (configure.ac): New section.
4992 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4994         manywarnings: improve port to GCC 10.1
4995         * build-aux/gcc-warning.spec: Also list warnings that are default
4996         or are enabled by already-given flags.  This lets us speed up
4997         checking for attributes, and makes the generated compilation
4998         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4999         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
5000         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
5001         to shell variables that may have long values.
5002         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
5003         consequences of other flags, to speed up checking and
5004         shorten commands.
5006         tests: pacify gcc -fanalyzer on zerosize_ptr
5007         * tests/test-memcasecmp.c (main):
5008         * tests/test-memchr.c (main):
5009         * tests/test-memchr2.c (main):
5010         * tests/test-memcmp.c (main):
5011         * tests/test-memmem.c (main):
5012         * tests/test-memrchr.c (main):
5013         * tests/unistr/test-chr.h (main):
5014         * tests/unistr/test-cmp.h (test_cmp):
5015         Check whether zerosize_ptr returns NULL before using it.
5016         This pacifies GCC 10.1’s new fanalyzer option, and matches
5017         other uses of zerosize_ptr.
5019 2020-07-01  Bruno Haible  <bruno@clisp.org>
5021         asyncsafe-spin: Add tests.
5022         * tests/test-asyncsafe-spin1.c: New file.
5023         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
5024         tests/test-pthread-spin.c.
5025         * modules/asyncsafe-spin-tests: New file.
5027 2020-07-01  Bruno Haible  <bruno@clisp.org>
5029         asyncsafe-spin: New module.
5030         * lib/asyncsafe-spin.h: New file.
5031         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
5032         * modules/asyncsafe-spin: New file.
5034 2020-07-01  Bruno Haible  <bruno@clisp.org>
5036         windows-spin: Fix race condition on multiprocessor systems.
5037         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
5039 2020-07-01  Bruno Haible  <bruno@clisp.org>
5041         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
5042         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5043         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
5044         an implementation based on other GCC built-ins.
5046 2020-07-01  Bruno Haible  <bruno@clisp.org>
5048         pthread-spin: Optimize fallback for GCC versions >= 4.7.
5049         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
5050         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
5051         lock byte.
5053 2020-07-01  Bruno Haible  <bruno@clisp.org>
5055         pthread-spin: Add error checking.
5056         * lib/pthread-spin.c: Include <stdbool.h>.
5057         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
5058         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
5059         the unlocks.
5060         * modules/pthread-spin (Depends-on): Add stdbool.
5062 2020-07-01  Bruno Haible  <bruno@clisp.org>
5064         pthread-spin: Add tests.
5065         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
5066         * modules/pthread-spin-tests: New file.
5068 2020-07-01  Bruno Haible  <bruno@clisp.org>
5070         tests: Reduce code duplication.
5071         * tests/atomic-int-posix.h: New file, extracted from
5072         tests/test-pthread-mutex.c.
5073         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
5074         * tests/test-pthread-rwlock.c: Likewise.
5075         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
5076         * modules/pthread-rwlock-tests (Files): Likewise.
5078 2020-07-01  Bruno Haible  <bruno@clisp.org>
5080         tests: Refactor.
5081         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
5082         * tests/test-mtx.c: Include it. Remove the corresponding code.
5083         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
5085 2020-07-01  Bruno Haible  <bruno@clisp.org>
5087         tests: Refactor.
5088         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
5089         * tests/test-lock.c: Include it. Remove the corresponding code.
5090         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
5092 2020-06-29  Bruno Haible  <bruno@clisp.org>
5094         sys_socket: Don't define socklen_t if it is already defined on mingw.
5095         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
5096         <https://savannah.gnu.org/bugs/?57725>,
5097         by Rahul Das <bokul_4u@yahoo.com> in
5098         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
5099         and by Eli Zaretskii <eliz@gnu.org> in
5100         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
5101         * lib/sys_socket.in.h (socklen_t): Remove definition.
5103 2020-06-29  Bruno Haible  <bruno@clisp.org>
5105         alloca-opt: Fix warning on mingw.
5106         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
5107         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
5108         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
5109         whether alloca is defined.
5111 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5113         getrandom: do not depend on ‘open’ on mingw
5114         Similarly for at-internal, getloadavg.  These modules do not call
5115         the ‘open’ function when they are compiled on mingw.  On mingw,
5116         this avoids having to compile open.c when building Emacs, which
5117         does its own thing with ‘open’.
5118         * modules/at-internal, modules/getloadavg, modules/getrandom:
5119         (Depends-on): Don’t depend on ‘open’ on mingw.
5120         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
5121         * modules/getloadavg (Depends-on):
5122         Depend on intprops, open, stdbool, stdlib only if compiling
5123         getloadavg.c.
5125 2020-06-28  Bruno Haible  <bruno@clisp.org>
5127         doc: Add a note about sigprocmask vs. pthread_sigmask.
5128         * doc/posix-functions/sigprocmask.texi: Add note.
5130 2020-06-28  Bruno Haible  <bruno@clisp.org>
5132         getrandom: Fix compilation errors on older versions of mingw.
5133         Reported by Eli Zaretskii <eliz@gnu.org> in
5134         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
5135         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
5136         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
5137         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
5138         BCryptGenRandom ourselves.
5140 2020-06-28  Bruno Haible  <bruno@clisp.org>
5142         clean-temp: Fix wrong errno in error message.
5143         * lib/clean-temp.c (create_temp_dir): Save errno around
5144         unblock_fatal_signals call.
5146 2020-06-27  Bruno Haible  <bruno@clisp.org>
5148         fatal-signal: Make multithread-safe.
5149         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
5151 2020-06-27  Bruno Haible  <bruno@clisp.org>
5153         clean-temp: Don't force deletion of temporary files on native Windows.
5154         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
5155         argument.
5156         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
5157         * NEWS: Mention the change.
5158         * lib/javacomp.c (write_temp_file): Update.
5160 2020-06-27  Bruno Haible  <bruno@clisp.org>
5162         fatal-signal: Make multithread-safe.
5163         * lib/fatal-signal.c: Include glthread/lock.h.
5164         (at_fatal_signal_lock): New variable.
5165         (at_fatal_signal): Use it.
5166         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
5167         (block_fatal_signals, unblock_fatal_signals): Use them.
5168         * modules/fatal-signal (Depends-on): Add lock.
5170 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
5172         getloadavg: don’t depend on fopen-gnu
5173         This is for Emacs, which does not need fopen-gnu for anything else,
5174         and which would need it only on a NetBSD platform where getloadavg
5175         does not work (does that even happen?).
5176         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
5177         * modules/getloadavg (Depends-on): Remove fopen-gnu.
5179         * tests/test-getloadavg.c (main): Fix typo.
5181 2020-06-27  Bruno Haible  <bruno@clisp.org>
5183         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
5184         * modules/tempname (Link): New section.
5185         * modules/mkdtemp (Link): Likewise.
5186         * modules/clean-temp (Link): Likewise.
5187         * modules/mkstemp (Link): Likewise.
5188         * modules/stdlib-safer (Link): Likewise.
5189         * modules/mkstemps (Link): Likewise.
5190         * modules/mkostemp (Link): Likewise.
5191         * modules/mkostemps (Link): Likewise.
5192         * modules/tmpfile (Link): Likewise.
5193         * modules/tmpfile-safer (Link): Likewise.
5194         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
5195         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
5196         $(LIB_GETRANDOM).
5197         * NEWS: Mention the changes.
5199 2020-06-27  Bruno Haible  <bruno@clisp.org>
5201         fopen-gnu: Simplify code.
5202         * lib/fopen.c: Include <stdbool.h>.
5203         (rpl_fopen): Use a single variable open_flags instead of
5204         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
5205         * modules/fopen (Depends-on): Add stdbool.
5207 2020-06-26  Bruno Haible  <bruno@clisp.org>
5209         canonicalize: Improve documentation.
5210         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
5211         return convention.
5213 2020-06-26  Bruno Haible  <bruno@clisp.org>
5215         xgetcwd: Improve documentation.
5216         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
5218 2020-06-26  Bruno Haible  <bruno@clisp.org>
5220         getcwd: Improve documentation.
5221         * lib/getcwd.c (__getcwd): Document the failure return convention.
5223 2020-06-26  Bruno Haible  <bruno@clisp.org>
5225         fchdir: Improve documentation.
5226         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
5227         convention.
5229 2020-06-26  Bruno Haible  <bruno@clisp.org>
5231         filenamecat-lgpl: Set errno upon failure.
5232         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
5233         return convention.
5234         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
5236 2020-06-26  Bruno Haible  <bruno@clisp.org>
5238         areadlink-with-size: Set errno upon failure.
5239         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
5240         fails.
5241         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
5243 2020-06-26  Bruno Haible  <bruno@clisp.org>
5245         copy-file: Shrink dependencies.
5246         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
5247         qcopy-acl.
5249 2020-06-26  Bruno Haible  <bruno@clisp.org>
5251         doc: Mention declaration fixes implemented by some modules.
5252         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
5253         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5254         declaration appear in <unistd.h>.
5255         * doc/posix-functions/dup.texi: Likewise.
5256         * doc/posix-functions/dup2.texi: Likewise.
5257         * doc/posix-functions/gethostname.texi: Likewise.
5258         * doc/posix-functions/isatty.texi: Likewise.
5259         * doc/posix-functions/lseek.texi: Likewise.
5260         * doc/posix-functions/unlink.texi: Likewise.
5261         * doc/posix-functions/read.texi: Mention the module 'read'.
5262         * doc/posix-functions/write.texi: Mention the effects of the module
5263         'write'.
5265 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5267         c-dtoastr, c-ldtoastr: new modules
5268         These modules provide the same functionality as the modules
5269         dtoastr and ldtoastr except for the formatting taking place in the
5270         C locale.
5271         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5272         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5273         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5274         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5275         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5276         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5277         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5278         modules/c-ldtoastr-tests: New files.
5279         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5280         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5282 2020-06-21  Bruno Haible  <bruno@clisp.org>
5284         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5285         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5287 2020-06-16  Bruno Haible  <bruno@clisp.org>
5289         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5290         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5292 2020-06-16  Bruno Haible  <bruno@clisp.org>
5294         thread, thrd: Avoid a compiler warning.
5295         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5297 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5299         windows-thread: Avoid a compiler warning.
5300         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5301         void.
5302         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5304 2020-06-15  Bruno Haible  <bruno@clisp.org>
5306         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5307         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5308         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5309         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5310         first.
5312 2020-06-06  Bruno Haible  <bruno@clisp.org>
5314         calloc-gnu tests: Avoid a test failure with clang.
5315         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5316         'volatile', to defeat compiler optimizations.
5318 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5320         getloadavg: fix double-increment bug
5321         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5322         Linux without glibc, Android, Cygwin.  This fixes a bug I
5323         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5324         Problem and fix reported by Semen Verchenko in:
5325         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5327         tempname: use getrandom, not getentropy
5328         This removes a dependency, as getentropy depends on getrandom.
5329         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5330         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5331         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5333 2020-06-01  Bruno Haible  <bruno@clisp.org>
5335         doc: New chapter 'Multithreading'.
5336         * doc/multithread.texi: New file.
5337         * doc/gnulib.texi: Include it.
5339 2020-06-01  Bruno Haible  <bruno@clisp.org>
5341         doc: Move 'Running self-tests under valgrind' section.
5342         * doc/gnulib.texi (Build Infrastructure Modules): Include
5343         valgrind-tests.texi here...
5344         (Miscellaneous Notes): ... not here.
5346 2020-06-01  Bruno Haible  <bruno@clisp.org>
5348         doc: Move 'Visual Studio Compatibility' section.
5349         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5350         here...
5351         (Build Infrastructure Modules): ... not here.
5353 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5355         doc: improve randomness discussion
5356         Inspired by comments from Jeffrey Walton in:
5357         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5358         * doc/glibc-functions/getentropy.texi (getentropy):
5359         * doc/glibc-functions/getrandom.texi (getrandom):
5360         Improve discussion of problems with "random" data,
5361         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5363 2020-06-01  Bruno Haible  <bruno@clisp.org>
5365         doc: Fix Texinfo syntax error.
5366         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5368 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5370         doc: Change '.' to '@.' where appropriate.
5371         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5372         * doc/glibc-functions/fstatfs.texi: Likewise.
5373         * doc/glibc-functions/fts_children.texi: Likewise.
5374         * doc/glibc-functions/fts_read.texi: Likewise.
5375         * doc/glibc-functions/getdirentries.texi: Likewise.
5376         * doc/glibc-functions/mkostemp.texi: Likewise.
5377         * doc/glibc-functions/mkostemps.texi: Likewise.
5378         * doc/glibc-functions/mkstemps.texi: Likewise.
5379         * doc/glibc-functions/preadv.texi: Likewise.
5380         * doc/glibc-functions/pwritev.texi: Likewise.
5381         * doc/glibc-functions/sendfile.texi: Likewise.
5382         * doc/glibc-functions/statfs.texi: Likewise.
5383         * doc/gnulib-intro.texi: Likewise.
5384         * doc/gnulib-tool.texi: Likewise.
5385         * doc/intprops.texi: Likewise.
5386         * doc/lib-symbol-visibility.texi: Likewise.
5387         * doc/licenses-texi.texi: Likewise.
5388         * doc/pastposix-functions/bcmp.texi: Likewise.
5389         * doc/pastposix-functions/bcopy.texi: Likewise.
5390         * doc/pastposix-functions/bzero.texi: Likewise.
5391         * doc/pastposix-functions/ecvt.texi: Likewise.
5392         * doc/pastposix-functions/fcvt.texi: Likewise.
5393         * doc/pastposix-functions/ftime.texi: Likewise.
5394         * doc/pastposix-functions/gcvt.texi: Likewise.
5395         * doc/pastposix-functions/getwd.texi: Likewise.
5396         * doc/pastposix-functions/index.texi: Likewise.
5397         * doc/pastposix-functions/mktemp.texi: Likewise.
5398         * doc/pastposix-functions/rindex.texi: Likewise.
5399         * doc/pastposix-functions/wcswcs.texi: Likewise.
5400         * doc/posix-functions/aio_cancel.texi: Likewise.
5401         * doc/posix-functions/aio_error.texi: Likewise.
5402         * doc/posix-functions/aio_fsync.texi: Likewise.
5403         * doc/posix-functions/aio_read.texi: Likewise.
5404         * doc/posix-functions/aio_return.texi: Likewise.
5405         * doc/posix-functions/aio_suspend.texi: Likewise.
5406         * doc/posix-functions/aio_write.texi: Likewise.
5407         * doc/posix-functions/creat.texi: Likewise.
5408         * doc/posix-functions/ctime.texi: Likewise.
5409         * doc/posix-functions/daylight.texi: Likewise.
5410         * doc/posix-functions/fgetpos.texi: Likewise.
5411         * doc/posix-functions/fopen.texi: Likewise.
5412         * doc/posix-functions/freopen.texi: Likewise.
5413         * doc/posix-functions/fseeko.texi: Likewise.
5414         * doc/posix-functions/fsetpos.texi: Likewise.
5415         * doc/posix-functions/fstatat.texi: Likewise.
5416         * doc/posix-functions/fstatvfs.texi: Likewise.
5417         * doc/posix-functions/ftello.texi: Likewise.
5418         * doc/posix-functions/ftruncate.texi: Likewise.
5419         * doc/posix-functions/getrlimit.texi: Likewise.
5420         * doc/posix-functions/lio_listio.texi: Likewise.
5421         * doc/posix-functions/localtime.texi: Likewise.
5422         * doc/posix-functions/lseek.texi: Likewise.
5423         * doc/posix-functions/mkstemp.texi: Likewise.
5424         * doc/posix-functions/mktime.texi: Likewise.
5425         * doc/posix-functions/open.texi: Likewise.
5426         * doc/posix-functions/openat.texi: Likewise.
5427         * doc/posix-functions/opendir.texi: Likewise.
5428         * doc/posix-functions/pread.texi: Likewise.
5429         * doc/posix-functions/pwrite.texi: Likewise.
5430         * doc/posix-functions/readdir.texi: Likewise.
5431         * doc/posix-functions/readdir_r.texi: Likewise.
5432         * doc/posix-functions/scandir.texi: Likewise.
5433         * doc/posix-functions/seekdir.texi: Likewise.
5434         * doc/posix-functions/setrlimit.texi: Likewise.
5435         * doc/posix-functions/statvfs.texi: Likewise.
5436         * doc/posix-functions/strftime.texi: Likewise.
5437         * doc/posix-functions/telldir.texi: Likewise.
5438         * doc/posix-functions/timezone.texi: Likewise.
5439         * doc/posix-functions/tmpfile.texi: Likewise.
5440         * doc/posix-functions/truncate.texi: Likewise.
5441         * doc/posix-functions/tzname.texi: Likewise.
5442         * doc/posix-functions/wcsftime.texi: Likewise.
5443         * doc/windows-sockets.texi: Likewise.
5445 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5447         getrandom-tests: do not assume GRND_RANDOM yields short read
5448         * tests/test-getrandom.c (main): Omit assertion that
5449         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5450         when b’s size is 100000.  This assertion fails with Linux kernel
5451         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5452         The separate blocking pool is going away in the Linux kernel, and
5453         they’ve added a flag GRND_INSECURE instead; see:
5454         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5455         The assertion was iffy anyway; what’s to prevent a kernel from
5456         lazily filling a large buffer with random bytes?
5458         read-file-test: pacify --enable-gcc-warnings
5459         * tests/test-read-file.c (test_read_file): Now static.
5461         tempname: merge from glibc and coreutils
5462         Also, merge in Gnulib’s more-recent methods of making it easier
5463         to share between Gnulib and glibc, and fix a few randomness
5464         glitches.
5465         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5466         (__set_errno): Remove; libc-config.h does that for us.
5467         Do not include <sys/time.h>.
5468         (__secure_getenv) [_LIBC]: New macro.
5469         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5470         (RANDOM_BITS): Rewrite.
5471         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5472         (random_value): New typedef.
5473         (try_file, try_dir, try_nocreate): Move up.
5474         (gen_tempname_len, try_tempname_len): New functions.
5475         (gen_tempname_len): Use a constant array rather than a switch.
5476         (try_tempname_len): Don’t assume string length fits in int.
5477         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5478         has enough entropy (it’s a bit short).
5479         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5480         (__try_tempname): Rewrite in terms of try_tempname_len.
5481         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5482         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5483         Add getentropy, libc-config.
5485 2020-05-31  Bruno Haible  <bruno@clisp.org>
5487         getrandom, getentropy: Mention the crypto/gc-random module.
5488         Suggested by Simon Josefsson in
5489         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5490         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5491         crypto/gc-random module.
5492         * doc/glibc-functions/getentropy.texi: Likewise.
5494 2020-05-31  Bruno Haible  <bruno@clisp.org>
5496         getentropy: Enhance tests.
5497         * tests/test-getentropy.c (main): Add one more test.
5498         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5500 2020-05-31  Bruno Haible  <bruno@clisp.org>
5502         getentropy: Work around a macOS and Solaris problem.
5503         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5504         'getentropy' module.
5505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5506         UNISTD_H_HAVE_SYS_RANDOM_H.
5507         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5508         UNISTD_H_HAVE_SYS_RANDOM_H.
5509         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5510         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5511         problem. List more platforms.
5513 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5515         fnmatch: merge from glibc
5516         Also, merge in Gnulib’s more-recent methods of making it easier
5517         to share between Gnulib and glibc.
5518         * lib/fnmatch.c: Reorder includes to match glibc better.
5519         Include libc-config.h instead of config.h.
5520         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5521         Do not include "../locale/elem-hash.h" if _LIBC.
5522         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5523         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5524         Include intprops.h, since glibc has it now.
5525         (SIZE_MAX): Remove; use (size_t) -1 instead.
5526         Omit the "Comment out all this code" ifdef, since Gnulib
5527         has never really needed it.
5528         (STREQ): Remove; no longer used.
5529         (__libc_use_alloca, alloca, alloca_account): Define as
5530         needed if !_LIBC.
5531         (ISWCTYPE): Remove; all uses replaced by iswctype.
5532         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5533         (internal_function): Remove.  All uses removed.
5534         (STRUCT): New macro.
5535         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5536         (WMEMCMP): New macro.
5537         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5538         and <locale/weightwc.h>.
5539         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5540         __builtin_expect.  Check for integer overflow more
5541         systematically.  Account for alloca storage better when
5542         recursive.  Use strnlen instead of strlen for efficiency.
5543         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5544         (struct STRUCT): New type.
5545         (FCT, EXT): New ENDS and ALLOCA_USED args.
5546         All callers changed.
5547         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5548         Simplify by assuming WIDE_CHAR_SUPPORT.
5549         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5550         Cast cold to UCHAR to avoid signedness warning.
5551         (END): Check for invalid pattern.
5552         (EXT): Improve alloca/malloc checking (taken from glibc),
5553         and improve it some more by using intprops.h and checking
5554         for integer overflow and using bool for booleans.
5555         * lib/libc-config.h (compat_symbol): New macro.
5556         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5557         acceptable to non-GCC when a trailing semicolon is added.
5558         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5559         libc-config, strnlen.  Remove alloca.
5561 2020-05-31  Bruno Haible  <bruno@clisp.org>
5563         getrandom: Doc and test tweaks.
5564         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5565         it sets errno when failing.
5566         * tests/test-getrandom.c (main): Disable the high-quality check on those
5567         platforms on which it fails.
5568         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5569         Cygwin to the list of platforms that don't have the function. Add a note
5570         about the quality of the result.
5571         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5572         declaration; this is fixed by module 'getrandom'.
5574 2020-05-31  Bruno Haible  <bruno@clisp.org>
5576         getrandom: Add support for native Windows.
5577         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5578         <wincrypt.h>.
5579         (CRYPT_VERIFY_CONTEXT): New macro.
5580         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5581         'A'.
5582         (GetProcAddress): New macro.
5583         (BCryptGenRandomFuncType): New type.
5584         (BCryptGenRandomFunc, initialized): New variables.
5585         (initialize): New function.
5586         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5587         <wincrypt.h> API as fallback.
5588         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5589         * modules/getrandom (Link): New section.
5590         * modules/getentropy (Link): Likewise.
5591         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5592         $(LIB_GETRANDOM).
5593         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5594         $(LIB_GETRANDOM).
5595         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5596         against $(LIB_GETRANDOM).
5597         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5598         support.
5600 2020-05-31  Bruno Haible  <bruno@clisp.org>
5602         getrandom: Simplify the determination of the random number devices.
5603         Suggested by Paul Eggert in
5604         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5605         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5606         macros.
5607         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5609 2020-05-31  Bruno Haible  <bruno@clisp.org>
5611         crypto/gc-random: Fix list of crypto devices for Solaris.
5612         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5614 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5616         list: fix GCC warnings
5617         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5618         (gl_tree_next_node, gl_tree_node_nx_set_value)
5619         (gl_tree_previous_node, gl_tree_next_node):
5620         Mark unused arguments.
5621         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5622         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5623         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5625         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5626         the same variable name in nested scopes.
5628 2020-05-31  Bruno Haible  <bruno@clisp.org>
5630         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5631         Reported by Akim Demaille in
5632         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5633         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5634         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5635         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5636         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5637         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5639 2020-05-30  Bruno Haible  <bruno@clisp.org>
5641         wmemchr: Relicense under LGPLv2+.
5642         * modules/wmemchr (License): Set to LGPLv2+.
5644 2020-05-30  Bruno Haible  <bruno@clisp.org>
5646         wmempcpy: New module.
5647         Reported by Paul Eggert in
5648         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5649         * lib/wchar.in.h (wmempcpy): New declaration.
5650         * lib/wmempcpy.c: New file.
5651         * m4/wmempcpy.m4: New file.
5652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5654         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5655         HAVE_WMEMPCPY.
5656         * modules/wmempcpy: New file.
5657         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5658         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5659         * modules/mempcpy (Description): Fix typo.
5661 2020-05-30  Bruno Haible  <bruno@clisp.org>
5663         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5664         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5666 2020-05-30  Bruno Haible  <bruno@clisp.org>
5668         sys_random: Work around macOS bug.
5669         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5670         <stdlib.h> before <sys/random.h>.
5671         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5672         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5673         first.
5674         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5676 2020-05-30  Bruno Haible  <bruno@clisp.org>
5678         getrandom: Override incompatible system function on Solaris 11.
5679         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5680         * lib/getrandom.c (getrandom): When the system has getrandom, just
5681         invoke it.
5682         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5683         system's getrandom function's prototype is not the expected one.
5684         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5685         REPLACE_GETRANDOM.
5686         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5687         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5688         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5689         EAGAIN.
5690         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5691         Solaris problem.
5693 2020-05-30  Bruno Haible  <bruno@clisp.org>
5695         sys_random: Add C++ tests.
5696         * tests/test-sys_random-c++.cc: New file.
5697         * modules/sys_random-c++-tests: New file.
5698         * modules/sys_random-tests (Depends-on): Depend on it.
5700         sys_random: Add tests.
5701         * tests/test-sys_random.c: New file.
5702         * modules/sys_random-tests: New file.
5704         sys_random: New module.
5705         * lib/sys_random.in.h: Use the common idioms for overridable header
5706         files.
5707         * m4/sys_random_h.m4: New file.
5708         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5709         * modules/sys_random: New file.
5710         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5711         (Depends-on): Add sys_random.
5712         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5713         gl_UNISTD_MODULE_INDICATOR.
5714         (Makefile.am): Don't generate sys/random.h here.
5715         * doc/glibc-headers/sys_random.texi: New file.
5716         * doc/gnulib.texi: Include it.
5718 2020-05-30  Bruno Haible  <bruno@clisp.org>
5720         unistd: Remove conflicting declaration of getrandom().
5721         * lib/unistd.in.h (getrandom): Remove declaration.
5722         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5723         declared.
5724         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5725         HAVE_GETRANDOM.
5726         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5727         HAVE_GETRANDOM.
5729 2020-05-30  Bruno Haible  <bruno@clisp.org>
5731         getrandom: Add tests.
5732         * tests/test-getrandom.c: New file.
5733         * modules/getrandom-tests: New file.
5735 2020-05-30  Bruno Haible  <bruno@clisp.org>
5737         crypto/gc-random: Fix link error on MSVC.
5738         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5739         * modules/crypto/gc-random (Link): New section.
5740         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5741         $(LIB_GC_RANDOM).
5743 2020-05-30  Bruno Haible  <bruno@clisp.org>
5745         Don't assume that UNICODE is not defined.
5746         Many Windows API functions are defined differently (redirecting to a
5747         function with suffix 'W') if the application defines the macro UNICODE
5748         than by default (redirecting to a function with suffix 'A').
5749         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5750         variant with suffix 'A'.
5751         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5752         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5753         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5754         * lib/getlogin.c (GetUserName): Likewise.
5755         * lib/getlogin_r.c (GetUserName): Likewise.
5756         * lib/gettimeofday.c (LoadLibrary): Likewise.
5757         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5758         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5759         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5760         * lib/mountlist.c (GetDriveType): Likewise.
5761         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5762         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5763         Likewise.
5764         * lib/physmem.c (GetModuleHandle): Likewise.
5765         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5766         PeekMessage, DispatchMessage): Likewise.
5767         * lib/progreloc.c (GetModuleFileName): Likewise.
5768         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5769         * lib/read.c (GetNamedPipeHandleState): Likewise.
5770         * lib/readdir.c (FindNextFile): Likewise.
5771         * lib/relocatable.c (GetModuleFileName): Likewise.
5772         * lib/rename.c (MoveFileEx): Likewise.
5773         * lib/rewinddir.c (FindFirstFile): Likewise.
5774         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5775         PeekMessage, DispatchMessage): Likewise.
5776         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5777         * lib/socket.c (WSASocket): Likewise.
5778         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5779         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5780         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5781         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5782         * lib/tmpdir.c (GetTempPath): Likewise.
5783         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5784         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5785         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5786         * lib/windows-cond.c (CreateEvent): Likewise.
5787         * lib/windows-rwlock.c (CreateEvent): Likewise.
5788         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5789         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5790         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5791         * lib/write.c (GetNamedPipeHandleState): Likewise.
5793 2020-05-30  Bruno Haible  <bruno@clisp.org>
5795         physmem: Fix compilation errors on MSVC.
5796         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5797         * modules/physmem (Depends-on): Add unistd.
5799 2020-05-29  Bruno Haible  <bruno@clisp.org>
5801         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5802         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5803         LDADD a second time, after the second occurrence of libtests.a.
5804         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5806 2020-05-29  Bruno Haible  <bruno@clisp.org>
5808         fnmatch: Rely on more gnulib modules.
5809         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5810         wmempcpy, mempcpy.
5811         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5812         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5813         HAVE_MEMPCPY are all 1.
5814         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5815         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5817 2020-05-29  Bruno Haible  <bruno@clisp.org>
5819         Avoid dynamic lookup of Windows API functions when possible.
5820         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5821         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5822         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5823         (use_win32_p): Define differently.
5824         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5825         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5826         for Windows XP or higher.
5828 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5830         read-file: disable buffering if RF_SENSITIVE is set
5831         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5832         Suggested by Glenn Strauss.
5833         (fread_file): Suggest calling setvbuf before calling this
5834         function.  Suggested by Bruno Haible.
5836 2020-05-29  Bruno Haible  <bruno@clisp.org>
5838         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5839         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5840         program.
5841         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5842         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5843         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5844         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5846 2020-05-29  Bruno Haible  <bruno@clisp.org>
5848         Fix compilation error on native Windows (regression from 2020-05-28).
5849         Reported by Daiki Ueno.
5850         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5851         macro when not using dynamic loading.
5852         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5853         QueryFullProcessImageNameFunc): Likewise.
5854         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5855         GetFinalPathNameByHandleFunc): Likewise.
5857 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5859         fopen-gnu-tests: fix "\x" escape usage
5860         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5862 2020-05-28  Bruno Haible  <bruno@clisp.org>
5864         Avoid dynamic loading of Windows API functions when possible.
5865         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5866         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5867         * lib/gettimeofday.c (GetProcAddress,
5868         GetSystemTimePreciseAsFileTimeFuncType,
5869         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5870         define in a build for Windows 8 or higher.
5871         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5872         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5873         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5874         in a build for Windows Vista or higher.
5875         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5876         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5877         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5879 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5881         explicit_bzero-tests: improve -Wmissing-declarations pacification
5882         * tests/test-explicit_bzero.c: Now noinline.
5883         Suggested by Bruno Haible in:
5884         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5886 2020-05-28  Bruno Haible  <bruno@clisp.org>
5888         Fix build errors due to read-file changes (regression from 2020-05-27).
5889         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5890         invocation.
5891         * tests/test-sameacls.c (main): Likewise.
5892         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5893         read_binary_file.
5894         * tests/test-pipe-filter-ii1.c (main): Likewise.
5896 2020-05-28  Bruno Haible  <bruno@clisp.org>
5898         fts: Make more robust in multithreaded applications.
5899         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5900         * modules/fts (Depends-on): Add 'open'.
5902 2020-05-28  Bruno Haible  <bruno@clisp.org>
5904         relocatable-prog: Make more robust in multithreaded applications.
5905         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5906         relocatable-prog-wrapper.
5907         (find_executable): Pass an O_CLOEXEC flag to open().
5908         * modules/relocatable-prog (Depends-on): Add 'open'.
5910 2020-05-28  Bruno Haible  <bruno@clisp.org>
5912         getloadavg: Make more robust in multithreaded applications.
5913         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5914         Simplify use of O_CLOEXEC.
5915         * modules/getloadavg (Depends-on): Add 'open'.
5917 2020-05-28  Bruno Haible  <bruno@clisp.org>
5919         vma-iter: Make more robust in multithreaded applications.
5920         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5921         open().
5922         * modules/vma-iter (Depends-on): Add 'open'.
5924 2020-05-28  Bruno Haible  <bruno@clisp.org>
5926         truncate: Make more robust in multithreaded applications.
5927         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5929 2020-05-28  Bruno Haible  <bruno@clisp.org>
5931         pagealign_alloc: Make more robust in multithreaded applications.
5932         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5933         open().
5934         * modules/pagealign_alloc (Depends-on): Add 'open'.
5936 2020-05-28  Bruno Haible  <bruno@clisp.org>
5938         openat: Make more robust in multithreaded applications.
5939         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5941 2020-05-28  Bruno Haible  <bruno@clisp.org>
5943         at-internal: Make more robust in multithreaded applications.
5944         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5945         open().
5947 2020-05-28  Bruno Haible  <bruno@clisp.org>
5949         mountlist: Make more robust in multithreaded applications.
5950         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5951         open().
5952         * modules/mountlist (Depends-on): Add 'open'.
5954 2020-05-28  Bruno Haible  <bruno@clisp.org>
5956         login_tty: Make more robust in multithreaded applications.
5957         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5958         * modules/login_tty (Depends-on): Add 'open'.
5960 2020-05-28  Bruno Haible  <bruno@clisp.org>
5962         javacomp: Make more robust in multithreaded applications.
5963         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5964         open().
5965         * modules/javacomp (Depends-on): Add 'open'.
5967 2020-05-28  Bruno Haible  <bruno@clisp.org>
5969         getprogname: Make more robust in multithreaded applications.
5970         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5971         * modules/getprogname (Depends-on): Add 'open'.
5973 2020-05-28  Bruno Haible  <bruno@clisp.org>
5975         get_progname_of: Make more robust in multithreaded applications.
5976         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5977         open().
5978         * modules/get_progname_of (Depends-on): Add 'open'.
5980 2020-05-28  Bruno Haible  <bruno@clisp.org>
5982         get_ppid_of: Make more robust in multithreaded applications.
5983         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5984         * modules/get_ppid_of (Depends-on): Add 'open'.
5986 2020-05-28  Bruno Haible  <bruno@clisp.org>
5988         get-rusage-as: Make more robust in multithreaded applications.
5989         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5990         flag to open().
5991         * modules/get-rusage-as (Depends-on): Add 'open'.
5993 2020-05-28  Bruno Haible  <bruno@clisp.org>
5995         crypto/gc: Make more robust in multithreaded applications.
5996         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5997         * modules/crypto/gc (Depends-on): Add 'open'.
5999 2020-05-28  Bruno Haible  <bruno@clisp.org>
6001         copy-file: Make more robust in multithreaded applications.
6002         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
6003         open().
6005 2020-05-28  Bruno Haible  <bruno@clisp.org>
6007         chown: Make more robust in multithreaded applications.
6008         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
6010 2020-05-28  Bruno Haible  <bruno@clisp.org>
6012         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
6013         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
6015 2020-05-28  Daiki Ueno  <ueno@gnu.org>
6017         fopen-gnu: make 'b' flag can be used with 'e' on Windows
6018         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
6019         specified on Windows.
6020         * tests/test-fopen-gnu.c (DATA): New define.
6021         (main): Add test for reading binary files with an 'e' flag.
6023 2020-05-27  Bruno Haible  <bruno@clisp.org>
6025         Don't assume that UNICODE is not defined.
6026         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
6027         differently if the application defines the macro UNICODE.
6028         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6029         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
6030         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
6031         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
6032         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
6034 2020-05-27  Bruno Haible  <bruno@clisp.org>
6036         Improve pattern for defining _WIN32_WINNT.
6037         Newer versions of the Windows API may not only add, but also remove API
6038         functions. Therefore, when the user is e.g. building for Windows 10, we
6039         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
6040         use of APIs that were present in Windows 8 but removed in Windows 10.
6041         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
6042         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
6043         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
6044         * lib/sethostname.c (_WIN32_WINNT): Likewise.
6045         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
6047 2020-05-27  Bruno Haible  <bruno@clisp.org>
6049         javacomp: Make more robust in multithreaded applications.
6050         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
6051         * modules/javacomp (Depends-on): Add fopen-gnu.
6053 2020-05-27  Bruno Haible  <bruno@clisp.org>
6055         mountlist: Make more robust in multithreaded applications.
6056         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
6057         to fopen.
6058         * modules/mountlist (Depends-on): Add fopen-gnu.
6060 2020-05-27  Bruno Haible  <bruno@clisp.org>
6062         sethostname: Make more robust in multithreaded applications.
6063         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
6064         * modules/sethostname (Depends-on): Add fopen-gnu.
6066 2020-05-27  Bruno Haible  <bruno@clisp.org>
6068         readutmp: Make more robust in multithreaded applications.
6069         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
6070         * modules/readutmp (Depends-on): Add fopen-gnu.
6072 2020-05-27  Bruno Haible  <bruno@clisp.org>
6074         getpass: Make more robust in multithreaded applications.
6075         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
6076         * modules/getpass (Depends-on): Add fopen-gnu.
6078 2020-05-27  Bruno Haible  <bruno@clisp.org>
6080         getloadavg: Make more robust in multithreaded applications.
6081         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
6082         * modules/getloadavg (Depends-on): Add fopen-gnu.
6084 2020-05-27  Bruno Haible  <bruno@clisp.org>
6086         exclude: Make more robust in multithreaded applications.
6087         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
6088         * modules/exclude (Depends-on): Add fopen-gnu.
6090 2020-05-27  Bruno Haible  <bruno@clisp.org>
6092         bitset: Make more robust in multithreaded applications.
6093         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
6094         'e' flag to fopen.
6095         * modules/bitset (Depends-on): Add fopen-gnu.
6097 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6099         read-file: add RF_SENSITIVE flag
6100         * lib/read-file.h (RF_SENSITIVE): New define.
6101         * lib/read-file.c (fread_file, read_file): Take into account of
6102         RF_SENSITIVE flag.
6103         * modules/read-file (Depends-on): Add explicit_bzero.
6104         This adds an alternative behavior of those functions to explicitly
6105         clear the internal memory block when it becomes unused.  This is
6106         useful for reading sensitive information from a file.
6108 2020-05-27  Daiki Ueno  <ueno@gnu.org>
6110         read-file: add flags to modify reading behavior
6111         * lib/read-file.h (RF_BINARY): New define.
6112         (fread_file, read_file): Take FLAGS argument.
6113         (read_binary_file): Remove.
6114         * lib/read-file.c (internal_read_file): Merge into ...
6115         (read_file): ... here.
6116         * modules/read-file-tests (Files): Add "tests/macros.h".
6117         * tests/test-read-file.c (main): Refactor using ASSERT macro.
6118         * NEWS: Mention this change.
6120 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
6122         doc/gnulib-intro.texi: add missing "to" in sentence
6123         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
6124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
6125         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
6127 2020-05-26  Bruno Haible  <bruno@clisp.org>
6129         count-one-bits: Fix MSVC specific code.
6130         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6131         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
6132         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
6133         using GCC.
6134         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
6135         (__popcnt64): In 32-bit mode, define as an inline function.
6136         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
6138 2020-05-26  Bruno Haible  <bruno@clisp.org>
6140         argz: Avoid name clashes through argz.h.
6141         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6142         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
6143         * lib/argz.h: Don't use __ prefixed identifiers.
6144         (const): Remove definition.
6145         (argz_next): Remove inline definitions.
6147 2020-05-26  Daiki Ueno  <ueno@gnu.org>
6149         read-file: make use of fopen-gnu
6150         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
6151         (read_binary_file): Likewise.
6152         * modules/read-file (Depends-on): Add fopen-gnu.
6154 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
6156         getentropy, getrandom: new modules
6157         * MODULES.html.sh (func_all_modules):
6158         * lib/unistd.in.h (getentropy, getrandom):
6159         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
6160         * modules/unistd (unistd.h):
6161         Add support for getentropy, getrandom.
6162         * doc/glibc-functions/getentropy.texi (getentropy):
6163         * doc/glibc-functions/getrandom.texi (getrandom):
6164         These are now fixed on some platforms.
6165         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
6166         * m4/getentropy.m4, m4/getrandom.m4:
6167         * modules/getentropy, modules/getentropy-tests:
6168         * modules/getrandom, modules/getrandom-tests:
6169         * tests/test-getentropy.c, tests/test-getrandom.c:
6170         New files.
6172 2020-05-25  Bruno Haible  <bruno@clisp.org>
6174         Add missing C99 dependencies.
6175         Reported by Paul Smith <psmith@gnu.org> in
6176         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
6177         * modules/assert (Depends-on): Add c99.
6178         * modules/filenamecat-lgpl (Depends-on): Likewise.
6179         * modules/libc-config (Depends-on): Likewise.
6180         * modules/mktime (Depends-on): Likewise.
6181         * modules/random_r (Depends-on): Likewise.
6182         * modules/regex (Depends-on): Likewise.
6183         * modules/scratch_buffer (Depends-on): Likewise.
6184         * modules/timespec-add (Depends-on): Likewise.
6185         * modules/timespec-sub (Depends-on): Likewise.
6186         * modules/verify (Depends-on): Likewise.
6188 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6190         explicit_bzero-tests: pacify -Wmissing-declarations
6191         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
6192         Now static.
6194 2020-05-24  Bruno Haible  <bruno@clisp.org>
6196         fopen-gnu: Add tests.
6197         * tests/test-fopen-gnu.c: New file.
6198         * modules/fopen-gnu-tests: New file.
6200         fopen-gnu: New module.
6201         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
6202         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
6203         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
6204         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
6205         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
6206         * modules/fopen-gnu: New file.
6207         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
6209 2020-05-24  Bruno Haible  <bruno@clisp.org>
6211         open, openat: Really support O_CLOEXEC.
6212         * lib/open.c (open): When have_cloexec is still undecided, do pass a
6213         O_CLOEXEC flag to orig_open.
6214         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
6215         pass a O_CLOEXEC flag to orig_openat.
6216         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
6217         * modules/open-tests (Depends-on): Add fcntl.
6218         * modules/openat-tests (Depends-on): Likewise.
6219         * modules/fcntl-safer-tests (Depends-on): Likewise.
6221 2020-05-24  Bruno Haible  <bruno@clisp.org>
6223         fopen: Fix the trailing slash workaround.
6224         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
6225         write access. Pass the right flags to open().
6226         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
6228 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6230         assure: new macro ‘affirm’
6231         * lib/assure.h: Include verify.h.
6232         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
6233         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
6234         and commentary by Bruno Haible in:
6235         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
6236         * modules/assure (Depends-on:): Add verify.
6238 2020-05-23  Bruno Haible  <bruno@clisp.org>
6240         calloc-gnu: Make test work in non-flat address spaces.
6241         Uses code by Paul Eggert.
6242         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
6243         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
6245 2020-05-23  Bruno Haible  <bruno@clisp.org>
6247         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
6248         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
6249         AC_RUN_IFELSE invocations.
6251 2020-05-23  Bruno Haible  <bruno@clisp.org>
6253         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6254         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6255         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6256         don't have it.
6257         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6258         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6259         don't have it.
6260         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6261         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6262         it.
6263         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6264         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6265         it.
6266         * lib/math.in.h (__has_builtin): New macro.
6267         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6268         it.
6269         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6270         it.
6271         (isnan): Don't use the builtins on clang versions that don't have
6272         __builtin_isnanf and __builtin_isnanl.
6274 2020-05-23  Bruno Haible  <bruno@clisp.org>
6276         calloc-gnu: Avoid wrong configure results with clang.
6277         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6278         'volatile', to defeat compiler optimizations.
6280 2020-05-23  Bruno Haible  <bruno@clisp.org>
6282         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6283         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6284         'long double' values by reference, with values taken from a statically
6285         allocated array.
6287 2020-05-23  Bruno Haible  <bruno@clisp.org>
6289         findprog-in: Ignore directories.
6290         Reported by Frederick Eaton via Dmitry Goncharov in
6291         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6292         * lib/findprog-in.c (find_in_given_path): When the file found is a
6293         directory, set errno to EACCES and, during a PATH search, continue
6294         searching.
6295         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6297 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6299         verify: document ‘assume’ better
6300         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6302 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6304         gendocs: Clarify licenses for templates.
6305         * doc/gendocs_template: Add a GNU All-Permissive license notice
6306         and bump Parent-Version.
6307         * doc/gendocs_template_min: Add a GNU All-Permissive license
6308         notice and copy the explanatory comment about the license notice
6309         at the bottom from gendocs_template.
6311 2020-05-21  Bruno Haible  <bruno@clisp.org>
6313         group-member: Relicense under LGPLv2+.
6314         Jim Meyering's approval is in
6315         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6316         Paul Eggert's approval is in
6317         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6318         Eric Blake's approval is in
6319         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6320         * modules/group-member (License): Change to LGPLv2+.
6322 2020-05-21  Bruno Haible  <bruno@clisp.org>
6324         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6325         Reported by Tim Rühsen in
6326         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6327         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6329 2020-05-21  Bruno Haible  <bruno@clisp.org>
6331         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6332         Reported by Tim Rühsen in
6333         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6334         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6335         before returning with status 0.
6337 2020-05-21  Bruno Haible  <bruno@clisp.org>
6339         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6340         Reported by Tim Rühsen in
6341         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6342         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6344 2020-05-21  Bruno Haible  <bruno@clisp.org>
6346         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6347         Reported by Tim Rühsen in
6348         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6349         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6350         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6351         respectively.
6353 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6355         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6358 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6360         ftoastr: fix ifndef typo
6361         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6363 2020-05-19  Bruno Haible  <bruno@clisp.org>
6365         havelib: Tweak documentation.
6366         * doc/havelib.texi (Searching for Libraries): Fix typo.
6368 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6370         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6371         This was needed earlier because modules had to import the main script,
6372         but that is no longer true.  Rename the script so that it is
6373         consistent with all other scripts in gnulib and uses hyphens.
6374         * build-aux/vcs_to_changelog.py: Rename to...
6375         * build-aux/vcs-to-changelog.py: ... this.
6376         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6377         * modules/vcs-to-changelog: Likewise.
6379 2020-05-17  Bruno Haible  <bruno@clisp.org>
6381         Clarify intended usage of the license file modules.
6382         Reported by Asher Gordon <AsDaGo@posteo.net> in
6383         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6384         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6385         GNU AGPL. Explain the intended usage of the modules.
6386         * modules/fdl (Notice): Discourage use as a module.
6387         * modules/fdl-1.3 (Notice): Likewise.
6389 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6391         hash: add hash_xinsert
6392         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6394 2020-05-16  Bruno Haible  <bruno@clisp.org>
6396         findprog-lgpl: Fix link error (existing since 2008-09-02).
6397         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6398         findprog-lgpl.c, not findprog.c.
6399         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6400         XNMALLOC.
6402 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6404         c-stack: pacify -Wunused-result when DEBUG
6405         Problem reported by Marc Nieper-Wißkirchen in:
6406         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6407         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6408         Explicitly ignore write failures.
6410 2020-05-13  Jim Meyering  <meyering@fb.com>
6412         announce-gen: improve a comment
6413         * build-aux/announce-gen: Improve comment.
6415 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6417         xalloc: pacify -Wanalyzer-possible-null-argument
6418         Problem reported for GCC 10.1.0 by Bruno Haible in:
6419         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6420         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6421         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6422         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6424 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6426         careadlinkat: fix GCC 10 workaround
6427         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6428         Massage the code so that it’s closer to what it was before
6429         the GCC 10.1.0 workaround was introduced.  This fixes
6430         a loop when !buffer and the bug workaround is in effect.
6431         Remove unnecessary casts.  Defend in a different way
6432         against (buffer && !buffer_size), by adding at least 1
6433         to buf_size each time through the loop.
6435 2020-05-10  Bruno Haible  <bruno@clisp.org>
6437         doc: Mark HP-UX as unsupported.
6438         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6440 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6442         careadlinkat: limit GCC workaround
6443         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6444         10.1.0 and later, since the workaround is pretty bad and the GCC
6445         bug should get fixed.
6447 2020-05-10  Bruno Haible  <bruno@clisp.org>
6449         havelib: Enhance documentation.
6450         * doc/havelib.texi (Searching for Libraries): Mention the bad
6451         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6453 2020-05-10  Bruno Haible  <bruno@clisp.org>
6455         attribute: Clarify list of attributes.
6456         * lib/attribute.h: Reorder the list of attributes, and group them by
6457         purpose.
6459 2020-05-10  Bruno Haible  <bruno@clisp.org>
6461         string: Fix compilation error in C++ mode.
6462         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6463         _GL_WARN_ON_USE.
6464         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6465         instead of _GL_WARN_ON_USE.
6467 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6469         announce-gen: add support for dist-lzip
6470         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6472 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6474         manywarnings: port to GCC 10.1
6475         * build-aux/gcc-warning.spec:
6476         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6477         Add GCC 10.1.0 warnings.
6479         careadlinkat: pacify -Wreturn-local-addr
6480         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6481         Pacify gcc 10’s -Wreturn-local-addr option.
6482         Simplify some of the later code.
6484 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6486         attribute: remove ATTRIBUTE_DEPRECATED
6487         * lib/attribute.h: Improve recently-added comments, mostly
6488         by shortening them (use active voice, etc.).
6489         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6490         Problem reported by Bruno Haible in:
6491         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6493 2020-05-09  Bruno Haible  <bruno@clisp.org>
6495         attribute: Add comments.
6496         * lib/attribute.h: Document each macro.
6498 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6500         bitset: use the attribute module
6501         * modules/bitset: Depend on 'attribute'.
6502         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6503         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6504         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6505         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6507 2020-05-09  Bruno Haible  <bruno@clisp.org>
6509         c-stack: Fix warning when DEBUG is enabled.
6510         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6511         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6512         * lib/c-stack.c: Include <stdio.h>.
6514 2020-05-09  Bruno Haible  <bruno@clisp.org>
6516         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6517         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6518         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6519         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6520         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6521         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6522         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6523         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6524         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6525         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6526         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6527         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6528         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6530 2020-05-09  Bruno Haible  <bruno@clisp.org>
6532         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6533         Reported by Akim Demaille in
6534         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6535         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6536         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6537         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6539 2020-05-09  Bruno Haible  <bruno@clisp.org>
6541         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6542         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6543         that usually comes from m4/gnulib-common.m4.
6544         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6546 2020-05-09  Bruno Haible  <bruno@clisp.org>
6548         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6549         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6550         that usually comes from m4/gnulib-common.m4.
6551         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6552         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6553         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6555 2020-05-09  Bruno Haible  <bruno@clisp.org>
6557         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6558         * lib/uchar.in.h (char16_t): Define as macro if
6559         GNULIB_OVERRIDES_CHAR16_T.
6560         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6561         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6562         (gl_UCHAR_H): Invoke them.
6563         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6564         GNULIB_OVERRIDES_CHAR32_T.
6565         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6566         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6567         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6568         GNULIB_OVERRIDES_CHAR32_T.
6570 2020-05-09  Bruno Haible  <bruno@clisp.org>
6572         Macro tweaks.
6573         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6574         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6576 2020-05-08  Bruno Haible  <bruno@clisp.org>
6578         c32rtomb: Avoid compilation failure on Haiku.
6579         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6580         inline definitions.
6581         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6583 2020-05-08  Bruno Haible  <bruno@clisp.org>
6585         mbrtoc32: Avoid compilation failure on Haiku.
6586         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6587         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6588         AC_CHECK_FUNCS_ONCE.
6589         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6591 2020-05-08  Bruno Haible  <bruno@clisp.org>
6593         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6594         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6596 2020-05-08  Bruno Haible  <bruno@clisp.org>
6598         list: Update documentation.
6599         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6600         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6601         * doc/containers.texi (Container data types): Document the new list
6602         operations and their complexity.
6604 2020-05-08  Bruno Haible  <bruno@clisp.org>
6606         ignore-value tests: Use module 'attribute'.
6607         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6608         * tests/test-ignore-value.c: Include attribute.h.
6609         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6610         * modules/ignore-value-tests (Depends-on): Add attribute.
6612 2020-05-08  Bruno Haible  <bruno@clisp.org>
6614         uniname/uniname: Use module 'attribute'.
6615         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6616         * lib/uniname/uninames.h: Regenerated.
6617         * lib/uniname/uniname.c: Include attribute.h.
6618         * modules/uniname/uniname (Depends-on): Add attribute.
6620 2020-05-08  Bruno Haible  <bruno@clisp.org>
6622         c32rtomb: Use module 'attribute'.
6623         * lib/c32rtomb.c: Include attribute.h.
6624         (FALLTHROUGH): Remove macro.
6625         * modules/c32rtomb (Depends-on): Add attribute.
6627 2020-05-08  Bruno Haible  <bruno@clisp.org>
6629         xsize: Use module 'attribute'.
6630         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6631         * modules/xsize (Depends-on): Add attribute.
6633 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6635         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6637         * lib/attribute.h: Minor style fixes.
6639         Fix version-etc glitch on OpenIndiana
6640         Problem reported by Mats Erik Andersson in:
6641         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6642         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6643         that now clashes with gnulib-common.h.  All uses changed.
6645 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6647         attribute: new module
6648         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6649         * MODULES.html.sh: Add attribute.
6650         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6651         * doc/gnulib.texi (Particular Modules): Add Attributes.
6652         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6653         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6654         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6655         * lib/vasnprintf.c:
6656         Include attribute.h, and let it define FALLTHROUGH.
6657         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6658         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6659         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6660         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6661         This is a copy since Gawk doesn’t use Gnulib.
6662         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6663         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6664         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6665         Keep the existing FALLTHROUGH definition since Glibc might use it,
6666         and it does no harm to Gnulib’s FALLTHROUGH.
6667         * lib/fts_.h, lib/inttostr.h:
6668         (__GNUC_PREREQ): Remove; no longer needed.
6669         (__attribute_warn_unused_result__): Remove.  All uses
6670         replaced by _GL_ATTRIBUTE_NODISCARD.
6671         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6672         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6673         __attribute__ ((__warn_unused_result__)), for forward
6674         compatibility to C2X.
6675         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6676         _GL_ATTRIBUTE_NODISCARD.
6677         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6678         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6679         replaced by gl_COMMON_BODY’s implementation, which has a
6680         slightly different signature.
6681         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6682         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6683         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6684         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6685         No doubt all uses should be replaced, at some point.
6686         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6687         (_Noreturn): Use it.
6688         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6689         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6690         (_GL_ATTRIBUTE_COLD)
6691         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6692         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6693         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6694         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6695         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6696         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6697         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6698         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6699         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6700         (_GL_ATTRIBUTE_SENTINEL): New macros.
6701         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6702         * modules/fnmatch, modules/freopen-safer, modules/fts:
6703         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6704         * modules/quotearg, modules/savewd:
6705         * modules/unistdio/u16-u16-vasnprintf:
6706         * modules/unistdio/u16-vasnprintf:
6707         * modules/unistdio/u32-u32-vasnprintf:
6708         * modules/unistdio/u32-vasnprintf:
6709         * modules/unistdio/u8-u8-vasnprintf:
6710         * modules/unistdio/u8-vasnprintf:
6711         * modules/unistdio/ulc-vasnprintf:
6712         * modules/unistr/u8-uctomb, modules/vasnprintf:
6713         (Depends-on:): Add attribute module.
6715 2020-05-03  Bruno Haible  <bruno@clisp.org>
6717         bison: Fix today's commit.
6718         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6720 2020-05-03  Bruno Haible  <bruno@clisp.org>
6722         list-c++: Add get_first, get_last, set_first, set_last operations.
6723         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6724         set_first, set_last.
6725         * lib/gl_list.h: Tweak comments.
6727 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6729         bison: rely on bison's %require to check a version requirement
6730         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6731         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6732         enough of not.
6733         So far it is the only know Yacc tool that supports '%require'.
6734         Other yaccs will actually even choke on seeing the -o option after the
6735         input file name.
6736         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6738 2020-05-02  Bruno Haible  <bruno@clisp.org>
6740         list: Add get_first, get_last, set_first, set_last operations.
6741         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6742         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6743         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6745 2020-05-02  Bruno Haible  <bruno@clisp.org>
6747         list: Remove redundant code for remove_first and remove_last operations.
6748         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6749         remove_first, remove_last.
6750         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6751         * lib/gl_array_list.c: Revert last change.
6752         * lib/gl_carray_list.c: Likewise.
6753         * lib/gl_anylinked_list2.h: Likewise.
6754         * lib/gl_linked_list.c: Likewise.
6755         * lib/gl_linkedhash_list.c: Likewise.
6756         * lib/gl_anytree_list2.h: Likewise.
6757         * lib/gl_avltree_list.c: Likewise.
6758         * lib/gl_avltreehash_list.c: Likewise.
6759         * lib/gl_rbtree_list.c: Likewise.
6760         * lib/gl_rbtreehash_list.c: Likewise.
6761         * lib/gl_sublist.c: Likewise.
6763 2020-05-02  Bruno Haible  <bruno@clisp.org>
6765         bison-i18n: Add support for cross-compilation.
6766         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6767         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6768         via Akim Demaille <akim@lrde.epita.fr>.
6769         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6770         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6771         Don't use bison's --print-localedir option when cross-compiling.
6772         Also, fix an error message and a comment.
6774 2020-05-01  Bruno Haible  <bruno@clisp.org>
6776         list: Add remove_first and remove_last operations.
6777         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6778         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6779         * lib/gl_list.h (struct gl_list_implementation): Add fields
6780         remove_first, remove_last.
6781         (gl_list_remove_first, gl_list_remove_last): New functions.
6782         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6783         functions, based on gl_array_remove_at.
6784         (gl_array_list_implementation): Implement the new operations.
6785         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6786         New functions, based on gl_carray_remove_at.
6787         (gl_carray_list_implementation): Implement the new operations.
6788         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6789         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6790         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6791         new operations.
6792         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6793         Likewise.
6794         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6795         New functions, based on gl_tree_remove_at.
6796         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6797         new operations.
6798         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6799         Likewise.
6800         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6801         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6802         Likewise.
6803         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6804         New functions, based on gl_sublist_remove_at.
6805         (gl_sublist_list_implementation): Implement the new operations.
6806         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6807         remove_last.
6808         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6809         gl_list_remove_last.
6810         * tests/test-avltree_list.c (main): Likewise.
6811         * tests/test-avltreehash_list.c (main): Likewise.
6812         * tests/test-carray_list.c (main): Likewise.
6813         * tests/test-linked_list.c (main): Likewise.
6814         * tests/test-linkedhash_list.c (main): Likewise.
6815         * tests/test-rbtree_list.c (main): Likewise.
6816         * tests/test-rbtreehash_list.c (main): Likewise.
6818 2020-05-01  Bruno Haible  <bruno@clisp.org>
6820         parse-datetime: Fix a build failure with an older bison version.
6821         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6822         parse-datetime.tab.c if a suitable version of bison was not found.
6824 2020-05-01  Bruno Haible  <bruno@clisp.org>
6826         bison: New module.
6827         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6828         m4/parse-datetime.m4.
6829         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6830         * modules/bison: New file.
6831         * modules/parse-datetime (Files): Remove m4/bison.m4.
6832         (Depends-on): Add bison.
6834 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6836         Update users.txt.
6837         * users.txt: Add poke.
6839 2020-04-28  Bruno Haible  <bruno@clisp.org>
6841         posix_spawn_file_actions_addfchdir tests: Enhance test.
6842         * tests/test-posix_spawn5.c: Include findprog.h.
6843         (test): New function, extracted from main.
6844         (main): Invoke it. Also, invoke it with a program name such as
6845         "bin/pwd".
6846         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6847         findprog.
6849 2020-04-28  Bruno Haible  <bruno@clisp.org>
6851         posix_spawn_file_actions_addchdir tests: Enhance test.
6852         * tests/test-posix_spawn4.c: Include findprog.h.
6853         (test): New function, extracted from main.
6854         (main): Invoke it. Also, invoke it with a program name such as
6855         "bin/pwd".
6856         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6857         findprog.
6859 2020-04-28  Bruno Haible  <bruno@clisp.org>
6861         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6862         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6863         access elements of the wrong union member.
6865 2020-04-27  Bruno Haible  <bruno@clisp.org>
6867         getdate: Remove deprecated module.
6868         * modules/getdate: Remove file.
6869         * doc/getdate.texi: Remove file.
6870         * lib/getdate.h: Remove file.
6871         * NEWS: Mention the removal.
6873 2020-04-27  Bruno Haible  <bruno@clisp.org>
6875         realloc: Remove deprecated module.
6876         * modules/realloc: Remove file.
6877         * NEWS: Mention the removal.
6879 2020-04-27  Bruno Haible  <bruno@clisp.org>
6881         calloc: Remove deprecated module.
6882         * modules/calloc: Remove file.
6883         * NEWS: Mention the removal.
6885 2020-04-27  Bruno Haible  <bruno@clisp.org>
6887         malloc: Remove deprecated module.
6888         * modules/malloc: Remove file.
6889         * NEWS: Mention the removal.
6891 2020-04-27  Bruno Haible  <bruno@clisp.org>
6893         fnmatch-posix: Remove deprecated module.
6894         * modules/fnmatch-posix: Remove file.
6895         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6896         * NEWS: Mention the removal.
6898 2020-04-27  Bruno Haible  <bruno@clisp.org>
6900         pipe: Remove deprecated module.
6901         * modules/pipe: Remove file.
6902         * lib/pipe.h: Remove file.
6903         * NEWS: Mention the removal.
6905 2020-04-27  Bruno Haible  <bruno@clisp.org>
6907         getopt: Remove deprecated module.
6908         * modules/getopt: Remove file.
6909         * NEWS: Mention the removal.
6911 2020-04-27  Bruno Haible  <bruno@clisp.org>
6913         remove-dest-slash: Remove deprecated module.
6914         * modules/rename-dest-slash: Remove file.
6915         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6916         Update.
6917         * NEWS: Mention the removal.
6919 2020-04-27  Bruno Haible  <bruno@clisp.org>
6921         unictype/bidicategory-*: Remove deprecated modules.
6922         * modules/unictype/bidicategory-all: Remove file.
6923         * modules/unictype/bidicategory-byname: Remove file.
6924         * modules/unictype/bidicategory-name: Remove file.
6925         * modules/unictype/bidicategory-of: Remove file.
6926         * modules/unictype/bidicategory-test: Remove file.
6927         * MODULES.html.sh (Unicode string functions): Update.
6928         * NEWS: Mention the removals.
6930 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6932         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6933         From a suggestion by Askar Safin in:
6934         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6935         * lib/fts.c (fts_build): If file types are known, optimize
6936         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6937         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6938         non-directories.
6940 2020-04-19  Bruno Haible  <bruno@clisp.org>
6942         vasnprintf: Add support for printing wide characters using escapes.
6943         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6944         (wctomb_fallback): New function.
6945         (local_wctomb): New function.
6946         (local_wcrtomb): New function or macro.
6947         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6948         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6949         %lc.
6951 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6953         fts: remove NOSTAT_LEAF_OPTIMIZATION
6954         It caused ‘find’ and ‘du’ to dump core, and it was useful
6955         only for obsolescent Linux filesystems anyway.  Problem reported in:
6956         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6957         Quite possibly there is still a serious underlying fts bug with
6958         tight-loop-check and mutating file systems, but if so this patch
6959         should cause the bug to be triggered less often.
6960         * lib/fts.c (enum leaf_optimization): Remove
6961         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6962         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6963         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6964         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6965         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6966         Remove.  All uses removed.
6968 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6970         explicit_bzero: Improve code style.
6971         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6973 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6975         explicit_bzero: On native Windows, use SecureZeroMemory().
6976         * lib/explicit_bzero.c: Include <windows.h>.
6977         (explicit_bzero): On native Windows, use SecureZeroMemory.
6979 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6981         explicit_bzero: Use memset_s() when available.
6982         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6983         (explicit_bzero): Use memset_s when available.
6984         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6986 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6988         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6989         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6990         free() that overwrite the memory with canaries.
6992 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6994         bootstrap: recommend git submodule update --init
6995         Reported by Bruno Haible.
6996         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6997         * build-aux/bootstrap: recommand "git submodule update --init"
6998         rather than "git submodule init".
7000 2020-04-12  Bruno Haible  <bruno@clisp.org>
7002         explicit_bzero: Add tests.
7003         * tests/test-explicit_bzero.c: New file.
7004         * modules/explicit_bzero-tests: New file.
7006 2020-04-11  Bruno Haible  <bruno@clisp.org>
7008         explicit_bzero: Relicense under LGPLv2+.
7009         Approved by Paul Eggert.
7010         * modules/explicit_bzero (License): Change to LGPLv2+.
7012 2020-04-10  Bruno Haible  <bruno@clisp.org>
7014         findprog, relocatable-prog: Ignore directories during PATH search.
7015         Reported by Frederick Eaton via Dmitry Goncharov in
7016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7018         * lib/findprog.c (find_in_path): When the file found in a PATH element
7019         is a directory, continue searching.
7020         * modules/findprog (Depends-on): Add sys_stat, stat.
7021         * modules/findprog-lgpl (Depends-on): Likewise.
7023         * lib/progreloc.c (maybe_executable): When the file found in a PATH
7024         element is a directory, continue searching.
7025         * lib/relocwrapper.c: Update comments.
7026         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
7027         (configure.ac-early): New section.
7029 2020-04-10  Bruno Haible  <bruno@clisp.org>
7031         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
7032         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7033         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
7034         * MODULES.html.sh: In a git-less tarball, use the date of the first
7035         ChangeLog entry.
7037 2020-04-04  Bruno Haible  <bruno@clisp.org>
7039         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
7040         * m4/gettext.m4: Fix comments regarding the gettext library.
7041         * m4/intl-thread-locale.m4: Likewise.
7042         * m4/intlmacosx.m4: Likewise.
7043         * m4/lcmessage.m4: Likewise.
7044         * m4/nls.m4: Likewise.
7045         * m4/po.m4: Likewise.
7046         * m4/progtest.m4: Likewise.
7048 2020-04-04  Jim Meyering  <meyering@fb.com>
7050         maint: remove a stray inter-word space in a 6x-repeated comment
7051         Induce the changes by running this:
7052           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
7053         * build-aux/announce-gen: Change "by  perl" to "by perl".
7054         * build-aux/gitlog-to-changelog: Likewise.
7055         * build-aux/prefix-gnulib-mk: Likewise.
7056         * build-aux/update-copyright: Likewise.
7057         * build-aux/useless-if-before-free: Likewise.
7058         * tests/test-update-copyright.sh: Likewise.
7060 2020-03-28  Bruno Haible  <bruno@clisp.org>
7062         Use module 'filename' instead of module 'dosname'.
7064         * lib/at-func.c: Include filename.h instead of dosname.h.
7065         * lib/unlinkat.c: Likewise.
7066         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
7067         * modules/areadlinkat-with-size (Depends-on): Likewise.
7068         * modules/faccessat (Depends-on): Likewise.
7069         * modules/fchmodat (Depends-on): Likewise.
7070         * modules/fchownat (Depends-on): Likewise.
7071         * modules/fstatat (Depends-on): Likewise.
7072         * modules/mkdirat (Depends-on): Likewise.
7073         * modules/mkfifoat (Depends-on): Likewise.
7074         * modules/readlinkat (Depends-on): Likewise.
7075         * modules/selinux-at (Depends-on): Likewise.
7076         * modules/symlinkat (Depends-on): Likewise.
7077         * modules/unlinkat (Depends-on): Likewise.
7078         * modules/utimensat (Depends-on): Likewise.
7080         * lib/at-func2.c: Include filename.h instead of dosname.h.
7081         * modules/linkat (Depends-on): Add filename. Remove dosname.
7082         * modules/renameatu (Depends-on): Likewise.
7084         * lib/canonicalize.c: Include filename.h instead of dosname.h.
7085         * lib/canonicalize-lgpl.c: Likewise.
7086         * modules/canonicalize (Depends-on): Add filename.
7087         * modules/canonicalize-lgpl (Depends-on): Likewise.
7089         * lib/dirname.h: Include filename.h instead of dosname.h.
7090         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
7092         * lib/fchdir.c: Include filename.h instead of dosname.h.
7093         * modules/fchdir (Depends-on): Add filename. Remove dosname.
7095         * lib/openat.c: Include filename.h instead of dosname.h.
7096         * modules/openat (Depends-on): Add filename. Remove dosname.
7098         * lib/rmdir.c: Include filename.h instead of dosname.h.
7099         * modules/rmdir (Depends-on): Add filename. Remove dosname.
7101         * lib/savewd.c: Include filename.h instead of dosname.h.
7102         * modules/savewd (Depends-on): Add filename. Remove dosname.
7104         * lib/unlink.c: Include filename.h instead of dosname.h.
7105         * modules/unlink (Depends-on): Add filename. Remove dosname.
7107         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
7108         * lib/relocwrapper.c: Update comments.
7110         * modules/lstat (Depends-on): Remove dosname.
7112 2020-03-28  Bruno Haible  <bruno@clisp.org>
7114         dosname: Redirect to 'filename'.
7115         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7116         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
7117         * lib/dosname.h: Remove all definitions. Just include filename.h.
7118         * modules/dosname (Status, Notice): Mark as deprecated.
7119         (Depends-on): Add 'filename'.
7121 2020-03-28  Bruno Haible  <bruno@clisp.org>
7123         dosname: Change IS_RELATIVE_FILE_NAME.
7124         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
7125         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
7126         * NEWS: Mention the change.
7128 2020-03-28  Bruno Haible  <bruno@clisp.org>
7130         filename: Copy some definitions from module 'dosname'.
7131         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
7132         (HAS_DEVICE): Document macro.
7133         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
7134         (IS_ABSOLUTE_FILE_NAME): Consider
7135         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
7136         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
7137         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
7138         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
7139         IS_PATH_WITH_DIR.
7140         (DllMain): Update.
7141         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
7142         IS_PATH_WITH_DIR.
7143         (find_executable): Update.
7144         * NEWS: Document the deprecations.
7146 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7148         getopt-posix: port __GETOPT_PREFIX to macOS
7149         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
7150         Define to work around a problem with asm on macOS (Bug#40205).
7152 2020-03-22  Bruno Haible  <bruno@clisp.org>
7154         MODULES.html.sh: Add support for reproducible builds.
7155         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
7156         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
7157         * MODULES.html.sh: Print the date of the last gnulib commit, not the
7158         current date.
7160 2020-03-22  Bruno Haible  <bruno@clisp.org>
7162         Several modules: Depend on stat.
7163         * modules/acl-permissions (Depends-on): Add stat.
7164         * modules/canonicalize (Depends-on): Likewise.
7165         * modules/file-has-acl (Depends-on): Likewise.
7166         * modules/fstat (Depends-on): Likewise.
7167         * modules/fstatat (Depends-on): Likewise.
7168         * modules/glob (Depends-on): Likewise.
7169         * modules/javacomp (Depends-on): Likewise.
7170         * modules/linkat (Depends-on): Likewise.
7171         * modules/mkdir (Depends-on): Likewise.
7172         * modules/pt_chown (Depends-on): Likewise.
7173         * modules/ptsname_r (Depends-on): Likewise.
7174         * modules/readlinkat (Depends-on): Likewise.
7175         * modules/rename (Depends-on): Likewise.
7176         * modules/renameatu (Depends-on): Likewise.
7177         * modules/tmpdir (Depends-on): Likewise.
7178         * modules/utimens (Depends-on): Likewise.
7179         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
7180         * modules/same (Depends-on): Remove stat.
7182 2020-03-22  Bruno Haible  <bruno@clisp.org>
7184         acl-permissions: Improve autoconf macro.
7185         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
7186         more reliably.
7188 2020-03-22  Bruno Haible  <bruno@clisp.org>
7190         file-has-acl: Fix module description.
7191         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
7192         (Depends-on): Depend on acl-permissions unconditionally.
7194 2020-03-21  Bruno Haible  <bruno@clisp.org>
7196         unlink: Ensure errno also on native Windows.
7197         * modules/unlink (Depends-on): Add malloc-posix.
7199 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7201         unlink: fix malloc errno typo
7202         Problem reported by Tim Rühsen in:
7203         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
7204         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
7206 2020-03-16  Bruno Haible  <bruno@clisp.org>
7208         *printf-posix: Fix m4 error (regression from 2020-03-08).
7209         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
7210         brackets in AC_COMPILE_IFELSE invocation.
7212 2020-03-08  Bruno Haible  <bruno@clisp.org>
7214         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
7215         * modules/crypto/af_alg (Depends-on): Add fstat.
7216         * modules/renameatu (Depends-on): Likewise.
7217         * modules/same (Depends-on): Likewise.
7218         * modules/term-style-control (Depends-on): Likewise.
7220 2020-03-08  Bruno Haible  <bruno@clisp.org>
7222         *printf-posix: Document why it's overridden on some glibc systems.
7223         Reported by Adrian Bunk <bunk@stusta.de> in
7224         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
7225         * doc/posix-functions/*printf.texi: Document the problem with the %n
7226         directive on some glibc systems.
7227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
7228         the cross-compilation guesses accordingly.
7230 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
7232         open, openat: port to (O_RDWR | O_RDONLY) != 0
7233         Potential portability problem reported by Dan Gohman in:
7234         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
7235         * lib/open.c (open):
7236         * lib/openat.c (rpl_openat):
7237         Don’t assume O_RDONLY is disjoint from O_RDWR.
7239 2020-03-07  Bruno Haible  <bruno@clisp.org>
7241         openat: Fix theoretically possible issue on GNU/Hurd.
7242         Reported by Dan Gohman <sunfish@mozilla.com> in
7243         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
7244         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
7245         ignore the bits that are also set in O_RDONLY.
7247 2020-02-24  Bruno Haible  <bruno@clisp.org>
7249         getloadavg: Don't use /usr/local when cross-compiling on AIX.
7250         Reported by Jens Rehsack <sno@netbsd.org> in
7251         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
7252         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
7253         cross-compiling.
7255 2020-02-24  Bruno Haible  <bruno@clisp.org>
7257         fcntl: Add witness of gnulib override.
7258         Reported by Jens Rehsack <sno@netbsd.org> in
7259         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7260         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7261         macros.
7263 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7265         Update users.txt.
7266         * users.txt: Add datamash, time.
7268 2020-02-23  Bruno Haible  <bruno@clisp.org>
7270         uni*/base: Use 'restrict'.
7271         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7272         from lib/regex.h.
7273         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7274         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7275         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7276         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7277         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7278         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7279         '_UC_RESTRICT'.
7280         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7281         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7282         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7283         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7284         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7285         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7286         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7287         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7288         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7289         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7290         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7291         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7292         '_UC_RESTRICT'.
7293         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7294         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7295         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7296         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7297         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7298         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7299         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7300         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7302 2020-02-23  Bruno Haible  <bruno@clisp.org>
7304         glob, spawn: Use improved '_Restrict_' definition.
7305         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7306         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7308 2020-02-23  Bruno Haible  <bruno@clisp.org>
7310         crypto/gc: Use 'restrict'.
7311         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7312         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7314         crypto/hmac-*: Use 'restrict'.
7315         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7316         'restrict'.
7317         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7318         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7319         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7320         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7322         crypto/sm3: Use 'restrict'.
7323         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7324         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7326         crypto/*-buffer: Use 'restrict'.
7327         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7328         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7330         crypto/sha512-buffer: Use 'restrict'.
7331         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7332         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7333         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7335         crypto/sha256-buffer: Use 'restrict'.
7336         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7337         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7338         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7340         crypto/sha1-buffer: Use 'restrict'.
7341         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7342         'restrict'.
7343         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7345         crypto/md5-buffer: Use 'restrict'.
7346         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7347         'restrict'.
7348         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7350         crypto/md4: Use 'restrict'.
7351         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7352         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7354         crypto/md2: Use 'restrict'.
7355         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7356         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7358         crypto/rijndael: Use 'restrict'.
7359         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7360         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7361         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7363         crypto/arctwo: Use 'restrict'.
7364         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7365         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7367         crypto/arcfour: Use 'restrict'.
7368         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7369         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7371         careadlinkat: Use 'restrict'.
7372         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7373         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7374         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7376         regex-quote: Use 'restrict'.
7377         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7378         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7380         system-quote: Use 'restrict'.
7381         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7382         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7384         sh-quote: Use 'restrict'.
7385         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7386         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7388         quotearg: Use 'restrict'.
7389         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7390         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7392         parse-datetime: Use 'restrict'.
7393         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7394         'restrict'.
7395         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7397         nstrftime: Use 'restrict'.
7398         * lib/strftime.h (nstrftime): Use 'restrict'.
7399         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7401         mbstok_r: Use 'restrict'.
7402         * lib/string.in.h (mbstok_r): Use 'restrict'.
7404         xmemcoll: Use 'restrict'.
7405         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7406         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7408         memcoll: Use 'restrict'.
7409         * lib/memcoll.h (memcoll): Use 'restrict'.
7410         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7412         vasnprintf: Use 'restrict'.
7413         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7414         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7416         c-vasnprintf: Use 'restrict'.
7417         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7418         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7420         c-vsnprintf: Use 'restrict'.
7421         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7422         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7424         c-snprintf: Use 'restrict'.
7425         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7426         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7428         astrxfrm: Use 'restrict'.
7429         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7430         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7432         amemxfrm: Use 'restrict'.
7433         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7434         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7436 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7438         fchmodat, lchmod: simplify
7439         It appears that we may have overengineered lchmod and fchmodat,
7440         in that the code was prepared for some hypothetical platforms but
7441         was so complicated that it was hard to understand.  I attempted to
7442         improve the situation by simplifying the code when this
7443         simplification should not hurt on real platforms; we can re-add
7444         complexity later to port to platforms I didn’t know about.
7445         * lib/fchmodat.c (fchmodat):
7446         * lib/lchmod.c (lchmod):
7447         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7448         around the /proc code that needs it.
7449         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7450         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7451         Do not include <config.h> twice.
7452         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7453         lchmod on any known hosts.
7454         (lchmod): Do not defer to fchmodat, so that the lchmod module
7455         need not depend on the fchmodat module (which is a circular
7456         dependency).  Do not use openat, since ‘open’ suffices.
7457         Coalesce calls to lchmod/chmod.
7458         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7459         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7460         * modules/lchmod (Depends-on, configure.ac):
7461         * modules/sys_stat (Depends-on):
7462         Do not worry about replacing lchmod, since that shouldn’t happen.
7463         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7464         Do not worry about whether lchmod works on non-symlinks,
7465         since every known lchmod works on non-symlinks.
7466         * modules/lchmod (Depends-on):
7467         Remove circular dependency on fchmodat.
7469 2020-02-22  Bruno Haible  <bruno@clisp.org>
7471         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7472         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7473         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7475 2020-02-22  Bruno Haible  <bruno@clisp.org>
7477         Use 'restrict' in all POSIX function declarations.
7478         * lib/iconv.in.h (iconv): Use 'restrict'.
7479         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7480         * lib/monetary.in.h (strfmon_l): Likewise.
7481         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7482         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7483         pthread_mutex_timedlock, pthread_rwlock_init,
7484         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7485         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7486         * lib/search.in.h (tdelete): Likewise.
7487         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7488         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7489         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7490         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7491         Likewise.
7492         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7493         strtoull): Likewise.
7494         * lib/string.in.h (strncat): Likewise.
7495         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7496         recvfrom): Likewise.
7497         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7498         * lib/time.in.h (strftime): Likewise.
7499         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7500         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7501         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7502         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7503         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7504         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7505         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7506         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7507         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7508         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7509         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7511         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7512         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7513         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7514         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7515         other *_h.m4 files.
7516         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7518 2020-02-22  Bruno Haible  <bruno@clisp.org>
7520         Update NEWS.
7521         * NEWS: Mention the last change.
7523 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7525         chmodat, chownat: new modules
7526         These are split from fchmodat, fchownat.  GNU Emacs needs the
7527         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7528         lchmodat.  Split the latter two into a new module chmodat.
7529         Similarly for fchownat.  This the same basic idea for why statat
7530         was split from fstatat on 2013-01-23.
7531         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7532         Rename from FCHMODAT_INLINE.  All uses changed.
7533         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7534         Rename from FCHOWNAT_INLINE.  All uses changed.
7535         * lib/openat.h:
7536         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7537         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7538         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7539         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7540         (configure.ac): Remove fchmodat module indicator.
7541         (Makefile.am): Omit chmodat.c.
7542         (Maintainer): Add self.
7543         * modules/fchownat: Similarly, but for chown.
7544         * tests/test-fchownat.c (BASE): Don't define if already defined.
7545         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7547 2020-02-22  Bruno Haible  <bruno@clisp.org>
7549         users.txt: Add groff.
7550         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7551         * users.txt: Add groff.
7553 2020-02-22  Bruno Haible  <bruno@clisp.org>
7555         gnulib-tool: Ensure copied files are writable.
7556         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7557         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7558         * gnulib-tool (func_ensure_writable): New function.
7559         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7560         func_create_testdir, copy-file): Invoke it after copying a file.
7562 2020-02-22  Bruno Haible  <bruno@clisp.org>
7564         users.txt: Update.
7565         * users.txt: Update URLs to projects that have moved or switched to git.
7566         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7567         over the summary view. Add gawk.
7569 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7571         largefile: remove _DARWIN_USE_64_BIT_INODE
7572         It’s not needed in currently-supported macOS versions, and was
7573         problematic anyway in MacOS X 10.5 which was the only version that
7574         could use it.  Problem reported by Peter Eisentraut in:
7575         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7576         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7577         Don’t define _DARWIN_USE_64_BIT_INODE.
7578         This syncs with Autoconf master.
7580         Add ‘extern "C"’ to count-one-bits.h etc.
7581         This ports these .h files to C++.
7582         Problem reported by Simon Marchi in:
7583         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7584         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7585         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7587 2020-02-19  Bruno Haible  <bruno@clisp.org>
7589         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7590         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7591         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7592         * lib/array-mergesort.h: Accept an optional macro definition
7593         STATIC_FROMTO.
7594         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7596 2020-02-16  Bruno Haible  <bruno@clisp.org>
7598         fchmodat: Make more future-proof.
7599         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7600         NEED_FCHMODAT_NONSYMLINK_FIX.
7601         (gl_PREREQ_FCHMODAT): New macro.
7602         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7603         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7604         without lchmod function.
7605         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7607 2020-02-16  Bruno Haible  <bruno@clisp.org>
7609         lchmod: Make more future-proof.
7610         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7611         (gl_PREREQ_LCHMOD): New macro.
7612         * lib/lchmod.c (orig_lchmod): New function.
7613         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7614         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7615         function.
7616         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7618         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7619         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7621 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7623         xnanosleep: prefer pause, and get remaining time
7624         Problem reported by Vladimir Panteleev in:
7625         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7626         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7627         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7628         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7629         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7630         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7632 2020-02-16  Bruno Haible  <bruno@clisp.org>
7634         lchmod: Improve cross-compilation guess.
7635         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7636         cross-compiling, guess depending on the platform.
7638 2020-02-16  Bruno Haible  <bruno@clisp.org>
7640         fstrcmp: Add API to clean up resources.
7641         Reported by Akim Demaille <akim@lrde.epita.fr> in
7642         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7643         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7644         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7646 2020-02-14  Bruno Haible  <bruno@clisp.org>
7648         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7649         Reported by Christian Biesinger in
7650         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7651         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7652         corresponding module is not enabled.
7653         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7654         prototype if the corresponding module is not enabled.
7656 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7658         fchmodat, lchmod: port to buggy Linux filesystems
7659         Problem reported by Florian Weimer in:
7660         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7661         * lib/fchmodat.c (fchmodat):
7662         * lib/lchmod.c (lchmod):
7663         Don’t assume that chmod on the O_PATH-opened fd will do
7664         the right thing on a symbolic link.
7665         * lib/fchmodat.c (fchmodat):
7666         Don’t attempt to special-case
7667         any flag value other than AT_SYMLINK_NOFOLLOW.
7669 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7671         lchmod: pacify Coverity CID 1491216
7672         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7673         not complain about unreachable code at the ‘struct stat st;’
7674         declaration.
7676 2020-02-10  Bruno Haible  <bruno@clisp.org>
7678         copysignf: Fix link error on HP-UX with cc.
7679         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7680         HP-UX, set COPYSIGNF_LIBM to -lm.
7682 2020-02-10  Bruno Haible  <bruno@clisp.org>
7684         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7685         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7686         with $(LIB_SEMAPHORE).
7687         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7688         with $(LIB_SEMAPHORE).
7690 2020-02-10  Bruno Haible  <bruno@clisp.org>
7692         ptsname_r-tests: Avoid unused function warning.
7693         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7695 2020-02-08  Bruno Haible  <bruno@clisp.org>
7697         lchmod: Add tests.
7698         * tests/test-lchmod.c: New file.
7699         * modules/lchmod-tests: New file.
7701 2020-02-08  Bruno Haible  <bruno@clisp.org>
7703         lchmod: Ensure declaration on HP-UX.
7704         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7705         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7707 2020-02-08  Bruno Haible  <bruno@clisp.org>
7709         fchmodat: Strengthen tests.
7710         * tests/test-fchmodat.c (BASE): New macro.
7711         (main): Use it, to avoid conflicts with other unit tests. Verify that
7712         fchmodat changed the file permission bits.
7714 2020-02-08  Bruno Haible  <bruno@clisp.org>
7716         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7717         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7718         '#undef __need_system_sys_stat_h'.
7720 2020-02-08  Bruno Haible  <bruno@clisp.org>
7722         fchmodat: Improve cross-compilation guesses.
7723         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7724         cross-compiling, guess depending on the platform.
7725         * doc/posix-functions/fchmodat.texi: Clarify.
7727 2020-02-08  Bruno Haible  <bruno@clisp.org>
7729         Fix compilation errors in a testdir created with --with-c++-tests.
7730         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7731         since it does not work any more with g++ >= 4.4.
7733 2020-02-08  Bruno Haible  <bruno@clisp.org>
7735         doc: Update for glibc 2.31.
7736         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7737         * doc/gnulib.texi: Include it.
7738         * doc/pastposix-functions/h_errno.texi: Update.
7739         * doc/posix-functions/*.texi: Likewise.
7741 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7743         mountlist: consider smb3 file systems as remote
7744         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7745         "smb3" as remote.
7747 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7749         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7750         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7751         they act like chmod on non-symlinks.
7752         * NEWS:
7753         * doc/glibc-functions/lchmod.texi (lchmod):
7754         * doc/posix-functions/fchmodat.texi (fchmodat):
7755         Mention this.
7756         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7757         config.h, and undef it after including sys/stat.h the first time.
7758         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7759         sys/stat.h a second time after defining orig_fchmodat.
7760         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7761         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7762         * lib/lchmod.c: New file.
7763         * lib/sys_stat.in.h (fchmodat, lchmod):
7764         Support replacing these functions.
7765         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7766         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7767         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7768         Test that lchmod works on non-symlinks.
7769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7770         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7771         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7772         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7773         * modules/lchmod (Files): Add lib/lchmod.c.
7774         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7775         (configure.ac): Compile lchmod.c if needed.
7776         (lib_SOURCES): Add lchmod.c.
7777         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7778         and REPLACE_LCHMOD.
7779         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7780         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7782 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7784         mountlist: Consider AFS filesystems as remote
7785         df --local relies on the ME_REMOTE macro to determine if a given
7786         mount entry should be considered "local".  There is special logic
7787         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7788         kernel's kafs module or AuriStorFS is treated as a local mount.
7789         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7790         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7792 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7794         Port _Noreturn to older Clang
7795         Problem reported by Jeffery Walton in:
7796         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7797         * lib/_Noreturn.h (_Noreturn):
7798         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7799         Assume _Noreturn works in Clang 3.5 and later.
7800         It is documented to work in Clang 3.5:
7801         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7802         and is not documented in Clang 3.4:
7803         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7804         Apple sets __clang_version__ to a different value, so use
7805         __apple_build_version__ there.  See:
7806         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7808 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7810         test-canonicalize: avoid unused function warning
7811         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7812         with the same guard as that used to protect usage of the null_ptr
7813         function, so that one doesn't get a -Wunused warning.
7814         * tests/test-canonicalize-lgpl.c: Likewise.
7816 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7818         libc-config: port to Apple’s Clang variant
7819         * lib/libc-config.h (__glibc_clang_prereq):
7820         Port to Apple’s Clang variant, which uses a different
7821         numbering scheme for __clang_major__.
7823 2020-02-02  Bruno Haible  <bruno@clisp.org>
7825         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7826         * doc/containers.texi: Document these new modules.
7828 2020-02-02  Bruno Haible  <bruno@clisp.org>
7830         omap-c++: Add tests.
7831         * tests/test-omap-c++.cc: New file.
7832         * modules/omap-c++-tests: New file.
7834         omap-c++: New module.
7835         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7836         * modules/omap-c++: New file.
7838 2020-02-02  Bruno Haible  <bruno@clisp.org>
7840         map-c++: Add tests.
7841         * tests/test-map-c++.cc: New file.
7842         * modules/map-c++-tests: New file.
7844         map-c++: New module.
7845         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7846         * modules/map-c++: New file.
7848 2020-02-02  Bruno Haible  <bruno@clisp.org>
7850         oset-c++: Add tests.
7851         * tests/test-oset-c++.cc: New file.
7852         * modules/oset-c++-tests: New file.
7854         oset-c++: New module.
7855         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7856         * modules/oset-c++: New file.
7858 2020-02-02  Bruno Haible  <bruno@clisp.org>
7860         set-c++: Add tests.
7861         * tests/test-set-c++.cc: New file.
7862         * modules/set-c++-tests: New file.
7864         set-c++: New module.
7865         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7866         * modules/set-c++: New file.
7868 2020-02-02  Bruno Haible  <bruno@clisp.org>
7870         list-c++: Add tests.
7871         * tests/test-list-c++.cc: New file.
7872         * modules/list-c++-tests: New file.
7874         list-c++: New module.
7875         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7876         * modules/list-c++: New file.
7878 2020-02-02  Bruno Haible  <bruno@clisp.org>
7880         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7881         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7882         '_Noreturn'.
7883         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7885 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7887         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7888         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7889           error: argument 2 value '18446744073709551615'
7890           exceeds maximum object size 9223372036854775807
7891           [-Werror=alloc-size-larger-than=]
7892         The details of this restriction are discussed at:
7893         https://stackoverflow.com/q/42574890/4421
7894         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7896 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7898         sysctl.h: avoid including on glibc
7899         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7900         * lib/physmem.c: Likewise.
7902 2020-02-02  Bruno Haible  <bruno@clisp.org>
7904         list, set, oset, map, omap: Avoid imperative voice in documentation.
7905         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7906         in the specification of functions.
7907         * lib/gl_set.h: Likewise.
7908         * lib/gl_oset.h: Likewise.
7909         * lib/gl_map.h: Likewise.
7910         * lib/gl_omap.h: Likewise.
7911         * lib/gl_*.h: Likewise.
7913 2020-02-01  Bruno Haible  <bruno@clisp.org>
7915         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7916         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7917         does.
7919 2020-01-29  Bruno Haible  <bruno@clisp.org>
7921         array-map, hash-map, linkedhash-map: Fix module description.
7922         * modules/array-map (Description): Fix description.
7923         * modules/hash-map (Description): Likewise.
7924         * modules/linkedhash-map (Description): Likewise.
7926 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7928         dfa: do not depend on isblank
7929         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7930         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7931         * modules/dfa (Depends-on): Remove isblank.
7932         * modules/isblank: Add a module indicator, for lib/dfa.c.
7934         dfa: do not assume 64-bit int
7935         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7936         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7937         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7938         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7939         Fall back to 32-bit words.
7940         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7941         of 4 64-bit args.  All uses changed.
7943 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7945         regex: remove limits-h dependency
7946         * modules/regex (Depends-on): Remove limits-h, since the
7947         code no longer depends on ULONG_WIDTH already being defined.
7949         regex: port to non-GCC pre-IEC-60559
7950         Problem reported by Arnold Robbins in:
7951         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7952         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7954 2020-01-25  Bruno Haible  <bruno@clisp.org>
7956         c32isxdigit: Add tests.
7957         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7958         * tests/test-c32isxdigit.sh: New file.
7959         * modules/c32isxdigit-tests: New file.
7961         c32isxdigit: New module.
7962         * lib/c32isxdigit.c: New file.
7963         * modules/c32isxdigit: New file.
7964         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7966 2020-01-25  Bruno Haible  <bruno@clisp.org>
7968         c32isupper: Add tests.
7969         * tests/test-c32isupper.c: New file.
7970         * tests/test-c32isupper.sh: New file.
7971         * modules/c32isupper-tests: New file.
7973         c32isupper: New module.
7974         * lib/c32isupper.c: New file.
7975         * modules/c32isupper: New file.
7976         * doc/posix-functions/iswupper.texi: Mention the new module.
7978 2020-01-25  Bruno Haible  <bruno@clisp.org>
7980         c32isspace: Add tests.
7981         * tests/test-c32isspace.c: New file.
7982         * tests/test-c32isspace.sh: New file.
7983         * modules/c32isspace-tests: New file.
7985         c32isspace: New module.
7986         * lib/c32isspace.c: New file.
7987         * modules/c32isspace: New file.
7988         * doc/posix-functions/iswspace.texi: Mention the new module.
7990 2020-01-25  Bruno Haible  <bruno@clisp.org>
7992         c32ispunct: Add tests.
7993         * tests/test-c32ispunct.c: New file.
7994         * tests/test-c32ispunct.sh: New file.
7995         * modules/c32ispunct-tests: New file.
7997         c32ispunct: New module.
7998         * lib/c32ispunct.c: New file.
7999         * modules/c32ispunct: New file.
8000         * doc/posix-functions/iswpunct.texi: Mention the new module.
8002 2020-01-25  Bruno Haible  <bruno@clisp.org>
8004         c32isprint: Add tests.
8005         * tests/test-c32isprint.c: New file.
8006         * tests/test-c32isprint.sh: New file.
8007         * modules/c32isprint-tests: New file.
8009         c32isprint: New module.
8010         * lib/c32isprint.c: New file.
8011         * modules/c32isprint: New file.
8012         * doc/posix-functions/iswprint.texi: Mention the new module.
8014 2020-01-25  Bruno Haible  <bruno@clisp.org>
8016         c32islower: Add tests.
8017         * tests/test-c32islower.c: New file.
8018         * tests/test-c32islower.sh: New file.
8019         * modules/c32islower-tests: New file.
8021         c32islower: New module.
8022         * lib/c32islower.c: New file.
8023         * modules/c32islower: New file.
8024         * doc/posix-functions/iswlower.texi: Mention the new module.
8026 2020-01-25  Bruno Haible  <bruno@clisp.org>
8028         c32isgraph: Add tests.
8029         * tests/test-c32isgraph.c: New file.
8030         * tests/test-c32isgraph.sh: New file.
8031         * modules/c32isgraph-tests: New file.
8033         c32isgraph: New module.
8034         * lib/c32isgraph.c: New file.
8035         * modules/c32isgraph: New file.
8036         * doc/posix-functions/iswgraph.texi: Mention the new module.
8038 2020-01-25  Bruno Haible  <bruno@clisp.org>
8040         c32isdigit: Add tests.
8041         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
8042         * tests/test-c32isdigit.sh: New file.
8043         * modules/c32isdigit-tests: New file.
8045         c32isdigit: New module.
8046         * lib/c32isdigit.c: New file.
8047         * modules/c32isdigit: New file.
8048         * doc/posix-functions/iswdigit.texi: Mention the new module.
8050 2020-01-25  Bruno Haible  <bruno@clisp.org>
8052         c32iscntrl: Add tests.
8053         * tests/test-c32iscntrl.c: New file.
8054         * tests/test-c32iscntrl.sh: New file.
8055         * modules/c32iscntrl-tests: New file.
8057         c32iscntrl: New module.
8058         * lib/c32iscntrl.c: New file.
8059         * modules/c32iscntrl: New file.
8060         * doc/posix-functions/iswcntrl.texi: Mention the new module.
8062 2020-01-25  Bruno Haible  <bruno@clisp.org>
8064         c32isblank: Add tests.
8065         * tests/test-c32isblank.c: New file.
8066         * tests/test-c32isblank.sh: New file.
8067         * modules/c32isblank-tests: New file.
8069         c32isblank: New module.
8070         * lib/c32isblank.c: New file.
8071         * modules/c32isblank: New file.
8072         * doc/posix-functions/iswblank.texi: Mention the new module.
8074 2020-01-25  Bruno Haible  <bruno@clisp.org>
8076         c32isalpha: Add tests.
8077         * tests/test-c32isalpha.c: New file.
8078         * tests/test-c32isalpha.sh: New file.
8079         * modules/c32isalpha-tests: New file.
8081         c32isalpha: New module.
8082         * lib/c32isalpha.c: New file.
8083         * modules/c32isalpha: New file.
8084         * doc/posix-functions/iswalpha.texi: Mention the new module.
8086 2020-01-25  Bruno Haible  <bruno@clisp.org>
8088         c32isalnum: Add tests.
8089         * tests/test-c32isalnum.c: New file.
8090         * tests/test-c32isalnum.sh: New file.
8091         * modules/c32isalnum-tests: New file.
8093         c32isalnum: New module.
8094         * lib/c32isalnum.c: New file.
8095         * lib/c32is-impl.h: New file.
8096         * modules/c32isalnum: New file.
8097         * doc/posix-functions/iswalnum.texi: Mention the new module.
8099 2020-01-25  Bruno Haible  <bruno@clisp.org>
8101         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
8102         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
8103         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
8104         c32isupper, c32isxdigit): New declarations.
8105         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
8106         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8107         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8108         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8109         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8110         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
8111         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
8112         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
8113         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
8114         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
8115         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
8116         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
8117         c32ispunct, c32isspace, c32isupper, c32isxdigit.
8119 2020-01-25  Bruno Haible  <bruno@clisp.org>
8121         mbchar, wctype: Use the corrected iswxdigit function.
8122         * modules/mbchar (Depends-on): Add iswxdigit.
8123         * modules/wctype (Depends-on): Likewise.
8125         iswxdigit: Add tests.
8126         * tests/test-iswxdigit.c: New file.
8127         * tests/test-iswxdigit.sh: New file.
8128         * modules/iswxdigit-tests: New file.
8130         iswxdigit: New module.
8131         * m4/iswxdigit.m4: New file.
8132         * lib/wctype.in.h (iswxdigit): Potentially override.
8133         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
8134         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
8135         * lib/iswxdigit.c: New file.
8136         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
8137         REPLACE_ISWXDIGIT.
8138         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
8139         REPLACE_ISWXDIGIT.
8140         * modules/iswxdigit: New file.
8141         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
8143 2020-01-25  Bruno Haible  <bruno@clisp.org>
8145         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
8146         Reported by John Donoghue <john.david.donoghue@gmail.com> in
8147         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
8148         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
8149         off_t on mingw, invoke _lseeki64 instead of lseek.
8151 2020-01-25  Bruno Haible  <bruno@clisp.org>
8153         iswdigit tests: Avoid test failure on Cygwin.
8154         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
8155         byte sequence, return 0.
8157         iswdigit: Fix test failure on native Windows.
8158         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
8160         mbchar, wctype: Use the corrected iswdigit function.
8161         * modules/mbchar (Depends-on): Add iswdigit.
8162         * modules/wctype (Depends-on): Likewise.
8164         iswdigit: Add tests.
8165         * tests/test-iswdigit.c: New file.
8166         * tests/test-iswdigit.sh: New file.
8167         * modules/iswdigit-tests: New file.
8169         iswdigit: New module.
8170         * m4/iswdigit.m4: New file.
8171         * lib/wctype.in.h (iswdigit): Potentially override.
8172         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
8173         * lib/iswdigit.c: New file.
8174         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
8175         REPLACE_ISWDIGIT.
8176         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
8177         REPLACE_ISWDIGIT.
8178         * modules/iswdigit: New file.
8179         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
8181 2020-01-25  Bruno Haible  <bruno@clisp.org>
8183         hard-locale tests: Make it easy to reuse the musl test.
8184         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
8185         * modules/hard-locale-tests (Files): Add it.
8186         (configure.ac): Invoke gl_MUSL_LIBC.
8188 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8190         regex: port to Gawk on nonstandard platforms
8191         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
8192         This is useful for Gawk, which does not use the Gnulib stdlib-h
8193         module.  Problem reported by Arnold Robbins in:
8194         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
8196 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8198         regex: fix bug with >=16 subexpressions
8199         * lib/regex_internal.h (struct re_backref_cache_entry):
8200         Use bitset_word_t as the type of eps_reachable_subexps_map,
8201         instead of unsigned short int.  This fixes a bug I introduced
8202         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
8203         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
8204         Remove unused member 'unused'.
8206         regex: simplify definition of BITSET_WORD_BITS
8207         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
8208         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
8209         * lib/regex_internal.h (BITSET_WORD_BITS):
8210         * modules/regex (Depends-on): Add limits-h.
8211         Simplify now that we can use ULONG_WIDTH.
8213 2020-01-20  Bruno Haible  <bruno@clisp.org>
8215         mbrtoc32: Add note about FreeBSD 12.
8216         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
8217         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
8218         affected.
8220 2020-01-20  Bruno Haible  <bruno@clisp.org>
8222         unistr/u8-uctomb: Fix warning.
8223         Reported by Andreas Schwab <schwab@suse.de> in
8224         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
8225         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
8226         (u8_uctomb): Add FALLTHROUGH markers.
8228 2020-01-20  Bruno Haible  <bruno@clisp.org>
8230         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
8231         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
8232         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
8233         (glthread_once): Use it.
8235 2020-01-19  Bruno Haible  <bruno@clisp.org>
8237         threadlib: Disable use of weak symbols on FreeBSD 11.
8238         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8239         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
8240         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
8241         against a bug in FreeBSD 11.
8243 2020-01-19  Bruno Haible  <bruno@clisp.org>
8245         iconv_open: Improve z/OS support.
8246         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
8247         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
8248         Remove mapping for EUC-TW.
8250 2020-01-18  Bruno Haible  <bruno@clisp.org>
8252         Rename ~~gnulib.m4 to zzgnulib.m4.
8253         Suggested by Paul Eggert.
8254         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8255         * gnulib-tool (func_get_filelist): Update.
8256         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8258 2020-01-18  Bruno Haible  <bruno@clisp.org>
8260         doc: Update license notices.
8261         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8262         reference to a section or to a "file as part of this distribution".
8264 2020-01-18  Bruno Haible  <bruno@clisp.org>
8266         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8268         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8269         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8270         AC_EGREP_CPP.
8272 2020-01-18  Bruno Haible  <bruno@clisp.org>
8274         Ensure Automake does not drop ~~gnulib.m4.
8275         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8276         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8278 2020-01-18  Bruno Haible  <bruno@clisp.org>
8280         Fix major regression from 2020-01-10.
8281         Reported by Paul Eggert in
8282         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8283         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8284         Don't AC_REQUIRE anything.
8285         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8286         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8287         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8288         use ac_compile instead.
8289         (AC_CHECK_DECL): Remove override.
8290         * m4/~~gnulib.m4: New file.
8291         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8292         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8294 2020-01-17  Bruno Haible  <bruno@clisp.org>
8295             Paul Eggert  <eggert@cs.ucla.edu>
8297         glob: Fix use-after-free bug.
8298         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8299         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8300         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8301         end_name.
8303 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8305         vcs-to-changelog: Fix parsing of fndecl without args.
8306         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8307         for empty arguments.
8309 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8311         vcs-to-changelog: Add documentation.
8312         * doc/vcs-to-changelog.texi: New file.
8313         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8314         section.
8316 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8318         vcs-to-changelog: Allow loading of custom quirks file.
8319         * build-aux/vcs_to_changelog.py: New commandline option -q.
8321 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8323         vcs-to-changelog: Fix formatting of ChangeLog output.
8324         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8325         output.
8327 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8329         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8330         Reported in
8331         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8332         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8334 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8336         crypto/gc-pbkdf2: New module.
8337         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8338         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8339         * lib/gc-pbkdf2.c: New file.
8340         * lib/gc-pbkdf2-sha1.c: Use new interface.
8341         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8342         * modules/crypto/gc-pbkdf2: New file.
8343         * modules/crypto/gc-pbkdf2-tests: New file.
8344         * tests/test-gc-pbkdf2.c: New file.
8346 2020-01-12  Bruno Haible  <bruno@clisp.org>
8348         c32stombs: Add tests.
8349         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8350         * tests/test-c32stombs-1.sh: New file, based on
8351         tests/test-c32srtombs-1.sh.
8352         * tests/test-c32stombs-2.sh: New file, based on
8353         tests/test-c32srtombs-2.sh.
8354         * tests/test-c32stombs-3.sh: New file, based on
8355         tests/test-c32srtombs-3.sh.
8356         * tests/test-c32stombs-4.sh: New file, based on
8357         tests/test-c32srtombs-4.sh.
8358         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8360         c32stombs: New module.
8361         * lib/uchar.in.h (c32stombs): New declaration.
8362         * lib/c32stombs.c: New file.
8363         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8364         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8365         * modules/c32stombs: New file.
8366         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8367         * doc/posix-functions/wcstombs.texi: Mention the new module.
8369 2020-01-11  Jim Meyering  <meyering@fb.com>
8371         perl: require the "warnings" module
8372         * m4/perl.m4: Also "use warnings", so we reject the perl found
8373         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8374         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8376 2020-01-10  Bruno Haible  <bruno@clisp.org>
8378         Fix major regression from 2020-01-04.
8379         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8380         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8381         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8382         AC_DEFUN_ONCE.
8383         (AC_CHECK_DECL): Invoke, not require, it.
8385 2020-01-10  Bruno Haible  <bruno@clisp.org>
8387         c32snrtombs: Add tests.
8388         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8389         * tests/test-c32snrtombs-1.sh: New file, based on
8390         tests/test-wcsnrtombs1.sh.
8391         * tests/test-c32snrtombs-2.sh: New file, based on
8392         tests/test-wcsnrtombs2.sh.
8393         * tests/test-c32snrtombs-3.sh: New file, based on
8394         tests/test-wcsnrtombs3.sh.
8395         * tests/test-c32snrtombs-4.sh: New file, based on
8396         tests/test-wcsnrtombs4.sh.
8397         * modules/c32snrtombs-tests: New file, based on
8398         modules/wcsnrtombs-tests.
8400         c32snrtombs: New module.
8401         * lib/uchar.in.h (c32snrtombs): New declaration.
8402         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8403         INTERNAL_STATE, WCRTOMB.
8404         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8405         * lib/c32snrtombs.c: New file.
8406         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8407         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8408         * modules/c32snrtombs: New file.
8409         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8410         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8412 2020-01-09  Bruno Haible  <bruno@clisp.org>
8414         c32srtombs: Add tests.
8415         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8416         * tests/test-c32srtombs-1.sh: New file, based on
8417         tests/test-wcsrtombs1.sh.
8418         * tests/test-c32srtombs-2.sh: New file, based on
8419         tests/test-wcsrtombs2.sh.
8420         * tests/test-c32srtombs-3.sh: New file, based on
8421         tests/test-wcsrtombs3.sh.
8422         * tests/test-c32srtombs-4.sh: New file, based on
8423         tests/test-wcsrtombs4.sh.
8424         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8426         c32srtombs: New module.
8427         * lib/uchar.in.h (c32srtombs): New declaration.
8428         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8429         INTERNAL_STATE, WCRTOMB.
8430         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8431         * lib/c32srtombs.c: New file.
8432         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8433         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8434         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8435         * modules/c32srtombs: New file.
8436         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8437         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8439 2020-01-08  Bruno Haible  <bruno@clisp.org>
8441         c32tob: Make consistent with mbrtoc32.
8442         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8443         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8444         use c32rtomb, not wctob.
8445         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8446         (Depends-on): Add c32rtomb.
8447         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8449 2020-01-08  Bruno Haible  <bruno@clisp.org>
8451         c32rtomb: Add tests.
8452         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8453         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8454         * tests/test-c32rtomb-w32.c: New file, based on
8455         tests/test-wcrtomb-w32.c.
8456         * tests/test-c32rtomb-w32-1.sh: New file, based on
8457         tests/test-wcrtomb-w32-1.sh.
8458         * tests/test-c32rtomb-w32-2.sh: New file, based on
8459         tests/test-wcrtomb-w32-2.sh.
8460         * tests/test-c32rtomb-w32-3.sh: New file, based on
8461         tests/test-wcrtomb-w32-3.sh.
8462         * tests/test-c32rtomb-w32-4.sh: New file, based on
8463         tests/test-wcrtomb-w32-4.sh.
8464         * tests/test-c32rtomb-w32-5.sh: New file, based on
8465         tests/test-wcrtomb-w32-5.sh.
8466         * tests/test-c32rtomb-w32-6.sh: New file, based on
8467         tests/test-wcrtomb-w32-6.sh.
8468         * tests/test-c32rtomb-w32-7.sh: New file, based on
8469         tests/test-wcrtomb-w32-7.sh.
8470         * modules/c32rtomb-tests: New file.
8472         c32rtomb: New module.
8473         * lib/uchar.in.h (c32rtomb): New declaration.
8474         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8475         * m4/c32rtomb.m4: New file.
8476         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8477         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8478         REPLACE_C32RTOMB.
8479         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8480         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8481         * modules/c32rtomb: New file.
8482         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8483         * doc/posix-functions/c32rtomb.texi: Document the new module.
8484         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8486 2020-01-08  Bruno Haible  <bruno@clisp.org>
8488         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8489         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8490         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8491         but is not working.
8492         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8493         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8494         differ, use the system's mbrtoc32, adding workarounds.
8495         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8496         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8497         Windows problem.
8498         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8499         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8500         use mbrtoc32, not btowc.
8501         * modules/btoc32 (Depends-on): Add mbrtoc32.
8502         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8503         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8504         * modules/mbsrtoc32s (Depends-on): Update conditions.
8505         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8506         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8507         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8508         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8509         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8511 2020-01-07  Bruno Haible  <bruno@clisp.org>
8513         wcrtomb: Make multithread-safe, except possibly on IRIX.
8514         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8515         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8516         WCRTOMB_RETVAL_BUG.
8517         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8518         wctomb only on IRIX.
8520 2020-01-05  Jim Meyering  <meyering@fb.com>
8522         tests: skip thread-using tests when threading is disabled
8523         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8524         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8525         of those, so they are skipped in this case.
8526         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8527         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8528         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8530 2020-01-05  Bruno Haible  <bruno@clisp.org>
8532         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8533         Reported by Jim Meyering in
8534         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8535         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8536         (GNULIB_defined_ptsname_r): New macro.
8537         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8538         (main): Disable the NULL argument test if canonicalize_file_name does
8539         not come from gnulib.
8540         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8541         (main): Disable the NULL argument test if canonicalize_file_name does
8542         not come from gnulib.
8543         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8544         (test_errors): Disable the NULL argument test if ptsname_r does not come
8545         from gnulib.
8547 2020-01-04  Jim Meyering  <meyering@fb.com>
8549         update-copyright: reenable its always-skipped test
8550         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8551         on 2019-06-15. Without those, an internal preliminary test would
8552         fail, causing this test always to be skipped.
8553         Verify that the test is now run and passes via this:
8554           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8556 2020-01-05  Bruno Haible  <bruno@clisp.org>
8558         mbstoc32s: Add tests.
8559         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8560         * tests/test-mbstoc32s-1.sh: New file, based on
8561         tests/test-mbsrtoc32s-1.sh.
8562         * tests/test-mbstoc32s-2.sh: New file, based on
8563         tests/test-mbsrtoc32s-2.sh.
8564         * tests/test-mbstoc32s-3.sh: New file, based on
8565         tests/test-mbsrtoc32s-3.sh.
8566         * tests/test-mbstoc32s-4.sh: New file, based on
8567         tests/test-mbsrtoc32s-4.sh.
8568         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8570         mbstoc32s: New module.
8571         * lib/uchar.in.h (mbstoc32s): New declaration.
8572         * lib/mbstoc32s.c: New file.
8573         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8574         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8575         * modules/mbstoc32s: New file.
8576         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8577         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8579 2020-01-05  Bruno Haible  <bruno@clisp.org>
8581         Tweak recently added tests.
8582         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8583         * tests/test-mbsrtoc32s.c: Likewise.
8584         * tests/test-mbsnrtoc32s.c: Likewise.
8586 2020-01-04  Bruno Haible  <bruno@clisp.org>
8588         mbsnrtoc32s: Add tests.
8589         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8590         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8591         tests/test-mbsnrtowcs1.sh.
8592         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8593         tests/test-mbsnrtowcs2.sh.
8594         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8595         tests/test-mbsnrtowcs3.sh.
8596         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8597         tests/test-mbsnrtowcs4.sh.
8598         * modules/mbsnrtoc32s-tests: New file, based on
8599         modules/mbsnrtowcs-tests.
8601         mbsnrtoc32s: New module.
8602         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8603         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8604         INTERNAL_STATE, MBRTOWC.
8605         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8606         * lib/mbsnrtoc32s.c: New file.
8607         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8608         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8609         * modules/mbsnrtoc32s: New file.
8610         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8611         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8613 2020-01-04  Bruno Haible  <bruno@clisp.org>
8615         mbsrtoc32s tests: Enhance test.
8616         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8617         test strings for UTF-8 and GB18030.
8619 2020-01-04  Bruno Haible  <bruno@clisp.org>
8621         mbsrtoc32s: Fix bug.
8622         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8623         that SMALL_WCHAR_T is defined.
8625 2020-01-04  Bruno Haible  <bruno@clisp.org>
8627         mbsrtoc32s: Add tests.
8628         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8629         * tests/test-mbsrtoc32s-1.sh: New file, based on
8630         tests/test-mbsrtowcs1.sh.
8631         * tests/test-mbsrtoc32s-2.sh: New file, based on
8632         tests/test-mbsrtowcs2.sh.
8633         * tests/test-mbsrtoc32s-3.sh: New file, based on
8634         tests/test-mbsrtowcs3.sh.
8635         * tests/test-mbsrtoc32s-4.sh: New file, based on
8636         tests/test-mbsrtowcs4.sh.
8637         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8639         mbsrtoc32s: New module.
8640         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8641         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8642         INTERNAL_STATE, MBRTOWC.
8643         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8644         * lib/mbsrtoc32s.c: New file.
8645         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8646         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8647         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8648         * modules/mbsrtoc32s: New file.
8649         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8650         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8652 2020-01-04  Bruno Haible  <bruno@clisp.org>
8654         mbrtowc, mbrtoc32: Tighten dependendies.
8655         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8656         REPLACE_MBSTATE_T is 1.
8657         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8658         REPLACE_MBSTATE_T is 0.
8659         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8660         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8661         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8662         REPLACE_MBSTATE_T is 0.
8664 2020-01-04  Bruno Haible  <bruno@clisp.org>
8666         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8667         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8668         * modules/uchar (Files): Add stdint.m4.
8669         (Makefile.am): Substitute SMALL_WCHAR_T.
8670         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8672 2020-01-04  Bruno Haible  <bruno@clisp.org>
8674         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8675         Reported by Martin Storsjö <martin@martin.st> in
8676         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8677         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8678         New macros.
8679         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8681 2020-01-04  Bruno Haible  <bruno@clisp.org>
8683         btoc32: Add tests.
8684         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8685         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8686         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8687         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8689         btoc32: New module.
8690         * lib/uchar.in.h (btoc32): New declaration.
8691         * lib/btoc32.c: New file.
8692         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8693         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8694         * modules/btoc32: New file.
8695         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8696         * doc/posix-functions/btowc.texi: Mention the new module.
8698 2020-01-03  Bruno Haible  <bruno@clisp.org>
8700         uchar tests: Avoid compilation error with HP cc.
8701         * tests/test-uchar.c: Disable a test when HP cc is in use.
8703 2020-01-03  Bruno Haible  <bruno@clisp.org>
8705         mbrtoc32: Add tests.
8706         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8707         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8708         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8709         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8710         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8711         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8712         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8713         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8714         tests/test-mbrtowc-w32-1.sh.
8715         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8716         tests/test-mbrtowc-w32-2.sh.
8717         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8718         tests/test-mbrtowc-w32-3.sh.
8719         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8720         tests/test-mbrtowc-w32-4.sh.
8721         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8722         tests/test-mbrtowc-w32-5.sh.
8723         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8724         tests/test-mbrtowc-w32-6.sh.
8725         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8726         tests/test-mbrtowc-w32-7.sh.
8727         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8729         mbrtoc32: New module.
8730         * lib/uchar.in.h (mbrtoc32): New declaration.
8731         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8732         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8733         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8734         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8735         REPLACE_MBRTOC32.
8736         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8737         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8738         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8739         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8740         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8741         $(LIB_MBRTOWC).
8742         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8743         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8745 2020-01-03  Bruno Haible  <bruno@clisp.org>
8747         mbrtowc: Refactor to share code with mbrtoc32.
8748         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8749         * lib/mbrtowc-impl-utf8.h: Likewise.
8750         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8751         mbrtowc-impl.h.
8752         * modules/mbrtowc (Files): Add the new files.
8754 2020-01-03  Jim Meyering  <meyering@fb.com>
8756         doc: fix time.texi wording
8757         * doc/posix-headers/time.texi (time.h): Typo.
8759 2020-01-03  Bruno Haible  <bruno@clisp.org>
8761         mbrtowc: Refactor locale charset dispatching.
8762         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8763         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8764         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8765         localcharset.h, streq.h.
8766         (enc_t): Remove type.
8767         (locale_enc): Remove function.
8768         (cached_locale_enc): Remove variable.
8769         (locale_enc_cached): Remove function.
8770         (mbrtowc): Invoke locale_encoding_classification.
8771         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8772         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8773         lc-charset-dispatch.c.
8774         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8776 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8778         doc: mention 32-bit time_t issue
8779         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8780         * doc/posix-headers/time.texi (time.h): Mention 2038.
8782 2020-01-03  Bruno Haible  <bruno@clisp.org>
8784         mbrtowc: Ensure the mbtowc_lock is unique.
8785         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8786         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8787         lib/setlocale_null.c.
8788         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8789         glthread/lock.h. Include mbtowc-lock.h.
8790         (mbtowc_lock): Remove declaration.
8791         (mbrtowc): Use mbtowc_with_lock.
8792         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8793         threads.h. Set LIB_MBRTOWC.
8794         (gl_PREREQ_MBTOWC_LOCK): New macro.
8795         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8796         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8797         (Depends-on): Remove lock.
8798         (configure.ac): Arrange to compile mbtowc-lock.c.
8799         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8800         * modules/acl (Link): Likewise.
8801         * modules/argmatch (Link): Likewise.
8802         * modules/backup-rename (Link): Likewise.
8803         * modules/backupfile (Link): Likewise.
8804         * modules/closein (Link): Likewise.
8805         * modules/closeout (Link): Likewise.
8806         * modules/copy-file (Link): Likewise.
8807         * modules/csharpcomp (Link): Likewise.
8808         * modules/csharpexec (Link): Likewise.
8809         * modules/dfa (Link): Likewise.
8810         * modules/exclude (Link): Likewise.
8811         * modules/fnmatch (Link): Likewise.
8812         * modules/fnmatch-gnu (Link): Likewise.
8813         * modules/fnmatch-posix (Link): Likewise.
8814         * modules/glob (Link): Likewise.
8815         * modules/human (Link): Likewise.
8816         * modules/javacomp (Link): Likewise.
8817         * modules/javaexec (Link): Likewise.
8818         * modules/javaversion (Link): Likewise.
8819         * modules/mbfile (Link): Likewise.
8820         * modules/mbiter (Link): Likewise.
8821         * modules/mbmemcasecmp (Link): Likewise.
8822         * modules/mbmemcasecoll (Link): Likewise.
8823         * modules/mbrlen (Link): Likewise.
8824         * modules/mbscasecmp (Link): Likewise.
8825         * modules/mbscasestr (Link): Likewise.
8826         * modules/mbschr (Link): Likewise.
8827         * modules/mbscspn (Link): Likewise.
8828         * modules/mbsinit (Link): Likewise.
8829         * modules/mbslen (Link): Likewise.
8830         * modules/mbsncasecmp (Link): Likewise.
8831         * modules/mbsnlen (Link): Likewise.
8832         * modules/mbsnrtowcs (Link): Likewise.
8833         * modules/mbspbrk (Link): Likewise.
8834         * modules/mbspcasecmp (Link): Likewise.
8835         * modules/mbsrchr (Link): Likewise.
8836         * modules/mbsrtowcs (Link): Likewise.
8837         * modules/mbssep (Link): Likewise.
8838         * modules/mbsspn (Link): Likewise.
8839         * modules/mbsstr (Link): Likewise.
8840         * modules/mbstok_r (Link): Likewise.
8841         * modules/mbswidth (Link): Likewise.
8842         * modules/mbuiter (Link): Likewise.
8843         * modules/mkdir-p (Link): Likewise.
8844         * modules/propername (Link): Likewise.
8845         * modules/quote (Link): Likewise.
8846         * modules/quotearg (Link): Likewise.
8847         * modules/quotearg-simple (Link): Likewise.
8848         * modules/regex-quote (Link): Likewise.
8849         * modules/rpmatch (Link): Likewise.
8850         * modules/sh-quote (Link): Likewise.
8851         * modules/system-quote (Link): Likewise.
8852         * modules/trim (Link): Likewise.
8853         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8854         * modules/unistdio/ulc-fprintf (Link): Likewise.
8855         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8856         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8857         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8858         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8859         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8860         * modules/xfreopen (Link): Likewise.
8861         * modules/xmemcoll (Link): Likewise.
8862         * modules/yesno (Link): Likewise.
8863         * modules/regex (Link): Add $(LIB_MBRTOWC).
8864         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8865         instead of $(LIBTHREAD).
8866         * modules/argmatch-tests (Makefile.am): Likewise.
8867         * modules/closein-tests (Makefile.am): Likewise.
8868         * modules/copy-file-tests (Makefile.am): Likewise.
8869         * modules/dfa-tests (Makefile.am): Likewise.
8870         * modules/fnmatch-tests (Makefile.am): Likewise.
8871         * modules/glob-tests (Makefile.am): Likewise.
8872         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8873         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8874         * modules/mbrtowc-tests (Makefile.am): Likewise.
8875         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8876         * modules/mbscasestr-tests (Makefile.am): Likewise.
8877         * modules/mbschr-tests (Makefile.am): Likewise.
8878         * modules/mbscspn-tests (Makefile.am): Likewise.
8879         * modules/mbsinit-tests (Makefile.am): Likewise.
8880         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8881         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8882         * modules/mbspbrk-tests (Makefile.am): Likewise.
8883         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8884         * modules/mbsrchr-tests (Makefile.am): Likewise.
8885         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8886         * modules/mbsspn-tests (Makefile.am): Likewise.
8887         * modules/mbsstr-tests (Makefile.am): Likewise.
8888         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8889         * modules/quotearg-tests (Makefile.am): Likewise.
8890         * modules/readtokens-tests (Makefile.am): Likewise.
8891         * modules/sh-quote-tests (Makefile.am): Likewise.
8892         * modules/system-quote-tests (Makefile.am): Likewise.
8893         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8894         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8895         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8896         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8897         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8898         * modules/yesno-tests (Makefile.am): Likewise.
8899         * modules/exclude-tests (Makefile.am): Link the programs with
8900         $(LIB_MBRTOWC).
8901         * modules/regex-tests (Makefile.am): Likewise.
8902         * modules/regex-quote-tests (Makefile.am): Likewise.
8904 2020-01-03  Bruno Haible  <bruno@clisp.org>
8906         getopt-posix: Fix compilation failure in testdirs.
8907         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8908         when the gnulib module 'getopt-posix' is enabled.
8909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8910         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8911         module indicator.
8912         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8914 2020-01-03  Bruno Haible  <bruno@clisp.org>
8916         doc: Mention the 64-bit inode number problem.
8917         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8918         64-bit inode number problem.
8919         * doc/posix-functions/stat.texi: Mention that this module fixes the
8920         64-bit inode number problem.
8921         * doc/posix-functions/lstat.texi: Likewise.
8922         * doc/posix-functions/fstat.texi: Likewise.
8923         * doc/posix-functions/readdir.texi: Add more details.
8924         * doc/posix-functions/readdir_r.texi: Likewise.
8926 2020-01-02  Bruno Haible  <bruno@clisp.org>
8928         wcrtomb: Add more tests.
8929         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8930         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8931         locale_charset() returns the expected value; otherwise, skip the test.
8932         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8933         * tests/test-wcrtomb-w32-7.sh: Likewise.
8934         * modules/wcrtomb-tests (Files): Add these files.
8935         (Depends-on): Add localcharset.
8936         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8938 2020-01-02  Bruno Haible  <bruno@clisp.org>
8940         mbrtowc: Add more tests.
8941         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8942         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8943         locale_charset() returns the expected value; otherwise, skip the test.
8944         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8945         * tests/test-mbrtowc-w32-7.sh: Likewise.
8946         * modules/mbrtowc-tests (Files): Add these files.
8947         (Depends-on): Add localcharset.
8948         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8950 2020-01-02  Bruno Haible  <bruno@clisp.org>
8952         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8953         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8954         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8955         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8956         MBRTOWC_STORES_INCOMPLETE_BUG.
8957         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8959 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8961         doc: mention glibc bug 24269
8962         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8963         Reformat slightly so that it looks nicer in the Grep manual.
8965 2020-01-02  Bruno Haible  <bruno@clisp.org>
8967         mbrtowc: Don't replace mbstate_t on MSVC.
8968         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8969         a missing mbsinit function on native Windows.
8970         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8971         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8972         MSVC bug.
8973         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8975 2020-01-02  Bruno Haible  <bruno@clisp.org>
8977         setlocale-null: Avoid crashing the MSVC linker.
8978         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8979         MSVC.
8981 2020-01-02  Bruno Haible  <bruno@clisp.org>
8983         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8984         * modules/wchar (Depends-on): Add inttypes-incomplete.
8985         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8986         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8987         of strtoimax.
8989 2020-01-02  Bruno Haible  <bruno@clisp.org>
8991         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8992         * lib/mbrtowc.c: Include <stdint.h>.
8993         * modules/mbrtowc (Depends-on): Add stdint.
8995 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8997         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8998         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8999         which will auto enable use of openssl, only for >= version 3,
9000         which is newly licensed under the Apache Software License.
9002 2020-01-01  Bruno Haible  <bruno@clisp.org>
9004         mbrtowc: Include function name in macro names.
9005         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
9006         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
9007         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
9008         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
9009         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
9010         C_LOCALE_MAYBE_EILSEQ.
9012 2020-01-01  Bruno Haible  <bruno@clisp.org>
9014         c32tob: New module.
9015         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
9016         (c32tob): New declaration.
9017         * lib/c32tob.c: New file.
9018         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
9019         macros.
9020         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
9021         * modules/uchar (Depends-on): Add snippet/c++defs.
9022         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
9023         uchar.h.
9024         * modules/c32tob: New file.
9025         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
9026         defined.
9027         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
9028         c32tob.
9029         * modules/uchar-c++-tests (Files): Add tests/signature.h.
9030         * doc/posix-functions/wctob.texi: Mention the new module.
9032 2020-01-01  Bruno Haible  <bruno@clisp.org>
9034         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
9035         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
9036         $(LIB_SETLOCALE).
9038 2020-01-01  Bruno Haible  <bruno@clisp.org>
9040         hard-locale tests: Fix a conflict with the C++ tests.
9041         * modules/hard-locale-tests (Makefile.am): Build a program named
9042         'current-locale', not 'locale'.
9044 2020-01-01  Bruno Haible  <bruno@clisp.org>
9046         doc: Update documentation about wchar_t.
9047         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
9048         wchar_t type.
9050 2020-01-01  Bruno Haible  <bruno@clisp.org>
9052         mbrtowc tests: Fix typos.
9053         * tests/test-mbrtowc.c (main): Fix typo.
9054         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
9056 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9058         maint: update copyright notices
9059         Before doing the following changes done by hand, I also ran ‘make
9060         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
9061         to do most of the copyright years automatically.  A few upstream
9062         sources are still in 2019 but these should eventually be changed
9063         automatically too.
9064         * build-aux/declared.sh (func_version):
9065         * build-aux/libtool-next-version (func_version):
9066         * build-aux/run-test (func_version):
9067         Update these notices by hand.  Put just the last year
9068         in output of programs, as per GNU coding standards.
9070 2019-12-31  Bruno Haible  <bruno@clisp.org>
9072         uchar: Add C++ tests.
9073         * tests/test-uchar-c++.cc: New file.
9074         * tests/test-uchar-c++2.cc: New file.
9075         * modules/uchar-c++-tests: New file.
9077         uchar: Add tests.
9078         * tests/test-uchar.c: New file.
9079         * modules/uchar-tests: New file.
9081         uchar: New module.
9082         * lib/uchar.in.h: New file.
9083         * m4/uchar.m4: New file.
9084         * modules/uchar: New file.
9085         * doc/posix-headers/uchar.texi: Mention the new module.
9087 2019-12-30  Jim Meyering  <meyering@fb.com>
9089         localeinfo: ->simple would be wrong for LC_ALL=C
9090         That would lead to using unnecessary and expensive code paths in dfa.c.
9091         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
9092         error that would have made grep many times slower in the C locale.
9093         With this change, and a file created like this:
9094           yes 00 | head -10000000 > in
9095         Running grep as follows becomes more than 40 times faster:
9096           LC_ALL=C grep -Fw 0 in
9098 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9100         doc: document trouble with back-references
9101         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
9103 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9105         doc: use “back-reference” for \1 etc.
9106         * doc/regex.texi: Consistently spell “back-reference” with
9107         a hyphen, since that’s how POSIX does it.
9109 2019-12-26  Jim Meyering  <meyering@fb.com>
9111         test-framework-sh: tighten an internal grep regexp
9112         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
9113         that helps test for a working printf.
9115 2019-12-26  Bruno Haible  <bruno@clisp.org>
9117         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
9118         Reported by Paul Eggert in
9119         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
9120         Simplification by Jim Meyering.
9121         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
9122         octal escape sequence in a UTF-8 locale.
9124 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
9126         mbrtowc: port better to narrow-wchar_t platforms
9127         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
9128         wchar_t is too narrow to represent all the Unicode characters,
9129         consider a byte sequence for an out-of-wchar_t-range character to
9130         be an encoding error.  This fixes grep’s surrogate-pair test
9131         failure on AIX 7.2.
9133 2019-12-24  Bruno Haible  <bruno@clisp.org>
9135         localcharset: Avoid referencing rpl_setlocale on native Windows.
9136         * lib/localcharset.c (setlocale): Undefine.
9138 2019-12-24  Bruno Haible  <bruno@clisp.org>
9140         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
9141         * m4/semaphore.m4: New file.
9142         * modules/lock-tests (Files): Add it.
9143         (configure.ac): Require gl_SEMAPHORE.
9144         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
9146 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
9148         strptime: fix typo in previous patch
9149         Problem and fix reported by Bruno Haible in:
9150         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
9151         * lib/strptime.c (day_of_the_week): Fix paren bug.
9153 2019-12-24  Bruno Haible  <bruno@clisp.org>
9155         setlocale-null: Make it easy to rely on the lock in another library.
9156         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
9157         defined.
9159 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9161         gethrxtime, mktime, nstrftime, strptime: tweak division performance
9162         Performanced analyzed by Bruno Haible in:
9163         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
9164         * config/srclist.txt: Do not sync mktime.c for now.
9165         * lib/mktime.c (shr, ydhms_diff):
9166         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
9167         * lib/strptime.c (day_of_the_week):
9168         * lib/xtime.h (xtime_sec):
9169         Redo with neither ‘%’ nor conditional branches.
9171 2019-12-23  Bruno Haible  <bruno@clisp.org>
9173         setlocale-null: Export the lock function also on non-Windows platforms.
9174         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
9175         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
9176         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
9177         * modules/setlocale-null (configure.ac): Invoke it.
9178         (Files): Add m4/visibility.m4.
9180 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9182         gethrxtime: fix rounding bug with negative args
9183         Problem reported by Bruno Haible in:
9184         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
9185         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
9186         with negative rounding.  Common platforms can compute / and % with
9187         a single instruction, so the simplified code should be shorter and
9188         faster on these platforms anyway.
9190 2019-12-22  Bruno Haible  <bruno@clisp.org>
9192         gethrxtime: remove incorrect overflow detection
9193         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
9194         integer overflow, as it didn’t suffice.  This reverts the xtime.h
9195         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
9196         cannot now see the need for anyway (even in cases where it works),
9197         as the patch is helpful only when the signs of S and NS disagree,
9198         and all callers pass nonnegative values for S and NS.
9200 2019-12-22  Bruno Haible  <bruno@clisp.org>
9202         setlocale-null: Add standalone include file.
9203         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
9204         * lib/locale.in.h: Include setlocale_null.h.
9205         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
9206         setlocale_null): Remove declarations.
9207         * lib/setlocale_null.c: Include setlocale_null.h.
9208         * lib/localename.c: Likewise.
9209         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
9210         (Depends-on): Add snippet/arg-nonnull.
9211         (Include): Allow either "setlocale_null.h" or <locale.h>.
9213 2019-12-22  Bruno Haible  <bruno@clisp.org>
9215         strfmon_l: Fix test failures on FreeBSD and Cygwin.
9216         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
9217         AC_RUN_IFELSE test.
9218         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
9219         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
9220         problem.
9222 2019-12-22  Bruno Haible  <bruno@clisp.org>
9224         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
9225         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
9226         unconditional AC_LIBOBJ.
9227         * modules/selinux-at: Likewise.
9228         * modules/xmemdup0: Likewise.
9229         * modules/xstrtoll: Likewise.
9231 2019-12-22  Bruno Haible  <bruno@clisp.org>
9233         longlong: Mark module obsolete.
9234         * modules/longlong (Status, Notice): New sections.
9236         stdint: Assume that the compiler supports 'long long'.
9237         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
9238         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9239         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9240         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
9241         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9242         * modules/stdint (Files): Remove longlong.m4.
9243         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
9244         HAVE_UNSIGNED_LONG_LONG_INT.
9246         inttypes-incomplete: Assume that the compiler supports 'long long'.
9247         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9248         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
9249         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9250         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
9251         HAVE_LONG_LONG_INT to be 1.
9252         * modules/inttypes-incomplete (Makefile.am): Don't substitute
9253         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9255         malloca: Assume that the compiler supports 'long long'.
9256         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9257         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9258         * modules/malloca (Files): Remove longlong.m4.
9259         * modules/relocatable-prog-wrapper (Files): Likewise.
9261         atoll: Assume that the compiler supports 'long long'.
9262         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9263         * modules/atoll (Files): Remove longlong.m4.
9265         strtoll: Assume that the compiler supports 'long long'.
9266         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9267         * modules/strtoll (Files): Remove longlong.m4.
9269         strtoull: Assume that the compiler supports 'long long'.
9270         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9271         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9272         * modules/strtoull (Files): Remove longlong.m4.
9274         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9275         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9276         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9277         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9278         AC_TYPE_LONG_LONG_INT.
9279         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9280         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9281         * modules/strtoimax (Files): Remove longlong.m4.
9282         * modules/strtoumax (Files): Likewise.
9284         xstrtoll: Assume that the compiler supports 'long long'.
9285         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9286         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9288         vasnprintf: Assume that the compiler supports 'long long'.
9289         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9290         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9291         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9292         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9293         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9294         require AC_TYPE_LONG_LONG_INT.
9295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9296         gl_PREREQ_VASNPRINTF): Likewise.
9297         * modules/vasnprintf (Files): Remove longlong.m4.
9298         * modules/c-vasnprintf (Files): Likewise.
9299         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9300         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9301         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9302         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9303         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9304         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9305         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9307         gethrxtime: Assume that the compiler supports 'long long'.
9308         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9309         (XTIME_PRECISION): Define to 1000000000 always.
9310         (xtime_make, xtime_sec): Optimize accordingly.
9311         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9312         * modules/gethrxtime (Files): Remove longlong.m4.
9314         integer_length*: Assume that the compiler supports 'long long'.
9315         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9316         * modules/integer_length (Files): Remove longlong.m4.
9317         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9318         * modules/integer_length_l (Files): Remove longlong.m4.
9319         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9320         * modules/integer_length_ll (Files): Remove longlong.m4.
9321         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9323         count-one-bits: Assume that the compiler supports 'long long'.
9324         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9325         * m4/count-one-bits.m4: Remove file.
9326         * modules/count-one-bits (Files): Remove it.
9327         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9328         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9329         unconditionally.
9331         count-trailing-zeros: Assume that the compiler supports 'long long'.
9332         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9333         unconditionally.
9334         * m4/count-trailing-zeros.m4: Remove file.
9335         * modules/count-trailing-zeros (Files): Remove it.
9336         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9337         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9338         unconditionally.
9340         count-leading-zeros: Assume that the compiler supports 'long long'.
9341         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9342         unconditionally.
9343         * m4/count-leading-zeros.m4: Remove file.
9344         * modules/count-leading-zeros (Files): Remove it.
9345         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9346         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9347         unconditionally.
9349 2019-12-22  Bruno Haible  <bruno@clisp.org>
9351         localcharset: Update support for OpenBSD.
9352         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9354 2019-12-21  Bruno Haible  <bruno@clisp.org>
9356         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9357         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9358         NetBSD.
9359         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9361 2019-12-21  Bruno Haible  <bruno@clisp.org>
9363         threadlib: Improve code structure.
9364         * m4/threadlib.m4: Reorder macros. Add comments.
9366 2019-12-21  Bruno Haible  <bruno@clisp.org>
9368         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9369         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9370         here from m4/threads.m4).
9371         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9372         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9373         (gl_STDTHREADLIB): New macro.
9374         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9375         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9377 2019-12-21  Bruno Haible  <bruno@clisp.org>
9379         sched_yield: Don't depend on threadlib and yield.
9380         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9381         LIB_SCHED_YIELD.
9382         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9383         m4/yield.m4).
9384         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9385         gl_THREADLIB and gl_YIELD.
9386         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9387         based on $(LIB_SCHED_YIELD).
9388         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9389         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9390         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9391         (Depends-on): Remove threadlib.
9392         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9393         * modules/threads-h (Files): Remove m4/yield.m4.
9394         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9395         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9396         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9397         * modules/pthread-once-tests (Makefile.am): Likewise.
9398         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9399         * modules/pthread-tss-tests (Makefile.am): Likewise.
9401 2019-12-21  Bruno Haible  <bruno@clisp.org>
9403         threads-h: Don't depend on threadlib.
9404         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9405         not gl_THREADLIB_EARLY.
9407 2019-12-21  Bruno Haible  <bruno@clisp.org>
9409         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9410         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9411         with $(LIB_SETLOCALE).
9413 2019-12-21  Bruno Haible  <bruno@clisp.org>
9415         threadlib: Remove unused dependency (left over from 2019-07-06).
9416         * modules/threadlib (Depends-on): Remove havelib.
9418 2019-12-21  Bruno Haible  <bruno@clisp.org>
9420         New convention for multithread-safety tests.
9421         * tests/test-setlocale_null-mt-one.c: Renamed from
9422         tests/test-setlocale_null-one.c.
9423         * tests/test-setlocale_null-mt-all.c: Renamed from
9424         tests/test-setlocale_null-all.c.
9425         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9427 2019-12-21  Bruno Haible  <bruno@clisp.org>
9429         quotearg tests: Fix conflict with hard-locale tests.
9430         * tests/testlocale: Renamed from tests/locale.
9431         * modules/quotearg-tests (Files): Update.
9432         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9434 2019-12-21  Bruno Haible  <bruno@clisp.org>
9436         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9437         Reported by Daniel Richard G. in
9438         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9439         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9440         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9441         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9442         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9443         alternative to PTHREAD_RWLOCK_INITIALIZER.
9444         * lib/glthread/lock.c: Likewise.
9446 2019-12-21  Bruno Haible  <bruno@clisp.org>
9448         memcmp tests: Work around the clang bug.
9449         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9450         the clang optimization.
9452 2019-12-20  Bruno Haible  <bruno@clisp.org>
9454         localcharset: Add support for z/OS encoding names.
9455         * lib/localcharset.h: Mention which encodings are used as locale
9456         encodings on z/OS.
9458 2019-12-20  Bruno Haible  <bruno@clisp.org>
9460         iconv_open: Add support for z/OS encoding names.
9461         Reported by Daniel Richard G. in
9462         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9463         * lib/iconv_open-zos.gperf: New file.
9464         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9465         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9466         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9467         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9468         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9470 2019-12-20  Bruno Haible  <bruno@clisp.org>
9472         doc: Document the problem of the per-thread locale functions on z/OS.
9473         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9474         * doc/posix-functions/newlocale.texi: Likewise.
9475         * doc/posix-functions/duplocale.texi: Likewise.
9476         * doc/posix-functions/freelocale.texi: Likewise.
9478 2019-12-20  Bruno Haible  <bruno@clisp.org>
9480         localename, gettext: Fix host_os value for z/OS.
9481         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9482         cross-configuration code.
9484 2019-12-19  Jim Meyering  <meyering@fb.com>
9486         nstrftime: avoid a shadowing warning
9487         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9488         to avoid shadowing an "i" declared hundreds of lines above.
9490 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9492         dfa: struct dfamust now uses flexible array
9493         * lib/dfa.c: Include flexmember.h.
9494         (dfamust, dfamustfree): Adjust to struct dfamust change.
9495         This saves a call to malloc+free.
9496         * lib/dfa.h (struct dfamust): Make the final member a
9497         flexible array member.
9498         * modules/dfa (Depends-on): Add flexmember.
9500         dfa: fast->small for array elements
9501         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9502         since this type is used in arrays.  This change is more for
9503         documentation than for any practical effect, since the two types
9504         are the same on all known platforms.
9506 2019-12-19  Bruno Haible  <bruno@clisp.org>
9508         iconv tests: Test canonicalized, not system-dependent, encoding names.
9509         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9510         * modules/iconv-tests (Depends-on): Add iconv_open.
9512 2019-12-18  Bruno Haible  <bruno@clisp.org>
9514         localename: Fix test failure on AIX 7.2.
9515         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9516         locales on AIX.
9517         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9518         locales on AIX.
9520 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9522         Improve port of AC_C_RESTRICT to Oracle C++
9523         Problem reported by Christian Biesinger in:
9524         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9525         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9526         Oracle Developer Studio C++ 12.5 or later.
9528 2019-12-18  Bruno Haible  <bruno@clisp.org>
9530         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9531         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9533 2019-12-18  Bruno Haible  <bruno@clisp.org>
9535         localename: Ensure multithread-safety in future changes.
9536         * lib/localename.c (setlocale): Reference the system's setlocale().
9537         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9538         (gl_locale_name_posix): Likewise.
9539         * modules/localename (Depends-on): Add setlocale-null.
9541 2019-12-18  Bruno Haible  <bruno@clisp.org>
9543         setlocale-null: Make API more useful.
9544         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9545         callers changed.
9546         (setlocale_null): New declaration.
9547         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9548         extracted from setlocale_null_unlocked.
9549         (setlocale_null_unlocked): Invoke it.
9550         (setlocale_null_r): Renamed from setlocale_null.
9551         (setlocale_null): New function, extracted from setlocale_mtsafe in
9552         setlocale.c.
9553         * lib/setlocale.c: Don't include <errno.h>.
9554         (setlocale_mtsafe): Invoke setlocale_null.
9555         * lib/setlocale-lock.c: Update comments.
9556         * doc/posix-functions/setlocale.texi: Mention both functions.
9558 2019-12-18  Bruno Haible  <bruno@clisp.org>
9560         localename: Optimize code for native Windows.
9561         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9562         category (not allowed here).
9564 2019-12-18  Bruno Haible  <bruno@clisp.org>
9566         setlocale: Make calls with NULL argument multithread-safe.
9567         * lib/setlocale.c: Include <errno.h>.
9568         (setlocale_mtsafe): New function.
9569         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9570         (setlocale_improved): Renamed from rpl_setlocale.
9571         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9572         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9573         LIB_SETLOCALE.
9574         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9575         (Link): New section.
9576         * tests/locale.c: Undefine setlocale.
9577         * tests/test-setlocale_null-one.c: Likewise.
9578         * tests/test-setlocale_null-all.c: Likewise.
9579         * modules/setlocale-tests (Makefile.am): Link the test programs with
9580         $(LIB_SETLOCALE).
9581         * modules/astrxfrm-tests (Makefile.am): Likewise.
9582         * modules/btowc-tests (Makefile.am): Likewise.
9583         * modules/c-ctype-tests (Makefile.am): Likewise.
9584         * modules/c-snprintf-tests (Makefile.am): Likewise.
9585         * modules/c-strcase-tests (Makefile.am): Likewise.
9586         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9587         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9588         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9589         * modules/dfa-tests (Makefile.am): Likewise.
9590         * modules/duplocale-tests (Makefile.am): Likewise.
9591         * modules/hard-locale-tests (Makefile.am): Likewise.
9592         * modules/localcharset-tests (Makefile.am): Likewise.
9593         * modules/localename-tests (Makefile.am): Likewise.
9594         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9595         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9596         * modules/mbrtowc-tests (Makefile.am): Likewise.
9597         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9598         * modules/mbscasestr-tests (Makefile.am): Likewise.
9599         * modules/mbschr-tests (Makefile.am): Likewise.
9600         * modules/mbscspn-tests (Makefile.am): Likewise.
9601         * modules/mbsinit-tests (Makefile.am): Likewise.
9602         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9603         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9604         * modules/mbspbrk-tests (Makefile.am): Likewise.
9605         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9606         * modules/mbsrchr-tests (Makefile.am): Likewise.
9607         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9608         * modules/mbsspn-tests (Makefile.am): Likewise.
9609         * modules/mbsstr-tests (Makefile.am): Likewise.
9610         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9611         * modules/quotearg-tests (Makefile.am): Likewise.
9612         * modules/regex-tests (Makefile.am): Likewise.
9613         * modules/strfmon_l-tests (Makefile.am): Likewise.
9614         * modules/strtod-tests (Makefile.am): Likewise.
9615         * modules/strtold-tests (Makefile.am): Likewise.
9616         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9617         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9618         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9619         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9620         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9621         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9622         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9623         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9624         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9625         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9626         * modules/wcrtomb-tests (Makefile.am): Likewise.
9627         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9628         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9629         * modules/wcwidth-tests (Makefile.am): Likewise.
9630         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9631         safety fix is also available in module 'setlocale'.
9633 2019-12-18  Bruno Haible  <bruno@clisp.org>
9635         hard-locale: Make multithread-safe.
9636         * lib/hard-locale.h (hard_locale): Move documentation to here.
9637         * lib/hard-locale.c: Don't include <stdlib.h>.
9638         (GLIBC_VERSION): Remove macro.
9639         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9640         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9641         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9642         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9643         (Link): New section.
9644         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9645         $(LIB_HARD_LOCALE).
9647 2019-12-18  Bruno Haible  <bruno@clisp.org>
9649         hard-locale: Avoid test failure on Haiku.
9650         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9652 2019-12-18  Bruno Haible  <bruno@clisp.org>
9654         setlocale-null: Handle NULL result from setlocale.
9655         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9656         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9657         from setlocale or _wsetlocale.
9659 2019-12-18  Bruno Haible  <bruno@clisp.org>
9661         hard-locale: Add test.
9662         * tests/test-hard-locale.c: New file.
9663         * tests/locale.c: New file.
9664         * modules/hard-locale-tests: New file.
9666 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9668         dfa: do not match invalid UTF-8
9669         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9670         from 5 to 9 tokens; this is needed due to the changes to
9671         add_utf8_anychar.
9672         (charclass_index): 2nd arg is now pointer-to-const.
9673         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9674         instead of allowing overlong encodings or surrogate halves.
9676         dfa: simplify charclass by assuming C99
9677         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9678         (charclass_word): Now always uint_fast64_t.
9679         (CHARCLASS_PAIR): Remove.
9680         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9682         fts: tune via calloc
9683         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9685         dfa: tune via xzalloc
9686         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9688 2019-12-17  Bruno Haible  <bruno@clisp.org>
9690         localcharset: Fix multithread-safety bug on Windows and OS/2.
9691         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9692         invalid.
9693         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9694         assemble the result.
9696 2019-12-17  Bruno Haible  <bruno@clisp.org>
9698         localcharset: Optimize code for native Windows.
9699         * lib/localcharset.c (locale_charset): Don't bother calling
9700         setlocale (LC_ALL, NULL) since we're not interested in its result.
9702 2019-12-17  Bruno Haible  <bruno@clisp.org>
9704         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9705         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9706         setlocale.
9707         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9708         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9709         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9711 2019-12-17  Bruno Haible  <bruno@clisp.org>
9713         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9714         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9715         stack-allocated buffer to assemble each result and different static
9716         buffers to return it.
9717         * tests/test-nl_langinfo-mt.c: New file.
9718         * modules/nl_langinfo-tests (Files): Add it.
9719         (Depends-on): Add thread, nanosleep.
9720         (Makefile.am): Build test-nl_langinfo-mt test.
9722 2019-12-17  Bruno Haible  <bruno@clisp.org>
9724         langinfo: Document more details.
9725         * doc/posix-headers/langinfo.texi: List platform details.
9726         * doc/posix-functions/nl_langinfo.texi: Likewise.
9728 2019-12-17  Bruno Haible  <bruno@clisp.org>
9730         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9731         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9732         and Martin Storsjö <martin@martin.st>
9733         in <https://savannah.gnu.org/bugs/?57406>.
9734         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9735         mingw.
9737 2019-12-17  Bruno Haible  <bruno@clisp.org>
9739         glob: Avoid warning on mingw.
9740         Reported by Christian Biesinger <cbiesinger@google.com> in
9741         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9742         * lib/glob.c (__stat64): Undefine first.
9744 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9746         xalloc: tune xzalloc for fresh allocations
9747         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9748         because when the memory is freshly allocated from the OS via sbrk
9749         or mmap, calloc can avoid doing the memset.
9751         dfa: new function dfacopysyntax
9752         * lib/dfa.c (struct dfa): Move syntax member later so
9753         that dfacopysyntax can easily clear earlier members.
9754         (dfacopysyntax): New function, used by Gawk.
9756 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9758         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9759         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9760         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9761         if not already defined.
9763         dfa: remove one dependency on MB_CUR_MAX
9764         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9766         dfa: remove struct lexer_state.cur_mb_len
9767         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9768         as it’s not needed and the code is simpler without it.
9769         All uses removed.
9771 2019-12-16  Bruno Haible  <bruno@clisp.org>
9773         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9774         Reported by Arnold Robbins <arnold@skeeve.com>.
9775         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9776         copied from lib/glthread/lock.h.
9777         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9778         (setlocale_null_with_lock): If pthread_in_use() is false, use
9779         setlocale_null_unlocked directly.
9780         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9781         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9782         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9783         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9784         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9785         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9787 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9789         dfa: make dfasyntax thread-safe
9790         Problem reported by Bruno Haible in:
9791         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9792         * lib/dfa.c: Do not include locale.h.
9793         (struct dfa): Remove simple_locale member.
9794         All uses replaced by localeinfo.simple.
9795         (using_simple_locale): Remove; now present (with some
9796         changes) in localeinfo.c.
9797         (dfasyntax): No need to initialize removed member.
9799         localeinfo: record whether locale is simple
9800         * lib/localeinfo.c (using_simple_locale): New function,
9801         copied here from lib/dfa.c but with a change: it uses
9802         strcoll for its heuristic, instead of using setlocale.
9803         This lets it be thread-safe.
9804         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9806 2019-12-15  Bruno Haible  <bruno@clisp.org>
9808         duplocale: Fix multithread-safety bug on AIX.
9809         * lib/duplocale.c: Don't include <stdlib.h>.
9810         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9811         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9812         Set LIB_DUPLOCALE.
9813         * modules/duplocale (Depends-on): Add setlocale-null.
9814         (Link): New section.
9815         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9816         $(LIB_DUPLOCALE).
9818 2019-12-15  Bruno Haible  <bruno@clisp.org>
9820         setlocale-null: Add tests.
9821         * tests/test-setlocale_null.c: New file.
9822         * tests/test-setlocale_null-one.c: New file.
9823         * tests/test-setlocale_null-all.c: New file.
9824         * modules/setlocale-null-tests: New file.
9826         setlocale-null: New module.
9827         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9828         setlocale_null): New declarations.
9829         * lib/setlocale_null.c: New file.
9830         * lib/setlocale-lock.c: New file.
9831         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9832         * m4/setlocale_null.m4: New file.
9833         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9834         GNULIB_SETLOCALE_NULL.
9835         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9836         * modules/setlocale-null: New file.
9837         * doc/posix-functions/setlocale.texi: Mention the new module.
9839 2019-12-15  Bruno Haible  <bruno@clisp.org>
9841         lock tests: Skip test when no multithreading is enabled.
9842         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9844 2019-12-14  Bruno Haible  <bruno@clisp.org>
9846         locale, duplocale, localename: Fix last patch.
9847         Reported by Daniel Richard G. in
9848         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9849         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9850         Don't define if locale_t does not exist.
9852 2019-12-13  Bruno Haible  <bruno@clisp.org>
9854         locale, duplocale, localename: Fix errors if locale_t does not exist.
9855         Reported by Daniel Richard G. in
9856         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9857         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9858         macros.
9859         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9860         HAVE_NEWLOCALE.
9861         * tests/test-localename.c: Likewise.
9862         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9863         HAVE_DUPLOCALE.
9864         * tests/test-locale-c++.cc: Likewise.
9866 2019-12-13  Bruno Haible  <bruno@clisp.org>
9868         wcstok: Fix test failure on HP-UX.
9869         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9870         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9872 2019-12-12  Bruno Haible  <bruno@clisp.org>
9874         strtod, strtold tests: Avoid test failure on AIX 7.2.
9875         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9876         '.' both are radix characters.
9877         * tests/test-strtold1.c (main): Likewise.
9879 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9881         dfa: prefer ptrdiff_t for API, too
9882         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9883         but do this only for internal use for now.
9884         * NEWS: Mention the API change.
9885         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9886         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9887         values known to be nonnegative.
9888         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9889         Prefer idx_t or ptrdiff_t to size_t for API.
9890         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9891         Prefer ptrdiff_t to size_t for API.
9893         stdalign: port to xlclang 16.01
9894         Problem reportd by Bruno Haible in:
9895         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9896         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9897         ((__aligned__ (...))) with xlclang, as a top-level
9898         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9899         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9901 2019-12-12  Bruno Haible  <bruno@clisp.org>
9903         duplocale: Fix test failure on AIX 7.2 with xlclang.
9904         * lib/duplocale.c: Include <stdlib.h>.
9905         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9906         value.
9908 2019-12-12  Bruno Haible  <bruno@clisp.org>
9910         stddef: Document the AIX xlc issue.
9911         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9913 2019-12-12  Bruno Haible  <bruno@clisp.org>
9915         duplocale: Don't attempt to override if locale_t does not exist.
9916         Reported by Daniel Richard G. in
9917         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9918         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9919         HAVE_DUPLOCALE to 0.
9921 2019-12-12  Bruno Haible  <bruno@clisp.org>
9923         wcwidth: Avoid test failure on AIX 7.2.
9924         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9925         negative.
9926         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9928 2019-12-12  Bruno Haible  <bruno@clisp.org>
9930         ilogbl: Work around Cygwin bug.
9931         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9932         correct.
9933         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9935 2019-12-12  Bruno Haible  <bruno@clisp.org>
9937         strtold: Work around Cygwin bug.
9938         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9939         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9940         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9941         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9942         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9944 2019-12-12  Bruno Haible  <bruno@clisp.org>
9946         strtold: Fix autoconf test.
9947         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9949 2019-12-11  Bruno Haible  <bruno@clisp.org>
9951         fsync tests: Skip test that is known to fail.
9952         * doc/posix-functions/fsync.texi: Update list of platforms.
9953         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9954         that is known to fail on AIX and Cygwin.
9956 2019-12-11  Bruno Haible  <bruno@clisp.org>
9958         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9960         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9961         HAVE_GETADDRINFO as a C macro.
9962         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9963         declare as replacement functions.
9964         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9965         define as no-op overrides.
9966         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9967         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9968         * modules/getaddrinfo (Depends-on, configure.ac): Test
9969         REPLACE_GETADDRINFO.
9970         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9971         problem.
9972         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9973         convention problems.
9975 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9977         dfa: prefer signed integers for internals
9978         Signed integers can be checked more easily for integer overflow.
9979         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9980         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9981         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9982         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9983         (replace, state_index, epsclosure, charclass_context)
9984         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9985         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9986         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9987         (comsubs, inboth, allocmust):
9988         Prefer a signed to an unsigned integer when calculating indexes,
9989         unless the integer is part of the external API (a bigger deal,
9990         and to be done later).
9992         dfa: fix index overflow
9993         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9994         very large regular expressions.
9996         dfa: update commentary for previous change
9997         * NEWS: Mention the change.
9998         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
10000 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10002         dfa: separate parse and compile phase
10003         ‘dfamust’ must be called after parsing and before tokens are
10004         reordered, but both are executed in the compilation phase.
10005         Token reordering was introduced in Gnulib commit
10006         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
10007         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
10008         * lib/dfa.c (dfaparse): Change it to global function.
10009         (dfacomp): If first argument is NULL, skip parse.
10010         * lib/dfa.h: (dfaparse): Add a prototype.
10012 2019-12-11  Bruno Haible  <bruno@clisp.org>
10014         unistd tests: Fix link error on MSVC.
10015         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
10016         $(LIB_GETLOGIN).
10018 2019-12-11  Bruno Haible  <bruno@clisp.org>
10020         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
10021         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
10022         and POSIX substitutes are supported in C++ mode.
10023         * NEWS: Likewise.
10025 2019-12-11  Bruno Haible  <bruno@clisp.org>
10027         stddef: Fix compilation error in C++ mode on MSVC.
10028         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
10029         instead, include <cstddef>.
10031 2019-12-11  Bruno Haible  <bruno@clisp.org>
10033         unistd: Fix compilation error in C++ mode on MSVC.
10034         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
10035         does not have <unistd.h>.
10037 2019-12-11  Bruno Haible  <bruno@clisp.org>
10039         locale: Fix compilation error in C++ mode on MSVC.
10040         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
10041         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
10042         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
10043         int_n_sep_by_space): Define as macros on MSVC.
10045 2019-12-11  Bruno Haible  <bruno@clisp.org>
10047         wchar: Fix compilation error in C++ mode on MSVC.
10048         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
10050 2019-12-11  Bruno Haible  <bruno@clisp.org>
10052         pthread-thread: Fix compilation error in C++ mode on MSVC.
10053         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
10054         _GL_CXXALIAS_RPL invocation.
10056 2019-12-08  Bruno Haible  <bruno@clisp.org>
10058         Fix compilation errors in C++ mode on Haiku.
10059         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
10060         non-glibc systems.
10061         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
10062         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10063         posix_spawnattr_setschedparam): Likewise.
10064         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
10065         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10066         * lib/unistd.in.h (usleep): Likewise.
10068 2019-12-08  Bruno Haible  <bruno@clisp.org>
10070         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
10071         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
10072         * modules/fseeko (configure.ac-early): Require it instead of
10073         AC_FUNC_FSEEKO.
10074         * modules/ftello (configure.ac-early): Likewise.
10075         * modules/fflush (configure.ac-early): Likewise.
10077 2019-12-08  Bruno Haible  <bruno@clisp.org>
10079         Fix compilation error in C++ mode on HP-UX 11.
10080         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
10081         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
10083 2019-12-08  Bruno Haible  <bruno@clisp.org>
10085         Fix compilation errors on HP-UX 11/ia64.
10086         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
10087         _GL_FUNCDECL_SYS.
10089 2019-12-08  Bruno Haible  <bruno@clisp.org>
10091         Fix compilation error in C++ mode on OpenBSD.
10092         * lib/signal.in.h (signal): Declare on OpenBSD.
10094 2019-12-08  Bruno Haible  <bruno@clisp.org>
10096         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
10097         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
10098         instead of #error.
10100 2019-12-08  Bruno Haible  <bruno@clisp.org>
10102         Fix compilation errors in C++ mode on FreeBSD.
10103         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
10104         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
10105         * lib/threads.in.h (thrd_exit): Likewise.
10106         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
10108 2019-12-08  Bruno Haible  <bruno@clisp.org>
10110         Fix compilation errors in C++ mode on macOS and FreeBSD.
10111         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
10112         or FreeBSD with clang, use the approach without C preprocessor macro.
10114 2019-12-07  Bruno Haible  <bruno@clisp.org>
10116         Fix compilation errors in C++ mode on AIX with xlclang++.
10117         Reported by Christian Biesinger <cbiesinger@google.com> in
10118         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10119         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
10121 2019-12-07  Bruno Haible  <bruno@clisp.org>
10123         Document compilation error in C++ mode on NetBSD 8.0.
10124         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
10126 2019-12-07  Bruno Haible  <bruno@clisp.org>
10128         Fix compilation errors in C++ mode on Solaris 10.
10129         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
10130         to non-empty on Solaris with a non-GCC compiler.
10131         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
10133 2019-12-07  Bruno Haible  <bruno@clisp.org>
10135         Reword NEWS entry.
10136         * NEWS: Reword the latest NEWS entry.
10138 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
10140         Move xstrtol_fatal to a new xstrtol-error module.
10141         * lib/xstrtol.h: Stop including <getopt.h>.
10142         (xstrtol_fatal): Move ...
10143         * lib/xstrtol-error.h: ... here.  New file.
10144         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
10145         * tests/test-xstrtol.c: Likewise.
10146         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
10147         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
10148         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
10149         * modules/xstrtol-error: New file.
10150         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
10151         * MODULES.html.sh: Add xstrtol-error.
10152         * NEWS: Document the change.
10154 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
10156         nstrftime: better width support for %N, %z
10157         * lib/nstrftime.c (width_add, width_add1, width_cpy):
10158         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
10159         a new WIDTH parameter.
10160         (add, add1, cpy): Use these macros.
10161         (width_add): Do not treat digits == 0 as a special case,
10162         do not pad if padding is ‘-’, and do not use a negative width.
10163         (__strftime_internal): Redo formatting of nanoseconds and numeric
10164         timezones to avoid buffer misuse in unusual cases, and so that
10165         widths make more sense.  Add support for widths greater than 9 to
10166         the %N format; they are zero filled on the right.
10167         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
10169 2019-12-05  Bruno Haible  <bruno@clisp.org>
10171         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
10172         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
10173         set REPLACE_ISFINITE to 1.
10174         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
10175         REPLACE_ISINF to 1.
10176         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
10177         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
10178         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10179         * lib/threads.in.h (call_once): Likewise.
10180         * lib/iconv.in.h (iconv): Likewise.
10182 2019-12-05  Bruno Haible  <bruno@clisp.org>
10184         wchar: Add more C++ tests.
10185         Reported by Christian Biesinger <cbiesinger@google.com> in
10186         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
10187         * tests/test-wchar-c++3.cc: New file.
10188         * modules/wchar-c++-tests (Files): Add it.
10189         (Makefile.am): Compile it.
10191 2019-12-05  Bruno Haible  <bruno@clisp.org>
10193         Add more C++ tests.
10195         assert-h: Add C++ tests.
10196         * tests/test-assert-h-c++.cc: New file.
10197         * tests/test-assert-h-c++2.cc: New file.
10198         * modules/assert-h-c++-tests: New file.
10199         * modules/assert-h-tests: New file.
10201         ctype: Add C++ tests.
10202         * tests/test-ctype-c++.cc: New file.
10203         * tests/test-ctype-c++2.cc: New file.
10204         * modules/ctype-c++-tests: New file.
10205         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
10207         errno: Add C++ tests.
10208         * tests/test-errno-c++.cc: New file.
10209         * tests/test-errno-c++2.cc: New file.
10210         * modules/errno-c++-tests: New file.
10211         * modules/errno-tests (Depends-on): Add errno-c++-tests.
10213         float: Add C++ tests.
10214         * tests/test-float-c++.cc: New file.
10215         * tests/test-float-c++2.cc: New file.
10216         * modules/float-c++-tests: New file.
10217         * modules/float-tests (Depends-on): Add float-c++-tests.
10219         inttypes: Add more C++ tests.
10220         * tests/test-inttypes-c++2.cc: New file.
10221         * modules/inttypes-c++-tests (Files): Add it.
10222         (Makefile.am): Compile it.
10224         limits-h: Add C++ tests.
10225         * tests/test-limits-h-c++.cc: New file.
10226         * tests/test-limits-h-c++2.cc: New file.
10227         * modules/limits-h-c++-tests: New file.
10228         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
10230         stdarg: Add C++ tests.
10231         * tests/test-stdarg-c++.cc: New file.
10232         * tests/test-stdarg-c++2.cc: New file.
10233         * modules/stdarg-c++-tests: New file.
10234         * modules/stdarg-tests: New file.
10236         stdbool: Add C++ tests.
10237         * tests/test-stdbool-c++.cc: New file.
10238         * tests/test-stdbool-c++2.cc: New file.
10239         * modules/stdbool-c++-tests: New file.
10240         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
10242         stddef: Add C++ tests.
10243         * tests/test-stddef-c++.cc: New file.
10244         * tests/test-stddef-c++2.cc: New file.
10245         * modules/stddef-c++-tests: New file.
10246         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
10248         stdint: Add C++ tests.
10249         * tests/test-stdint-c++.cc: New file.
10250         * tests/test-stdint-c++2.cc: New file.
10251         * modules/stdint-c++-tests: New file.
10252         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10254         wchar: Add more C++ tests.
10255         * tests/test-wchar-c++2.cc: New file.
10256         * modules/wchar-c++-tests (Files): Add it.
10257         (Makefile.am): Compile it.
10259         wctype-h: Add more C++ tests.
10260         * tests/test-wctype-h-c++2.cc: New file.
10261         * modules/wctype-h-c++-tests (Files): Add it.
10262         (Makefile.am): Compile it.
10264 2019-12-04  Bruno Haible  <bruno@clisp.org>
10266         Fix compilation errors in C++ mode with xlclang++ on AIX.
10267         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10268         C++ mode on AIX.
10269         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10270         without C preprocessor macro.
10271         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10272         _GL_CXXALIAS_SYS.
10273         * lib/threads.in.h (thrd_exit): Likewise.
10275 2019-12-04  Bruno Haible  <bruno@clisp.org>
10277         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10278         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10279         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10281 2019-12-04  Bruno Haible  <bruno@clisp.org>
10283         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10284         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10285         _GL_CXXALIASWARN invocation on non-glibc systems.
10286         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10287         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10288         iswctype, towlower, towupper): Likewise.
10290 2019-12-03  Bruno Haible  <bruno@clisp.org>
10292         Avoid hassles caused by [[noreturn]] in C++.
10293         Reported by Christian Biesinger <cbiesinger@google.com> in
10294         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10295         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10296         * lib/_Noreturn.h: Likewise.
10298 2019-12-02  Bruno Haible  <bruno@clisp.org>
10300         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10301         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10302         LIBMULTITHREAD.
10303         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10304         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10305         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10306         gl_THREADLIB.
10307         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10309 2019-12-02  Bruno Haible  <bruno@clisp.org>
10311         Fix some more link errors with --enable-threads=isoc.
10312         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10313         * modules/pthread-rwlock (Depends-on): Likewise.
10315 2019-12-02  Bruno Haible  <bruno@clisp.org>
10317         Fix link errors with --enable-threads=posix on AIX.
10318         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10319         program with $(LIBTHREAD).
10320         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10321         program with $(LIBTHREAD).
10323 2019-12-02  Bruno Haible  <bruno@clisp.org>
10325         Fix link errors with --enable-threads=posix on AIX.
10326         * modules/mbrtowc (Link): New section.
10327         * modules/acl (Link): Likewise.
10328         * modules/argmatch (Link): Likewise.
10329         * modules/backup-rename (Link): Likewise.
10330         * modules/backupfile (Link): Likewise.
10331         * modules/closein (Link): Likewise.
10332         * modules/closeout (Link): Likewise.
10333         * modules/copy-file (Link): Likewise.
10334         * modules/csharpcomp (Link): Likewise.
10335         * modules/csharpexec (Link): Likewise.
10336         * modules/dfa (Link): Likewise.
10337         * modules/exclude (Link): Likewise.
10338         * modules/fnmatch (Link): Likewise.
10339         * modules/fnmatch-gnu (Link): Likewise.
10340         * modules/fnmatch-posix (Link): Likewise.
10341         * modules/glob (Link): Likewise.
10342         * modules/human (Link): Likewise.
10343         * modules/javacomp (Link): Likewise.
10344         * modules/javaexec (Link): Likewise.
10345         * modules/javaversion (Link): Likewise.
10346         * modules/mbfile (Link): Likewise.
10347         * modules/mbiter (Link): Likewise.
10348         * modules/mbmemcasecmp (Link): Likewise.
10349         * modules/mbmemcasecoll (Link): Likewise.
10350         * modules/mbrlen (Link): Likewise.
10351         * modules/mbscasecmp (Link): Likewise.
10352         * modules/mbscasestr (Link): Likewise.
10353         * modules/mbschr (Link): Likewise.
10354         * modules/mbscspn (Link): Likewise.
10355         * modules/mbsinit (Link): Likewise.
10356         * modules/mbslen (Link): Likewise.
10357         * modules/mbsncasecmp (Link): Likewise.
10358         * modules/mbsnlen (Link): Likewise.
10359         * modules/mbsnrtowcs (Link): Likewise.
10360         * modules/mbspbrk (Link): Likewise.
10361         * modules/mbspcasecmp (Link): Likewise.
10362         * modules/mbsrchr (Link): Likewise.
10363         * modules/mbsrtowcs (Link): Likewise.
10364         * modules/mbssep (Link): Likewise.
10365         * modules/mbsspn (Link): Likewise.
10366         * modules/mbsstr (Link): Likewise.
10367         * modules/mbstok_r (Link): Likewise.
10368         * modules/mbswidth (Link): Likewise.
10369         * modules/mbuiter (Link): Likewise.
10370         * modules/mkdir-p (Link): Likewise.
10371         * modules/propername (Link): Likewise.
10372         * modules/quote (Link): Likewise.
10373         * modules/quotearg (Link): Likewise.
10374         * modules/quotearg-simple (Link): Likewise.
10375         * modules/regex-quote (Link): Likewise.
10376         * modules/rpmatch (Link): Likewise.
10377         * modules/sh-quote (Link): Likewise.
10378         * modules/system-quote (Link): Likewise.
10379         * modules/trim (Link): Likewise.
10380         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10381         * modules/unistdio/ulc-fprintf (Link): Likewise.
10382         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10383         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10384         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10385         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10386         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10387         * modules/xfreopen (Link): Likewise.
10388         * modules/xmemcoll (Link): Likewise.
10389         * modules/yesno (Link): Likewise.
10390         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10391         * modules/argmatch-tests (Makefile.am): Likewise.
10392         * modules/closein-tests (Makefile.am): Likewise.
10393         * modules/copy-file-tests (Makefile.am): Likewise.
10394         * modules/dfa-tests (Makefile.am): Likewise.
10395         * modules/fnmatch-tests (Makefile.am): Likewise.
10396         * modules/glob-tests (Makefile.am): Likewise.
10397         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10398         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10399         * modules/mbrtowc-tests (Makefile.am): Likewise.
10400         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10401         * modules/mbscasestr-tests (Makefile.am): Likewise.
10402         * modules/mbschr-tests (Makefile.am): Likewise.
10403         * modules/mbscspn-tests (Makefile.am): Likewise.
10404         * modules/mbsinit-tests (Makefile.am): Likewise.
10405         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10406         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10407         * modules/mbspbrk-tests (Makefile.am): Likewise.
10408         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10409         * modules/mbsrchr-tests (Makefile.am): Likewise.
10410         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10411         * modules/mbsspn-tests (Makefile.am): Likewise.
10412         * modules/mbsstr-tests (Makefile.am): Likewise.
10413         * modules/quotearg-tests (Makefile.am): Likewise.
10414         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10415         * modules/readtokens-tests (Makefile.am): Likewise.
10416         * modules/regex-quote-tests (Makefile.am): Likewise.
10417         * modules/sh-quote-tests (Makefile.am): Likewise.
10418         * modules/system-quote-tests (Makefile.am): Likewise.
10419         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10420         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10421         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10422         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10423         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10424         * modules/yesno-tests (Makefile.am): Likewise.
10426 2019-12-02  Bruno Haible  <bruno@clisp.org>
10428         Simplify link sections.
10429         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10430         * modules/lock (Link): Likewise.
10431         * modules/cond (Link): Likewise.
10432         * modules/tls (Link): Likewise.
10433         * modules/yield (Link): Likewise.
10434         * modules/regex (Link): Likewise.
10435         * modules/localename (Link): Likewise.
10436         * modules/unicase/locale-language (Link): Likewise.
10437         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10439 2019-12-02  Bruno Haible  <bruno@clisp.org>
10441         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10442         * tests/test-thread_self.c (main): Disable test on AIX.
10444 2019-12-01  Bruno Haible  <bruno@clisp.org>
10446         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10447         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10448         gl_THREADLIB_EARLY_BODY.
10449         (gl_THREADLIB_EARLY_BODY): Invoke it.
10450         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10451         (gl_THREADLIB_BODY): Invoke it.
10452         (gl_PTHREADLIB): New macro.
10453         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10454         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10455         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10456         * modules/pthread-h (Files): Add threadlib.m4.
10457         (Depends-on): Remove threadlib.
10458         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10459         and _THREAD_SAFE here.
10460         (Link): Use LIBPTHREAD, not LIBTHREAD.
10461         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10462         LIBMULTITHREAD.
10463         * modules/pthread-once (Link): Likewise.
10464         * modules/pthread-mutex (Link): Likewise.
10465         * modules/pthread-rwlock (Link): Likewise.
10466         * modules/pthread-cond (Link): Likewise.
10467         * modules/pthread-tss (Link): Likewise.
10468         * modules/pthread-spin (Link): Likewise.
10469         * modules/pthread (Link): Likewise.
10470         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10471         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10472         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10473         test_pthread_once2_LDADD): Likewise.
10474         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10475         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10476         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10477         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10479 2019-12-01  Bruno Haible  <bruno@clisp.org>
10481         cond: State linking requirements.
10482         * modules/cond (Link): New section.
10484 2019-12-01  Bruno Haible  <bruno@clisp.org>
10486         threadlib: Remove unnecessary file (left over from 2019-07-06).
10487         * modules/threadlib (Files): Remove config.rpath.
10489 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10491         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10492         Reported by Dagobert Michelsen <dam@opencsw.org> in
10493         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10494         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10495         list of strings instead of one string.
10496         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10497         * pygnulib/GLImport.py (execute): Likewise.
10499 2019-11-27  Bruno Haible  <bruno@clisp.org>
10501         openpty, forkpty: Fix build error on Solaris 11.4.
10502         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10503         also in <termios.h>.
10504         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10505         of the function also in <termios.h>.
10506         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10507         * doc/glibc-functions/forkpty.texi: Likewise.
10509 2019-11-27  Bruno Haible  <bruno@clisp.org>
10511         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10512         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10513         --enable-threads=isoc and --enable-threads=isoc+posix.
10514         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10515         When both the ISO C and the POSIX threads API are available, choose
10516         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10517         --enable-threads=isoc+posix was specified. When only the ISO C threads
10518         API is available and --enable-threads=iso was specified, choose
10519         USE_ISOC_THREADS.
10520         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10521         USE_ISOC_AND_POSIX_THREADS.
10522         * lib/glthread/lock.c: Likewise.
10523         * lib/glthread/cond.h: Likewise.
10524         * lib/glthread/cond.c: Likewise.
10525         * lib/glthread/tls.h: Likewise.
10526         * lib/glthread/tls.c: Likewise.
10527         * lib/glthread/yield.h: Likewise.
10528         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10529         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10530         * lib/glthread/thread.c: Likewise.
10531         * lib/glthread/threadlib.c: Likewise.
10532         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10533         USE_ISOC_AND_POSIX_THREADS.
10534         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10535         USE_ISOC_AND_POSIX_THREADS.
10536         * tests/test-tls.c: Likewise.
10537         * tests/test-thread_create.c (main): Likewise.
10538         * tests/test-pthread-cond.c: Likewise.
10539         * tests/test-pthread-mutex.c: Likewise.
10540         * tests/test-pthread-once2.c: Likewise.
10541         * tests/test-pthread-rwlock.c: Likewise.
10542         * tests/test-pthread-tss.c: Likewise.
10543         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10544         USE_POSIX_THREADS.
10546 2019-11-24  Bruno Haible  <bruno@clisp.org>
10548         mbrtowc: Modernize autoconf test.
10549         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10550         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10551         try a UTF-8 locale.
10552         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10554 2019-11-24  Bruno Haible  <bruno@clisp.org>
10556         Fix errors in C++ mode on mingw.
10557         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10558         instead of _GL_CXXALIAS_SYS.
10559         * lib/signal.in.h (pthread_sigmask): Likewise.
10560         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10561         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10562         Likewise.
10563         * lib/wchar.in.h (btowc): Likewise.
10565 2019-11-24  Bruno Haible  <bruno@clisp.org>
10567         sys_time: Fix errors in C++ mode on mingw.
10568         * lib/sys_time.in.h (timeval): Restore the redirection
10569         '#define timeval rpl_timeval', for when the symbol timeval is being used
10570         outside the 'gnulib' namespace.
10571         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10572         'struct timeval'.
10574 2019-11-24  Bruno Haible  <bruno@clisp.org>
10576         iswctype: Fix errors in C++ mode on mingw.
10577         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10578         is 1.
10579         * lib/iswctype.c (iswctype): Add another implementation, for the
10580         GNULIB_defined_wint_t case.
10581         * modules/iswctype (configure.ac): Compile iswctype.c also if
10582         GNULIB_OVERRIDES_WINT_T is 1.
10584 2019-11-24  Bruno Haible  <bruno@clisp.org>
10586         windows-timedmutex: Fix errors in C++ mode on mingw.
10587         * lib/windows-timedmutex.h: Add closing brace.
10589 2019-11-24  Bruno Haible  <bruno@clisp.org>
10591         Fix errors in C++ mode on Cygwin.
10592         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10593         _GL_CXXALIAS_SYS.
10595 2019-11-24  Bruno Haible  <bruno@clisp.org>
10597         time_r: Fix for mingw (regression from 2019-11-16).
10598         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10599         AC_LINK_IFELSE test only if the function does not appear to exist.
10601 2019-11-24  Bruno Haible  <bruno@clisp.org>
10603         wcstok: Add tests.
10604         * tests/test-wcstok.c: New file.
10605         * modules/wcstok-tests: New file.
10607 2019-11-24  Bruno Haible  <bruno@clisp.org>
10609         wcstok: Work around wrong signature on native Windows.
10610         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10611         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10612         REPLACE_WCSTOK.
10613         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10614         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10615         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10616         * doc/posix-functions/wcstok.texi: Mention the problem.
10618 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10620         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10621         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10622         remove workaround for GCC bug 91450 as the bug should be fixed
10623         there too.
10625 2019-11-21  Bruno Haible  <bruno@clisp.org>
10627         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10628         Reported by Christian Biesinger <cbiesinger@google.com> in
10629         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10630         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10631         non-glibc systems.
10632         * lib/locale.in.h (localeconv, setlocale): Likewise.
10633         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10634         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10635         rint, round, trunc): Likewise.
10636         * lib/monetary.in.h (strfmon_l): Likewise.
10637         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10638         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10639         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10640         pthread_spin_destroy): Likewise.
10641         * lib/signal.in.h (raise, signal): Likewise.
10642         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10643         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10644         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10645         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10646         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10647         Likewise.
10648         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10649         Likewise.
10650         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10651         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10652         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10653         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10654         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10655         wcsftime): Likewise.
10656         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10658 2019-11-21  Bruno Haible  <bruno@clisp.org>
10660         Fix various errors in _GL_CXXALIAS_SYS invocations.
10661         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10662         _GL_CXXALIAS_SYS.
10663         * lib/pthread.in.h (pthread_mutexattr_gettype,
10664         pthread_mutexattr_getrobust): Likewise.
10665         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10666         * lib/sys_socket.in.h (recv, send): Likewise.
10667         * lib/unistd.in.h (getdtablesize): Likewise.
10668         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10669         'struct timeval'.
10671 2019-11-21  Bruno Haible  <bruno@clisp.org>
10673         math tests: Update after 2019-08-28 change.
10674         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10675         return type of 'bool', not 'int'.
10677 2019-11-21  Bruno Haible  <bruno@clisp.org>
10679         pthread-spin: Fix errors in C++ mode.
10680         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10681         functions as nonexistent when <pthread.h> exists but does not define
10682         the pthread_spinlock_t type.
10684 2019-11-21  Bruno Haible  <bruno@clisp.org>
10686         pthread-mutex: Fix errors in C++ mode.
10687         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10688         pthread_mutexattr_getrobust exists. If not, define
10689         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10690         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10691         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10692         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10693         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10694         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10695         definition.
10697 2019-11-19  Bruno Haible  <bruno@clisp.org>
10699         threads-h tests: Fix typo.
10700         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10702 2019-11-19  Bruno Haible  <bruno@clisp.org>
10704         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10705         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10706         to 'const pthread_attr_t *'.
10707         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10708         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10710 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10712         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10713         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10714         work around GCC bug 91450 as the bug should be fixed there.
10716 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10718         glob: get closer to glibc glob.c
10719         Omit differences from glibc when the differences don’t matter.
10720         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10721         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10722         (glob_lstat): New function.
10723         (glob_in_dir): Use it.
10724         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10725         Use changed.
10727 2019-11-18  Bruno Haible  <bruno@clisp.org>
10729         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10730         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10731         UINTPTR_MAX): Consider _WIN64.
10732         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10733         a pointer.
10735 2019-11-18  Bruno Haible  <bruno@clisp.org>
10737         stdint: Fix value of WINT_MAX when we override wint_t.
10738         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10739         when GNULIB_OVERRIDES_WINT_T is 1.
10741 2019-11-18  Bruno Haible  <bruno@clisp.org>
10743         vcs-to-changelog: New module.
10744         * modules/vcs-to-changelog: New file.
10745         * MODULES.html.sh (func_all_modules): Add it.
10747 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10749         vcs-to-changelog: New script to generate ChangeLog-like output.
10750         Discussion:
10751         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10752         * build-aux/vcs_to_changelog.py: New file.
10753         * build-aux/vcstocl/frontend_c.py: New file.
10754         * build-aux/vcstocl/misc_util.py: New file.
10755         * build-aux/vcstocl/vcs_git.py: New file.
10757 2019-11-18  Bruno Haible  <bruno@clisp.org>
10759         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10760         Reported by Keith Marshall <keith@users.osdn.me> in
10761         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10762         and <https://osdn.net/projects/mingw/ticket/39677>.
10763         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10764         already been defined by mingw's <crtdefs.h>.
10766 2019-11-18  Bruno Haible  <bruno@clisp.org>
10768         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10769         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10770         conditionally enabled.
10772 2019-11-18  Bruno Haible  <bruno@clisp.org>
10774         gc: Mirror libgcrypt.m4 from libgcrypt.
10775         * config/srclistvars.sh (LIBGCRYPT): New variable.
10776         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10778 2019-11-17  Bruno Haible  <bruno@clisp.org>
10780         locale, localename: Improve z/OS support.
10781         Reported by Daniel Richard G. in
10782         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10783         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10784         gl_LOCALE_H.
10785         (gl_LOCALE_H): Require it.
10786         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10787         defined, don't even check for newlocale, duplocale, freelocale.
10788         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10789         locale_t is not defined.
10791 2019-11-17  Bruno Haible  <bruno@clisp.org>
10793         havelib: Make libdirstems processing more flexible.
10794         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10795         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10796         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10797         patch from 2017-02-19).
10798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10799         libdirs, even when the first one exists as a directory.
10801 2019-11-17  Bruno Haible  <bruno@clisp.org>
10803         havelib: Match the bitness when searching for libraries.
10804         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10805         acl_is_expected_elfclass.
10806         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10807         file exists, in ELF, also test whether it has the ELF class that
10808         corresponds to the host's bitness.
10810 2019-11-17  Bruno Haible  <bruno@clisp.org>
10812         host-cpu-c-abi: Add support for unknown CPUs.
10813         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10814         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10815         32-bit or 64-bit.
10817 2019-11-17  Bruno Haible  <bruno@clisp.org>
10819         havelib: Remove redundant code.
10820         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10821         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10823 2019-11-17  Bruno Haible  <bruno@clisp.org>
10825         havelib: Fix a bug in dependency processing.
10826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10827         of .la files, don't overwrite the value of additional_libdir for the
10828         next rounds.
10830 2019-11-16  Bruno Haible  <bruno@clisp.org>
10832         wctype-h: When overriding wint_t, override also the related functions.
10833         Reported by Christian Biesinger <cbiesinger@google.com> in
10834         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10835         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10836         REPLACE_ISWCNTRL to 1.
10837         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10838         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10839         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10840         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10841         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10842         on mingw.
10843         * doc/posix-headers/wctype.texi: Likewise.
10845 2019-11-16  Bruno Haible  <bruno@clisp.org>
10847         time_r: Fix for mingw.
10848         Reported by Christian Biesinger <cbiesinger@google.com> in
10849         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10850         * lib/time.in.h: On mingw, include <unistd.h>.
10851         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10852         <time.h>. Test for localtime_r in a way that works when it is defined
10853         as an inline function.
10855 2019-11-13  Bruno Haible  <bruno@clisp.org>
10857         havelib: Revert last change.
10858         * build-aux/config.rpath: Revert last change. We can add msys2 support
10859         when it has been added to libtool.m4 upstream.
10861 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10863         config: add msys support
10864         Requested by Arnold Robbins in:
10865         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10866         He also requested a change to config.guess, which I’ll forward
10867         upstream.
10868         * build-aux/ar-lib (func_file_conv):
10869         * build-aux/compile (func_file_conv):
10870         * build-aux/config.rpath (wl, with_gnu_ld)
10871         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10872         Treat msys like cygwin.
10874 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10876         regex: now back in sync with glibc
10877         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10878         regexec.c got merged into glibc and are now copies again.
10880 2019-10-27  Bruno Haible  <bruno@clisp.org>
10882         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10883         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10884         statement.
10885         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10886         32-bit CPUs.
10888 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10890         timespec-add, timespec-sub: simplify
10891         * lib/timespec-add.c (timespec_add):
10892         * lib/timespec-sub.c (timespec_sub):
10893         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10894         work on unsigned integers.
10896 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10898         nstrftime: speed up integer overflow checking
10899         * lib/nstrftime.c: Include intprops.h.
10900         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10901         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10902         instead of doing it by hand.
10903         * modules/nstrftime (Depends-on): Add intprops.
10905         Port better to GCC under macOS
10906         Work around macOS header that has ‘#define __has_builtin(x) 0’
10907         when compiled by GCC.  Apple really, really doesn’t want you to
10908         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10909         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10910         The fix is to not trust __has_builtin when being compiled by
10911         recent-enough GCC.
10912         * lib/intprops.h (__has_builtin)
10913         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10914         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10915         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10916         Remove.  All uses removed.
10917         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10918         directly, if defined and if not newer GCC.
10919         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10920         New macro, that use __has_builtin directly, if defined and if
10921         not newer GCC.
10922         (assume): Use them.
10924 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10926         maintainer-makefile: update rule for argmatch.
10927         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10929 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10931         bitset: let freeing functions accept NULL.
10932         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10933         given NULL.
10934         * lib/bitset.h: Document that.
10935         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10937 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10939         inttypes: use more-robust test for int range
10940         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10941         Problem reported by Dagobert Michelsen in:
10942         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10943         * lib/inttypes.in.h: Rely only on limits.h when checking
10944         int range.
10946 2019-10-15  Bruno Haible  <bruno@clisp.org>
10948         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10949         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10950         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10951         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10952         term_ostream_set_hyperlink): New functions.
10953         (term_styled_ostream_get_hyperlink_ref,
10954         term_styled_ostream_get_hyperlink_id,
10955         term_styled_ostream_set_hyperlink): New function aliases.
10957 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10959         update-copyright: use en dashes in .texi ranges
10960         * build-aux/update-copyright: Match year ranges like "1998--2019",
10961         which are used in the Autoconf manual.  Also, update ranges in
10962         .tex, .texi, and .texinfo files to use en dashes instead of
10963         hyphens.
10965 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10967         * config/srclist.txt: Remove posix/regex_internal.c for now.
10969 2019-10-13  Bruno Haible  <bruno@clisp.org>
10971         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10972         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10973         contents to the empty string.
10975 2019-10-12  Bruno Haible  <bruno@clisp.org>
10977         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10978         * tests/test-intprops.c (main): Disable two more tests when using
10979         HP-UX cc.
10981 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10983         Simplify and regularize regex use of ‘assert’
10984         Also, tell GCC about the asserts even when compiling without
10985         debugging, to give it further optimization opportunities.
10986         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10987         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10988         (parse_expression, parse_bracket_exp):
10989         * lib/regex_internal.c (build_wcs_buffer)
10990         (build_wcs_upper_buffer, re_string_reconstruct)
10991         (re_string_context_at):
10992         * lib/regexec.c (re_search_stub, re_copy_regs)
10993         (re_search_internal, prune_impossible_nodes, check_matching)
10994         (check_halt_state_context, set_regs, sift_states_backward)
10995         (build_sifted_states, transit_state_mb, transit_state_bkref)
10996         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10997         (match_ctx_add_subtop):
10998         Use it instead of plain ‘assert’.
11000 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11002         regex: omit debug assignment when not debugging
11003         * lib/regexec.c (re_search_internal) [!DEBUG]:
11004         Remove unnecessary assignment.
11006         regex: tell compiler there’s at most 256 arcs out
11007         Partly this is to help the reader (and maybe help GCC);
11008         partly this is to pacify Coverity.
11009         * lib/regex_internal.h: Include verify.h.
11010         * lib/regexec.c (group_nodes_into_DFAstates):
11011         Tell the compiler that ndests cannot exceed SBC_MAX.
11012         * modules/regex (Depends-on): Add ‘verify’.
11014         regex: simplify by assuming C99
11015         * config/srclist.txt: Comment out regex_internal.h and regexec.c
11016         temporarily.
11017         * lib/regex_internal.h (lock_define, re_match_context_t):
11018         Simplify by assuming C99 macros and const.
11019         * lib/regexec.c (re_search_internal): Simplify by assuming C99
11020         initializers.  Remove unnecessary assignment, as mctx is now
11021         safely initialized earlier.
11023         regex: avoid copying of uninitialized storage
11024         * config/srclist.txt: Comment out regcomp.c temporarily.
11025         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
11026         Initialize even when not checking for lint, as the behavior is
11027         arguably undefined otherwise and Coverity warns about it.
11029 2019-10-06  Bruno Haible  <bruno@clisp.org>
11031         access tests: Fix test failure when run as root.
11032         * tests/test-access.c: Include root-uid.h.
11033         (geteuid): Define fallback.
11034         (main): Don't expect that writing to a read-only file would fail when
11035         running as root. Also, remove the created files at the end.
11036         * modules/access-tests (Depends-on): Add root-uid.
11037         (configure.ac): Test whether geteuid exists.
11039 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
11041         users.txt: add GNU nano
11042         Nano has been making use of gnulib since March 2017, version 2.8.0.
11044 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11046         bootstrap: simplify debugging of wget failures
11047         Problem reported by Tim Rühsen in:
11048         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
11049         * build-aux/bootstrap (po_download_command_format):
11050         Invoke wget with -nv instead of -q, to make debugging easier.
11052 2019-09-29  Bruno Haible  <bruno@clisp.org>
11054         avltree-list: Fix compilation warning (introduced on 2014-09-16).
11055         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
11056         'const' attribute.
11058 2019-09-29  Bruno Haible  <bruno@clisp.org>
11060         fbufmode: Fix compilation error on glibc >= 2.28 systems.
11061         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
11063 2019-09-28  Bruno Haible  <bruno@clisp.org>
11065         Update comments that refer to POSIX.
11066         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
11067         sentence about trailing slashes.
11068         * lib/fflush.c: Clarify the reasoning.
11069         * tests/test-fflush2.c: Cite the relevant sentence.
11071 2019-09-28  Bruno Haible  <bruno@clisp.org>
11073         access: Document limitations on Windows.
11074         Suggested by Zaretskii <eliz@gnu.org>.
11075         * doc/posix-functions/access.texi: Mention two limitations on Windows.
11077 2019-09-28  Bruno Haible  <bruno@clisp.org>
11079         findprog-in: Fix comment.
11080         Reported by Eli Zaretskii <eliz@gnu.org>.
11081         * lib/findprog.h (find_in_given_path): Extend description of EACCES
11082         condition.
11083         * lib/stat.c (rpl_stat): Fix typo in comment.
11084         * lib/utime.c (_gl_utimens_windows): Likewise.
11086 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11088         Update URLs and associated text
11089         (Thanks to Bruno Haible for proofreading this patch.)
11090         Prefer https: to http: in URLs where either will do, for the usual
11091         security reasons.  I also updated broken and/or moved URLs
11092         discovered during the process. In a few places I had to resort to
11093         archive.org, since I didn't find the originals elsewhere.
11095 2019-09-15  Paul Smith  <psmith@gnu.org>
11096             Bruno Haible  <bruno@clisp.org>
11098         findprog-in: Set errno when the search fails.
11099         * lib/findprog-in.c: Include <errno.h>.
11100         (find_in_given_path): Set errno before returning NULL.
11101         * lib/findprog.h (find_in_given_path): Update comment accordingly.
11102         Define the term "slash".
11104 2019-09-15  Bruno Haible  <bruno@clisp.org>
11106         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
11107         * modules/findprog (Depends-on): Add access.
11108         * modules/findprog-lgpl (Depends-on): Likewise.
11109         * modules/findprog-in (Depends-on): Likewise.
11111 2019-09-15  Bruno Haible  <bruno@clisp.org>
11113         access: Add tests.
11114         * tests/test-access.c: New file.
11115         * modules/access-tests: New file.
11117         access: New module.
11118         * lib/unistd.in.h (access): New declaration.
11119         * lib/access.c: New file.
11120         * m4/access.m4: New file.
11121         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
11122         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
11123         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
11124         REPLACE_ACCESS.
11125         * modules/access: New file.
11126         * tests/test-unistd-c++.cc (access): Check signature.
11127         * doc/posix-functions/access.texi: Mention the new module.
11129 2019-09-15  Bruno Haible  <bruno@clisp.org>
11131         fcntl-h: Fix compilation error of creat.c on MSVC.
11132         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
11133         defined.
11135 2019-09-15  Bruno Haible  <bruno@clisp.org>
11137         creat: Add tests.
11138         * tests/test-creat.c: New file, based on tests/test-open.h.
11139         * modules/creat-tests: New file.
11141         creat: New module.
11142         * lib/fcntl.in.h (creat): New declaration.
11143         * lib/creat.c: New file, based on lib/open.c.
11144         * m4/creat.m4: New file.
11145         * m4/open-slash.m4: New file, extracted from m4/open.m4.
11146         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
11147         Invoke gl_OPEN_TRAILING_SLASH_BUG.
11148         * modules/open (Files): Add m4/open-slash.m4.
11149         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
11150         REPLACE_CREAT.
11151         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
11152         * modules/creat: New file.
11153         * tests/test-fcntl-h-c++.cc (creat): Check signature.
11154         * doc/posix-functions/creat.texi: Mention the new module.
11156 2019-09-15  Bruno Haible  <bruno@clisp.org>
11158         open tests: Enhance test.
11159         * tests/test-open.h (test_open): Test the creation of an executable
11160         regular file. Also improve initial cleanup.
11162 2019-09-15  Bruno Haible  <bruno@clisp.org>
11164         intprops tests: Avoid build failure with HP-UX cc.
11165         * tests/test-intprops.c: Disable a check that makes HP cc choke with
11166         "error 4018: Macro param too large after substitution - use -H option.".
11168 2019-09-14  Bruno Haible  <bruno@clisp.org>
11170         Make autoconf tests work with -Werror=implicit-function-declaration.
11171         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
11172         towupper() declaration.
11173         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
11174         declaration.
11176 2019-09-14  Bruno Haible  <bruno@clisp.org>
11178         findprog-in: Better mimic the system on native Windows.
11179         Reported by Paul Smith <psmith@gnu.org>.
11180         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
11181         non-empty suffixes when the file name already contains a '.'.
11183 2019-09-10  Bruno Haible  <bruno@clisp.org>
11185         wctob: Fix autoconf test.
11186         Based on patch by Florian Weimer <fweimer@redhat.com>.
11187         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
11189 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
11191         xhash: provide hash_xinitialize.
11192         Suggested by Egor Pugin <egor.pugin@gmail.com>
11193         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
11194         * modules/xhash, lib/xhash.c: New.
11195         * lib/hash.h (hash_xinitialize): New.
11197 2019-09-09  Bruno Haible  <bruno@clisp.org>
11199         findprog-in: Make exec optimization optional.
11200         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
11201         (find_in_given_path): Add optimize_for_exec parameter.
11202         * lib/findprog-in.c (find_in_given_path): Likewise.
11204 2019-09-08  Bruno Haible  <bruno@clisp.org>
11206         Add option to assume the best, not the worst, when cross-compiling.
11207         Suggested by Jonas Termansen <sortie@maxsi.org>.
11208         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
11209         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
11210         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
11211         lt_cv_sys_argz_works.
11212         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
11213         ac_cv_func_calloc_0_nonnull.
11214         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
11215         --enable-cross-guesses for gl_cv_func_realpath_works.
11216         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
11217         gl_cv_func_cbrtl_ieee.
11218         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
11219         gl_cv_func_ceil_ieee.
11220         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
11221         gl_cv_func_ceilf_ieee.
11222         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
11223         gl_cv_func_ceill_ieee.
11224         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
11225         ac_cv_func_chown_works.
11226         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
11227         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
11228         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
11229         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
11230         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
11231         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
11232         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
11233         gl_cv_func_expl_works.
11234         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
11235         gl_cv_func_expm1_ieee.
11236         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
11237         gl_cv_func_expm1l_works.
11238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
11239         gl_cv_func_open_directory_works.
11240         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
11241         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
11242         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
11243         gl_cv_func_fchownat_empty_filename_works.
11244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
11245         gl_cv_func_fdopendir_works.
11246         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
11247         gl_cv_func_floor_ieee.
11248         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
11249         gl_cv_func_floorf_ieee.
11250         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
11251         gl_cv_func_fma_works.
11252         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
11253         gl_cv_func_fmaf_works.
11254         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11255         gl_cv_func_fmal_works.
11256         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11257         gl_cv_func_fmod_ieee.
11258         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11259         gl_cv_func_fmodf_ieee.
11260         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11261         gl_cv_func_fmodl_ieee.
11262         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11263         gl_cv_func_fpurge_works.
11264         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11265         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11266         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11267         gl_cv_func_getcwd_null.
11268         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11269         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11270         gl_cv_func_working_getdelim.
11271         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11272         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11273         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11274         gl_cv_func_getgroups_works.
11275         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11276         am_cv_func_working_getline.
11277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11278         for gl_cv_func_getopt_gnu.
11279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11280         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11281         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11282         gl_cv_func_hypot_ieee.
11283         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11284         gl_cv_func_hypotf_ieee.
11285         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11286         gl_cv_func_hypotl_ieee.
11287         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11288         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11289         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11290         gl_cv_func_link_works.
11291         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11292         gl_cv_func_linkat_slash.
11293         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11294         gl_cv_func_log_ieee.
11295         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11296         gl_cv_func_logf_ieee.
11297         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11298         gl_cv_func_logl_works.
11299         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11300         gl_cv_func_log10_ieee.
11301         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11302         gl_cv_func_log10f_ieee.
11303         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11304         gl_cv_func_log10l_works.
11305         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11306         gl_cv_func_log1p_ieee.
11307         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11308         gl_cv_func_log1pf_ieee.
11309         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11310         gl_cv_func_log1pl_ieee.
11311         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11312         gl_cv_func_log2_ieee.
11313         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11314         gl_cv_func_log2f_ieee.
11315         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11316         --enable-cross-guesses for
11317         gl_cv_func_lstat_dereferences_slashed_symlink.
11318         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11319         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11320         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11321         gl_cv_C_locale_sans_EILSEQ.
11322         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11323         gl_cv_func_memchr_works.
11324         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11325         gl_cv_func_memmem_works_always.
11326         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11327         gl_cv_func_memmem_works_fast.
11328         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11329         gl_cv_func_mkdir_trailing_slash_works,
11330         gl_cv_func_mkdir_trailing_dot_works.
11331         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11332         gl_cv_func_mkfifo_works.
11333         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11334         gl_cv_func_mknod_works.
11335         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11336         gl_cv_func_working_mkstemp.
11337         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11338         gl_cv_func_working_mktime.
11339         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11340         gl_cv_func_modf_ieee.
11341         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11342         gl_cv_func_modff_ieee.
11343         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11344         gl_cv_func_modfl_ieee.
11345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11346         gl_cv_func_nanosleep.
11347         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11348         gl_cv_func_perror_works.
11349         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11350         gl_cv_func_printf_sizes_c99.
11351         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11352         gl_cv_func_printf_infinite.
11353         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11354         gl_cv_func_printf_infinite_long_double.
11355         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11356         gl_cv_func_printf_directive_a.
11357         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11358         gl_cv_func_printf_directive_f.
11359         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11360         gl_cv_func_printf_flag_zero.
11361         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11362         gl_cv_func_printf_enomem.
11363         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11364         gl_cv_func_snprintf_truncation_c99.
11365         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11366         gl_cv_func_snprintf_retval_c99.
11367         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11368         gl_cv_func_snprintf_directive_n.
11369         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11370         gl_cv_func_vsnprintf_zerosize_c99.
11371         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11372         gl_cv_func_pselect_detects_ebadf.
11373         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11374         Obey --enable-cross-guesses for
11375         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11376         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11377         gl_cv_func_ptsname_sets_errno.
11378         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11379         gl_cv_func_svid_putenv.
11380         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11381         gl_cv_func_readlink_works.
11382         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11383         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11384         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11385         gl_cv_func_re_compile_pattern_working.
11386         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11387         gl_cv_func_remainder_ieee.
11388         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11389         gl_cv_func_remainderf_ieee.
11390         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11391         gl_cv_func_remainderl_ieee.
11392         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11393         gl_cv_func_rintl_works.
11394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11395         gl_cv_func_rmdir_works.
11396         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11397         gl_cv_func_round_ieee.
11398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11399         gl_cv_func_roundf_ieee.
11400         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11401         gl_cv_func_roundl_ieee.
11402         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11403         gl_cv_func_select_detects_ebadf.
11404         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11405         gl_cv_func_setenv_works.
11406         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11407         gl_cv_func_unsetenv_works.
11408         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11409         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11410         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11411         gl_cv_func_sleep_works.
11412         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11413         gl_cv_func_stat_file_slash.
11414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11415         gl_cv_func_stpncpy.
11416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11417         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11418         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11419         gl_cv_func_strcasestr_linear.
11420         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11421         gl_cv_func_working_strerror.
11422         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11423         gl_cv_func_strerror_0_works.
11424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11425         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11426         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11427         gl_cv_func_strstr_works_always.
11428         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11429         gl_cv_func_strstr_linear.
11430         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11431         gl_cv_func_strtod_works.
11432         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11433         gl_cv_func_strtold_works.
11434         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11435         gl_cv_func_symlink_works.
11436         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11437         gl_cv_func_symlinkat_works.
11438         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11439         gl_cv_func_trunc_ieee.
11440         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11441         gl_cv_func_truncf_ieee.
11442         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11443         gl_cv_func_truncl_ieee.
11444         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11445         gl_cv_func_tzset_clobber.
11446         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11447         gl_cv_func_ungetc_works.
11448         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11449         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11450         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11451         gl_cv_func_usleep_works.
11452         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11453         gl_cv_func_futimesat_works.
11454         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11455         gl_cv_func_working_utimes.
11456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11457         gl_cv_func_wcwidth_works.
11458         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11459         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11460         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11461         links for testing. Obey --enable-cross-guesses for
11462         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11463         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11465 2019-09-08  Bruno Haible  <bruno@clisp.org>
11467         Clarify that cross-compilation guesses are guesses.
11468         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11469         cross-compiling.
11471 2019-09-08  Bruno Haible  <bruno@clisp.org>
11473         chown: Fix configure output (regression from 2019-03-23).
11474         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11475         gl_cv_func_chown_follows_symlink variable.
11477 2019-09-08  Bruno Haible  <bruno@clisp.org>
11479         findprog-in: New module.
11480         Suggested by Paul Smith <psmith@gnu.org>.
11481         * lib/findprog.h (find_in_given_path): New declaration.
11482         * lib/findprog-in.c: New file, based on lib/findprog.c.
11483         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11484         * modules/findprog-in: New file.
11486 2019-09-08  Bruno Haible  <bruno@clisp.org>
11488         findprog: Remove unused dependency.
11489         * modules/findprog (Depends-on): Remove strdup.
11491 2019-09-08  Bruno Haible  <bruno@clisp.org>
11493         findprog: Remove test that is obsolete since 2006-04-24.
11494         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11496 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11498         bitset: style changes
11499         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11500         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11501         xzalloc to xcalloc.
11502         Suggested by Paul Eggert.
11504 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11506         bitset: check memory allocation
11507         Reported by 江 祖铭 (Zu-Ming Jiang).
11508         With help from Paul Eggert.
11509         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11510         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11511         instead of realloc.
11512         When shrinking, accept failures.
11513         * lib/bitset/vector.c (vbitset_resize): Likewise.
11515 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11517         scratch_buffer: sync from glibc
11518         * config/srclist.txt: Add the scratch_buffer source
11519         code from glibc, since these should be in sync.
11520         Autoupdate.
11522 2019-09-07  Bruno Haible  <bruno@clisp.org>
11524         doc: Update for glibc 2.30.
11525         * doc/glibc-functions/gettid.texi: New file.
11526         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11527         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11528         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11529         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11530         * doc/glibc-functions/sem_clockwait.texi: New file.
11531         * doc/glibc-functions/tgkill.texi: New file.
11532         * doc/glibc-functions/twalk_r.texi: New file.
11533         * doc/gnulib.texi: Include them.
11534         (Glibc semaphore.h): New section.
11535         * doc/pastposix-functions/h_errno.texi: Update.
11536         * doc/posix-functions/*.texi: Likewise.
11538 2019-09-06  Bruno Haible  <bruno@clisp.org>
11540         symlink tests: Avoid test failure on Linux with Lustre file system.
11541         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11542         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11543         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11545 2019-09-01  Bruno Haible  <bruno@clisp.org>
11547         gitsub.sh: Add support for shallow-cloning of subdirectories.
11548         * top/gitsub.sh (func_usage): Document allowed git options with
11549         'git pull'.
11550         (func_pull): Accept GIT_OPTIONS argument.
11551         (pull): Parse git options before complaining about too many arguments.
11552         Pass the git options to func_pull.
11554 2019-08-29  Bruno Haible  <bruno@clisp.org>
11556         lock: Fix cross-compilation guesses.
11557         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11558         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11559         platforms.
11561 2019-08-28  Bruno Haible  <bruno@clisp.org>
11563         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11564         Reported by Martin Storsjö <martin@martin.st> in
11565         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11566         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11567         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11568         files from GCC 6 or newer, use an override through '#define', because
11569         the inline definitions in the platform's <cmath> cannot be overridden
11570         in another way.
11572 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11574         Revert macOS INT_MULTIPLY_WRAPV patch
11575         Problem reported by Bruno Haible in:
11576         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11577         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11578         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11579         Go back to working around the Clang bug on macOS.
11581 2019-08-27  Bruno Haible  <bruno@clisp.org>
11583         libtool-next-version: Fix error output.
11584         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11585         name.
11587 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11589         Speed up INT_MULTIPLY_WRAPV on macOS
11590         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11591         Mattias Engdegård says it’s safe to assume the relevant library
11592         is always available there.
11593         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11594         New temporary internal macro.
11595         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11596         No need to work around the Clang bug on macOS.
11598 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11600         intprops.h, verify.h: port better to clang
11601         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11602         with Clang.  Problem reported privately by Mattias Engdegård.
11603         Also, insulate intprops.h and verify.h better against each other’s
11604         definitions of __has_builtin on non-Clang hosts.
11605         * lib/intprops.h (__has_builtin): Define a temporary substitute
11606         if __has_builtin is not already defined.
11607         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11608         New temporary internal macros.
11609         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11610         Now two separate macros, replacing the old
11611         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11612         __builtin_mul_overflow is like the rest.  All uses changed.
11613         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11614         Adjust to above changes.
11615         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11616         longer relevant.  All uses changed.
11617         * lib/verify.h (__has_builtin): Treat like intprops.h,
11618         so that the two .h files do not collide with each other.
11619         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11620         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11622 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11624         intprops: say why not Clang __builtin_add_overflow
11625         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11626         Mention Clang in comment, responding to a query from
11627         Mattias Engdegård.
11629 2019-08-24  Bruno Haible  <bruno@clisp.org>
11631         doc: Document most of the files outside of modules.
11632         * doc/gnulib.texi (Build Infrastructure Files,
11633         Release Management Files): New chapters.
11635 2019-08-24  Bruno Haible  <bruno@clisp.org>
11637         bootstrap: Keep in sync with the 'gettext' module.
11638         Reported by Assaf Gordon in
11639         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11640         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11641         * build-aux/po/remove-potcdate.sin: Likewise.
11643 2019-08-24  Bruno Haible  <bruno@clisp.org>
11645         crypto/gc-sha512: Add tests.
11646         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11647         * modules/crypto/gc-sha512-tests: New file.
11649         crypto/gc-sha256: Add tests.
11650         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11651         * modules/crypto/gc-sha256-tests: New file.
11653         crypto/gc-sha256, crypto/gc-sha512: New modules.
11654         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11655         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11656         (MAX_DIGEST_SIZE): Set to 64.
11657         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11658         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11659         (gc_sha256, gc_sha512): New functions.
11660         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11661         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11662         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11664 2019-08-24  Bruno Haible  <bruno@clisp.org>
11666         crypto/gc-sha1 tests: Improve output when the test fails.
11667         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11668         output.
11670 2019-08-24  Bruno Haible  <bruno@clisp.org>
11672         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11673         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11674         LIBGCRYPT_HAS_MD_SM3.
11675         * lib/gc-libgcrypt.c: Include sm3.h.
11676         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11677         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11678         implementation if libgcrypt does not support SM3.
11680 2019-08-24  Bruno Haible  <bruno@clisp.org>
11682         crypto/gc-md2: Optimize and clarify code.
11683         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11684         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11685         is not needed.
11687 2019-08-24  Bruno Haible  <bruno@clisp.org>
11689         crypto/gc-md2: Add comment.
11690         * lib/gc-libgcrypt.c: Add comment.
11692 2019-08-24  Bruno Haible  <bruno@clisp.org>
11694         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11695         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11696         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11697         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11698         variable.
11700 2019-08-24  Bruno Haible  <bruno@clisp.org>
11702         crypto/gc: Fix link error with --with-libgcrypt.
11703         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11704         AC_LIB_HAVE_LINKFLAGS invocation.
11706 2019-08-24  Bruno Haible  <bruno@clisp.org>
11708         crypto/gc: Access the module indicators correctly.
11709         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11710         * lib/gc-libgcrypt.c: Likewise.
11712 2019-08-24  Bruno Haible  <bruno@clisp.org>
11714         crypto/gc: Fix configuration with --with-libgcrypt.
11715         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11716         * modules/crypto/gc (Files): Add it.
11717         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11719 2019-08-24  Bruno Haible  <bruno@clisp.org>
11721         Remove unused file.
11722         * m4/stat-macros.m4: Remove file.
11724 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11726         New strip-trailing-space option for srclist-update
11727         * config/srclist-update (fixfile): Support new option.
11728         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11729         Use it.
11731 2019-08-20  Eric Blake  <eblake@redhat.com>
11733         accept4: Support SOCK_NONBLOCK, if defined
11734         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11736         accept4: Fix compilation when native accept4() exists.
11737         Reported by Richard W.M. Jones <rjones@redhat.com> in
11738         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11739         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11741 2019-08-18  Bruno Haible  <bruno@clisp.org>
11743         Defeat -flto GCC optimization in math autoconf tests.
11744         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11745         at <https://savannah.gnu.org/bugs/?56109>.
11746         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11747         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11748         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11749         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11750         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11751         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11752         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11753         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11754         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11755         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11756         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11757         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11759 2019-08-17  Bruno Haible  <bruno@clisp.org>
11761         windows-spin: Implement declared functions.
11762         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11763         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11764         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11765         name.
11767 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11769         intprops: port to Oracle Developer Studio 12.6
11770         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11771         typos that were in a section not compiled by GCC.
11773 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11775         intprops: support uchar, ushort _WRAPV dests
11776         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11777         when __builtin_add_overflow etc. and _Generic are not used.
11778         (_GL_INT_OP_WRAPV): Use it to support destinations that
11779         are unsigned char or unsigned short, even in compilers
11780         that lack __typeof__ and are not C11-compatible.
11782         intprops: pacify picky GCC
11783         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11784         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11785         possibly-incorrect result.
11786         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11787         about (A) used as a boolean, when A is an expression like 3 * 4.
11789         intprops: support unsigned *_WRAPV results
11790         Add support for unsigned, unsigned long, and unsigned long long
11791         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11792         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11793         bug with unsigned inputs reported by Eli Zaretskii in:
11794         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11795         * config/srclist.txt: Break the glibc connection for intprops.h
11796         temporarily, while more testing is done in Gnulib-using apps.
11797         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11798         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11799         Support unsigned results no narrower than unsigned int.  Report
11800         overflow correctly if some arguments are unsigned.
11801         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11802         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11803         the right thing with narrow args.
11804         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11805         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11806         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11807         * tests/test-intprops.c: Check for bugs and test new behavior.
11809 2019-08-14  Bruno Haible  <bruno@clisp.org>
11811         get_progname_of: New module.
11812         * lib/get_progname_of.h: New file.
11813         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11814         * lib/getprogname.c (getprogname): Tweak coding style.
11815         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11816         * modules/get_progname_of: New file.
11818 2019-08-14  Bruno Haible  <bruno@clisp.org>
11820         get_ppid_of: New module.
11821         * lib/get_ppid_of.h: New file.
11822         * lib/get_ppid_of.c: New file.
11823         * modules/get_ppid_of: New file.
11825 2019-08-13  Bruno Haible  <bruno@clisp.org>
11827         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11828         * tests/test-libtextstyle.c (main): Do not emit styling when the
11829         environment variable NO_COLOR is set.
11831 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11833         verify: improve diagnostic quality in recent GCC
11834         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11835         useful line number containing the top-level caller of the macro.
11836         So, bring back the older way of issuing a diagnostic containing
11837         the top-level call’s arg, so that it is easier to diagnose
11838         ‘verify’ failures with recent GCC.
11839         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11840         Bring back DIAGNOSTIC arg.  All callers changed.
11841         (verify): Just use _GL_VERIFY.
11843 2019-08-11  Bruno Haible  <bruno@clisp.org>
11845         localcharset: Add more aliases for OS/2.
11846         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11847         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11848         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11850 2019-08-10  Eric Blake  <eblake@redhat.com>
11852         configmake: Update advice on usage.
11853         * modules/configmake (Include): No longer necessary to include
11854         last, since configmake.h itself worries about collision avoidance.
11856 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11858         parse-datetime: fix 'T' military timezone handling
11859         * lib/parse-datetime.y (zone):
11860         follow-up to the previous commit: the 'T' case is handled outside the
11861         conversion table (used as either military timezone UTC-7 or ISO8601
11862         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11863         timezone letters.
11865 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11867         parse-datetime: fix military timezone letters
11868         Problem and trivial fix reported by Neil Hoggarth in:
11869         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11870         * lib/parse-datetime.y (military_table):
11871         Do it the right way, not the RFC 822 way.
11873 2019-08-08  Eric Blake  <eblake@redhat.com>
11875         configmake: Avoid namespace pollution issue on mingw.
11876         * modules/configmake (Makefile.am): If the project uses
11877         <winsock2.h>, include that header before defining DATADIR.
11879 2019-07-28  Bruno Haible  <bruno@clisp.org>
11881         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11882         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11884 2019-07-24  Bruno Haible  <bruno@clisp.org>
11886         pthread-h: Fix definitions of types and macros on mingw.
11887         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11888         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11889         not in use.
11890         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11891         'pthread-once' is not in use.
11892         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11893         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11894         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11895         in use.
11896         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11897         Define also when module 'pthread-rwlock' is not in use.
11898         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11899         also when module 'pthread-cond' is not in use.
11900         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11901         'pthread-tss' is not in use.
11902         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11903         use.
11905 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11907         crypto/gc: Cope with libgcrypt without SM3.
11908         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11910 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11912         backupfile: fix resource leak on memory failure
11913         Problem found by Coverity (CID 1484214).
11914         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11916 2019-07-22  Bruno Haible  <bruno@clisp.org>
11918         Avoid missing-declarations warning in various tests.
11919         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11920         test6, test_optional, test7, test8, test9, test10, test11, test12,
11921         test13, test14, test15, test_fun): Declare static.
11922         * tests/test-cnd.c (test_cnd_wait): Likewise.
11923         * tests/test-cond.c (test_cond): Likewise.
11925 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11927         pthread tests: Avoid missing-declarations warning.
11928         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11930 2019-07-19  Bruno Haible  <bruno@clisp.org>
11932         parse-datetime: Avoid warnings from bison versions >= 3.3.
11933         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11934         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11936 2019-07-19  Bruno Haible  <bruno@clisp.org>
11938         parse-datetime: Require Bison 2.4 or newer.
11939         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11940         Code taken from gettext's intl.m4.
11941         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11942         of YACC.
11944 2019-07-19  Bruno Haible  <bruno@clisp.org>
11946         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11947         * lib/areadlink-with-size.c: Include <string.h>.
11948         * lib/areadlinkat-with-size.c: Likewise.
11949         * lib/xgethostname.c: Likewise.
11950         * lib/xgetdomainname.c: Likewise.
11952 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11954         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11955         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11956         "%pure-parser".  The former is available since Bison 2.3b (2008),
11957         while the latter is marked as obsolete since version 3.4 (May 2019).
11959 2019-07-16  Bruno Haible  <bruno@clisp.org>
11961         update-copyright: Make it work again (regression from 2019-06-15).
11962         Reported by Brian C. Lane <bcl@redhat.com>.
11963         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11965 2019-07-14  Bruno Haible  <bruno@clisp.org>
11967         doc: Update info about <pthread.h>.
11968         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11969         of 'pthread'.
11971 2019-07-14  Bruno Haible  <bruno@clisp.org>
11973         pthread_sigmask tests: Use new multithread modules.
11974         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11975         glthread/thread.h.
11976         (main_thread, killer_thread): Change type to pthread_t.
11977         (main): Update accordingly.
11978         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11979         thread.
11981 2019-07-14  Bruno Haible  <bruno@clisp.org>
11983         pthread-tss: Add tests.
11984         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11985         tests/test-tss.c.
11986         * modules/pthread-tss-tests: New file.
11988 2019-07-14  Bruno Haible  <bruno@clisp.org>
11990         pthread-cond: Add tests.
11991         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11992         tests/test-cnd.c.
11993         * modules/pthread-cond-tests: New file.
11995 2019-07-14  Bruno Haible  <bruno@clisp.org>
11997         pthread-rwlock: Add tests.
11998         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11999         * modules/pthread-rwlock-tests: New file.
12001 2019-07-14  Bruno Haible  <bruno@clisp.org>
12003         pthread-mutex: Add tests.
12004         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
12005         tests/test-mtx.c.
12006         * modules/pthread-mutex-tests: New file.
12008 2019-07-14  Bruno Haible  <bruno@clisp.org>
12010         pthread-once: Add tests.
12011         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
12012         tests/test-call_once.c.
12013         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
12014         tests/test-mtx.c.
12015         * modules/pthread-once-tests: New file.
12017 2019-07-14  Bruno Haible  <bruno@clisp.org>
12019         pthread-thread: Add tests.
12020         * tests/test-pthread-thread.c: New file, based on
12021         tests/test-thread_create.c and tests/test-thrd_create.c.
12022         * modules/pthread-thread-tests: New file.
12024 2019-07-14  Bruno Haible  <bruno@clisp.org>
12026         pthread: Turn into a convenience module.
12027         * lib/pthread.in.h: Remove declarations for extern inline functions.
12028         * lib/pthread.c: Remove file.
12029         * modules/pthread (Files): Remove it.
12030         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
12031         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
12032         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
12033         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
12034         GNULIB_PTHREAD.
12035         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
12037 2019-07-14  Bruno Haible  <bruno@clisp.org>
12039         pthread-spin: New module.
12040         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
12041         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
12042         inline definitions.
12043         * lib/pthread-spin.c: New file.
12044         * m4/pthread-spin.m4: New file.
12045         * modules/pthread-spin: New file.
12046         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
12047         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
12048         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
12049         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
12050         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
12052 2019-07-14  Bruno Haible  <bruno@clisp.org>
12054         pthread-tss: New module.
12055         * lib/pthread-tss.c: New file.
12056         * m4/pthread-tss.m4: New file.
12057         * modules/pthread-tss: New file.
12058         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
12059         * doc/posix-functions/pthread_setspecific.texi: Likewise.
12060         * doc/posix-functions/pthread_getspecific.texi: Likewise.
12061         * doc/posix-functions/pthread_key_delete.texi: Likewise.
12063 2019-07-14  Bruno Haible  <bruno@clisp.org>
12065         pthread-cond: New module.
12066         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
12067         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
12068         * lib/pthread-cond.c: New file.
12069         * m4/pthread-cond.m4: New file.
12070         * modules/pthread-cond: New file.
12071         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
12072         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
12073         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
12074         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
12075         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
12076         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
12077         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
12078         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
12080 2019-07-14  Bruno Haible  <bruno@clisp.org>
12082         pthread-rwlock: New module.
12083         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
12084         * m4/pthread-rwlock.m4: New file.
12085         * modules/pthread-rwlock: New file.
12086         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
12087         and the Android problem.
12088         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
12089         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
12090         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
12091         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
12092         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
12093         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
12094         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
12095         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
12096         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
12097         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
12099 2019-07-14  Bruno Haible  <bruno@clisp.org>
12101         pthread-mutex: New module.
12102         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
12103         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
12104         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
12105         pthread_mutex_unlock): Remove inline definitions.
12106         * lib/pthread-mutex.c: New file.
12107         * m4/pthread-mutex.m4: New file.
12108         * modules/pthread-mutex: New file.
12109         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
12110         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
12111         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
12112         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
12113         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12114         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12115         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
12116         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
12117         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
12118         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
12119         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
12120         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
12122 2019-07-14  Bruno Haible  <bruno@clisp.org>
12124         pthread-once: New module.
12125         * lib/pthread-once.c: New file.
12126         * m4/pthread-once.m4: New file.
12127         * modules/pthread-once: New file.
12128         * doc/posix-functions/pthread_once.texi: Mention the new module.
12130 2019-07-14  Bruno Haible  <bruno@clisp.org>
12132         pthread-thread: New module.
12133         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
12134         inline definitions.
12135         * lib/pthread-thread.c: New file.
12136         * m4/pthread-thread.m4: New file.
12137         * modules/pthread-thread: New file.
12138         * doc/posix-functions/pthread_create.texi: Mention the new module.
12139         * doc/posix-functions/pthread_attr_init.texi: Likewise.
12140         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
12141         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
12142         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
12143         * doc/posix-functions/pthread_self.texi: Likewise.
12144         * doc/posix-functions/pthread_equal.texi: Likewise.
12145         * doc/posix-functions/pthread_detach.texi: Likewise.
12146         * doc/posix-functions/pthread_join.texi: Likewise.
12147         * doc/posix-functions/pthread_exit.texi: Likewise.
12149 2019-07-14  Bruno Haible  <bruno@clisp.org>
12151         pthread-h: Prepare for adding new modules.
12152         * lib/pthread.in.h: Define the types and macros for each of the
12153         facilities separately.
12154         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
12155         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12156         HAVE_PTHREAD_PROCESS_SHARED.
12157         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
12158         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
12159         HAVE_PTHREAD_PROCESS_SHARED.
12160         * modules/pthread-h (Makefile.am): Substitute
12161         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
12162         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
12164 2019-07-14  Bruno Haible  <bruno@clisp.org>
12166         pthread-h: Add declarations of essential pthread functions.
12167         * lib/pthread.in.h: Include snippets.
12168         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
12169         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
12170         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
12171         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
12172         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
12173         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
12174         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
12175         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
12176         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
12177         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
12178         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
12179         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
12180         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
12181         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
12182         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
12183         pthread_key_create, pthread_setspecific, pthread_getspecific,
12184         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
12185         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
12186         declarations.
12187         (pthread_mutex_timedlock): Move declaration.
12188         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
12189         declared.
12190         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
12191         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
12192         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
12193         HAVE_* and REPLACE_* variables for the new functions.
12194         * modules/pthread-h (Depends-on): Add snippet/c++defs,
12195         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
12196         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
12197         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
12198         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
12199         variables for the new functions. Split the sed script, to avoid the
12200         limit of 99 commands of HP-UX sed.
12201         * tests/test-pthread-c++.cc: Check the signature of the new functions.
12203 2019-07-14  Bruno Haible  <bruno@clisp.org>
12205         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
12206         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
12207         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
12208         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
12209         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
12210         * modules/pthread-h (Depends-on): Add threadlib.
12211         (Link): Change to $(LIBTHREAD).
12212         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
12213         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
12215 2019-07-14  Bruno Haible  <bruno@clisp.org>
12217         pthread-h: Add C++ tests.
12218         * tests/test-pthread-c++.cc: New file.
12219         * modules/pthread-h-c++-tests: New file.
12221 2019-07-14  Bruno Haible  <bruno@clisp.org>
12223         pthread-h: Add tests.
12224         * tests/test-pthread.c: New file.
12225         * modules/pthread-h-tests: New file.
12227 2019-07-14  Bruno Haible  <bruno@clisp.org>
12229         pthread-h: New module.
12230         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
12231         is 1.
12232         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
12233         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
12234         <pthread.h> pollutes the namespace; instead, prepare for generating a
12235         pthread.h always. Substitute HAVE_PTHREAD_H here.
12236         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
12237         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
12238         * modules/pthread-h: New file, based on modules/pthread.
12239         * modules/pthread: Rely on 'pthread-h'.
12240         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
12241         Update.
12242         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
12243         pthread.
12245 2019-07-14  Bruno Haible  <bruno@clisp.org>
12247         sched_yield: New module.
12248         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
12249         (sched_yield): New declaration.
12250         * lib/sched_yield.c: New file.
12251         * m4/sched_yield.m4: New file.
12252         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
12253         provide a replacement sched.h always. Test whether sched_yield is
12254         declared.
12255         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12256         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12257         (Makefile.am): Provide a replacement sched.h always. Substitute
12258         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12259         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12260         * modules/sched_yield: New file.
12261         * doc/posix-functions/sched_yield.texi: Mention the new module.
12263 2019-07-14  Bruno Haible  <bruno@clisp.org>
12265         windows-spin: New module.
12266         * lib/windows-spin.h: New file.
12267         * lib/windows-spin.c: New file.
12268         * modules/windows-spin: New file.
12270 2019-07-14  Bruno Haible  <bruno@clisp.org>
12272         windows-timedrwlock: New module.
12273         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12274         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12275         windows-cond.c.
12276         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12277         redefinition conflict with windows-timedrwlock.h.
12278         * modules/windows-timedrwlock: New file.
12280 2019-07-14  Bruno Haible  <bruno@clisp.org>
12282         windows-rwlock: New module.
12283         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12284         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12285         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12286         windows-initguard.h.
12287         (gl_rwlock_t): Define using glwthread_rwlock_t.
12288         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12289         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12290         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12291         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12292         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12293         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12294         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12295         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12296         glthread_rwlock_destroy_func): Remove declarations.
12297         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12298         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12299         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12300         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12301         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12302         functions.
12303         * modules/windows-rwlock: New file.
12304         * modules/lock (Depends-on): Add windows-rwlock.
12306 2019-07-14  Bruno Haible  <bruno@clisp.org>
12308         windows-thread: Add support for creating a thread in detached state.
12309         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12310         (glwthread_thread_create): Add attr argument.
12311         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12312         * lib/glthread/thread.h (glthread_create): Update.
12313         * lib/thrd.c (thrd_create): Update.
12315 2019-07-14  Bruno Haible  <bruno@clisp.org>
12317         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12318         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12319         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12320         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12321         * lib/windows-mutex.h: Update.
12322         * lib/windows-recmutex.h: Likewise.
12323         * lib/windows-timedmutex.h: Likewise.
12324         * lib/windows-timedrecmutex.h: Likewise.
12325         * lib/windows-cond.h: Likewise.
12326         * lib/glthread/lock.h: Likewise.
12327         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12328         lib/windows-spinlock.h.
12329         * modules/windows-recmutex (Files): Likewise.
12330         * modules/windows-timedmutex (Files): Likewise.
12331         * modules/windows-timedrecmutex (Files): Likewise.
12332         * modules/windows-cond (Files): Likewise.
12333         * modules/threads-h (Files): Likewise.
12335 2019-07-14  Bruno Haible  <bruno@clisp.org>
12337         doc: Fix info about pthread API in HP-UX.
12338         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12340 2019-07-14  Bruno Haible  <bruno@clisp.org>
12342         threads-h: Fix generation of threads.h.
12343         * modules/threads-h (Makefile.am): Insert the required header file
12344         snippets.
12346 2019-07-09  Bruno Haible  <bruno@clisp.org>
12348         striconveh test: Fix a compilation failure when iconv is not available.
12349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12350         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12351         HAVE_ICONV.
12353 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12355         argmatch: adjust columns for help2man.
12356         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12357         requires column 20 or more, return 20.
12359 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12361         areadlink-with-size: avoid realloc when size==0
12362         * lib/areadlink-with-size.c (areadlink_with_size):
12363         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12364         Reallocate at the end to the actual size, to avoid memory waste,
12365         as suggested by Bruno Haible.  But when the guessed size is zero -
12366         useful when the size is unknown - do the initial small readlink
12367         into the stack, to avoid that realloc in the usual case.
12369 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12371         areadlink-with-size: guess a buffer size with 0 size
12372         The size is usually taken from st_size, which can be zero,
12373         resulting in inefficient operation.
12374         Instead let zero select an initial memory allocation
12375         of 128 bytes, which most symlinks fit within.
12376         * lib/areadlink-with-size.c (areadlink_with_size):
12377         Start with a 128 byte buffer, for SIZE == 0.
12378         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12380 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12382         Replace manually crafted hex regexes with [:xdigit:]
12383         * build-aux/gitlog-to-changelog (parse_amend_file)
12384         (git_dir_option):
12385         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12386         This patch is backported from Emacs (Bug#36167).
12388 2019-07-06  Bruno Haible  <bruno@clisp.org>
12390         error: Fix documentation.
12391         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12392         module provides.
12393         * doc/glibc-functions/error_message_count.texi: Likewise.
12394         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12395         * doc/glibc-functions/error_print_progname.texi: Likewise.
12397 2019-07-06  Bruno Haible  <bruno@clisp.org>
12399         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12400         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12401         and older is unsupported.
12402         * doc/**/*.texi: Update.
12404 2019-07-06  Bruno Haible  <bruno@clisp.org>
12406         doc: Remove documentation of Linux libc5 as a supported platform.
12407         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12408         to Linux libc5.
12409         * doc/posix-functions/iswalpha.texi: Likewise.
12410         * doc/posix-functions/iswblank.texi: Likewise.
12411         * doc/posix-functions/iswcntrl.texi: Likewise.
12412         * doc/posix-functions/iswdigit.texi: Likewise.
12413         * doc/posix-functions/iswgraph.texi: Likewise.
12414         * doc/posix-functions/iswlower.texi: Likewise.
12415         * doc/posix-functions/iswprint.texi: Likewise.
12416         * doc/posix-functions/iswpunct.texi: Likewise.
12417         * doc/posix-functions/iswspace.texi: Likewise.
12418         * doc/posix-functions/iswupper.texi: Likewise.
12419         * doc/posix-functions/iswxdigit.texi: Likewise.
12420         * doc/posix-functions/snprintf.texi: Likewise.
12421         * doc/posix-functions/vsnprintf.texi: Likewise.
12423 2019-07-06  Bruno Haible  <bruno@clisp.org>
12425         doc: Remove documentation of Tandem/NSK as a supported platform.
12426         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12427         Tandem/NSK.
12428         * doc/**/*.texi: Update.
12430 2019-07-06  Bruno Haible  <bruno@clisp.org>
12432         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12433         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12434         and older is unsupported.
12435         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12436         Mac OS X 10.4 and older.
12437         * doc/posix-functions/asinl.texi: Likewise.
12438         * doc/posix-functions/atanl.texi: Likewise.
12439         * doc/posix-functions/cosl.texi: Likewise.
12440         * doc/posix-functions/expl.texi: Likewise.
12441         * doc/posix-functions/frexpl.texi: Likewise.
12442         * doc/posix-functions/gettimeofday.texi: Likewise.
12443         * doc/posix-functions/logl.texi: Likewise.
12444         * doc/posix-functions/mkstemp.texi: Likewise.
12445         * doc/posix-functions/sinl.texi: Likewise.
12446         * doc/posix-functions/sqrtl.texi: Likewise.
12447         * doc/posix-functions/tanl.texi: Likewise.
12448         * doc/posix-functions/wcswidth.texi: Likewise.
12449         * doc/**/*.texi: Update.
12451 2019-07-06  Bruno Haible  <bruno@clisp.org>
12453         doc: Remove documentation of AIX 4 as a supported platform.
12454         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12455         unsupported.
12456         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12457         workarounds.
12458         * doc/posix-functions/strnlen.texi: Likewise.
12459         * doc/posix-headers/inttypes.texi: Likewise.
12460         * doc/**/*.texi: Update.
12462 2019-07-06  Bruno Haible  <bruno@clisp.org>
12464         doc: Remove documentation of HP-UX 10 as a supported platform.
12465         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12466         unsupported.
12467         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12468         workarounds.
12469         * doc/posix-functions/gmtime_r.texi: Likewise.
12470         * doc/posix-functions/localtime_r.texi: Likewise.
12471         * doc/posix-functions/mkstemp.texi: Likewise.
12472         * doc/**/*.texi: Update.
12474 2019-07-06  Bruno Haible  <bruno@clisp.org>
12476         doc: Remove documentation of Interix 3.5 as a supported platform.
12477         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12478         unsupported.
12479         * doc/posix-functions/select.texi: Don't mention Interix specific
12480         workarounds.
12481         * doc/posix-headers/signal.texi: Likewise.
12482         * doc/**/*.texi: Update.
12484 2019-07-06  Bruno Haible  <bruno@clisp.org>
12486         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12487         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12488         unsupported.
12489         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12490         workarounds.
12491         * doc/posix-functions/nl_langinfo.texi: Likewise.
12492         * doc/posix-functions/remainder.texi: Likewise.
12493         * doc/posix-functions/towlower.texi: Likewise.
12494         * doc/posix-functions/towupper.texi: Likewise.
12495         * doc/posix-functions/vsnprintf.texi: Likewise.
12496         * doc/posix-functions/wcscat.texi: Likewise.
12497         * doc/posix-functions/wcschr.texi: Likewise.
12498         * doc/posix-functions/wcscmp.texi: Likewise.
12499         * doc/posix-functions/wcscpy.texi: Likewise.
12500         * doc/posix-functions/wcscspn.texi: Likewise.
12501         * doc/posix-functions/wcslen.texi: Likewise.
12502         * doc/posix-functions/wcsncat.texi: Likewise.
12503         * doc/posix-functions/wcsncmp.texi: Likewise.
12504         * doc/posix-functions/wcsncpy.texi: Likewise.
12505         * doc/posix-functions/wcspbrk.texi: Likewise.
12506         * doc/posix-functions/wcsrchr.texi: Likewise.
12507         * doc/posix-functions/wcsspn.texi: Likewise.
12508         * doc/posix-headers/langinfo.texi: Likewise.
12509         * doc/posix-headers/signal.texi: Likewise.
12510         * doc/posix-headers/wchar.texi: Likewise.
12511         * doc/posix-headers/wctype.texi: Likewise.
12512         * doc/**/*.texi: Update.
12514 2019-07-05  Bruno Haible  <bruno@clisp.org>
12516         doc: Remove documentation of OSF/1 as supported platform.
12517         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12518         unsupported.
12519         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12520         workarounds.
12521         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12522         * doc/glibc-functions/ptsname_r.texi: Likewise.
12523         * doc/posix-functions/ceil.texi: Likewise.
12524         * doc/posix-functions/ceilf.texi: Likewise.
12525         * doc/posix-functions/ceill.texi: Likewise.
12526         * doc/posix-functions/fchdir.texi: Likewise.
12527         * doc/posix-functions/floor.texi: Likewise.
12528         * doc/posix-functions/floorf.texi: Likewise.
12529         * doc/posix-functions/fmod.texi: Likewise.
12530         * doc/posix-functions/fmodf.texi: Likewise.
12531         * doc/posix-functions/fmodl.texi: Likewise.
12532         * doc/posix-functions/log.texi: Likewise.
12533         * doc/posix-functions/logf.texi: Likewise.
12534         * doc/posix-functions/logl.texi: Likewise.
12535         * doc/posix-functions/log10.texi: Likewise.
12536         * doc/posix-functions/log10f.texi: Likewise.
12537         * doc/posix-functions/log10l.texi: Likewise.
12538         * doc/posix-functions/log2.texi: Likewise.
12539         * doc/posix-functions/log2f.texi: Likewise.
12540         * doc/posix-functions/log2l.texi: Likewise.
12541         * doc/posix-functions/mbrtowc.texi: Likewise.
12542         * doc/posix-functions/recv.texi: Likewise.
12543         * doc/posix-functions/recvfrom.texi: Likewise.
12544         * doc/posix-functions/remainder.texi: Likewise.
12545         * doc/posix-functions/remainderf.texi: Likewise.
12546         * doc/posix-functions/remainderl.texi: Likewise.
12547         * doc/posix-functions/round.texi: Likewise.
12548         * doc/posix-functions/roundf.texi: Likewise.
12549         * doc/posix-functions/roundl.texi: Likewise.
12550         * doc/posix-functions/send.texi: Likewise.
12551         * doc/posix-functions/sendto.texi: Likewise.
12552         * doc/posix-functions/setenv.texi: Likewise.
12553         * doc/posix-functions/snprintf.texi: Likewise.
12554         * doc/posix-functions/tcgetsid.texi: Likewise.
12555         * doc/posix-functions/trunc.texi: Likewise.
12556         * doc/posix-functions/truncf.texi: Likewise.
12557         * doc/posix-functions/truncl.texi: Likewise.
12558         * doc/posix-functions/ttyname_r.texi: Likewise.
12559         * doc/posix-functions/unsetenv.texi: Likewise.
12560         * doc/posix-functions/wcsrtombs.texi: Likewise.
12561         * doc/posix-headers/sys_select.texi: Likewise.
12562         * doc/posix-headers/wchar.texi: Likewise.
12563         * doc/posix-headers/wctype.texi: Likewise.
12564         * doc/**/*.texi: Update.
12566 2019-07-05  Bruno Haible  <bruno@clisp.org>
12568         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12569         * doc/**/*.texi: Update.
12571 2019-07-05  Bruno Haible  <bruno@clisp.org>
12573         doc: Remove documentation of Solaris 8 and older as supported platforms.
12574         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12575         unsupported.
12576         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12577         workarounds.
12578         * doc/posix-functions/memcmp.texi: Likewise.
12579         * doc/posix-functions/rename.texi: Likewise.
12580         * doc/posix-functions/tzset.texi: Likewise.
12581         * doc/posix-headers/wctype.texi: Likewise.
12582         * doc/**/*.texi: Update.
12584 2019-07-05  Bruno Haible  <bruno@clisp.org>
12586         doc: Remove documentation of Interix 3.5 as a supported platform.
12587         * doc/**/*.texi: Update.
12589 2019-07-05  Bruno Haible  <bruno@clisp.org>
12591         doc: Remove documentation of BeOS as a supported platform.
12592         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12593         unsupported.
12594         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12595         * doc/posix-functions/getdelim.texi: Likewise.
12596         * doc/**/*.texi: Update.
12598 2019-07-05  Bruno Haible  <bruno@clisp.org>
12600         thread, lock, cond, tls: Remove support for Pth threads.
12601         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12602         --enable-threads=pth any more.
12603         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12604         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12605         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12606         threads and ISO C11 threads.
12607         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12608         * lib/glthread/lock.h: Likewise.
12609         * lib/glthread/lock.c: Likewise.
12610         * lib/glthread/cond.h: Likewise.
12611         * lib/glthread/cond.c: Likewise.
12612         * lib/glthread/tls.h: Likewise.
12613         * lib/glthread/tls.c: Likewise.
12614         * lib/glthread/yield.h: Likewise.
12615         * lib/regex_internal.h: Likewise.
12616         * tests/test-thread_create.c: Likewise.
12617         * tests/test-lock.c: Likewise.
12618         * tests/test-cond.c: Likewise.
12619         * tests/test-tls.c: Likewise.
12620         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12621         (main): Sleep without calling gl_thread_yield.
12623 2019-07-05  Bruno Haible  <bruno@clisp.org>
12625         thread, lock, cond, tls: Remove support for old Solaris threads.
12626         Solaris >= 2.5.1 has POSIX threads.
12627         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12628         --enable-threads=solaris any more.
12629         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12630         * lib/glthread/thread.c: Update comment.
12631         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12632         * lib/glthread/lock.h: Likewise.
12633         * lib/glthread/lock.c: Likewise.
12634         * lib/glthread/cond.h: Likewise.
12635         * lib/glthread/cond.c: Likewise.
12636         * lib/glthread/tls.h: Likewise.
12637         * lib/glthread/tls.c: Likewise.
12638         * lib/glthread/yield.h: Likewise.
12639         * lib/regex_internal.h: Likewise.
12640         * tests/test-thread_create.c: Likewise.
12641         * tests/test-lock.c: Likewise.
12642         * tests/test-cond.c: Likewise.
12643         * tests/test-tls.c: Likewise.
12645 2019-07-05  Bruno Haible  <bruno@clisp.org>
12647         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12648         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12649         needed size is equal to the allocated size.
12650         * lib/getcwd.c (__getcwd): Likewise.
12652 2019-07-05  Bruno Haible  <bruno@clisp.org>
12654         xgetdomainname: Don't return an excessive memory allocation.
12655         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12656         before returning it.
12658 2019-07-05  Bruno Haible  <bruno@clisp.org>
12660         xgethostname: Don't return an excessive memory allocation.
12661         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12662         returning it.
12664 2019-07-05  Bruno Haible  <bruno@clisp.org>
12666         areadlinkat-with-size: Don't return an excessive memory allocation.
12667         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12668         before returning it.
12670 2019-07-05  Bruno Haible  <bruno@clisp.org>
12672         areadlink-with-size: Don't return an excessive memory allocation.
12673         Reported by Andreas Dilger <adilger@whamcloud.com>.
12674         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12675         before returning it.
12677 2019-07-03  Bruno Haible  <bruno@clisp.org>
12679         renameatu: Fix test failure on MSVC.
12680         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12681         empty string.
12683 2019-07-03  Bruno Haible  <bruno@clisp.org>
12685         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12686         * lib/mbrtowc.c: Include glthread/lock.h.
12687         (mbtowc_lock): New variable.
12688         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12689         encodings, explicitly reset the internal state of mbtowc, and protect
12690         this through a lock.
12691         * modules/mbrtowc (Depends-on): Add lock.
12693 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12695         argmatch: don't define _ in the header.
12696         Reported by Jim Meyering.
12697         * lib/argmatch.h (N_, _): Don't define.
12698         Use gettext instead.
12699         * lib/argmatch.h (_): Define.
12700         * tests/test-argmatch.c (N_): Define.
12702 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12704         verify: document ‘assume’ better
12705         * lib/verify.h: Reword doc (Bug#36370).
12707 2019-07-02  Bruno Haible  <bruno@clisp.org>
12709         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12710         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12711         "CPutf8".
12712         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12714 2019-07-02  Bruno Haible  <bruno@clisp.org>
12716         getcwd: Fix crash when invoked with size = 0 on MSVC.
12717         * lib/getcwd.c: Include msvc-inval.h.
12718         (getcwd_nothrow): New function/macro.
12719         (getcwd_system): New macro.
12720         (__getcwd): Use it instead of getcwd.
12721         * modules/getcwd (Depends-on): Add msvc-inval.
12722         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12724 2019-07-02  Bruno Haible  <bruno@clisp.org>
12726         nonblocking-pipe tests: Fix test failure on MSVC.
12727         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12728         native Windows.
12730 2019-07-02  Bruno Haible  <bruno@clisp.org>
12732         usleep: Implement with millisecond resolution on native Windows.
12733         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12734         * doc/pastposix-functions/usleep.texi: Update accordingly.
12736 2019-07-02  Bruno Haible  <bruno@clisp.org>
12738         lstat tests: Fix test failure on MSVC.
12739         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12740         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12742 2019-07-02  Bruno Haible  <bruno@clisp.org>
12744         stat tests: Fix test failure on MSVC.
12745         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12746         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12748 2019-07-02  Bruno Haible  <bruno@clisp.org>
12750         getaddrinfo tests: Fix test failure on MSVC.
12751         * tests/test-getaddrinfo.c: Include sockets.h.
12752         (main): Invoke gl_sockets_startup.
12753         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12755 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12757         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12758         * lib/poll.c: Call Windows native select() with Windows native timeval.
12760 2019-06-30  Bruno Haible  <bruno@clisp.org>
12762         argmatch: Fix compilation errors.
12763         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12764         * tests/test-argmatch.c (main): Update after last-minute function names
12765         change.
12767 2019-06-30  Bruno Haible  <bruno@clisp.org>
12769         Include <stdlib.h> when needed.
12770         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12771         * lib/fcntl.c: Likewise.
12772         * lib/mbscasestr.c: Likewise.
12773         * lib/mbssep.c: Likewise.
12774         * lib/mbsstr.c: Likewise.
12775         * lib/openat.c: Include <stdlib.h>, needed for free().
12776         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12777         abort().
12779 2019-06-30  Bruno Haible  <bruno@clisp.org>
12781         Include <stdlib.h> when needed.
12782         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12783         * lib/faccessat.c: Likewise.
12784         * lib/fchmodat.c: Likewise.
12785         * lib/fchownat.c: Likewise.
12786         * lib/fstatat.c: Likewise.
12787         * lib/mkfifoat.c: Likewise.
12788         * lib/mknodat.c: Likewise.
12789         * lib/readlinkat.c: Likewise.
12790         * lib/symlinkat.c: Likewise.
12791         * lib/utimensat.c: Likewise.
12792         * lib/mkdirat.c: Likewise. Include also the specification header.
12794 2019-06-30  Bruno Haible  <bruno@clisp.org>
12796         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12797         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12798         from gl_PREREQ_SYS_H_SOCKET.
12799         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12800         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12801         gl_PREREQ_SYS_H_WS2TCPIP.
12802         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12803         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12804         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12806 2019-06-30  Bruno Haible  <bruno@clisp.org>
12808         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12809         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12810         REPLACE_INET_NTOP to 1 always.
12811         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12812         REPLACE_INET_PTON to 1 always.
12814 2019-06-30  Bruno Haible  <bruno@clisp.org>
12816         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12817         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12818         not REPLACE_INET_NTOP.
12820 2019-06-30  Bruno Haible  <bruno@clisp.org>
12822         poll: Add comment.
12823         * lib/poll.c: Add comment about WSAPoll.
12825 2019-06-30  Bruno Haible  <bruno@clisp.org>
12827         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12828         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12829         * lib/poll.in.h: Include <winsock2.h>.
12830         (POLL*, pollfd): Override on native Windows.
12831         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12832         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12833         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12835 2019-06-28  Bruno Haible  <bruno@clisp.org>
12837         accept4: Fix compilation error on OpenIndiana.
12838         Reported by Michal Nowak <mnowak@startmail.com>
12839         via Mark H Weaver <mhw@netris.org>.
12840         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12841         whether it exists as a function.
12843 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12845         strverscmp: sync from glibc
12846         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12847         comments, include libc-config.h, define __strverscmp to be
12848         strverscmp, and don’t assume types line uint8_t and int8_t that
12849         that C99 doesn’t guarantee.
12850         [!_LIBC]: Include libc-config.h; define __strverscmp.
12851         Include stdint.h.
12852         (__strverscmp): Assume C99.  Use uint_least8_t
12853         and int_least8_t instead of unsigned char and signed char.
12854         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12856 2019-06-25  Bruno Haible  <bruno@clisp.org>
12858         tss tests: Add tests for destructors and races.
12859         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12860         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12861         functions.
12862         (main): Invoke them.
12863         * modules/tls-tests (Depends-on): Add mtx.
12865 2019-06-25  Bruno Haible  <bruno@clisp.org>
12867         tls tests: Add tests for destructors and races.
12868         * tests/test-tls.c: Include glthread/lock.h.
12869         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12870         functions.
12871         (main): Invoke them.
12872         * modules/tls-tests (Depends-on): Add lock.
12874 2019-06-25  Bruno Haible  <bruno@clisp.org>
12876         windows-tls: Implement TLS key destructors for native Windows.
12877         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12878         declaration.
12879         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12880         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12881         (dtor_table_init_once, dtor_table_lock: New variables.
12882         (struct dtor): New type.
12883         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12884         dtor_processing_threads): New variables.
12885         (dtor_table_initialize, dtor_table_ensure_initialized,
12886         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12887         functions.
12888         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12889         handle non-NULL destructors.
12890         * modules/windows-tls (Depends-on): Add windows-once.
12891         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12892         Use the functions declared in windows-tls.h.
12893         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12894         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12895         * lib/windows-thread.c: Include windows-tls.h.
12896         (wrapper_func, glwthread_thread_exit): Invoke
12897         glwthread_tls_process_destructors.
12898         * modules/windows-thread (Depends-on): Add windows-tls.
12900 2019-06-25  Bruno Haible  <bruno@clisp.org>
12902         threadlib: Avoid autoconf warning "was expanded before it was required".
12903         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12905 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12907         argmatch: remove duplicate const qualifier
12908         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12910 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12912         unistd: stddef.h and sys/types.h namespace cleanup
12913         * lib/unistd.in.h [__GLIBC__]:
12914         Do not include stddef.h or sys/types.h.
12915         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12916         supposed to declare off_t and ssize_t.  Problem found when looking
12917         at why @GNULIB_PWRITE@ was different from the newly-added
12918         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12920 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12922         maintainer-makefile: restore portability to non-GNU awks
12923         Reported by Tim Rühsen.
12924         * top/maint.mk (AWK): New variable.  Use it.
12925         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12927 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12929         Document setvbuf _IOLBF problem
12930         * doc/posix-functions/setvbuf.texi (setvbuf):
12931         Document MS-Windows portability problem with _IOLBF.
12933         Document lseek SEEK_DATA/SEEK_HOLE
12934         * doc/posix-functions/lseek.texi (lseek):
12935         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12937 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12939         argmatch: put all the docs member last.
12940         Reported by Bruno Haible.
12941         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12942         member before the docs done.
12943         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12945 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12947         argmatch: add support to generate the usage message.
12948         * lib/argmatch.c: Move some #includes and gettext support to...
12949         * lib/argmatch.h: here.
12950         (ARGMATCH_DEFINE_GROUP): New macro.
12951         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12952         (argmatch_backup_group): New.
12953         (CHECK): New.
12954         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12955         argmatch_backup_argument and argmatch_backup_usage.
12956         * modules/argmatch: We depend on c99.
12957         * doc/argmatch.texi (Recognizing Option Arguments): New.
12958         * doc/gnulib.texi: Use it.
12960 2019-06-21  Bruno Haible  <bruno@clisp.org>
12962         thrd: Add comment.
12963         * lib/thrd.c (pthread_main_func): Add comment.
12965 2019-06-21  Bruno Haible  <bruno@clisp.org>
12967         threads-h: Define 'thread_local' if and only if it actually works.
12968         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12969         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12970         Oracle Solaris Studio C. Compile a simple program, to see whether
12971         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12972         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12973         * lib/threads.in.h (thread_local): Undefine if it does not work.
12974         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12975         (Link): Mention LIBTHREADLOCAL.
12976         * tests/test-threads.c: Don't check that thread_local is defined.
12977         * tests/test-thread_local.c: New file.
12978         * modules/threads-h-tests (Files): Add it and macros.h.
12979         (Depends-on): Add thrd and stdint.
12980         (configure.ac): Test whether 'alarm' is declared.
12981         (Makefile.am): Arrange to build and link test-thread_local.
12982         * doc/posix-headers/threads.texi: Mention the platforms that don't
12983         support 'thread_local'.
12985 2019-06-20  Bruno Haible  <bruno@clisp.org>
12987         threads-h: Simplify link dependencies.
12988         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12989         Don't set LTLIBSTDTHREAD.
12990         * modules/thrd (Link): Simplify accordingly.
12991         * modules/mtx (Link): Likewise.
12992         * modules/cnd (Link): Likewise.
12993         * modules/tss (Link): Likewise.
12994         * modules/threads (Link): Likewise.
12996 2019-06-20  Bruno Haible  <bruno@clisp.org>
12998         threads-h: Fix link error on FreeBSD 11.
12999         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
13000         also with -lpthread.
13002 2019-06-20  Bruno Haible  <bruno@clisp.org>
13004         threadlib: Fix typo (regression from today).
13005         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
13007 2019-06-20  Bruno Haible  <bruno@clisp.org>
13009         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
13010         * lib/windows-thread.c: Include <errno.h>.
13011         * lib/windows-tls.c: Likewise.
13013 2019-06-20  Bruno Haible  <bruno@clisp.org>
13015         tss tests: Small improvement.
13016         * tests/test-tss.c (test_tss): Pass a different id to each thread.
13018 2019-06-20  Bruno Haible  <bruno@clisp.org>
13020         threads: New module.
13021         * modules/threads: New file.
13023 2019-06-20  Bruno Haible  <bruno@clisp.org>
13025         tss: Add tests.
13026         * tests/test-tss.c: New file, based on tests/test-tls.c.
13027         * modules/tss-tests: New file.
13029 2019-06-20  Bruno Haible  <bruno@clisp.org>
13031         cnd: Add tests.
13032         * tests/test-cnd.c: New file, based on tests/test-cond.c.
13033         * modules/cnd-tests: New file.
13035 2019-06-20  Bruno Haible  <bruno@clisp.org>
13037         mtx: Add tests.
13038         * tests/test-mtx.c: New file, based on tests/test-lock.c.
13039         * tests/test-call_once.c: New file, based on tests/test-once.c.
13040         * modules/mtx-tests: New file.
13042 2019-06-20  Bruno Haible  <bruno@clisp.org>
13044         thrd: Add tests.
13045         * tests/test-thrd_create.c: New file, based on
13046         tests/test-thread_create.c.
13047         * tests/test-thrd_current.c: New file, based on
13048         tests/test-thread_self.c.
13049         * modules/thrd-tests: New file.
13051 2019-06-20  Bruno Haible  <bruno@clisp.org>
13053         tss: New module.
13054         * lib/tss.c: New file.
13055         * modules/tss: New file.
13056         * doc/posix-functions/tss_create.texi: Mention the new module.
13057         * doc/posix-functions/tss_set.texi: Likewise.
13058         * doc/posix-functions/tss_get.texi: Likewise.
13059         * doc/posix-functions/tss_delete.texi: Likewise.
13061 2019-06-20  Bruno Haible  <bruno@clisp.org>
13063         cnd: New module.
13064         * lib/cnd.c: New file.
13065         * modules/cnd: New file.
13066         * doc/posix-functions/cnd_init.texi: Mention the new module.
13067         * doc/posix-functions/cnd_wait.texi: Likewise.
13068         * doc/posix-functions/cnd_timedwait.texi: Likewise.
13069         * doc/posix-functions/cnd_signal.texi: Likewise.
13070         * doc/posix-functions/cnd_broadcast.texi: Likewise.
13071         * doc/posix-functions/cnd_destroy.texi: Likewise.
13073 2019-06-20  Bruno Haible  <bruno@clisp.org>
13075         mtx: New module.
13076         * lib/mtx.c: New file.
13077         * modules/mtx: New file.
13078         * doc/posix-functions/call_once.texi: Mention the new module.
13079         * doc/posix-functions/mtx_init.texi: Likewise.
13080         * doc/posix-functions/mtx_lock.texi: Likewise.
13081         * doc/posix-functions/mtx_trylock.texi: Likewise.
13082         * doc/posix-functions/mtx_timedlock.texi: Likewise.
13083         * doc/posix-functions/mtx_unlock.texi: Likewise.
13084         * doc/posix-functions/mtx_destroy.texi: Likewise.
13086 2019-06-20  Bruno Haible  <bruno@clisp.org>
13088         thrd: New module.
13089         * lib/thrd.c: New file.
13090         * m4/thrd.m4: New file.
13091         * modules/thrd: New file.
13092         * doc/posix-functions/thrd_current.texi: Mention the new module.
13093         * doc/posix-functions/thrd_detach.texi: Likewise.
13094         * doc/posix-functions/thrd_equal.texi: Likewise.
13095         * doc/posix-functions/thrd_exit.texi: Likewise.
13096         * doc/posix-functions/thrd_sleep.texi: Likewise.
13097         * doc/posix-functions/thrd_yield.texi: Likewise.
13098         * doc/posix-functions/thrd_create.texi: Mention the new module and the
13099         AIX bug.
13100         * doc/posix-functions/thrd_join.texi: Mention the new module and the
13101         AIX and Solaris bugs.
13103 2019-06-20  Bruno Haible  <bruno@clisp.org>
13105         threads-h: Add tests.
13106         * tests/test-threads.c: New file.
13107         * modules/threads-h-tests: New file.
13108         * tests/test-threads-c++.cc: New file.
13109         * modules/threads-h-c++-tests: New file.
13111 2019-06-20  Bruno Haible  <bruno@clisp.org>
13113         threads-h: New module.
13114         * lib/threads.in.h: New file.
13115         * m4/threads.m4: New file.
13116         * m4/yield.m4 (gl_YIELD): Update comment.
13117         * modules/threads-h: New file.
13118         * modules/yields (configure.ac): Use AC_REQUIRE.
13119         * doc/posix-headers/threads.texi: Mention the new module and the AIX
13120         bugs.
13122 2019-06-20  Bruno Haible  <bruno@clisp.org>
13124         windows-thread: New module.
13125         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
13126         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
13127         * lib/glthread/thread.h: Include windows-thread.h.
13128         (gl_thread_t): Define using glwthread_thread_t.
13129         (glthread_create): Define using glwthread_thread_create.
13130         (glthread_join): Define using glwthread_thread_join.
13131         (gl_thread_self): Define using glwthread_thread_self.
13132         (gl_thread_exit): Define using glwthread_thread_exit.
13133         (glthread_create_func, glthread_join_func, gl_thread_self_func,
13134         gl_thread_exit_func): Remove declarations.
13135         * lib/glthread/thread.c (self_key): Remove variable.
13136         (do_init_self_key, init_self_key): Remove functions.
13137         (struct gl_thread_struct): Remove type.
13138         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
13139         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
13140         functions.
13141         * modules/windows-thread: New file.
13142         * modules/thread (Depends-on): Add windows-thread.
13144 2019-06-20  Bruno Haible  <bruno@clisp.org>
13146         windows-tls: New module.
13147         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
13148         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
13149         * lib/glthread/tls.h: Include windows-tls.h.
13150         (gl_tls_key_t): Define using glwthread_tls_key_t.
13151         * modules/windows-tls: New file.
13152         * modules/tls (Depends-on): Add windows-tls.
13154 2019-06-20  Bruno Haible  <bruno@clisp.org>
13156         windows-cond: New module.
13157         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
13158         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
13159         * lib/glthread/cond.h: Include windows-cond.h.
13160         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
13161         (gl_cond_t): Define using glwthread_cond_t.
13162         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
13163         (glthread_cond_init): Define using glwthread_cond_init.
13164         (glthread_cond_wait): Define using glwthread_cond_wait.
13165         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
13166         (glthread_cond_signal): Define using glwthread_cond_signal.
13167         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
13168         (glthread_cond_destroy): Define using glwthread_cond_destroy.
13169         (glthread_cond_init_func, glthread_cond_wait_func,
13170         glthread_cond_timedwait_func, glthread_cond_signal_func,
13171         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13172         declarations.
13173         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
13174         types.
13175         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
13176         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
13177         glthread_cond_init_func, glthread_cond_wait_func,
13178         glthread_cond_timedwait_func, glthread_cond_signal_func,
13179         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
13180         functions.
13181         * modules/windows-cond: New file.
13182         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
13184 2019-06-20  Bruno Haible  <bruno@clisp.org>
13186         windows-timedrecmutex: New module.
13187         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
13188         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
13189         * modules/windows-timedrecmutex: New file.
13191 2019-06-20  Bruno Haible  <bruno@clisp.org>
13193         windows-timedmutex: New module.
13194         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
13195         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
13196         * modules/windows-timedmutex: New file.
13198 2019-06-20  Bruno Haible  <bruno@clisp.org>
13200         windows-recmutex: New module.
13201         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
13202         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
13203         * lib/glthread/lock.h: Include windows-recmutex.h.
13204         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
13205         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
13206         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
13207         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
13208         (glthread_recursive_lock_unlock): Define using
13209         glwthread_recmutex_unlock.
13210         (glthread_recursive_lock_destroy): Define using
13211         glwthread_recmutex_destroy.
13212         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
13213         glthread_recursive_lock_unlock_func,
13214         glthread_recursive_lock_destroy_func): Remove declarations.
13215         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
13216         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
13217         glthread_recursive_lock_destroy_func): Remove functions.
13218         * modules/windows-recmutex: New file.
13219         * modules/lock (Depends-on): Add windows-recmutex.
13221 2019-06-20  Bruno Haible  <bruno@clisp.org>
13223         windows-mutex: New module.
13224         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
13225         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
13226         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
13227         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
13228         (gl_spinlock_t): Remove type.
13229         (gl_lock_t): Define using glwthread_mutex_t.
13230         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
13231         (glthread_lock_init): Define using glwthread_mutex_init.
13232         (glthread_lock_lock): Define using glwthread_mutex_lock.
13233         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
13234         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
13235         (glthread_lock_init_func, glthread_lock_lock_func,
13236         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13237         declarations.
13238         Use glwthread_spinlock_t instead of gl_spinlock_t.
13239         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
13240         GLWTHREAD_SPINLOCK_INIT.
13241         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
13242         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
13243         functions.
13244         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
13245         gl_spinlock_t.
13246         * modules/windows-mutex: New file.
13247         * modules/lock (Depends-on): Add windows-mutex.
13249 2019-06-20  Bruno Haible  <bruno@clisp.org>
13251         windows-once: New module.
13252         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
13253         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13254         * lib/glthread/lock.h: Include windows-once.h.
13255         (gl_once_t): Define using glwthread_once_t.
13256         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13257         (glthread_once): Define using glwthread_once.
13258         (glthread_once_func): Remove declaration.
13259         * lib/glthread/lock.c (glthread_once_func): Remove function.
13260         * modules/windows-once: New file.
13261         * modules/lock (Depends-on): Add windows-once.
13263 2019-06-20  Bruno Haible  <bruno@clisp.org>
13265         lock, cond: Avoid possible counter wraparound on Windows.
13266         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13267         field of the guard unchanged if it was already positive.
13268         (glthread_rwlock_rdlock_func): Likewise.
13269         (glthread_rwlock_wrlock_func): Likewise.
13270         (glthread_recursive_lock_lock_func): Likewise.
13271         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13272         (glthread_cond_timedwait_func): Likewise.
13274 2019-06-20  Bruno Haible  <bruno@clisp.org>
13276         cond: Make glthread_cond_timedwait more reliable on Windows.
13277         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13278         condition variable before looking at the current time.
13280 2019-06-20  Bruno Haible  <bruno@clisp.org>
13282         pthread_mutex_timedlock: New module.
13283         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13284         new declaration.
13285         * lib/pthread_mutex_timedlock.c: New file.
13286         * m4/pthread_mutex_timedlock.m4: New file.
13287         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13288         whether pthread_mutex_timedlock is declared.
13289         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13290         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13291         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13292         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13293         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13294         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13295         * modules/pthread_mutex_timedlock: New file.
13296         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13297         module.
13299 2019-06-20  Bruno Haible  <bruno@clisp.org>
13301         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13302         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13303         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13304         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13305         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13306         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13307         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13308         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13309         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13310         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13312 2019-06-20  Bruno Haible  <bruno@clisp.org>
13314         tls tests: Small improvements.
13315         * tests/test-tls.c: Include <stdint.h>.
13316         (worker_thread): Avoid gcc warning on 64-bit mingw.
13317         (test_tls): Pass a different id to each thread.
13318         * modules/tls-tests (Depends-on): Add stdint.
13320 2019-06-20  Bruno Haible  <bruno@clisp.org>
13322         cond tests: Simplify.
13323         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13325 2019-06-20  Bruno Haible  <bruno@clisp.org>
13327         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13328         * tests/test-lock.c (test_once): Don't reference fire_signal if
13329         !ENABLE_LOCKING.
13331 2019-06-19  Bruno Haible  <bruno@clisp.org>
13333         nanosleep: Relicense under LGPLv2+.
13334         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13335         * modules/nanosleep (License): Change to LGPLv2+.
13337 2019-06-19  Bruno Haible  <bruno@clisp.org>
13339         Reorder pieces of header in perl scripts.
13340         The desired order is
13341         - Prologue part 1 (2 lines with #!)
13342         - Program short description
13343         - Copyright and license notice
13344         - Written-by notice
13345         - Program short description (optional)
13346         - Program long description (optional)
13347         - Prologue part 2
13348         - Time stamp
13349         - Code
13350         Reported by Paul Eggert.
13351         * build-aux/announce-gen: Reorder header.
13352         * build-aux/gitlog-to-changelog: Likewise.
13353         * build-aux/useless-if-before-free: Likewise.
13354         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13355         description.
13356         * build-aux/update-copyright: Likewise. Add short description. Bump
13357         time-stamp-line-limit to 200.
13359 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13361         verify-tests: work around xlc bug
13362         Problem reported by Bruno Haible in:
13363         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13364         * tests/test-verify.c (item): Move the arithmetic inside the
13365         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13367 2019-06-16  Bruno Haible  <bruno@clisp.org>
13369         Restore Emacs time-stamp hook applicability.
13370         Reported by Darshit Shah <darnir@gnu.org>.
13371         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13372         * build-aux/announce-gen: Likewise.
13373         * build-aux/gitlog-to-changelog: Likewise.
13374         * build-aux/prefix-gnulib-mk: Likewise.
13375         * build-aux/update-copyright: Likewise.
13377 2019-06-15  Bruno Haible  <bruno@clisp.org>
13379         Fix scripts to have valid executable format on Alpine Linux.
13380         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13381         Idea by Paul Eggert.
13382         * build-aux/useless-if-before-free: Use a prologue that starts with
13383         '#!/bin/sh'.
13384         * build-aux/announce-gen: Likewise.
13385         * build-aux/gitlog-to-changelog: Likewise.
13386         * build-aux/prefix-gnulib-mk: Likewise.
13387         * build-aux/update-copyright: Likewise.
13388         * tests/test-update-copyright.sh: Update test program accordingly.
13390 2019-06-10  Bruno Haible  <bruno@clisp.org>
13392         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13393         Reported by Nikita Ermakov <arei@altlinux.org> in
13394         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13395         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13396         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13398 2019-06-10  Bruno Haible  <bruno@clisp.org>
13400         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13401         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13402         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13403         a copy of the path argument.
13404         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13405         it.
13407 2019-06-10  Bruno Haible  <bruno@clisp.org>
13409         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13410         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13411         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13412         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13413         a copy of the path argument.
13414         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13415         it.
13417 2019-06-10  Bruno Haible  <bruno@clisp.org>
13419         posix_spawn_file_actions_addfchdir: Add tests.
13420         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13421         * tests/test-posix_spawn5.c: New file.
13422         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13424 2019-06-10  Bruno Haible  <bruno@clisp.org>
13426         posix_spawn_file_actions_addfchdir: New module.
13427         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13428         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13429         union member 'fchdir_action'.
13430         * lib/spawn_faction_addfchdir.c: New file.
13431         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13432         * m4/posix_spawn_faction_addfchdir.m4: New file.
13433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13434         'posix_spawn_file_actions_addfchdir' is present and whether
13435         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13436         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13437         posix_spawn_file_actions_addfchdir is declared.
13438         (gl_SPAWN_H_DEFAULTS): Initialize
13439         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13440         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13441         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13442         * modules/spawn (Makefile.am): Substitute
13443         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13444         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13445         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13446         * modules/posix_spawn_file_actions_addfchdir: New file.
13447         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13448         signature.
13449         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13450         * doc/posix-functions/posix_spawnp.texi: Likewise.
13451         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13452         Likewise.
13454 2019-06-10  Bruno Haible  <bruno@clisp.org>
13456         doc: Document existence of posix_spawn_file_actions_addchdir module.
13457         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13458         the posix_spawn_file_actions_addchdir module.
13460 2019-06-10  Bruno Haible  <bruno@clisp.org>
13462         posix_spawn-internal: Fix module description.
13463         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13464         from here...
13465         * modules/posix_spawnp (configure.ac): ... and here...
13466         * modules/posix_spawn-internal (configure.ac): ... to here.
13468 2019-06-10  Bruno Haible  <bruno@clisp.org>
13470         doc: Update and improve documentation of glibc functions.
13471         This is a series of commits that
13472         - updates the documentation to the state of glibc 2.29,
13473         - adds references to Linux man pages and glibc documentation,
13474         - marks Linux specific functions as such.
13475         These are the commits:
13476         doc: Update after removal of crypt functions from glibc 2.28.
13477         doc: Remove mention of function vm86 (does not exist on x86_64).
13478         doc: Remove mention of functions that are gone from glibc.
13479         doc: Mention that glibc no longer provides h_errno.
13480         doc: Mention the availability of specific functions in glibc versions.
13481         doc: Mention eaccess.
13482         doc: Add references to Linux man pages.
13483         doc: Add references to glibc documentation.
13484         doc: Mention inotify_* functions.
13485         doc: Mention ppoll.
13486         doc: Mention sched_getcpu.
13487         doc: Mention sync_file_range.
13488         doc: Mention epoll_pwait.
13489         doc: Mention eventfd, eventfd_read, eventfd_write.
13490         doc: Mention signalfd.
13491         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13492         doc: Mention epoll_create1.
13493         doc: Mention getauxval.
13494         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13495         doc: Mention nextdown, nextup.
13496         doc: Mention more ISO TS 18661-1 <math.h> functions.
13497         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13498         doc: Mention getrandom, getentropy.
13499         doc: Mention strfromf, strfromd, strfroml.
13500         doc: Mention preadv2, pwritev2.
13501         doc: Mention copy_file_range.
13502         doc: Mention memfd_create.
13503         doc: Mention mlock2.
13504         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13505         doc: Mention more ISO TS 18661-1 <math.h> functions.
13506         doc: Mention renameat2.
13507         doc: Mention statx.
13508         doc: Mention the ISO C11 multithreading header and functions.
13509         doc: Mention getcpu.
13510         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13511         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13512         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13513         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13514         doc: Some glibc functions also exist on Solaris 11.
13515         doc: Some glibc functions also exist on Solaris 11.4.
13516         doc: Some glibc functions also exist on FreeBSD.
13517         doc: Some glibc functions also exist on BeOS.
13518         doc: Some glibc functions also exist on Haiku.
13519         doc: Mark functions which exist only on Linux.
13520         doc: Mark functions which exist only on Linux and illumos.
13522 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13524         copy-file: fix typo
13525         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13527         copy-file-range: simplify into a stub
13528         Based on a comment by Florian Weimer in:
13529         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13530         It turns out that Emacs (which will use this module) won’t need an
13531         emulation and I suspect other programs won’t either, because these
13532         programs will need to fall back on read+write anyway.  Perhaps I
13533         am wrong and other programs will be able to use an emulation; if
13534         so, this patch can be reverted.
13535         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13536         Just call it copy_file_range.
13537         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13538         Check via AC_LINK_IFELSE.
13539         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13541 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13543         copy-file: prefer copy_file_range
13544         * lib/copy-file.c: Do not include xalloc.h.
13545         (qcopy_file_preserving): Allocate a buffer only if
13546         copy_file_range does not suffice.  If the allocation fails
13547         don't give up; just use a small stack-based buffer.
13548         Prefer copy_file_range if it works.
13549         * modules/copy-file (Depends-on): Add copy-file-range.
13550         Remove xalloc.
13552         copy-file-range: new module
13553         * MODULES.html.sh: Add copy-file-range.
13554         * lib/copy-file-range.c, m4/copy-file-range.m4:
13555         * modules/copy-file-range: New files.
13556         * lib/unistd.in.h (copy_file_range): Declare.
13557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13558         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13559         * modules/unistd (unistd.h): Substitute them.
13561 2019-05-28  Bruno Haible  <bruno@clisp.org>
13563         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13564         Reported by KO Myung-Hun <komh78@gmail.com> in
13565         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13566         * lib/binary-io.h (__gl_setmode_check): Remove function.
13567         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13568         * lib/binary-io.c (__gl_setmode_check): Remove function.
13569         (set_binary_mode): Define here on DJGPP and EMX. Inline
13570         __gl_setmode_check. In case of a tty, don't return an error code.
13572 2019-05-28  James Youngman  <jay@gnu.org>
13574         dirent-safer: Make opendir_safer usable from C++.
13575         * lib/dirent-safer.h: use extern "C".
13577 2019-05-28  James Youngman  <jay@gnu.org>
13579         canonicalize: Make canonicalize_filename_mode usable from C++.
13580         * lib/canonicalize.h: use extern "C".
13582 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13584         prefix-gnulib-mk: Fix CPPFLAGS migration.
13585         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13586         _a part of the library name.
13588 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13590         flexmember: update comments again
13591         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13593         flexmember: update comment
13594         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13596 2019-05-20  Bruno Haible  <bruno@clisp.org>
13598         setlocale: Improve fallback on macOS.
13599         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13600         invocation.
13601         (locales_with_principal_territory): New array.
13602         (langcmp, get_main_locale_with_same_language): New functions.
13603         (locales_with_principal_language): New array.
13604         (terrcmp, get_main_locale_with_same_territory): New functions.
13605         (rpl_setlocale): When setlocale_single failed, try again with a locale
13606         that is more likely to exist. Don't warn if the environment variable
13607         SETLOCALE_VERBOSE is not set.
13609 2019-05-19  Bruno Haible  <bruno@clisp.org>
13611         localename: Fix default on macOS.
13612         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13613         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13614         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13615         HAVE_CFLOCALECOPYCURRENT.
13616         * lib/localename.h (gl_locale_name_default): Update.
13618 2019-05-19  Karl Berry  <karl@freefriends.org>
13620         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13621         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13622         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13624 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13626         maintainer-makefile: catch uses of $< in non-implicit rules
13627         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13629 2019-05-18  Bruno Haible  <bruno@clisp.org>
13631         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13632         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13633         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13634         gl_use_threads accordingly.
13636 2019-05-18  Bruno Haible  <bruno@clisp.org>
13638         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13639         Reported by Tim Rühsen in
13640         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13641         and Michele Locati in
13642         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13643         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13644         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13645         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13646         in use and regardless which threads API is chosen.
13648 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13650         close-stream, closein, closeout: simplify
13651         I noticed this opportunity for simplification while drafting a
13652         new, related module that I haven’t had time to finish yet.
13653         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13654         * modules/close-stream (Files): Remove m4/close-stream.m4.
13655         (configure.ac): Omit gl_CLOSE_STREAM.
13656         * modules/closein (Files): Remove m4/closein.m4
13657         (configure.ac): Omit gl_CLOSEIN.
13658         * modules/closeout (Files): Remove m4/closeout.m4.
13659         (configure.ac): Omit gl_CLOSEOUT.
13661 2019-05-12  Bruno Haible  <bruno@clisp.org>
13663         libtool-next-version: New program.
13664         * build-aux/libtool-next-version: New file.
13666 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13667             Bruno Haible  <bruno@clisp.org>
13669         version-etc: Ease translation.
13670         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13671         URLs and formatting newlines out of translatable string.
13673 2019-05-11  Bruno Haible  <bruno@clisp.org>
13675         gnupload: Explain how to create symlinks.
13676         * build-aux/gnupload (usage): Add an example that creates symlinks.
13678 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13680         fpucw: port to gcc -pedantic
13681         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13682         Use __extension__ if using ({ ... }).
13684         crypto/af_alg: port to strict C compilers
13685         * lib/af_alg.c: Include af_alg.h regardless, so that the
13686         compilation unit is nonempty.
13688 2019-05-10  Bruno Haible  <bruno@clisp.org>
13690         base64: Avoid false positive warning from Coverity.
13691         Reported by Kamil Dudka <kdudka@redhat.com>.
13692         Idea by Paul Eggert.
13693         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13694         '& 0x3f' to the array index expressions. This convinces Coverity that
13695         there is no out-of-bounds array reference, regardless of the input.
13697 2019-05-09  Bruno Haible  <bruno@clisp.org>
13699         gettext: Update to gettext 0.20.
13700         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13701         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13702         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13703         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13704         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13705         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13706         (configure.ac): Request infrastructure compatible with gettext 0.20.
13707         * m4/glibc2.m4: Remove file.
13708         * m4/intdiv0.m4: Remove file.
13709         * m4/intl.m4: Remove file.
13710         * m4/intldir.m4: Remove file.
13711         * m4/intmax.m4: Remove file.
13712         * m4/printf-posix.m4: Remove file.
13713         * m4/uintmax_t.m4: Remove file.
13714         * m4/gettext.m4: Update from gettext 0.20.
13715         * m4/po.m4: Likewise.
13717 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13719         verify: remove verify_true
13720         * NEWS: Mention this.
13721         * lib/verify.h (verify_true): Remove.
13722         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13724         Support C2X and C++17 static_assert
13725         C2X and C++17 finally added support for a simple, single-argument
13726         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13727         doing back in 2005.  Implement static_assert on older platforms.
13728         The only remaining advantage of ‘verify’ is a shorter name.
13729         * doc/posix-headers/assert.texi (assert.h):
13730         * doc/verify.texi (Compile-time Assertions):
13731         Modernize for C2X and C++17.
13732         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13733         New macros.
13734         (_GL_HAVE__STATIC_ASSERT): Remove.
13735         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13736         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13737         string.  All callers changed.
13738         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13739         are used.  All callers changed.
13740         (_Static_assert): Allow either 1 or 2 args, and define if
13741         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13742         !_GL_HAVE__STATIC_ASSERT.
13743         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13744         of defining if !_GL_HAVE_STATIC_ASSERT.
13745         (verify_expr, verify): Don’t bother trying to copy the expression
13746         into the diagnostic, since 1-argument static_assert doesn’t.
13747         (verify): Prefer 1-argument _Static_assert if it works.
13748         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13750 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13752         Fix _GL_HAVE__STATIC_ASSERT typo
13753         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13754         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13756 2019-05-05  Bruno Haible  <bruno@clisp.org>
13758         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13759         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13760         via Akim Demaille <akim.demaille@gmail.com>.
13761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13762         en_US.UTF-8 locale, since that is more likely to be present than an
13763         fr_FR.UTF-8 locale.
13764         * tests/test-wcwidth.c (main): Check the width of U+2202.
13765         * doc/posix-functions/wcwidth.texi: Mention the issue.
13767 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13769         Port manywarnings to GCC 9
13770         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13771         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13772         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13773         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13774         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13775         --help=warnings output.
13776         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13777         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13778         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13780 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13782         Sync lib/mktime-internal.h from glibc
13783         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13784         * lib/mktime-internal.h: Autoupdate.
13786 2019-04-28  Bruno Haible  <bruno@clisp.org>
13788         tls tests: Prevent that the test takes too long.
13789         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13790         (main): Let the test fail if it takes more than 10 minutes.
13791         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13793 2019-04-27  Bruno Haible  <bruno@clisp.org>
13795         lock tests: Prevent that the test takes too long.
13796         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13797         (main): Let the test fail if it takes more than 10 minutes.
13798         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13800 2019-04-27  Bruno Haible  <bruno@clisp.org>
13802         localename: Fix crash on mingw (regression from 2018-11-23).
13803         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13804         locale name that is null.
13806 2019-04-27  Bruno Haible  <bruno@clisp.org>
13808         Fix gcc warnings on 64-bit mode mingw.
13809         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13810         * lib/gl_array_list.c: Likewise.
13811         * lib/gl_array_map.c: Likewise.
13812         * lib/gl_array_set.c: Likewise.
13813         * lib/gl_carray_list.c: Likewise.
13814         * lib/gl_sublist.c: Likewise.
13815         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13816         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13817         * lib/gl_hash_map.c (uintptr_t): Likewise.
13818         * lib/gl_hash_set.c (uintptr_t): Likewise.
13819         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13820         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13821         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13822         * lib/iconv.c (uintptr_t): Likewise.
13823         * lib/iconv_close.c (uintptr_t): Likewise.
13824         * tests/test-lock.c: Include <stdint.h>.
13825         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13826         'long'.
13827         * modules/clean-temp (Depends-on): Add stdint.
13828         * modules/array-list (Depends-on): Likewise.
13829         * modules/array-map (Depends-on): Likewise.
13830         * modules/array-set (Depends-on): Likewise.
13831         * modules/carray-list (Depends-on): Likewise.
13832         * modules/sublist (Depends-on): Likewise.
13833         * modules/lock-tests (Depends-on): Likewise.
13835 2019-04-27  Bruno Haible  <bruno@clisp.org>
13837         error: Tweak indentation.
13838         * lib/error.c: Correct indentation.
13840 2019-04-27  Bruno Haible  <bruno@clisp.org>
13842         term-style-control: Fix gcc warning on mingw.
13843         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13844         of i.
13846 2019-04-26  Bruno Haible  <bruno@clisp.org>
13848         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13849         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13851 2019-04-26  Bruno Haible  <bruno@clisp.org>
13853         relocatable-prog: Fix gcc warning on mingw.
13854         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13855         on EMX.
13857 2019-04-02  Bruno Haible  <bruno@clisp.org>
13859         gitsub.sh: New file.
13860         * top/gitsub.sh: New file.
13862 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13864         argmatch: use void* for raw memory pointers
13865         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13866         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13867         to "values", keep char* for strings.
13869 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13871         prefix-gnulib-mk: fix the support for gnulib-po
13872         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13873         Don't touch HAVE_* variables.
13874         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13876 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13878         di-set: allow free with 'ino_map' being NULL.
13879         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13880         is NULL.  Bug introduced in commit 3703dbbe88dd.
13881         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13882         as a test.
13884 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13886         * lib/str-two-way.h: Fix comment typo.
13888 2019-04-13  Bruno Haible  <bruno@clisp.org>
13890         x-to-1: Restore ability to use original calling convention.
13891         * build-aux/x-to-1.in: Add comments. Accept the original form of
13892         HELP2MAN argument as well as the form expected since 2012-12-12.
13894 2019-04-13  Bruno Haible  <bruno@clisp.org>
13896         x-to-1: Avoid failure due to missing perl modules.
13897         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13898         needs are installed.
13900 2019-04-13  Bruno Haible  <bruno@clisp.org>
13902         openmp-init: New module.
13903         * modules/openmp-init: New file.
13904         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13905         the changes from 2019-04-09.
13907 2019-04-12  Bruno Haible  <bruno@clisp.org>
13909         signbit: Fix compilation error when gnulib's math.h exists twice.
13910         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13912 2019-04-12  Bruno Haible  <bruno@clisp.org>
13914         openmp: Fix compilation error on platforms without OpenMP.
13915         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13917 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13919         mountlist: make parsing /proc/self/mountinfo more robust
13920         Cater for the following issues with mountinfo parsing (the first
13921         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13922         in <https://bugs.gnu.org/35137>).
13923         1. The fields source, target, mntroot and fstype may contain characters
13924         like '\r'; sscanf(3) fails to read such values with the %s format
13925         specifier because it would stop at such characters.
13926         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13927         The only true separator in that file is the ' ' character.
13928         2. The source field may be an empty string, which happens e.g. with
13929         "mount -t tmpfs '' /target".
13930         3. The fstype field may contain mangled characters as well which need
13931         unescaping.
13932         * lib/mountlist.c (terminate_at_blank): Add utility function.
13933         (read_file_system_list): In the block trying to read the mountinfo file,
13934         avoid using sscanf(3) with %s format; instead, parse the above fields
13935         separated by spaces one by one.
13936         This also handles the case when the source field is an empty string.
13937         Unescape the fstype field.
13939 2019-04-09  Bruno Haible  <bruno@clisp.org>
13941         openmp: Add workaround for 32-bit programs on AIX.
13942         * lib/omp.in.h: New file.
13943         * lib/omp-init.c: New file, based on lib/nproc.c.
13944         * m4/omp_h.m4: New file.
13945         * modules/openmp (Files): Add them.
13946         (Depends-on): Add include_next, c-ctype, setenv.
13947         (configure.ac): Invoke gl_OMP_H.
13948         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13949         (Include): Mention <omp.h>.
13951 2019-04-09  Bruno Haible  <bruno@clisp.org>
13953         nproc: Fix return value for privileged processes.
13954         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13955         getpid().
13957 2019-04-07  Bruno Haible  <bruno@clisp.org>
13959         Add copyright notices in several files.
13960         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13961         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13962         * lib/libunistring.valgrind: Likewise.
13963         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13964         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13965         * lib/memchr.valgrind: Likewise.
13966         * lib/memchr2.valgrind: Likewise.
13967         * lib/rawmemchr.valgrind: Likewise.
13968         * lib/relocatable.valgrind: Likewise.
13969         * lib/strchrnul.valgrind: Likewise.
13971 2019-03-25  Bruno Haible  <bruno@clisp.org>
13973         term-style-control tests: Fix link error.
13974         Reported by Tom G. Christensen in
13975         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13976         * modules/term-style-control-tests (Makefile.am): Link
13977         test-term-style-control-hello and test-term-style-control-yes against
13978         LIBINTL.
13980 2019-03-24  Bruno Haible  <bruno@clisp.org>
13982         term-style-control: Add tests.
13983         * tests/test-term-style-control-hello.c: New file.
13984         * tests/test-term-style-control-yes.c: New file.
13985         * modules/term-style-control-tests: New file.
13987         term-style-control: New module.
13988         * lib/term-style-control.h: New file, based on libtextstyle's
13989         term-ostream.oo.h and term-ostream.oo.c.
13990         * lib/term-style-control.c: New file, based on libtextstyle's
13991         term-ostream.oo.c.
13992         * modules/term-style-control: New file.
13994 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13996         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13997         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13998         C++98 appears to be supported by Clang, but not by GCC nor ICC.
14000 2019-03-23  Bruno Haible  <bruno@clisp.org>
14002         Support cross-compilation to musl libc.
14003         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
14004         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
14005         musl libc.
14006         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14007         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
14008         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14009         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14010         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14011         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
14012         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14013         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
14014         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14015         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
14016         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
14017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
14018         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14019         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14020         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
14021         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
14022         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
14023         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14024         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
14025         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14026         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14028         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
14029         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
14031         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
14032         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
14033         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
14034         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
14035         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14036         * m4/log.m4 (gl_FUNC_LOG): Likewise.
14037         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
14038         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
14039         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
14040         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
14041         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
14042         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
14043         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
14044         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
14045         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
14046         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
14047         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
14048         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
14049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14050         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
14051         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
14052         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
14053         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
14054         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
14055         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
14056         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
14057         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
14058         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14059         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
14060         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14061         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
14062         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
14063         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
14064         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
14065         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
14066         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14069         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
14070         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14071         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14072         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14073         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
14074         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14075         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
14076         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14077         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14078         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14079         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14080         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
14081         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14082         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14085 2019-03-23  Bruno Haible  <bruno@clisp.org>
14087         posix_spawn_file_actions_*: Document musl libc bugs.
14088         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
14089         the bug.
14090         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
14091         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
14092         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
14093         cross-compiling to a musl system, guess no.
14094         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
14095         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
14097 2019-03-23  Bruno Haible  <bruno@clisp.org>
14099         futimens: Document musl libc bug.
14100         * doc/posix-functions/futimens.texi: Mention the bug.
14101         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
14102         cross-compiling, guess no on glibc and musl systems.
14104 2019-03-23  Bruno Haible  <bruno@clisp.org>
14106         Clarify that cross-compilation guesses are guesses.
14107         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
14108         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
14109         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
14110         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
14111         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
14112         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
14113         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
14114         gl_cv_glob_lists_symlinks.
14115         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
14116         'guessing ' to ac_cv_func_malloc_0_nonnull.
14117         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
14118         'guessing ' to ac_cv_func_realloc_0_nonnull.
14119         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
14120         'guessing ' to gl_cv_func_poll.
14121         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
14122         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
14123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
14125 2019-03-23  Bruno Haible  <bruno@clisp.org>
14127         strtold: Fix typo.
14128         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
14130 2019-03-23  Bruno Haible  <bruno@clisp.org>
14132         noreturn: In C++ mode with clang, use _Noreturn as fallback.
14133         Reported by Akim Demaille.
14134         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
14135         [[noreturn]] would not work, use _Noreturn instead.
14137 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
14139         libtextstyle-optional: Fix compiler warnings.
14140         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
14141         as unused.
14143 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14145         bitset: fix memory leaks
14146         Reported by Bruno Haible.
14147         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
14148         * lib/bitset/vector.c (vbitset_free): New.
14149         (vbitset_vtable): Use it.
14151 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14153         bitset: minor changes
14154         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
14155         * lib/bitset/table.c: Formatting changes.
14156         Remove useless braces.
14157         Prefer using else in cascades of if/else-if with returns.
14158         * lib/bitset/vector.c: Reduce scopes.
14160 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
14162         bitset: expose bitset_resize
14163         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
14164         * tests/test-bitset.c (check_attributes): Check bitset_resize.
14165         (main): Use a variable bitset as reference, since fixed does not support resize.
14167 2019-03-19  Bruno Haible  <bruno@clisp.org>
14169         doc: Document the 'stdnoreturn' and 'noreturn' modules.
14170         Reported by Akim Demaille.
14171         * doc/noreturn.texi: New file.
14172         * doc/gnulib.texi: Include it.
14174 2019-03-19  Bruno Haible  <bruno@clisp.org>
14176         doc: Document how to use 'static inline'.
14177         * doc/static-inline.texi: New file.
14178         * doc/gnulib.texi: Include it.
14180 2019-03-19  Bruno Haible  <bruno@clisp.org>
14182         libtextstyle-optional: Add tests.
14183         * tests/test-libtextstyle.c: New file, based on libtextstyle's
14184         adhoc-tests/hello.c.
14185         * tests/test-libtextstyle-default.css: New file, copied from
14186         libtextstyle's adhoc-tests/hello-default.css.
14187         * modules/libtextstyle-optional-tests: New file.
14189         libtextstyle-optional: New module.
14190         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
14191         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
14192         * modules/libtextstyle-optional: New file.
14194 2019-03-19  Bruno Haible  <bruno@clisp.org>
14196         c-stack: Make signal handlers more reliable.
14197         * lib/c-stack.c (progname): New variable.
14198         (die): Use it.
14199         (c_stack_action): Initialize it.
14200         (segv_handler): Save and restore errno.
14202 2019-03-19  Bruno Haible  <bruno@clisp.org>
14204         Help making signal handlers more reliable.
14205         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
14206         _GL_ASYNC_SAFE into config.h.
14207         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
14208         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
14209         argument.
14210         * lib/fatal-signal.c (action_t, uninstall_handlers,
14211         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
14212         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
14213         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
14214         _GL_ASYNC_SAFE.
14215         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
14216         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
14218 2019-03-18  Bruno Haible  <bruno@clisp.org>
14220         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
14221         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
14222         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
14224 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14226         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
14227         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
14228         GCC 4.8.
14230 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14232         fts: minor simplification
14233         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
14235 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
14237         bitset, timevar: Depend on c99.
14238         Reported by Bruno Haible.
14239         * modules/bitset, modules/timevar (Depends-on): Add c99.
14241 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14243         bitset: a bit (...) more tests
14244         * tests/test-bitset.c (check_attributes): Check zero and ones.
14246 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
14248         bitset: fix overflows.
14249         Reported by Bruno Haible.
14250         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
14251         * lib/bitset/table.c (tbitset_test): last_bit is the position of
14252         the bit in the array of bitset_word, so be sure to take its modulo
14253         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14254         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14256 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14258         bitset: style changes.
14259         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14260         Formatting changes.
14261         (tbitset_list): Reduce scopes.
14263 2019-03-16  Bruno Haible  <bruno@clisp.org>
14265         fatal-signal: Pass the signal number to the action.
14266         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14267         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14268         (fatal_signal_handler): Pass the signal number to the action.
14269         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14270         signal number as parameter.
14271         (create_temp_dir): Update.
14272         * lib/wait-process.c (cleanup_slaves_action): New function.
14273         (register_slave_subprocess): Update at_fatal_signal invocation.
14274         * NEWS: Mention the change.
14276 2019-03-16  Bruno Haible  <bruno@clisp.org>
14278         fatal-signal: Add function that lists the fatal signals.
14279         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14280         * lib/fatal-signal.c (get_fatal_signals): New function.
14282 2019-03-14  Bruno Haible  <bruno@clisp.org>
14284         isatty: Make it return true in Cygwin consoles on native Windows.
14285         * lib/isatty.c: Include <string.h>.
14286         (GetProcAddress): New macro.
14287         (GetNamedPipeClientProcessIdFuncType): New type.
14288         (GetNamedPipeClientProcessIdFunc): New variable.
14289         (QueryFullProcessImageNameFuncType): New type.
14290         (QueryFullProcessImageNameFunc): New variable.
14291         (initialized): New variable.
14292         (initialize): New function.
14293         (IsCygwinConsoleHandle): New function.
14294         (isatty): Invoke it.
14295         * doc/posix-functions/isatty.texi: Mention the issue.
14297 2019-03-14  Bruno Haible  <bruno@clisp.org>
14299         all: Update URLs to msdn.microsoft.com.
14300         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14301         was moved to docs.microsoft.com.
14303 2019-03-13  Bruno Haible  <bruno@clisp.org>
14305         gnulib-tool: Clarify the coding style.
14306         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14307         * gnulib-tool: Add comment about coding style.
14309 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14311         strtod: fix clash with strtold
14312         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14313         * lib/strtod.c (compute_minus_zero, minus_zero):
14314         Simplify by remving the macro / external variable,
14315         and having just a function.  User changed.  This avoids
14316         the need for an external variable that might clash.
14318 2019-03-10  Bruno Haible  <bruno@clisp.org>
14320         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14321         Reported by Eli Zaretskii <eliz@gnu.org>.
14322         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14323         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14324         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14326 2019-03-10  Bruno Haible  <bruno@clisp.org>
14328         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14329         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14330         is in use.
14331         * tests/test-printf-posix2.c: Likewise.
14333 2019-03-10  Bruno Haible  <bruno@clisp.org>
14335         uninorm tests: Free allocated memory.
14336         * tests/uninorm/test-u32-normalize-big.h
14337         (struct normalization_test_file): Remove 'const' from allocated member.
14338         (free_normalization_test_file): New declaration.
14339         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14340         memory.
14341         (free_normalization_test_file): New function.
14342         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14343         'struct normalization_test_file' contents.
14344         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14345         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14346         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14348 2019-03-10  Bruno Haible  <bruno@clisp.org>
14350         di-set: Fix memory leak.
14351         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14352         not free().
14354 2019-03-10  Bruno Haible  <bruno@clisp.org>
14356         tests: Free allocated memory.
14357         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14358         * tests/test-astrxfrm.c (main): Free allocated memory.
14359         * tests/test-bitset.c (compare, check_attributes): Free allocated
14360         bitsets.
14361         * tests/test-filenamecat.c (main): Free allocated memory.
14362         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14363         * tests/test-freadptr.c (main): Likewise.
14364         * tests/test-freadptr2.c (main): Free allocated memory.
14365         * tests/test-freadseek.c (main): Likewise.
14366         * tests/test-gc-arcfour.c (main): Close allocated context.
14367         * tests/test-gc-arctwo.c (main): Likewise.
14368         * tests/test-gc-des.c (main): Close all allocated contexts.
14369         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14370         * tests/test-pipe-filter-ii1.c (main): Likewise.
14371         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14372         allocated file actions.
14373         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14374         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14375         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14376         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14377         * tests/test-strfmon_l.c (main): Free allocated locales.
14378         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14379         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14380         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14381         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14382         * tests/unistr/test-chr.h (main): Free input32.
14383         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14385 2019-03-10  Bruno Haible  <bruno@clisp.org>
14387         tests: Prepare for using valgrind.
14388         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14389         * tests/*/*.sh: Likewise.
14390         * tests/test-freadptr.c (main): Update accordingly.
14391         * tests/test-freadseek.c (main): Likewise.
14393 2019-03-09  Bruno Haible  <bruno@clisp.org>
14395         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14396         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14397         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14398         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14399         before exiting.
14401 2019-03-09  Jim Meyering  <meyering@fb.com>
14403         test-userspec.c: don't print NULL
14404         * tests/test-userspec.c (main): A test release of gcc,
14405         9.0.1 20190310, warned that this test would attempt to
14406         print a NULL pointer via a %s printf format.  Fix that
14407         and remove the unnecessary preceding "!diag" conjunct.
14408         Also add a comment.
14410 2019-03-03  Bruno Haible  <bruno@clisp.org>
14412         getloadavg: Write NULL for the null pointer.
14413         Reported by Michal Privoznik <mprivozn@redhat.com>.
14414         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14416 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14418         alloca, tsearch-tests: Write NULL for the null pointer.
14419         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14420         * tests/test-tsearch.c (mangle_tree): Likewise.
14422 2019-03-09  Bruno Haible  <bruno@clisp.org>
14424         strfmon_l: Fix -fsanitize=address finding.
14425         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14426         <string.h>.
14427         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14428         (directive_t, directives_t): New types.
14429         (fmon_parse): New function.
14430         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14431         format string. Consume 'long double' arguments in places where the
14432         format string indicates so.
14433         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14435 2019-03-09  Bruno Haible  <bruno@clisp.org>
14437         crypto/des: Fix undefined behaviour.
14438         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14439         shift operations on 'int'.
14441 2019-03-09  Bruno Haible  <bruno@clisp.org>
14443         Fix undefined behaviour.
14444         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14445         'unsigned int', to avoid shift operations on 'int'.
14446         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14447         * tests/test-count-leading-zeros.c (main): Use a random number that has
14448         as many bits as TYPE, not only 2*15 or 2*31 bits.
14449         * tests/test-count-trailing-zeros.c (main): Likewise.
14450         * tests/test-count-one-bits.c (main): Likewise.
14451         * tests/test-memmem.c: Don't include "null-ptr.h".
14452         (main): Use zerosize_ptr() instead of null_ptr().
14453         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14455 2019-03-08  Bruno Haible  <bruno@clisp.org>
14457         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14458         Reported by Jeffrey Walton <noloader@gmail.com>.
14459         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14460         invoke memset with a zero size.
14461         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14462         Likewise.
14463         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14464         Adjust accordingly.
14466 2019-03-08  Bruno Haible  <bruno@clisp.org>
14468         unistr/*, uniconv/*: Fix undefined behaviour.
14469         Reported by Jeffrey Walton <noloader@gmail.com>.
14470         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14471         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14472         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14473         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14475 2019-03-08  Bruno Haible  <bruno@clisp.org>
14477         unistr/u8-cmp: Fix undefined behaviour.
14478         Reported by Jeffrey Walton <noloader@gmail.com>.
14479         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14481 2019-03-08  Bruno Haible  <bruno@clisp.org>
14483         unictype/numeric: Fix undefined behaviour.
14484         Reported by Jeffrey Walton <noloader@gmail.com>.
14485         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14486         on shift overflow, caught by "gcc -fsanitize=undefined".
14487         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14488         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14489         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14491 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14493         git-version-gen: fix --version copyright year
14494         * build-aux/git-version-gen, build-aux/move-if-change (version):
14495         --version output copyright year is now taken from script year,
14496         so that it no longer needs to be updated by hand.
14498 2019-03-04  Bruno Haible  <bruno@clisp.org>
14500         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14501         This approach supports relocatable installation of shared libraries
14502         which depend on other shared libraries from the same package.
14503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14504         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14505         wrapper around the original LIBTOOL.
14506         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14507         token '@loader_path' instead of '$ORIGIN'.
14508         * build-aux/libtool-reloc: New file.
14509         * modules/relocatable-prog (Files): Add it.
14510         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14511         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14512         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14513         Makefile.am, not in configure.ac.
14515 2019-03-04  Bruno Haible  <bruno@clisp.org>
14517         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14518         * build-aux/install-reloc: Revert change.
14519         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14521 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14523         nstrftime: support the ‘+’ flag
14524         * lib/nstrftime.c (add, __strftime_internal):
14525         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14526         (__strftime_internal): New arg ‘width’.  All uses changed.
14527         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14529 2019-02-24  Bruno Haible  <bruno@clisp.org>
14531         relocatable-prog: Improve verbose output.
14532         * build-aux/install-reloc (func_verbose): Escape characters that would
14533         be interpreted by the shell.
14535 2019-02-24  Bruno Haible  <bruno@clisp.org>
14537         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14538         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14539         "sys/stat.h".
14540         * lib/lstat.c: Likewise.
14541         * lib/fstat.c: Likewise.
14542         * lib/fstatat.c: Likewise.
14544 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14546         long-options: add parse_gnu_standard_options_only
14547         Discussed in https://bugs.gnu.org/33468 .
14549         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14550         (parse_gnu_standard_options_only): Add function to process
14551         the GNU default options --help and --version and fail for
14552         any other unknown long or short option. See
14553         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14554         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14555         * modules/long-options (depends-on): Add stdbool, exitfail.
14556         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14557         syntax-check rule, add new function name.
14559 2019-02-23  Bruno Haible  <bruno@clisp.org>
14561         relocatable-prog: Update documentation.
14562         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14563         the recent changes.
14565 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14567         nstrftime: tweak arg order
14568         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14569         All callers changed.  Suggested by TAMUKI Shoichi in:
14570         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14572 2019-02-23  Bruno Haible  <bruno@clisp.org>
14574         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14575         Reported by Paul Smith <psmith@gnu.org>.
14576         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14577         (func_relativize): New function, from gnulib-tool.
14578         Handle mode 'macosx' through invocations of 'otool' and
14579         'install_name_tool'.
14580         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14581         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14582         'install-reloc' invocation with mode 'macosx'.
14584 2019-02-23  Bruno Haible  <bruno@clisp.org>
14586         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14587         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14588         Hurd with glibc >= 2.27.
14590 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14592         nstrftime: merge glibc strftime changes
14593         This incorporates:
14594         2019-02-11 Fix a few whitespace arrangement inconsistencies
14595         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14596         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14597         2019-01-11 strftime: use the "L_" macro with character literals
14598         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14599         callers changed.  Default width of %Ey is now 2.  This is needed
14600         for proper handling of Japanese dates starting on 2019-05-01.
14602 2019-02-19  Bruno Haible  <bruno@clisp.org>
14604         relocatable-prog: Use $ORIGIN trick on more platforms.
14605         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14606         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14607         Solaris >= 10, Haiku. But don't use it on Android.
14608         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14609         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14611 2019-02-19  Bruno Haible  <bruno@clisp.org>
14613         progreloc: Speed up executable lookup on various platforms.
14614         * lib/progreloc.c: Include <errno.h>.
14615         (safe_read, full_read): New functions.
14616         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14617         prefer the information from the /proc file system to a PATH search.
14619 2019-02-19  Bruno Haible  <bruno@clisp.org>
14621         progreloc: Simplify code for Android.
14622         * lib/progreloc.c (executable_fd): Don't define on Android.
14623         (maybe_executable, find_executable): Don't use executable_fd on Android.
14625 2019-02-15  Bruno Haible  <bruno@clisp.org>
14627         gnulib-tool: Support --import with just a few tests, not --with-tests.
14628         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14629         'inctests' when generating files; use 'inctests' only for computing the
14630         transitive closure.
14632 2019-02-14  Bruno Haible  <bruno@clisp.org>
14634         gnulib-tool: Improve handling of multiple --local-dir options.
14635         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14636         options work.
14637         * gnulib-tool (func_path_prepend): Remove function.
14638         (func_path_foreach): Make IFS handling more robust.
14639         (local_gnulib_path): Collect --local-dir values using func_path_append,
14640         not func_path_prepend.
14641         (func_determine_path_separator): Make IFS handling more robust.
14642         (func_lookup_file_cb): New function.
14643         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14644         func_lookup_local_file. Apply the patches in the reverse order of their
14645         origin in $local_gnulib_path.
14646         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14647         * NEWS: Mention that the first --local-dir option is the one with
14648         highest priority.
14650 2019-02-10  Bruno Haible  <bruno@clisp.org>
14652         libtextstyle: New module.
14653         * m4/libtextstyle.m4: New file.
14654         * modules/libtextstyle: New file.
14656 2019-02-05  Bruno Haible  <bruno@clisp.org>
14658         declared.sh: Fix bug with variables of pointer type.
14659         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14660         before the symbol to be omitted if the preceding character is a '*'.
14662 2019-02-04  Bruno Haible  <bruno@clisp.org>
14664         Add script for running tests under valgrind.
14665         * build-aux/run-test: New file, from GNU libunistring.
14666         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14667         as well.
14669 2019-02-04  Bruno Haible  <bruno@clisp.org>
14671         declared.sh: Fix --version output.
14672         * build-aux/declared.sh (func_version): Update package name.
14674 2019-02-03  Bruno Haible  <bruno@clisp.org>
14676         Add script for determining the set of symbols to export from a library.
14677         * build-aux/declared.sh: New file, from GNU libunistring.
14678         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14679         Mention it.
14681 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14683         vla: add commentary about VLA_ELEMS
14684         * lib/vla.h (VLA_ELEMS): Add commentary,
14685         some inspired by Bruno Haible’s proposal in:
14686         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14688         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14689         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14690         assume the C99 signatures for strtod and strtold.  Programs that
14691         require stricter adherence to C99 should also use the strtod and
14692         strtold modules as needed, and we no longer need the
14693         HAVE_C99_STRTOLD macro.
14694         * NEWS: Mention this.
14695         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14696         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14697         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14698         (Files): Remove m4/c-strtod.m4.
14699         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14700         exists.
14702 2019-02-02  Bruno Haible  <bruno@clisp.org>
14704         fma: Improve code style.
14705         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14707 2019-02-02  Colin Watson  <cjwatson@debian.org>
14709         *-map tests: Fix compilation error.
14710         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14711         * tests/test-hash_map.c: Likewise.
14712         * tests/test-linkedhash_map.c: Likewise.
14714 2019-01-31  Bruno Haible  <bruno@clisp.org>
14716         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14717         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14718         GNULIB_defined_strtold_function): New macros.
14719         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14720         (STRTOD): Ignore HAVE_C99_STRTOLD.
14721         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14722         deemed buggy. But do use it on platforms where uselocale exists and is
14723         usable.
14724         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14725         deemed buggy. On platforms where uselocale exists and is usable, use
14726         uselocale and strtod/strtold.
14727         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14728         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14729         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14730         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14731         (Depends-on): Add strtod.
14732         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14733         (Depends-on): Add strtold.
14735 2019-01-31  Bruno Haible  <bruno@clisp.org>
14737         strtod, strtold: Use the locale's decimal point.
14738         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14739         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14740         (parse_number): Add a radixchar argument. Use it instead of '.'.
14741         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14742         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14743         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14744         * tests/test-strtod1.c: New file.
14745         * tests/test-strtod1.sh: New file.
14746         * modules/strtod-tests (Files): Add test-strtod1.{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-strtod1.c and run
14750         test-strtod1.sh.
14751         * tests/test-strtold1.c: New file.
14752         * tests/test-strtold1.sh: New file.
14753         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14754         locale-fr.m4 and its dependencies.
14755         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14756         (Makefile.am): Arrange to compile test-strtold1.c and run
14757         test-strtold1.sh.
14759 2019-01-31  Bruno Haible  <bruno@clisp.org>
14761         strtod, strtold tests: Simplify tests.
14762         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14763         * tests/test-strtold.c (main): Likewise.
14765 2019-01-31  Bruno Haible  <bruno@clisp.org>
14767         strtod, strtold: Avoid unnecessary rounding errors.
14768         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14769         decimal to DOUBLE conversion.
14771 2019-01-31  Bruno Haible  <bruno@clisp.org>
14773         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14774         * lib/strtod.c (STRTOD): When there is an extra character after the
14775         exponent marker 'p', reparse the number.
14776         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14777         * doc/posix-functions/strtold.texi: Likewise.
14779 2019-01-29  Bruno Haible  <bruno@clisp.org>
14781         strtold: Add tests.
14782         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14783         * modules/strtold-tests: New file.
14785 2019-01-29  Bruno Haible  <bruno@clisp.org>
14787         strtold: New module.
14788         * lib/stdlib.in.h (strtold): New declaration.
14789         * lib/strtold.c: New file.
14790         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14791         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14792         USE_LDEXP): New macros.
14793         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14794         USE_LONG_DOUBLE.
14795         (underlying_strtod): Remove function. Replace with some macros.
14796         Re-add the code for a missing underlying function that was removed on
14797         2013-02-19.
14798         * m4/strtold.m4: New file.
14799         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14800         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14801         REPLACE_STRTOLD.
14802         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14803         REPLACE_STRTOLD.
14804         * modules/strtold: New file.
14805         * doc/posix-functions/strtold.texi: Document the new module.
14807 2019-01-29  Bruno Haible  <bruno@clisp.org>
14809         strtod: Fix compilation error on IRIX 6.5.
14810         * modules/strtod (Depends-on): Add 'math'.
14812 2019-01-28  Bruno Haible  <bruno@clisp.org>
14814         Fix build error when building a shared libunistring on Android.
14815         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14816         (main): Add 'volatile', to defeat a GCC optimization that would
14817         eliminate the reference.
14818         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14819         (main): Add 'volatile', to defeat a GCC optimization that would
14820         eliminate the reference.
14821         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14822         (main): Add 'volatile', to defeat a GCC optimization that would
14823         eliminate the reference.
14824         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14825         (main): Add 'volatile', to defeat a GCC optimization that would
14826         eliminate the reference.
14828 2019-01-27  Bruno Haible  <bruno@clisp.org>
14830         Avoid build errors due to wrong references between modules.
14831         * lib/uninorm/canonical-decomposition.c: Include
14832         "uninorm/decomposition-table.h", not "decomposition-table.h".
14833         * lib/uninorm/decomposition.c: Likewise.
14834         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14835         not "decompose-internal.h".
14836         * lib/uninorm/u16-normalize.c: Likewise.
14837         * lib/uninorm/u32-normalize.c: Likewise.
14838         * lib/uninorm/uninorm-filter.c: Likewise.
14839         * lib/uninorm/nfkc.c: Likewise.
14840         * lib/uninorm/nfkd.c: Likewise.
14841         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14842         "caseprop.h".
14843         * lib/unicase/u8-ct-totitle.c: Likewise.
14844         * lib/unicase/u8-prefix-context.c: Likewise.
14845         * lib/unicase/u8-suffix-context.c: Likewise.
14846         * lib/unicase/u16-casemap.c: Likewise.
14847         * lib/unicase/u16-ct-totitle.c: Likewise.
14848         * lib/unicase/u16-prefix-context.c: Likewise.
14849         * lib/unicase/u16-suffix-context.c: Likewise.
14850         * lib/unicase/u32-casemap.c: Likewise.
14851         * lib/unicase/u32-ct-totitle.c: Likewise.
14852         * lib/unicase/u32-prefix-context.c: Likewise.
14853         * lib/unicase/u32-suffix-context.c: Likewise.
14854         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14855         "unicasemap.h".
14856         * lib/unicase/u8-toupper.c: Likewise.
14857         * lib/unicase/u8-ct-tolower.c: Likewise.
14858         * lib/unicase/u8-ct-toupper.c: Likewise.
14859         * lib/unicase/u16-tolower.c: Likewise.
14860         * lib/unicase/u16-toupper.c: Likewise.
14861         * lib/unicase/u16-ct-tolower.c: Likewise.
14862         * lib/unicase/u16-ct-toupper.c: Likewise.
14863         * lib/unicase/u32-tolower.c: Likewise.
14864         * lib/unicase/u32-toupper.c: Likewise.
14865         * lib/unicase/u32-ct-tolower.c: Likewise.
14866         * lib/unicase/u32-ct-toupper.c: Likewise.
14867         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14868         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14869         * lib/unicase/u16-ct-casefold.c: Likewise.
14870         * lib/unicase/u32-ct-casefold.c: Likewise.
14872 2019-01-27  Bruno Haible  <bruno@clisp.org>
14874         gperf: Fix error when this module is required by some test module.
14875         * modules/gperf (Applicability): Set to 'all'.
14877 2019-01-27  Bruno Haible  <bruno@clisp.org>
14879         tmpfile: Add support for Android.
14880         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14881         works.
14882         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14883         Android.
14884         * modules/tmpfile (Depends-on): Add 'stdbool'.
14885         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14886         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14888 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14890         bitsetv: allow free on NULL.
14891         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14893 2019-01-27  Bruno Haible  <bruno@clisp.org>
14895         test-framework-sh: Improve maintainability.
14896         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14898 2019-01-27  Bruno Haible  <bruno@clisp.org>
14900         tests: Don't assume that /tmp exists.
14901         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14902         * tests/test-copy-acl-1.sh: Likewise.
14903         * tests/test-file-has-acl-1.sh: Likewise.
14904         * tests/test-copy-file-1.sh: Likewise.
14906 2019-01-27  Bruno Haible  <bruno@clisp.org>
14908         tests: Accommodate a shell that is not in /bin/sh.
14909         * tests/init.sh (setup_): Set srcdir and builddir.
14910         (BOURNE_SHELL): New variable.
14911         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14912         * modules/file-has-acl-tests (Depends-on): Likewise.
14913         * modules/copy-file-tests (Depends-on): Likewise.
14914         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14915         scripts through $BOURNE_SHELL.
14916         * tests/test-set-mode-acl-2.sh: Likewise.
14917         * tests/test-copy-acl-1.sh: Likewise.
14918         * tests/test-copy-acl-2.sh: Likewise.
14919         * tests/test-file-has-acl-1.sh: Likewise.
14920         * tests/test-file-has-acl-2.sh: Likewise.
14921         * tests/test-copy-file-1.sh: Likewise.
14922         * tests/test-copy-file-2.sh: Likewise.
14923         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14924         invoker.
14925         * tests/test-copy-acl.sh (builddir): Likewise.
14926         * tests/test-file-has-acl.sh (builddir): Likewise.
14927         * tests/test-copy-file.sh (builddir): Likewise.
14928         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14929         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14930         * tests/test-vc-list-files-git.sh: Likewise.
14932 2019-01-27  Bruno Haible  <bruno@clisp.org>
14934         tests: Fix some "unused variable" warnings.
14935         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14936         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14937         * tests/test-striconveh.c (main): Move some variable into the
14938         '#if HAVE_ICONV'.
14939         * tests/test-striconveha.c (main): Likewise.
14940         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14941         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14942         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14943         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14944         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14945         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14946         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14947         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14948         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14949         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14950         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14951         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14952         * tests/test-tsearch.c (main): Move some variable into the
14953         '#if HAVE_INITSTATE'.
14955 2019-01-27  Bruno Haible  <bruno@clisp.org>
14957         unigbrk/uc-grapheme-breaks: Fix build failure.
14958         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14959         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14961 2019-01-27  Bruno Haible  <bruno@clisp.org>
14963         mountlist: Merge two .m4 files.
14964         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14965         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14966         * m4/ls-mntd-fs.m4: Remove file.
14967         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14969 2019-01-27  Bruno Haible  <bruno@clisp.org>
14971         tests: Enable Linux specific tests on Android.
14972         * tests/test-flock.c (main): Treat Android like Linux.
14973         * tests/test-openat-safer.c (main): Likewise.
14975 2019-01-27  Bruno Haible  <bruno@clisp.org>
14977         relocatable-prog: Use Linux code on Android.
14978         * lib/progreloc.c: Treat Android like Linux.
14980 2019-01-26  Bruno Haible  <bruno@clisp.org>
14982         getloadavg: Add support for Android.
14983         * lib/getloadavg.c: Treat Android like Linux.
14985 2019-01-26  Bruno Haible  <bruno@clisp.org>
14987         vma-iter: Add support for Android.
14988         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14989         * lib/vma-iter.c: Treat Android like Linux.
14990         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14992 2019-01-26  Bruno Haible  <bruno@clisp.org>
14994         fts: Optimize on Android.
14995         * lib/fts.c: Treat Android like Linux.
14997 2019-01-26  Bruno Haible  <bruno@clisp.org>
14999         fts: Add support for Android.
15000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
15001         defined by this module and the ones in libc.
15002         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
15004 2019-01-26  Bruno Haible  <bruno@clisp.org>
15006         mountlist: Use Linux code on Android.
15007         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
15008         (unescape_tab, read_file_system_list): Enable Linux code on Android
15009         as well.
15010         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
15011         and endmntent.
15012         * modules/mountlist (Depends-on): Add 'getline'.
15014 2019-01-26  Bruno Haible  <bruno@clisp.org>
15016         localename tests: Fix test failure on Android.
15017         * modules/localename-tests (Depends-on): Add 'setlocale'.
15019 2019-01-26  Bruno Haible  <bruno@clisp.org>
15021         mountlist: Port better to Android.
15022         * lib/mountlist.c (MOUNTED): Redefine on Android.
15023         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
15024         Android.
15026 2019-01-26  Bruno Haible  <bruno@clisp.org>
15028         striconveh: Fix use of uninitialized iconv_t.
15029         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
15030         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
15031         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
15033 2019-01-26  Bruno Haible  <bruno@clisp.org>
15035         nonblocking-socket-tests: Fix test failure on Android 4.3.
15036         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
15037         also on Android.
15039 2019-01-26  Bruno Haible  <bruno@clisp.org>
15041         sh-filename: Add support for Android 4.3.
15042         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
15044 2019-01-26  Bruno Haible  <bruno@clisp.org>
15046         ptsname_r: Work around bug on Android 4.3.
15047         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
15048         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
15049         correct.
15050         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
15051         is defined, just fix the return value.
15052         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
15053         The behaviour of musl libc is nothing to be "fixed", since it is
15054         compliant with the next POSIX standard.
15056 2019-01-26  Bruno Haible  <bruno@clisp.org>
15058         ttyname_r: Work around bug on Android 4.3.
15059         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
15060         * lib/ttyname_r.c (ttyname_r): Implement for Android.
15061         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
15062         * doc/posix-functions/ttyname.texi: Likewise.
15064 2019-01-25  Bruno Haible  <bruno@clisp.org>
15066         getprogname: Port to Android 4.3.
15067         * lib/getprogname.c (getprogname): On Android, take only the last
15068         component of __progname.
15070 2019-01-25  Bruno Haible  <bruno@clisp.org>
15072         wcrtomb: Work around bug on Android 4.3.
15073         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
15074         the C locale.
15075         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
15076         which does not have the 'wctomb' function.
15077         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
15078         * tests/test-wcrtomb.c (main): Accept argument '5'.
15079         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
15081 2019-01-25  Bruno Haible  <bruno@clisp.org>
15083         setlocale: Work around bug on Android 4.3.
15084         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
15085         the "C" locale.
15086         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
15087         * doc/posix-functions/setlocale.texi: Mention the Android bug.
15089 2019-01-24  Bruno Haible  <bruno@clisp.org>
15091         memchr: Work around bug on Android <= 5.0.
15092         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
15093         * doc/posix-functions/memchr.texi: Mention the Android bug.
15095 2019-01-24  Bruno Haible  <bruno@clisp.org>
15097         random: Fix compilation error on Android 4.3.
15098         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
15099         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
15100         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
15101         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
15102         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
15104         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15105         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
15106         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
15107         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
15108         REPLACE_INITSTATE, REPLACE_SETSTATE.
15109         * doc/posix-functions/random.texi: Correct the description of the
15110         situation on Android.
15111         * doc/posix-functions/srandom.texi: Likewise.
15112         * doc/posix-functions/rand.texi: Likewise.
15113         * doc/posix-functions/srand.texi: Likewise.
15115 2019-01-24  Bruno Haible  <bruno@clisp.org>
15117         mbtowc: Fix compilation error on Android 4.3.
15118         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
15119         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
15120         HAVE_MBTOWC.
15121         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
15122         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
15123         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
15124         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
15125         * doc/posix-functions/mbtowc.texi: Mention the change.
15127 2019-01-24  Bruno Haible  <bruno@clisp.org>
15129         fdatasync: Fix compilation error on Android 4.3.
15130         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
15131         test whether fdatasync() exists.
15133 2019-01-24  Bruno Haible  <bruno@clisp.org>
15135         unlinkat: Fix compilation error on Android 4.3.
15136         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
15137         also on Android.
15138         * doc/posix-functions/unlinkat.texi: Mention the issue.
15140 2019-01-24  Bruno Haible  <bruno@clisp.org>
15142         renameat: Fix compilation error on Android 4.3.
15143         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
15144         * doc/posix-functions/renameat.texi: Mention the issue.
15146 2019-01-24  Bruno Haible  <bruno@clisp.org>
15148         fchownat: Fix compilation error on Android 4.3.
15149         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
15150         use.
15151         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
15152         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
15153         * doc/posix-functions/fchownat.texi: Mention the issue.
15155 2019-01-23  Bruno Haible  <bruno@clisp.org>
15157         gnulib-tool: Support running testdirs on Android.
15158         * build-aux/test-driver.diff: New file.
15159         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
15160         build-aux/test-driver after running automake.
15162 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15164         relocatable-prog: avoid warnings from Automake
15165         * modules/relocatable-prog: Don't declare PHONY dependencies in
15166         Automake conditionals.
15168 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
15170         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
15171         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
15173 2019-01-23  Bruno Haible  <bruno@clisp.org>
15175         threadlib: Revert commit from 2018-06-25. We now have a better fix.
15176         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
15177         preceding -Wl,--as-needed option. Don't check whether the linker
15178         supports --as-needed/--no-as-needed and --push-state/--pop-state.
15180 2019-01-23  Bruno Haible  <bruno@clisp.org>
15182         thread: Force linking with -lpthread, even when --as-needed is in use.
15183         Reported by Richard W.M. Jones <rjones@redhat.com> in
15184         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
15185         * lib/glthread/thread.h (pthread_create): Don't declare weak.
15187 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
15188             Bruno Haible  <bruno@clisp.org>
15190         relocatable: avoid compiler warnings (-Wshadow)
15191         * lib/relocatable.c (compute_curr_prefix): Rename local variables
15192         to avoid name collisions with global variables.
15194 2019-01-22  Bruno Haible  <bruno@clisp.org>
15196         vasnprintf: Don't use %n on Android.
15197         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
15198         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
15199         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
15201 2019-01-22  Bruno Haible  <bruno@clisp.org>
15203         *printf: Support cross-compilation to Android.
15204         * m4/printf.m4: Add cross-compilation guesses for Android.
15206 2019-01-21  Bruno Haible  <bruno@clisp.org>
15208         diacrit: Mark deprecated.
15209         * modules/diacrit (Status, Notice): Mark as deprecated.
15210         * NEWS: Mention it.
15212 2019-01-20  Bruno Haible  <bruno@clisp.org>
15214         rintl: Override broken implementation on NetBSD.
15215         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
15216         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
15217         REPLACE_RINTL.
15218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
15219         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
15220         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
15221         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
15223 2019-01-20  Bruno Haible  <bruno@clisp.org>
15225         log10l: Work around inaccurate implementation on NetBSD.
15226         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
15227         * lib/log10l.c: Comment out too simplistic override.
15228         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
15230 2019-01-20  Bruno Haible  <bruno@clisp.org>
15232         logl: Work around inaccurate implementation on NetBSD.
15233         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
15234         * lib/logl.c: Comment out unused code.
15235         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
15237 2019-01-20  Bruno Haible  <bruno@clisp.org>
15239         expm1l: Work around inaccurate implementation on NetBSD.
15240         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
15241         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
15242         REPLACE_EXPM1L.
15243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
15244         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
15245         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
15246         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
15248 2019-01-20  Bruno Haible  <bruno@clisp.org>
15250         expl: Work around inaccurate implementation on NetBSD.
15251         * lib/math.in.h (expl): Test also REPLACE_EXPL.
15252         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
15253         REPLACE_EXPL.
15254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15255         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15256         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15257         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15259 2019-01-20  Bruno Haible  <bruno@clisp.org>
15261         exp2l: Work around inaccurate implementation on NetBSD.
15262         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15263         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15265 2019-01-20  Bruno Haible  <bruno@clisp.org>
15267         floor, floorl: Avoid autoconf warnings.
15268         * modules/floor (configure.ac): Use AC_REQUIRE.
15269         * modules/floorl (configure.ac): Likewise.
15271 2019-01-20  Bruno Haible  <bruno@clisp.org>
15273         Defeat current GCC optimizations in math autoconf tests.
15274         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15275         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15276         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15277         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15278         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15279         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15280         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15281         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15282         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15283         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15284         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15285         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15286         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15287         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15288         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15289         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15290         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15291         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15292         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15293         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15294         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15295         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15296         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15297         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15298         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15299         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15300         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15301         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15302         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15303         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15304         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15305         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15306         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15308         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15309         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15310         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15311         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15313 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15315         gettext: support disabling use of VLAs
15316         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15318 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15320         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15321         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15323 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15325         fcntl: Fix syntax error (regression from 2018-10-05).
15326         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15328 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15330         relocatable: improve documentation.
15331         * doc/relocatable-maint.texi (Supporting Relocation): For
15332         substitutions performed by config.status, we need more variables
15333         (for instance datarootdir defaults to '${prefix}/share' so we need
15334         prefix).
15336 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15338         backup: update dependencies
15339         * modules/backup-rename (Depends-on): It now depends on opendirat
15340         instead of opendir.  It also uses stdint, and xalloc-oversized.
15341         But no longer dirfd.
15342         * modules/backupfile (Depends-on): Add xalloc-oversized.
15344 2019-01-13  Bruno Haible  <bruno@clisp.org>
15346         getcwd: Fix test failure when building on a Linux 9p file system.
15347         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15348         EINVAL from mkdir like ENAMETOOLONG.
15349         * tests/test-getcwd.c (test_long_name): Likewise.
15351 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15353         Fix typos found by codespell.
15354         * lib/*.[hc]: Fix typos in comments.
15355         * pygnulib/*.py: Fix typos in error messages and comments.
15357 2019-01-12  Bruno Haible  <bruno@clisp.org>
15359         doc: Fix documentation about container data types.
15360         Reported by Werner Lemberg <wl@gnu.org>.
15361         * doc/containers.texi (Container data types): Fix typo.
15363 2019-01-10  Bruno Haible  <bruno@clisp.org>
15365         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15366         Reported by Reuben Thomas <rrt@sc3d.org>.
15367         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15369 2019-01-06  Bruno Haible  <bruno@clisp.org>
15371         maintainer-makefile: Make the configure.ac section optional.
15372         * top/maint.mk (GREP, SED): Define if not defined.
15374 2019-01-06  Bruno Haible  <bruno@clisp.org>
15376         localename: Assume setlocale function.
15377         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15378         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15380 2019-01-06  Bruno Haible  <bruno@clisp.org>
15382         doc: Add documentation about container data types.
15383         * doc/containers.texi: New file.
15384         * doc/gnulib.texi (Particular Modules): Include it.
15386 2019-01-06  Bruno Haible  <bruno@clisp.org>
15388         doc: Update documentation about 'progname' module.
15389         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15390         title. Rewrite.
15391         * doc/gnulib.texi (Particular Modules): Update.
15393 2019-01-06  Bruno Haible  <bruno@clisp.org>
15395         doc: Document the xstdopen and *-safer modules.
15396         * doc/xstdopen.texi: New file.
15397         * doc/gnulib.texi (Particular Modules): Include it.
15399 2019-01-06  Bruno Haible  <bruno@clisp.org>
15401         xstdopen: Add tests.
15402         * tests/test-xstdopen.c: New file.
15403         * tests/test-xstdopen.sh: New file.
15404         * modules/xstdopen-tests: New file.
15406         xstdopen: New module.
15407         * lib/xstdopen.h: New file.
15408         * lib/xstdopen.c: New file.
15409         * modules/xstdopen: New file.
15411 2019-01-06  Bruno Haible  <bruno@clisp.org>
15413         stdopen: Fix compilation error with IRIX cc.
15414         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15416 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15418         xfreopen need not include stdio--.h
15419         * lib/xfreopen.c: Do not include stdio--.h.
15421         xfreopen need not depend on freopen-safer
15422         * modules/xfreopen (Depends-on):
15423         Depend on freopen, not freopen-safer.
15425         stdopen: modernize and simplify
15426         * lib/stdopen.c: Update copyright date
15427         Do not include sys/types.h; no longer needed these days.
15428         (stdopen): Use C99-style decl in loop.  Return int errno
15429         value, rather than just a bool.  Do not worry about fd mismatches,
15430         since the caller cares only if 0, 1, 2 are occupied.
15431         * lib/stdopen.h: No need to include <stdbool.h>.
15432         * m4/stdopen.m4: Remove.
15433         * modules/stdopen: New file.
15435         stdopen: copy from last use in coreutils
15436         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15437         New files, taken from their last commit in coreutils
15438         2007-07-23T12:35:58Z!jim@meyering.net
15439         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
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-help.c (print_header, argp_doc): Don't pass a NULL doc to
15446         dgettext().
15448 2019-01-05  Bruno Haible  <bruno@clisp.org>
15450         argp: Don't pass an invalid argument to dgettext().
15451         Reported by He X <xw897002528@gmail.com>.
15452         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15453         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15454         dgettext().
15456 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15458         stdioext: port to newer 32-bit Android
15459         Problem reported by Tom Yan in:
15460         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15461         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15462         (fp_) [__ANDROID__]: Use it.
15464 2019-01-04  Bruno Haible  <bruno@clisp.org>
15466         lock: Fix link error with --enable-threads=pth.
15467         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15468         Mark as weak.
15470 2019-01-04  Bruno Haible  <bruno@clisp.org>
15472         Fix link errors in unit tests.
15473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15474         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15475         * modules/array-map-tests (Makefile.am): Link test-array_map against
15476         libintl.
15477         * modules/array-set-tests (Makefile.am): Link test-array_set against
15478         libintl.
15479         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15480         libintl.
15481         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15482         libintl.
15483         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15484         against libintl.
15485         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15486         against libintl.
15488 2019-01-04  Bruno Haible  <bruno@clisp.org>
15490         Fix incorrect 'Link' sections.
15491         * modules/regex (Link): Mention the link requirement of module 'lock'.
15492         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15494 2019-01-04  Bruno Haible  <bruno@clisp.org>
15496         Fix some 'Link' sections.
15497         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15498         dependency.
15499         * modules/getaddrinfo (Link): Likewise.
15501 2019-01-04  Bruno Haible  <bruno@clisp.org>
15503         Remove redundant 'Link' sections.
15504         * modules/canon-host (Link): Remove section.
15505         * modules/timevar (Link): Likewise.
15507 2019-01-04  Bruno Haible  <bruno@clisp.org>
15509         Remove incorrect 'Link' sections.
15510         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15511         the dependencies instead.
15512         * modules/crypto/md5 (Link): Likewise.
15513         * modules/crypto/sha1 (Link): Likewise.
15514         * modules/crypto/sha256 (Link): Likewise.
15515         * modules/crypto/sha512 (Link): Likewise.
15516         * modules/faccessat (Link): Likewise.
15517         * modules/fdutimensat (Link): Likewise.
15518         * modules/iconv_open-utf (Link): Likewise.
15519         * modules/propername (Link): Likewise.
15520         * modules/qacl (Link): Likewise.
15521         * modules/unicodeio (Link): Likewise.
15522         * modules/utimecmp (Link): Likewise.
15523         * modules/utimensat (Link): Likewise.
15524         * modules/xstriconv (Link): Likewise.
15525         * modules/xstriconveh (Link): Likewise.
15527 2019-01-04  Bruno Haible  <bruno@clisp.org>
15529         gnulib-tool: New option --extract-recursive-link-directive.
15530         * gnulib-tool (func_usage): Document the new options
15531         --extract-recursive-dependencies, --extract-recursive-link-directive.
15532         (func_verify_module): Document output variables.
15533         (func_get_dependencies_recursively): New function.
15534         (func_get_link_directive_recursively): New function.
15535         Use them to implement the new options
15536         --extract-recursive-dependencies, --extract-recursive-link-directive.
15537         * doc/gnulib-tool.texi (Link-time requirements): New section.
15539 2019-01-04  Bruno Haible  <bruno@clisp.org>
15541         Clarify meaning of 'Link' section in module description.
15542         * doc/gnulib.texi (Module description): Clarify the meaning of the
15543         'Link' section versus the one of the dependencies.
15544         * NEWS: Mention the change.
15546 2019-01-04  Bruno Haible  <bruno@clisp.org>
15548         pselect: Fix module description.
15549         * modules/pselect (Link): Put one link option per line.
15551 2019-01-04  Bruno Haible  <bruno@clisp.org>
15553         cosl: Fix module description.
15554         * modules/cosl (Link): Fix typo.
15555         * modules/mathl (configure.ac): Likewise.
15557 2019-01-04  Bruno Haible  <bruno@clisp.org>
15559         c-xvasprintf: Fix module dependencies.
15560         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15562 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15564         bootstrap: die when some submodules are not initialized
15565         * build-aux/bootstrap: Make sure all submodules are initialized.
15567 2019-01-04  Bruno Haible  <bruno@clisp.org>
15569         bitsetv: Fix module dependencies.
15570         * lib/bitsetv.c: Include xalloc.h.
15571         * modules/bitsetv (Depends-on): Add 'xalloc'.
15573 2019-01-04  Bruno Haible  <bruno@clisp.org>
15575         xmemdup0: Remove redundant code.
15576         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15578 2019-01-04  Bruno Haible  <bruno@clisp.org>
15580         backupfile: Fix module dependencies.
15581         * modules/backupfile (Depends-on): Add 'xalloc'.
15583 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15585         bitset, crypto/gc: fix conflicts with Solaris 11
15586         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15587         avoid clash with Solaris 11 <sys/bitset.h>.
15588         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15589         with Solaris 11 <xorg/gc.h>.
15591 2019-01-04  Bruno Haible  <bruno@clisp.org>
15593         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15594         Reported by Andy Fiddaman <andy@omniosce.org>.
15595         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15597 2019-01-03  Eric Blake  <eblake@redhat.com>
15599         maintainer-makefile: fix typo in previous patch
15600         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15601         of Roman's work.
15603 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15605         maintainer-makefile: prefer $(GREP) over grep
15606         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15607         defined.
15608         * top/maint.mk: Use it everywhere.
15610         maintainer-makefile: split long argument lines
15611         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15612         it would be too long for exec limits on BSD.
15614 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15616         mkfifo: bring back HAVE_MKFIFO macro
15617         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15618         Problem reported by Andrew Janke in:
15619         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15621 2018-12-21  Bruno Haible  <bruno@clisp.org>
15623         Assume Autoconf >= 2.63.
15624         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15625         versions < 2.60.
15627 2018-12-21  Bruno Haible  <bruno@clisp.org>
15629         memcmp: Mention the clang bug.
15630         * tests/test-memcmp.c: Add comment about a known test failure.
15631         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15633 2018-12-20  Jim Meyering  <meyering@fb.com>
15635         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15636         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15637           echo '123-x'|LC_ALL=C grep -E '.\bx'
15638         The goal is to revert the first, but reverting it requires to restore
15639         the function deleted in the second. I ran this to restore the deleted
15640         function:
15641           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15642             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15643             | patch -R -p1
15644         * lib/dfa.c (charclass_context): Restore deleted function.
15645         Reverting the primary commit removes this change:
15646         dfa: Simplify a building state
15647         * lib/dfa.c (build_state): Simplify a building state.
15649 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15651         version-etc: allow zero authors
15652         * lib/version-etc.c (version_etc_arn): If no authors are given,
15653         omit authorship info instead of dumping core.
15655 2018-12-19  Bruno Haible  <bruno@clisp.org>
15657         lchown tests: Be more permissive regarding errno values.
15658         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15659         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15660         alternative to ENOSYS.
15661         * modules/lchown-tests (Depends-on): Add 'errno'.
15662         * modules/fchownat-tests (Depends-on): Likewise.
15664 2018-12-18  Bruno Haible  <bruno@clisp.org>
15666         duplocale: Avoid test failure on AIX 7.
15667         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15668         (configure.ac): Invoke gt_FUNC_USELOCALE.
15669         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15670         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15671         works.
15673 2018-12-18  Bruno Haible  <bruno@clisp.org>
15675         localename: Fix test failure on AIX 7.
15676         Reported by Assaf Gordon in
15677         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15678         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15679         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15680         instead of ac_cv_func_uselocale.
15681         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15682         HAVE_USELOCALE.
15683         * lib/localename-table.h: Likewise.
15684         * lib/localename-table.c: Likewise.
15685         * tests/test-localename.c: Likewise.
15686         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15688 2018-12-18  Bruno Haible  <bruno@clisp.org>
15690         localename: Update comments regarding Cygwin.
15691         * lib/localename.c: Update comment.
15692         * doc/posix-functions/uselocale.texi: Update platforms list.
15693         * doc/posix-functions/newlocale.texi: Likewise.
15694         * doc/posix-functions/duplocale.texi: Likewise.
15695         * doc/posix-functions/freelocale.texi: Likewise.
15697 2018-12-16  Bruno Haible  <bruno@clisp.org>
15699         c-stack: Fix for Linux/sparc.
15700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15701         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15703 2018-12-16  Bruno Haible  <bruno@clisp.org>
15705         localename: Avoid test failure on some glibc systems.
15706         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15707         Unset environment variables that might disturb the first setlocale call,
15708         and verify that this setlocale call succeeds.
15710 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15712         random: Fix build error on native Windows (regression from 2018-06-21).
15713         * lib/random.c (__srandom, __initstate, __setstate, __random,
15714         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15715         to the symbols without '__' prefix.
15717 2018-12-16  Bruno Haible  <bruno@clisp.org>
15719         obstack, libc-config: Support HP-UX cc in C99 mode.
15720         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15721         compiler, even when in C99 mode.
15722         * lib/cdefs.h (__flexarr): Likewise.
15723         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15725 2018-12-16  Bruno Haible  <bruno@clisp.org>
15727         localename: Fix test failure on OpenBSD >= 6.2.
15728         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15729         locale system. Define HAVE_FAKE_LOCALES in this case.
15730         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15731         HAVE_USELOCALE.
15732         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15733         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15734         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15735         platforms list.
15736         * doc/posix-functions/newlocale.texi: Likewise.
15737         * doc/posix-functions/duplocale.texi: Update platforms list.
15738         * doc/posix-functions/freelocale.texi: Likewise.
15740 2018-12-16  Bruno Haible  <bruno@clisp.org>
15742         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15743         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15744         of the test, on platforms without <monetary.h>.
15746 2018-12-16  Bruno Haible  <bruno@clisp.org>
15748         localename: Update comments.
15749         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15751 2018-12-15  Jim Meyering  <meyering@fb.com>
15753         regex: fix indentation
15754         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15756 2018-12-15  Bruno Haible  <bruno@clisp.org>
15758         openat-safer tests: Avoid test failure on NetBSD 8.
15759         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15760         on Linux.
15762 2018-12-15  Jim Meyering  <meyering@fb.com>
15764         regex: work around a bug in glibc-2.27 and prior
15765         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15766         assertion for /0|()0|\1|0/.
15767         * tests/test-regex.c (main): Add the same test here.
15769 2018-12-15  Bruno Haible  <bruno@clisp.org>
15771         localename: Fix use of uninitialized shell variable.
15772         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15773         gt_cv_locale_solaris114 always before use. Remove assignment without
15774         effect.
15776 2018-12-15  Bruno Haible  <bruno@clisp.org>
15778         dfa tests: Avoid test failure on Alpine Linux.
15779         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15780         command found on Alpine Linux.
15782 2018-12-15  Jim Meyering  <meyering@fb.com>
15784         dfa: avoid new warnings from gcc
15785         These would prevent building with -Werror and a Dec snapshot of gcc.
15786         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15787         Rename each inner instance to "p".
15788         (charclass_context): Remove unused static function.
15790 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15792         mkdir-p: improve diagnostic for FUSE mounts
15793         Problem reported by Niklas Hambüchen in:
15794         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15795         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15796         errno to mkdir errno if the stat errno is likely more interesting.
15798 2018-12-14  Bruno Haible  <bruno@clisp.org>
15800         hash-map: Add tests.
15801         * tests/test-hash_map.c: New file.
15802         * modules/hash-map-tests: New file.
15804         linkedhash-map: Add tests.
15805         * tests/test-linkedhash_map.c: New file.
15806         * modules/linkedhash-map-tests: New file.
15808         array-map: Add tests.
15809         * tests/test-array_map.c: New file.
15810         * modules/array-map-tests: New file.
15812         xmap: New module.
15813         * lib/gl_xmap.h: New file.
15814         * lib/gl_xmap.c: New file.
15815         * modules/xmap: New file.
15817         hash-map: New module.
15818         * lib/gl_hash_map.h: New file.
15819         * lib/gl_hash_map.c: New file.
15820         * modules/hash-map: New file.
15822         linkedhash-map: New module.
15823         * lib/gl_linkedhash_map.h: New file.
15824         * lib/gl_linkedhash_map.c: New file.
15825         * lib/gl_anyhash1.h: Update comments.
15826         * lib/gl_anyhash2.h: Likewise.
15827         * modules/linkedhash-map: New file.
15829         array-map: New module.
15830         * lib/gl_array_map.h: New file.
15831         * lib/gl_array_map.c: New file.
15832         * modules/array-map: New file.
15834         map: New module.
15835         * lib/gl_map.h: New file.
15836         * lib/gl_map.c: New file.
15837         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15838         conflict with gl_map.h.
15839         * modules/map: New file.
15841 2018-12-13  Bruno Haible  <bruno@clisp.org>
15843         select tests: Avoid test failure on Cygwin.
15844         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15846 2018-12-13  Bruno Haible  <bruno@clisp.org>
15848         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15849         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15851 2018-12-13  Bruno Haible  <bruno@clisp.org>
15853         localeconv tests: Avoid test failure on Cygwin.
15854         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15855         'mon_grouping' tests.
15857 2018-12-11  Bruno Haible  <bruno@clisp.org>
15859         omap: Don't dispose the old value when the function returns it.
15860         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15861         here.
15862         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15863         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15864         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15865         here.
15867         array-omap, avltree-omap, rbtree-omap: Tweak style.
15868         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15869         false.
15870         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15872         rbtree-omap: Add tests.
15873         * tests/test-rbtree_omap.c: New file.
15874         * modules/rbtree-omap-tests: New file.
15876         avltree-omap: Add tests.
15877         * tests/test-avltree_omap.c: New file.
15878         * modules/avltree-omap-tests: New file.
15880         array-omap: Add tests.
15881         * tests/test-array_omap.c: New file.
15882         * modules/array-omap-tests: New file.
15884         xomap: New module.
15885         * lib/gl_xomap.h: New file.
15886         * lib/gl_xomap.c: New file.
15887         * modules/xomap: New file.
15889         rbtree-omap: New module.
15890         * lib/gl_rbtree_omap.h: New file.
15891         * lib/gl_rbtree_omap.c: New file.
15892         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15893         Parameterize.
15894         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15895         * modules/rbtree-omap: New file.
15896         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15897         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15899         avltree-omap: New module.
15900         * lib/gl_avltree_omap.h: New file.
15901         * lib/gl_avltree_omap.c: New file.
15902         * lib/gl_avltree_ordered.h: Code moved to here from
15903         lib/gl_avltree_oset.c. Parameterize.
15904         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15905         * lib/gl_anytree_omap.h: New file.
15906         * modules/avltree-omap: New file.
15907         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15908         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15910         array-omap: New module.
15911         * lib/gl_array_omap.h: New file.
15912         * lib/gl_array_omap.c: New file.
15913         * modules/array-omap: New file.
15915         omap: New module.
15916         * lib/gl_omap.h: New file.
15917         * lib/gl_omap.c: New file.
15918         * modules/omap: New file.
15920 2018-12-11  Bruno Haible  <bruno@clisp.org>
15922         hash-set, linkedhash-set: Reduce code duplication.
15923         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15924         lib/gl_anyhash_set1.h.
15925         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15926         lib/gl_anyhash_set2.h. Parameterize.
15927         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15928         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15929         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15930         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15931         * lib/gl_rbtreehash_list.c: Likewise.
15932         * lib/gl_linkedhash_list.c: Likewise.
15933         (hash_resize_after_add): Remove function.
15934         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15935         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15936         * gl_hash_set.c: Likewise.
15937         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15938         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15939         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15940         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15941         * modules/hash-set (Files, Makefile.am): Likewise.
15943 2018-12-11  Bruno Haible  <bruno@clisp.org>
15945         array-set: Optimize.
15946         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15947         outside the loop, not inside the loop.
15949 2018-12-11  Bruno Haible  <bruno@clisp.org>
15951         times: Fix tests.
15952         * tests/test-times.c (doublecmp): Implement a total order.
15954 2018-12-11  Bruno Haible  <bruno@clisp.org>
15956         array-set, linkedhash-set, hash-set: Fix tests.
15957         * tests/test-array_set.c (cmp_objects_in_array): New function.
15958         (check_equals): Use it.
15959         * tests/test-hash_set.c: Likewise.
15960         * tests/test-linkedhash_set.c: Likewise.
15962 2018-12-08  Bruno Haible  <bruno@clisp.org>
15964         Fix comments.
15965         * lib/gl_list.h (gl_list_free): Clarify what it does.
15966         * lib/gl_oset.h (gl_oset_free): Likewise.
15967         * lib/gl_set.h (gl_set_free): Likewise.
15968         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15969         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15970         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15971         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15973 2018-12-03  Bruno Haible  <bruno@clisp.org>
15975         hash-set: Add tests.
15976         * tests/test-hash_set.c: New file.
15977         * modules/hash-set-tests: New file.
15979         linkedhash-set: Add tests.
15980         * tests/test-linkedhash_set.c: New file.
15981         * modules/linkedhash-set-tests: New file.
15983         array-set: Add tests.
15984         * tests/test-array_set.c: New file.
15985         * modules/array-set-tests: New file.
15987         xset: New module.
15988         * lib/gl_xset.h: New file.
15989         * lib/gl_xset.c: New file.
15990         * modules/xset: New file.
15992         hash-set: New module.
15993         * lib/gl_hash_set.h: New file.
15994         * lib/gl_hash_set.c: New file.
15995         * modules/hash-set: New file.
15997         linkedhash-set: New module.
15998         * lib/gl_linkedhash_set.h: New file.
15999         * lib/gl_linkedhash_set.c: New file.
16000         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
16001         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
16002         * lib/gl_anyhash_primes.h: New file, extracted from
16003         lib/gl_anyhash_list2.h.
16004         * lib/gl_anyhash_list2.h: Include it.
16005         (primes, next_prime): Remove definitions.
16006         * modules/linkedhash-set: New file.
16007         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
16008         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16009         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
16010         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16011         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
16012         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
16014         array-set: New module.
16015         * lib/gl_array_set.h: New file.
16016         * lib/gl_array_set.c: New file.
16017         * modules/array-set: New file.
16019         set: New module.
16020         * lib/gl_set.h: New file.
16021         * lib/gl_set.c: New file.
16022         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
16023         gl_set.h.
16024         * modules/set: New file.
16026 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
16028         bison: don't force the Yacc mode
16029         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
16030         errors when Bison features are used in the grammar file.  Some of
16031         these features (such as %expect) were flagged non-yacc recently.  Most
16032         of the time, -y is actually used to please Automake's ylwrap which
16033         expects the output to be y.tab.c.
16034         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
16036 2018-12-01  Bruno Haible  <bruno@clisp.org>
16038         gnupload: Document short options.
16039         * build-aux/gnupload (usage): Document the short options.
16041 2018-11-28  Ben Elliston  <bje@gnu.org>
16043         gnupload: Support option -h as alias of --help.
16044         * build-aux/gnupload: Support -h.
16046 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
16048         memrchr: port better to clang
16049         * lib/memrchr.c (__memrchr): Cast to void * instead of to
16050         longword *, to pacify clang -Wcast-align (Bug#33544).
16052 2018-11-29  Eric Blake  <eblake@redhat.com>
16054         docs: mention printf %m considerations
16055         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
16056         is not portable, and is easy enough to work around.
16057         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
16058         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
16059         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
16060         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
16061         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16062         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16063         * doc/posix-functions/printf.texi (printf): Likewise.
16064         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
16065         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
16066         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
16067         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16068         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16069         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16070         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16071         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16072         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
16073         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
16074         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16075         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16077 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
16079         bitset: rename ebitset/expandable.* as tbitset/table.*
16080         See
16081         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
16082         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
16083         * lib/bitset/table.h, lib/bitset/table.c: these.
16084         Rename all the ebitset* symbols as tbitset*.
16085         Adjust dependencies.
16087 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16089         bitset: check the operations
16090         * tests/test-bitset.c (bitset_random): New.
16091         Use it.
16092         * lib/bitset/expandable.c (ebitset_not): Fix typo.
16094 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16096         bitset: properly use false/true instead of 0/1 for Booleans
16097         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
16098         0/1, as Booleans.
16100 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
16102         bitset: rename BITSET_VARRAY as BITSET_VECTOR
16103         For consistency with the name of the file.
16104         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
16105         * lib/bitset/stats.c, lib/bitset/vector.c
16106         (BITSET_VARRAY): Rename as...
16107         (BITSET_VECTOR): this.
16109 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16111         strerror_r-posix: memmove, not memcpy
16112         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
16113         since the source and destination might overlap in the call
16114         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
16115         Simplify.
16117 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16119         bitsetv: new module
16120         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
16122 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16124         bitset: add tests and doc
16125         First stabs at providing a documentation and test for the bitset
16126         module.
16127         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
16129 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
16131         bitset: new module
16132         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
16133         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
16134         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
16135         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
16136         * lib/bitset/vector.h, modules/bitset:
16137         New.
16139 2018-11-23  Bruno Haible  <bruno@clisp.org>
16141         localename: Fix gettext test failures on mingw.
16142         * lib/localename.c (gl_locale_name_posix): Convert the result of
16143         gl_locale_name_environ to XPG syntax.
16145 2018-11-23  Karl Berry  <karl@freefriends.org>
16147         * config/srclistvars.txt,
16148         * config/srclist.txt: remove all gettext references;
16149         the gettext maintainers will sync as needed.
16151 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16153         mktime: add libc-config dependency
16154         I missed this when we synced from glibc.
16155         * modules/mktime (Depends-on): Add libc-config.
16157 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16159         longlong: fix comment typo
16160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
16162 2018-11-11  Bruno Haible  <bruno@clisp.org>
16164         havelib: Remove the need to include asm-underscore.m4.
16165         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
16166         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
16167         gl_HOST_CPU_C_ABI.
16168         * modules/havelib (Files): Add host-cpu-c-abi.m4.
16169         (Depends-on): Remove host-cpu-c-abi.
16171 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16173         parse-datetime: simplify test for mktime failure
16174         * lib/parse-datetime.y (mktime_ok): Simplify.
16175         Remove args TZ and T; no longer needed.  Callers changed.
16177         posixtm: simplify test for mktime failure
16178         * lib/posixtm.c (posixtime): Simplify.
16180         nstrftime: simplify test for mktime failure
16181         * lib/nstrftime.c (__strftime_internal): Simplify.
16183 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16185         gnulib-common.m4: port _Noreturn to C++
16186         Problem reported by Akim Demaille in:
16187         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
16188         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
16189         Merge adjustments from _Noreturn.h and from glibc into the non-C++
16190         version.
16191         * lib/_Noreturn.h: Match gnulib-common.
16193 2018-10-30  Bruno Haible  <bruno@clisp.org>
16195         gnu-make: Fix for NetBSD 8 'make'.
16196         Reported by Reuben Thomas in
16197         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
16198         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
16199         output, ignoring exit codes.
16201 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
16203         maintainer-makefile: fix syntax-check rule for "same.h"
16204         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
16205         for 'same_nameat', too.
16207 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16209         havelib: fix nested ‘configure’ chatter
16210         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
16211         AC_CACHE_CHECK calls, which resulted in confusing output like
16212         “checking for the common suffixes of directories in the library
16213         search path... checking for 64-bit host... no lib,lib”.
16215         backupfile: tweak for better code
16216         * lib/backupfile.c: Sort include directives, and remove
16217         unnecessary <limits.h> include.
16218         (FALLTHROUGH): New macro, copied from other modules.
16219         (backupfile_internal): Use it to avoid code duplication.
16220         This lets GCC 8.2.1 generate better code by inlining the
16221         call to check_extension.
16223 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16225         backupfile: new dir_fd args
16226         New module opendirat with code taken from fts.
16227         Use this module to let backupfile use a directory file descriptor.
16228         * NEWS: Document the incompatible change.
16229         * lib/backup-find.c (find_backup_file_name):
16230         * lib/backup-rename.c (backup_file_rename):
16231         New arg DIR_FD.
16232         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
16233         (SIZE_MAX): Remove.
16234         Include opendirat.h rather than dirent--.h.
16235         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
16236         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
16237         (backupfile_internal): New arg DIR_FD.  All callers changed.
16238         * lib/fts.c: Include opendirat.h.
16239         (opendirat): Move to opendirat.c.
16240         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
16241         * modules/backupfile (Depends-on): Remove dirfd, opendir.
16242         Add opendirat.
16243         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
16244         Add opendirat.
16246 2018-10-23  Bruno Haible  <bruno@clisp.org>
16248         localename: Simplify support for per-thread locales on Solaris 11.4.
16249         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
16250         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
16251         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
16252         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
16253         specific code.
16254         * lib/localename-table.h: Update comments.
16255         * lib/localename-table.c: Update comments.
16256         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16257         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16258         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16259         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16260         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16261         HAVE_NAMELESS_LOCALES here.
16262         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16263         m4/intlsolaris.m4.
16264         * modules/gettext (Files): Likewise.
16266 2018-10-22  Bruno Haible  <bruno@clisp.org>
16268         std-gnu11: Support Autoconf versions < 2.64.
16269         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16270         when _AC_DO_LIMIT does not exist.
16272 2018-10-22  Bruno Haible  <bruno@clisp.org>
16274         Assume Autoconf >= 2.63.
16275         * DEPENDENCIES: Mention the requirement.
16277         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16278         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16279         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16280         * m4/onceonly.m4: Remove file.
16282         * m4/openmp.m4: Remove file.
16283         * modules/openmp (Files): Remove m4/openmp.m4.
16285         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16286         htmldir, dvidir, pdfdir, psdir, localedir.
16287         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16289         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16290         Autoconf < 2.60.
16291         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16292         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16294         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16295         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16296         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16298         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16299         exists.
16300         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16302         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16303         Autoconf < 2.61.
16305         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16306         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16307         Autoconf >= 2.52.
16309         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16310         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16311         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16313 2018-10-22  Bruno Haible  <bruno@clisp.org>
16315         Assume Automake >= 1.11.
16316         * m4/configmake.m4: Update comments.
16317         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16318         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16319         of 'eval'.
16320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16321         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16322         requires Automake >= 1.11.
16324 2018-10-22  Bruno Haible  <bruno@clisp.org>
16326         localename: Fix typo in comment.
16327         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16329 2018-10-22  Bruno Haible  <bruno@clisp.org>
16331         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16332         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16334 2018-10-21  Bruno Haible  <bruno@clisp.org>
16336         locale: Ease integration with GNU libintl.
16337         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16338         GNULIB_defined_freelocale): New macros.
16340 2018-10-21  Bruno Haible  <bruno@clisp.org>
16342         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16343         * lib/localename-table.h: New file, extracted from lib/localename.c.
16344         * lib/localename-table.c: Likewise.
16345         * lib/localename.c: Include localename-table.h.
16346         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16347         locale_hash_function instead of pointer_hash.
16348         * modules/localename (Files): Add lib/localename-table.h,
16349         lib/localename-table.c.
16350         (lib_SOURCES): Add localename-table.c.
16351         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16352         for Solaris 11.4 locale system only on Solaris. Test for it
16353         independently whether getlocalename_l exists.
16354         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16355         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16356         HAVE_NAMELESS_LOCALES.
16357         * modules/gettext (Files): Add m4/intlsolaris.m4.
16359 2018-10-21  Bruno Haible  <bruno@clisp.org>
16361         Small update from gettext.
16362         * m4/intl.m4: Update from gettext:
16363         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16364         mode on AIX.
16365         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16366         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16368 2018-10-16  Bruno Haible  <bruno@clisp.org>
16370         mountlist: Remove support for Cray with UNICOS 9.
16371         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16372         MOUNTED_LISTMNTENT.
16373         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16375 2018-10-16  Bruno Haible  <bruno@clisp.org>
16377         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16379         STAT_STATFS2_FS_DATA.
16380         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16381         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16382         MOUNTED_GETMNT.
16383         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16384         * lib/getloadavg.c (decstation): Remove definition and case.
16385         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16386         * lib/getgroups.c: Likewise.
16387         * doc/posix-functions/getgroups.texi: Likewise.
16388         * lib/time.in.h: Update comments.
16390 2018-10-16  Bruno Haible  <bruno@clisp.org>
16392         getloadavg: Remove support for ConvexOS.
16393         * lib/getloadavg.c: Remove convex case.
16395 2018-10-16  Bruno Haible  <bruno@clisp.org>
16397         getloadavg: Remove support for Sony NEWS.
16398         * lib/getloadavg.c: Remove sony_news case.
16400 2018-10-16  Bruno Haible  <bruno@clisp.org>
16402         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16403         * lib/fsusage.c: Remove _SEQUENT_ case.
16404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16405         * lib/mountlist.c: Don't test for MNTTABNAME.
16406         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16407         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16408         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16409         * lib/stat-size.h: Don't mention the Sequent bug.
16410         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16412 2018-10-16  Bruno Haible  <bruno@clisp.org>
16414         fsusage: Remove support for AIX 3.
16415         * lib/fsusage.c: Remove code for AIX 3.
16416         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16418 2018-10-16  Bruno Haible  <bruno@clisp.org>
16420         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16421         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16422         * lib/fsusage.c: Remove code for AIX PS/2.
16423         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16424         * lib/getloadavg.c: Likewise.
16426 2018-10-16  Bruno Haible  <bruno@clisp.org>
16428         getloadavg: Remove support for HP-UX on m68k.
16429         * lib/getloadavg.c: Remove hp9000s300 case.
16431 2018-10-16  Bruno Haible  <bruno@clisp.org>
16433         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16434         * lib/fsusage.c: Remove DOLPHIN case.
16435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16436         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16438 2018-10-16  Bruno Haible  <bruno@clisp.org>
16440         getloadavg: Remove support for Alliant FX/2800.
16441         * lib/getloadavg.c: Remove alliant case.
16443 2018-10-16  Bruno Haible  <bruno@clisp.org>
16445         getloadavg: Remove support for tek4300.
16446         * lib/getloadavg.c: Remove tek4300 case.
16448 2018-10-16  Bruno Haible  <bruno@clisp.org>
16450         getloadavg: Remove support for Ardent.
16451         * lib/getloadavg.c: Remove ardent case.
16453 2018-10-16  Bruno Haible  <bruno@clisp.org>
16455         mountlist: Remove support for SVR2.
16456         Reported by Andrew Borodin <aborodin@vmail.ru> in
16457         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16458         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16459         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16460         MOUNTED_FREAD.
16462 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16464         libc-config: merge from glibc
16465         * lib/cdefs.h (__glibc_has_attribute): New macro.
16467         regex: depend on libc-config
16468         * modules/regex (Depends-on): Add libc-config.
16469         This is needed after the recent autoupdate from glibc.
16471 2018-10-14  Bruno Haible  <bruno@clisp.org>
16473         localename: Add support for per-thread locales on Solaris 11.4.
16474         * lib/locale.in.h (newlocale, freelocale): New declarations.
16475         (duplocale): Declare also when the 'localename' module requests it.
16476         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16477         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16478         (struniq): Update.
16479         (struct locale_categories_names, struct locale_hash_node): New types.
16480         (LOCALE_HASH_TABLE_SIZE): New constant.
16481         (locale_hash_table, locale_lock): New variables.
16482         (pointer_hash, get_locale_t_name): New functions.
16483         (newlocale, duplocale, freelocale): New overridden functions.
16484         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16485         * m4/intlsolaris.m4: New file.
16486         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16487         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16488         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16489         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16490         declared.
16491         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16492         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16493         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16494         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16495         * modules/localename (Files): Add intlsolaris.m4.
16496         (Depends-on): Add 'locale'.
16497         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16498         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16499         the signatures.
16501 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16503         timevar: use gethrxtime to get wall clock time
16504         clock_gettime is not portable.  gethrxtime takes the best available
16505         option to get the wall clock time, including clock_gettime (monotonic
16506         clock), and gettime (non monotonic).
16507         Also, using xtime_t instead of float preserves the precision.
16508         Suggested by Bruno Haible.
16509         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16510         * modules/timevar (Depends-on): We need gethrxtime.
16511         We no longer use times().
16512         (Link): Update.
16513         * lib/timevar.h (timevar_time_def): Use xtime_t.
16514         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16515         (timevar_print): Instead of checking whether the timings themselves
16516         are large enough for the timevar to be printed, check the percentages.
16518 2018-10-14  Bruno Haible  <bruno@clisp.org>
16520         wcsnrtombs: Work around Solaris 11.4 bug.
16521         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16522         macro.
16523         (gl_FUNC_WCSNRTOMBS): Invoke it.
16524         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16526 2018-10-14  Bruno Haible  <bruno@clisp.org>
16528         mbsnrtowcs: Work around Solaris 11.4 bug.
16529         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16530         macro.
16531         (gl_FUNC_MBSNRTOWCS): Invoke it.
16532         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16534 2018-10-14  Bruno Haible  <bruno@clisp.org>
16536         doc: Update for Solaris 11.4.
16537         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16538         mention Solaris 11.4.
16539         * m4/printf.m4: Update comments about Solaris.
16540         * m4/log.m4: Likewise.
16541         * m4/log10.m4: Likewise.
16542         * m4/logb.m4: Likewise.
16543         * m4/logbf.m4: Likewise.
16544         * m4/logbl.m4: Likewise.
16545         * m4/rename.m4: Likewise.
16546         * m4/wcrtomb.m4: Likewise.
16547         * m4/hostent.m4: Likewise.
16548         * m4/servent.m4: Likewise.
16550 2018-10-14  Bruno Haible  <bruno@clisp.org>
16552         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16553         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16554         pointer.
16555         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16556         pointer.
16557         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16558         pointer.
16559         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16560         pointer.
16561         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16562         pointer.
16564 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16566         bootstrap: fix wget command for po files.
16567         * build-aux/bootstrap (po_download_command_format): Fix comment,
16568         and adjust callers.
16570 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16572         timevar: improve the output format
16573         Suggested by Bruno Haible.
16574         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16575         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16576         wall, since its resolution is much higher.
16578 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16580         timevar: expect that getrusage is available.
16581         Don't keep both times and getrusage as backend: both are guaranteed by
16582         gnulib, a single one suffices.  Using getrusage is open to possibly
16583         tracking other types of resources in the future.
16584         * modules/timevar (Depends-on): Add getrusage.
16585         (configure.ac): Remove gl_TIMEVAR.
16586         (Files): Remove m4/timevar.m4.
16587         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16588         * lib/timevar.h (timevar_enabled): Clarify documentation.
16589         * lib/timevar.c: Remove all the code about times.
16590         Remove all the CPP guards about getrusage: expect it to be present
16591         (courtesy of gnulib).
16593 2018-10-12  Bruno Haible  <bruno@clisp.org>
16595         mountlist: Improve support for Solaris in 64-bit mode.
16596         Reported by David Wood <David.Wood@deshaw.com> in
16597         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16599         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16600         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16602 2018-10-12  Bruno Haible  <bruno@clisp.org>
16604         mountlist: Add support for Minix.
16605         Reported by Assaf Gordon in
16606         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16607         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16608         AC_CHECK_FUNCS to check for 'getmntinfo'.
16609         * lib/mountlist.c: Update comments.
16611 2018-10-12  Bruno Haible  <bruno@clisp.org>
16613         Make better use of Autoconf.
16614         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16615         * m4/manywarnings.m4: Likewise.
16616         * m4/manywarnings-c++.m4: Likewise.
16617         * m4/socklen.m4: Likewise.
16618         * m4/sockpfaf.m4: Likewise.
16619         * m4/stdarg.m4: Likewise.
16620         * m4/visibility.m4: Likewise.
16621         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16622         indentation.
16623         * m4/ls-mntd-fs.m4: Likewise.
16625 2018-10-11  Bruno Haible  <bruno@clisp.org>
16627         mountlist: Modernize platform lists.
16628         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16629         platforms, deemphasizing the obsolete ones.
16630         * lib/mountlist.c: Likewise.
16632 2018-10-11  Bruno Haible  <bruno@clisp.org>
16634         getprogname: Add support for 32-bit programs on HP-UX.
16635         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16636         try the similar functions 32-bit programs on 64-bit HP-UX.
16638 2018-10-11  Bruno Haible  <bruno@clisp.org>
16640         getprogname: Work around program name truncation when possible.
16641         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16642         possibly use pst_cmd instead.
16644 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16646         fts: cleanup after FTS_NOATIME removal
16647         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16648         (FTS_STOP): Shrink to minimal values.  We don’t need to
16649         worry about binary compatibility in Gnulib, and the old way
16650         of doing things had a hole in the user options that caused
16651         FTS_OPTIONMASK to not work as desired.
16653 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16655         fts: remove FTS_NOATIME
16656         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16657         We cannot guarantee that O_NOATIME works: e.g. openat fails
16658         with EPERM if the effective user ID of the caller does not match
16659         the owner of the file and the caller is not privileged.
16660         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16661         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16662         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16663         (FTS_OPTIONMASK): Adjust.
16664         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16665         (fd_ring_check): Likewise.
16667 2018-10-08  Bruno Haible  <bruno@clisp.org>
16669         csharpcomp*, csharpexec*: Remove support for pnet.
16670         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16671         HAVE_CSCC.
16672         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16673         Don't test HAVE_CSCC.
16674         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16675         (compile_csharp_class): Don't invoke it.
16676         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16677         HAVE_ILRUN.
16678         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16679         Don't test HAVE_ILRUN.
16680         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16681         (execute_csharp_program): Don't invoke it.
16682         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16683         any more.
16685 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16687         renameatu: prefer renameat2 to syscall
16688         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16689         Use renameat2 instead of syscall (Bug#32796).
16690         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16692 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16694         bootstrap, gnulib-tool: use https instead of insecure rsync
16695         * build-aux/bootstrap (download_po_files, po_download_command_format):
16696         Don't try using rsync; always use wget over https to fetch PO files.
16697         * gnulib-tool (func_import): Likewise.
16698         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16700 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16702         bootstrap, gnulib-tool: correct the translations wget command
16703         * build-aux/bootstrap (po_download_command_format2): Restrict
16704         recursion to a single level.
16705         * gnulib-tool (func_import): Likewise.
16706         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16708 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16710         doc: the gnulib snapshots are not maintained
16711         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16713 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16715         timevar: add to lib_SOURCES
16716         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16718 2018-10-07  Bruno Haible  <bruno@clisp.org>
16720         dirent: Update documentation.
16721         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16723 2018-10-05  Bruno Haible  <bruno@clisp.org>
16725         strpbrk: Make it possible to namespace the defined symbol.
16726         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16728 2018-10-05  Bruno Haible  <bruno@clisp.org>
16730         strcspn: Make it possible to namespace the defined symbol.
16731         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16733 2018-10-05  Bruno Haible  <bruno@clisp.org>
16735         raise: Make it possible to namespace the defined symbol.
16736         * lib/raise.c (raise): Undefine only after the replacement function has
16737         been defined.
16738         (raise): Renamed from rpl_raise.
16739         (raise_nothrow): Move to the end of the compilation unit.
16741 2018-10-05  Bruno Haible  <bruno@clisp.org>
16743         memcmp: Make it possible to namespace the defined symbol.
16744         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16746 2018-10-05  Bruno Haible  <bruno@clisp.org>
16748         explicit_bzero: Make it possible to namespace the defined symbol.
16749         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16750         glibc.
16752 2018-10-05  Bruno Haible  <bruno@clisp.org>
16754         mkdir-p: Depend on 'mkdir'.
16755         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16757 2018-10-05  Bruno Haible  <bruno@clisp.org>
16759         tempname: Depend on 'mkdir'.
16760         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16761         at <https://savannah.gnu.org/bugs/?33379>.
16762         * modules/tempname (Depends-on): Add 'mkdir'.
16764 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16766         timevar: rely on gnulib modules for time portability.
16767         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16768         * m4/timevar.m4: Don't check for clock_t and struct tms,
16769         guaranteed by gnulib.
16770         * lib/timevar.h: Use extern "C" protection.
16771         Include <stdio.h> for FILE.
16772         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16773         they are guaranteed by gnulib.
16774         Remove uses of clock as (now useless) fallback.
16776 2018-10-04  Bruno Haible  <bruno@clisp.org>
16778         sh-filename: New module.
16779         * m4/sh-filename.m4: New file.
16780         * modules/sh-filename: New file.
16781         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16782         "/bin/sh".
16783         * tests/test-posix_spawn1.c (main): Likewise.
16784         * tests/test-posix_spawn2.c (main): Likewise.
16785         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16786         is_envjavac_gcj43): Likewise.
16787         * lib/javaexec.c (execute_java_class): Likewise.
16788         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16789         * modules/posix_spawnp-tests (Depends-on): Likewise.
16790         * modules/javacomp (Depends-on): Likewise.
16791         * modules/javaexec (Depends-on): Likewise.
16793 2018-10-04  Bruno Haible  <bruno@clisp.org>
16795         spawn-pipe tests: Avoid test failure on native Windows.
16796         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16797         that fd 2 is closed.
16799 2018-10-04  Bruno Haible  <bruno@clisp.org>
16801         fcntl: Make it possible to namespace the defined symbol.
16802         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16803         been defined.
16804         (fcntl): Renamed from rpl_fcntl.
16805         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16806         from fcntl.
16807         (klibc_fcntl): Move to the end of the compilation unit.
16809 2018-10-02  Bruno Haible  <bruno@clisp.org>
16811         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16812         * tests/test-vasnprintf.c (test_function): Change the test added on
16813         2018-09-23 to check only the 18 most significant digits.
16815         vasnprintf tests: Avoid test failure on Cygwin.
16816         * tests/test-vasnprintf.c (test_function): Change the test added on
16817         2018-09-23 to check only the 42 most significant digits.
16819 2018-10-01  Bruno Haible  <bruno@clisp.org>
16821         mkostemp, mkostemps: Update documentation.
16822         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16823         * doc/glibc-functions/mkostemps.texi: Likewise.
16825 2018-10-01  Tom Tromey  <tom@tromey.com>
16827         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16828         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16829         on OS X.
16831 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16833         hmac-*: refactor to remove repetitive code
16834         * lib/hmac.c: A new parameterized single implementation.
16835         * lib/hmac-md5.c: Define parameters and include implementation.
16836         * lib/hmac-sha1.c: Likewise.
16837         * lib/hmac-sha256.c: Likewise.
16838         * lib/hmac-sha512.c: Likewise.
16839         * modules/crypto/hmac-md5: Reference the new implementation file.
16840         * modules/crypto/hmac-sha1: Likewise.
16841         * modules/crypto/hmac-sha256: Likewise.
16842         * modules/crypto/hmac-sha512: Likewise.
16843         * tests/test-hmac-md5.c: Refactor common code to a single function.
16844         * tests/test-hmac-sha1.c: Likewise.
16845         * tests/test-hmac-sha256.c: Likewise.
16846         * tests/test-hmac-sha512.c: Likewise.
16848 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16850         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16851         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16852         key length to that output by sha512, not the blocksize.
16853         Otherwise uninitialized data from the stack
16854         is used when computing the hash.
16855         * tests/test-hmac-sha512.c: Add a shortened key test case.
16856         Reported at https://github.com/coreutils/gnulib/pull/5
16858 2018-09-30  Bruno Haible  <bruno@clisp.org>
16860         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16861         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16862         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16863         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16864         'unsigned int' before comparison with an unsigned value.
16866 2018-09-30  Bruno Haible  <bruno@clisp.org>
16868         grantpt: Remove unnecessary dependency.
16869         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16871 2018-09-30  Bruno Haible  <bruno@clisp.org>
16873         timevar: Small tweaks.
16874         * lib/timevar.h: Fix comments. Add parameter names to function
16875         declarations.
16876         * lib/timevar.c: Include timevar.h immediately after config.h.
16877         * lib/timevar.def: Fix comments.
16878         * modules/timevar (Maintainer): List Akim Demaille.
16880 2018-09-30  Bruno Haible  <bruno@clisp.org>
16882         timevar: Include documentation in gnulib manual.
16883         * doc/timevar.texi: Change node and section name to 'Profiling of
16884         program phases'.
16885         In the code snippets, tweak the #includes and use GNU coding style.
16886         * doc/gnulib.texi: Include timevar.texi.
16888 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16890         timevar: import from Bison.
16891         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16892         New files.
16893         * lib/timevar.def: New file.
16894         * doc/timevar.texi: New file.
16896 2018-09-26  Bruno Haible  <bruno@clisp.org>
16898         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16899         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16900         * lib/javacomp.c (default_target_version): Likewise.
16902 2018-09-26  Bruno Haible  <bruno@clisp.org>
16904         javacomp-script, javacomp: Add support for Java 11.
16905         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16906         target-version 11.
16907         * lib/javaversion.h: Update comments.
16908         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16909         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16910         TARGET_VERSION_BOUND, target_version_index,
16911         corresponding_classfile_version): Accept source_version 11 and
16912         target_version 11.
16913         * lib/javacomp.h: Update comments accordingly.
16915 2018-09-23  Bruno Haible  <bruno@clisp.org>
16917         vasnprintf: Fix heap memory overrun bug.
16918         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16919         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16920         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16921         memory.
16922         * tests/test-vasnprintf.c (test_function): Add another test.
16924 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16926         maint: mktime.c now shared with glibc
16927         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16928         are now the same in Gnulib and glibc.
16930         mktime: fix _LIBC typo
16931         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16933 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16935         dfa: optimization for state merge
16936         * lib/dfa.c (merge2): New function.
16937         (merge_nfa_state): Use it.
16939 2018-09-18  Jim Meyering  <meyering@fb.com>
16941         dfa: trivial comment fix: s/is/if/
16942         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16944 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16946         dfa: use more-informative function name
16947         * lib/dfa.c (maybe_disable_superset_dfa):
16948         Rename from dfautf8noss.  Use change.
16950         dfa: tweak allocation performance
16951         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16952         Prefer ptrdiff_t for indexes some more.
16953         Use char for flags, as it’s wide enough.
16954         Allocate queue and flags together, with one malloc call.
16955         No need to use xnmalloc since the multiplication and
16956         addition cannot overflow (it’s already been checked by
16957         earlier allocation).  Prefer memset to open-coding.
16959         dfa: prune states as we go
16960         * lib/dfa.c (prune): Remove.
16961         dfa: reorder enum for efficiency
16962         (merge_nfa_state): Prune as we go instead of at the end.
16963         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16965         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16966         of the enumeration to make it easier for GCC to generate
16967         efficient code by using fewer comparisons to check for
16968         ranges of values.
16969         (atom): Take advantage of the reordering.
16971 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16973         dfa: optimize alternation in NFA
16974         Even when similar states exist in alternation, the DFA treats them
16975         as separate items, which may complicate the transition in NFA and
16976         cause slowdown.  This change assembles the states into one.  For
16977         example, ab|ac is changed into a(b|c).  This change speeds-up
16978         matching for many branched patterns.  For example, grep speeds up
16979         more than 30× in:
16981           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16982           time -p env LC_ALL=C grep -vf in in
16984         * lib/dfa.c (prune): New function.
16985         (merge_nfa_state): New function.  It merges similar NFA states.
16986         (dfaoptimize): New function.  It seeks merged and removed nodes.
16987         (dfaanalyze): Call new function.
16988         (dfautf8noss): Change name from dfaoptimize because of addition of new
16989         function.
16990         (dfacomp): Update caller.
16992         dfa: simplify initial state
16993         Simplifying the initial state enables easier optimization of the NFA.
16994         * lib/dfa.c (enum token): Add new element BEG.
16995         (prtok): Adjust due to adding element BEG.
16996         (dfaparse): Put BEG at a head of tokens.
16997         (state_index): Adjust due to adding element BEG.
16998         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16999         build initial state.
17000         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
17002 2018-09-18  Bruno Haible  <bruno@clisp.org>
17004         file-has-acl: Fix test failure on Cygwin 2.9.
17005         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
17006         * lib/acl-internal.h: Likewise.
17007         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
17008         * lib/acl-internal.c: Update comments regarding Cygwin.
17009         * lib/acl_entries.c: Likewise.
17010         * lib/file-has-acl.c: Likewise.
17011         (file_has_acl): For Cygwin, use a different way to determine whether
17012         the "default" ACL of a directory is nontrivial.
17013         * lib/get-permissions.c: Update comments regarding Cygwin.
17014         * lib/set-permissions.c: Likewise.
17016 2018-09-18  Bruno Haible  <bruno@clisp.org>
17018         stat-time tests: Fix test failure on Cygwin.
17019         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
17021 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17023         doc: OS X 10.11 lacked ns time functions
17024         According to <https://github.com/zeromq/libzmq/issues/2175>,
17025         nanosecond-resolution timestamp functions were introduced
17026         in macOS 10.12, so document the last version (OS X 10.11)
17027         where they were absent.
17029         gettime: nanotime never existed
17030         Problem reported by Bruno Haible in:
17031         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
17032         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
17033         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
17035 2018-09-18  Bruno Haible  <bruno@clisp.org>
17037         doc: Update statement about target platforms.
17038         Reported by Simon Sobisch.
17039         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
17040         restrictions on MSVC versions.
17042 2018-09-18  Bruno Haible  <bruno@clisp.org>
17044         posix_spawn tests: Fix link error on 64-bit Cygwin.
17045         * tests/test-posix_spawn1.c (environ): Remove declaration.
17046         * tests/test-posix_spawn2.c (environ): Likewise.
17047         * tests/test-posix_spawn3.c (environ): Likewise.
17048         * tests/test-posix_spawn4.c (environ): Likewise.
17049         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
17050         * modules/posix_spawnp-tests (Depends-on): Likewise.
17052 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17054         timespec: new function current_timespec
17055         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
17056         and don’t worry about it failing on a CLOCK_REALTIME arg.
17057         POSIX requires it to succeed and I don’t know of any
17058         counterexamples where the fallbacks would work.
17059         (current_timespec): New function, taken from Emacs.  It is more
17060         convenient than gettime, and can help register allocation.
17061         * lib/timespec.h: Include arg-nonnull.h.
17062         (current_timespec): New declaration.
17063         (gettime, settime): Declare args to be nonnull.
17064         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
17066 2018-09-16  Bruno Haible  <bruno@clisp.org>
17068         setlocale: Improve locale handling on macOS 10.12 or newer.
17069         * lib/setlocale.c: Include header files for CoreFoundation. Declare
17070         gl_locale_name_canonicalize.
17071         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
17072         and LC_MESSAGES.
17073         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
17075 2018-09-16  Bruno Haible  <bruno@clisp.org>
17077         Update list of locale names with scripts on macOS.
17078         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
17079         match Mac OS X 10.13 and recent glibc.
17081 2018-09-16  Bruno Haible  <bruno@clisp.org>
17083         gettext: Use newer macOS APIs when possible.
17084         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
17085         CFLocaleCopyPreferredLanguages.
17087 2018-09-16  Bruno Haible  <bruno@clisp.org>
17089         localename: Revisit macOS specific code.
17090         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
17091         Fix comments about Mac OS X versions.
17093 2018-09-15  Bruno Haible  <bruno@clisp.org>
17095         setlocale: Improve support for locales not supported by libc.
17096         Reported by Dapeng Gao <peter@dpgao.cc> at
17097         <https://savannah.gnu.org/bugs/?54479>.
17098         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
17099         (libintl_setlocale): Use a more error-tolerant strategy when the locale
17100         to be set is not supported by libc: Emit warnings instead of failing.
17102 2018-09-15  Bruno Haible  <bruno@clisp.org>
17104         strstr, strcasestr: Add workaround against glibc-2.28 bug.
17105         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
17106         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
17107         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
17108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
17109         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
17110         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
17111         * doc/glibc-functions/strcasestr.texi: Likewise.
17113 2018-09-14  Bruno Haible  <bruno@clisp.org>
17115         doc: Fix bottom of top-level page.
17116         Reported by Akim Demaille <akim.demaille@gmail.com> in
17117         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
17118         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
17119         mode.
17120         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
17121         accordingly.
17123 2018-09-12  Bruno Haible  <bruno@clisp.org>
17125         Add test case from a recent glibc bug.
17126         * tests/test-strstr.c (main): Add test of long needle.
17127         * tests/test-strcasestr.c (main): Likewise.
17128         * tests/test-c-strstr.c (main): Likewise.
17129         * tests/test-c-strcasestr.c (main): Likewise.
17130         * tests/test-memmem.c (main): Likewise.
17132 2018-09-12  Bruno Haible  <bruno@clisp.org>
17134         Apply Eric Blake's improvements from 2011-02-25 to more tests.
17135         * tests/test-c-strstr.c (main): Add the same tests here as well.
17137 2018-09-12  Bruno Haible  <bruno@clisp.org>
17139         Apply Jim Meyering's fix from 2015-01-11 to more tests.
17140         * tests/test-memmem.c (main): Free haystack.
17141         * tests/test-strcasestr.c (main): Likewise.
17142         * tests/test-c-strcasestr.c (main): Likewise.
17144 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17146         xstrtol: fix missing-TYPE_SIGNED typo
17147         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
17149 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
17151         timespec: fix resolution confusion
17152         In normal usage, clock resolution is given in seconds, but the
17153         code was mistakenly using inverse seconds and calling it
17154         “resolution”.  Fix this, partly by renaming two identifiers.
17155         The old names will be kept for a bit, to ease transition.
17156         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
17157         New constants, replacing TIMESPEC_RESOLUTION and
17158         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
17159         All uses changed.
17161 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
17163         mktime: simplify in prep for glibc merge
17164         * lib/mktime.c, lib/timegm.c [_LIBC]:
17165         Include mktime-internal.h (a small file just for glibc)
17166         instead of using a typedef.
17168 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17170         intprops: minor clarification of code
17171         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
17172         Use _GL_INT_CONVERT rather than reinventing it.
17174 2018-09-07  Bruno Haible  <bruno@clisp.org>
17176         Fix a comment.
17177         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
17179 2018-09-07  Bruno Haible  <bruno@clisp.org>
17181         posix_spawn_file_actions_addchdir: Add tests.
17182         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
17183         * tests/test-posix_spawn4.c: New file.
17184         * modules/posix_spawn_file_actions_addchdir-tests: New file.
17186 2018-09-07  Bruno Haible  <bruno@clisp.org>
17188         posix_spawn_file_actions_addchdir: New module.
17189         Suggested by Eric Blake in
17190         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
17191         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
17192         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
17193         union member 'chdir_action'.
17194         * lib/spawn_faction_addchdir.c: New file.
17195         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
17196         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
17197         HAVE_WORKING_POSIX_SPAWN.
17198         * lib/spawn_faction_adddup2.c: Likewise.
17199         * lib/spawn_faction_addopen.c: Likewise.
17200         * m4/posix_spawn_faction_addchdir.m4: New file.
17201         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
17202         'posix_spawn_file_actions_addchdir' is present and whether
17203         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
17204         instead of HAVE_WORKING_POSIX_SPAWN.
17205         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
17206         posix_spawn_file_actions_addchdir is declared.
17207         (gl_SPAWN_H_DEFAULTS): Initialize
17208         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17209         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17210         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17211         * modules/spawn (Makefile.am): Substitute
17212         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17213         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
17214         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
17215         * modules/posix_spawn_file_actions_addchdir: New file.
17216         * modules/posix_spawn_file_actions_addclose (Depends-on,
17217         configure.ac): Test also REPLACE_POSIX_SPAWN.
17218         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
17219         configure.ac): Likewise.
17220         * modules/posix_spawn_file_actions_addopen (Depends-on,
17221         configure.ac): Likewise.
17222         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
17223         signature.
17224         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17225         * doc/posix-functions/posix_spawnp.texi: Likewise.
17227 2018-09-06  Bruno Haible  <bruno@clisp.org>
17229         stddef: Override max_align_t on NetBSD 8.0/x86.
17230         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
17231         the value of __alignof__ (max_align_t).
17232         * doc/posix-headers/stddef.texi: Mention the issue.
17234 2018-09-06  Bruno Haible  <bruno@clisp.org>
17236         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
17237         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
17238         system fcntl.
17239         * doc/posix-functions/fcntl.texi: Document the issue.
17241 2018-09-06  Bruno Haible  <bruno@clisp.org>
17243         count-trailing-zeros tests: Rely on limits-h module.
17244         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
17245         definition.
17246         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
17248 2018-09-06  Bruno Haible  <bruno@clisp.org>
17250         count-leading-zeros tests: Rely on limits-h module.
17251         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
17252         definition.
17253         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17255 2018-09-06  Bruno Haible  <bruno@clisp.org>
17257         count-one-bits tests: Rely on limits-h module.
17258         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17259         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17261 2018-09-06  Bruno Haible  <bruno@clisp.org>
17263         xstrtoll: Rely on limits-h module.
17264         * lib/xstrtol.c: Don't include intprops.h.
17265         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17266         * modules/xstrtol (Depends-on): Remove 'intprops'.
17267         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17269 2018-09-06  Bruno Haible  <bruno@clisp.org>
17271         strtoll, strtoull: Rely on limits-h module.
17272         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17273         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17274         * modules/strtoll (Depends-on): Add limits-h.
17275         * modules/strtoull (Depends-on): Likewise.
17277 2018-09-06  Bruno Haible  <bruno@clisp.org>
17279         intprops tests: Fix compilation error with pre-C99 compiler.
17280         * tests/test-intprops.c (verify_stmt): New macro.
17281         (VERIFY, main): Use it.
17283 2018-09-06  Bruno Haible  <bruno@clisp.org>
17285         limits-h: Provide numerical limits macros.
17286         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17287         IRIX and for GCC.
17288         (WORD_BIT, LONG_BIT): Define.
17289         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17290         <limits.h> does not define LLONG_MAX or WORD_BIT.
17291         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17292         TYPE_MAXIMUM): New macros, from intprops.h.
17293         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17294         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17295         provides.
17297 2018-09-05  Bruno Haible  <bruno@clisp.org>
17299         fcntl: Don't access nonexistent optional argument.
17300         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17301         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17302         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17303         don't consume an argument. For actions that take an 'int' argument,
17304         consume an 'int' argument.
17306 2018-09-05  Eric Blake  <eblake@redhat.com>
17308         doc: mention environ pitfall
17309         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17310         environ is a glibc extension.
17312 2018-09-03  Bruno Haible  <bruno@clisp.org>
17314         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17315         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17316         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17317         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17318         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17319         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17321 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17323         mktime: fix unlikely race+overflow bug
17324         Problem reported by Alexandre Oliva in:
17325         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17326         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17327         to avoid an unlikely race if the compiler delays a load and
17328         if this cascades into a signed integer overflow.
17330 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17332         mktime, timegm: simplify glibc time64_t
17333         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17334         Now long int, not time_t, since long int is the longstanding type
17335         for this in glibc and there is no need to change it even if time_t
17336         becomes 64 bits - even int would do, though this would be a change
17337         to the glibc generated code.  When this change is merged into
17338         glibc, it should simplify the time_t vs time64_t situation.
17340         mktime, timegm: simplify merge to glibc
17341         Move code around to make a merge to glibc easier to audit.
17342         This should not change behavior.
17343         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17344         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17345         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17346         simplify later conditionals; default the others to zero.  In uses
17347         of these conditionals, explicitly spell out how _LIBC affects
17348         things, so it’s easier to review from a glibc viewpoint.
17349         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17350         compartmentalize tzset issues.  Move system-dependent tzsettish
17351         code here from mktime.
17352         (mktime): Move tzsettish code to my_tzset, and move
17353         localtime_offset to within mktime so that it doesn’t
17354         need a separate ifdef.
17356 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17358         intprops: avoid evaluation of some expressions
17359         This makes EXPR_SIGNED (e) easier to use, as it no longer
17360         evaluates the expression E.  Formerly, E was required to be free
17361         of side effects.
17362         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17363         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17364         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17366 2018-08-23  Bruno Haible  <bruno@clisp.org>
17368         getcwd: Add cross-compilation guesses.
17369         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17370         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17371         Based on a patch by Paul Eggert.
17372         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17373         guesses for all GNU systems.
17375 2018-08-19  Bruno Haible  <bruno@clisp.org>
17377         glob-h: Formalize side effects from other modules.
17378         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17379         * m4/glob.m4 (gl_GLOB): Invoke it.
17381         fnmatch-h: Formalize side effects from other modules.
17382         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17383         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17385         limits-h: Formalize side effects from other modules.
17386         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17387         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17389 2018-08-19  Bruno Haible  <bruno@clisp.org>
17391         getpass: Move declaration to <unistd.h>.
17392         * lib/unistd.in.h (getpass): New declaration.
17393         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17394         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17395         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17396         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17397         On glibc systems, don't set REPLACE_GETPASS to 1.
17398         * modules/getpass (Depends-on): Add 'unistd'.
17399         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17400         (Include): Specify <unistd.h> instead of "getpass.h".
17401         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17402         (configure.ac): Sync with the configure.ac section of modules/getpass.
17403         (Include): Specify <unistd.h> instead of "getpass.h".
17404         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17405         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17406         REPLACE_GETPASS.
17407         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17408         REPLACE_GETPASS.
17409         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17410         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17411         and musl.
17412         * NEWS: Mention the change.
17414 2018-08-19  Bruno Haible  <bruno@clisp.org>
17416         glob: Fix over-optimization due to attribute __nonnull__.
17417         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17419 2018-08-19  Bruno Haible  <bruno@clisp.org>
17421         glob: Fix another compilation error when glob.h is not replaced.
17422         Reported by Reuben Thomas <rrt@sc3d.org> in
17423         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17424         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17425         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17427 2018-08-18  Bruno Haible  <bruno@clisp.org>
17429         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17430         Reported by Reuben Thomas <rrt@sc3d.org> in
17431         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17432         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17433         in config.h.
17435 2018-08-18  Bruno Haible  <bruno@clisp.org>
17437         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17438         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17439         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17440         Solution proposed by Eli Zaretskii.
17441         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17442         * lib/gettimeofday.c (GetProcAddress): Likewise.
17443         * lib/link.c (GetProcAddress): Likewise.
17444         * lib/physmem.c (GetProcAddress): Likewise.
17445         * lib/poll.c (GetProcAddress): Likewise.
17446         * lib/select.c (GetProcAddress): Likewise.
17447         * lib/stat-w32.c (GetProcAddress): Likewise.
17449 2018-08-18  Bruno Haible  <bruno@clisp.org>
17451         glob: Fix another compilation error when glob.h is not replaced.
17452         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17453         * lib/globfree.c: Include <libc-config.h>.
17455 2018-08-18  Bruno Haible  <bruno@clisp.org>
17457         glob: Fix compilation error when glob.h is not replaced.
17458         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17459         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17460         * lib/glob_pattern_p.c: Include <libc-config.h>.
17461         * modules/glob (Depends-on): Add libc-config.
17463 2018-08-18  Bruno Haible  <bruno@clisp.org>
17465         scratch_buffer: Add tests.
17466         * tests/test-scratch-buffer.c: New file.
17467         * modules/scratch_buffer-tests: New file.
17469 2018-08-18  Bruno Haible  <bruno@clisp.org>
17471         scratch_buffer: Fix include file.
17472         Reported by Reuben Thomas <rrt@sc3d.org> in
17473         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17474         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17475         double-inclusion guard.
17477 2018-08-18  Bruno Haible  <bruno@clisp.org>
17479         glob-h: Revert Paul Eggert's revert.
17480         * m4/glob_h.m4: Revert to previous state.
17481         * modules/glob-h: Likewise.
17483 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17485         glob-h: always build glob.h
17486         This works around a problem reported by Reuben Thomas in:
17487         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17488         This workaround always builds glob.h, even on platforms that
17489         do not need it; perhaps this could be improved someday.
17490         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17491         is always created now.
17492         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17494 2018-08-13  Bruno Haible  <bruno@clisp.org>
17496         monetary: Simplify m4 code.
17497         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17498         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17500 2018-08-13  Bruno Haible  <bruno@clisp.org>
17502         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17503         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17504         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17505         and by Paul J. Lucas <paul@lucasmail.org> in
17506         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17507         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17509 2018-08-11  Bruno Haible  <bruno@clisp.org>
17511         setlocale: Trivial simplification.
17512         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17514 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17516         verify: port 'assume' to traditional tools
17517         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17518         and other tools that use /*NOTREACHED*/ comments.
17520 2018-08-10  Bruno Haible  <bruno@clisp.org>
17522         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17523         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17524         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17525         'fnmatch-gnu' is in use.
17527 2018-08-07  Bruno Haible  <bruno@clisp.org>
17529         glob-h: Add tests.
17530         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17531         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17532         tests/test-glob-h.c.
17533         * modules/glob-h-tests: New file.
17534         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17535         conditions.
17536         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17537         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17539 2018-08-07  Bruno Haible  <bruno@clisp.org>
17541         glob-h: New module.
17542         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17543         replacements.
17544         * lib/glob.c: Include <config.h>.
17545         * m4/glob_h.m4: New file.
17546         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17547         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17548         REPLACE_GLOB_PATTERN_P as appropriate.
17549         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17550         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17551         * modules/glob-h: New file.
17552         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17553         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17554         lstat, sys_stat. Change conditions.
17555         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17556         REPLACE_GLOB_PATTERN_P. Set module indicator.
17557         (Makefile.am): Remove code that is moved to glob-h.
17558         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17559         * modules/posixcheck (Depends-on): Add glob-h.
17561 2018-08-06  Bruno Haible  <bruno@clisp.org>
17563         Force generation of substitute .h file when C++ support is enabled.
17564         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17565         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17566         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17567         FNMATCH_H to non-empty.
17568         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17569         ICONV_H to non-empty.
17570         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17571         MONETARY_H to non-empty.
17572         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17573         non-empty.
17575 2018-08-06  Bruno Haible  <bruno@clisp.org>
17577         fnmatch-h: Fix test compilation error on mingw (regression from today).
17578         * lib/fnmatch.in.h: Fix conditions.
17580 2018-08-06  Bruno Haible  <bruno@clisp.org>
17582         sys_resource: Relicense under LGPLv2+.
17583         John Malmberg's approval is in
17584         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17585         * modules/sys_resource (License): Change to LGPLv2+.
17587 2018-08-06  Bruno Haible  <bruno@clisp.org>
17589         fnmatch-h: Add tests.
17590         * tests/test-fnmatch-h.c: New file.
17591         * modules/fnmatch-h-tests: New file.
17592         * tests/test-fnmatch-h-c++.cc: New file.
17593         * modules/fnmatch-h-c++-tests: New file.
17595 2018-08-06  Bruno Haible  <bruno@clisp.org>
17597         fnmatch-h: New module.
17598         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17599         replacements.
17600         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17601         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17602         'posixcheck' warning.
17603         * m4/fnmatch_h.m4: New file.
17604         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17605         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17606         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17607         as appropriate.
17608         * modules/fnmatch-h: New file.
17609         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17610         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17611         conditions.
17612         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17613         indicator.
17614         (Makefile.am): Remove code that is moved to fnmatch-h.
17615         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17616         REPLACE_FNMATCH.
17617         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17618         * modules/posixcheck (Depends-on): Add fnmatch-h.
17620 2018-08-06  Bruno Haible  <bruno@clisp.org>
17622         Enable more C++ tests.
17623         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17624         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17625         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17626         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17627         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17629 2018-08-06  Bruno Haible  <bruno@clisp.org>
17631         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17632         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17633         getopt.h.
17634         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17636 2018-08-05  Bruno Haible  <bruno@clisp.org>
17638         utime-h: Generate header file when module 'posixcheck' is in use.
17639         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17640         UTIME_H to non-empty.
17642 2018-08-05  Bruno Haible  <bruno@clisp.org>
17644         monetary: Generate header file when module 'posixcheck' is in use.
17645         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17646         use, set MONETARY_H to non-empty.
17648 2018-08-05  Bruno Haible  <bruno@clisp.org>
17650         iconv-h: Generate header file when module 'posixcheck' is in use.
17651         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17652         set ICONV_H to non-empty.
17654 2018-08-05  Bruno Haible  <bruno@clisp.org>
17656         Optimize the "checking whether ... is declared without a macro" checks.
17657         Suggested by Paul Eggert in
17658         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17659         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17660         Gnulib module 'posixcheck' is not in use.
17662 2018-08-05  Bruno Haible  <bruno@clisp.org>
17664         iconv-h: Enable 'posixcheck' warnings.
17665         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17666         iconv_open.
17667         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17669 2018-08-05  Bruno Haible  <bruno@clisp.org>
17671         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17672         * m4/extern-inline.m4: Add more comments.
17673         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17674         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17675         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17677 2018-08-04  Bruno Haible  <bruno@clisp.org>
17679         New module 'posixcheck'.
17680         * modules/posixcheck: New file.
17681         * m4/posixcheck.m4: New file.
17682         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17683         (Which modules?): Reference it.
17685 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17687         dfa: fix memory leak
17688         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17690 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17692         ieee754-h: new module
17693         It looks like Emacs can use this for some NaN processing.
17694         Emacs uses it only on double NaNs so it should be safe.
17695         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17696         * config/srclist.txt: Mention ieee754.h in a comment.
17697         * doc/glibc-headers/ieee754.texi (ieee754.h):
17698         Gnulib now has a substitute that should work
17699         except for long double and for non-IEEE platforms.
17700         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17701         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17703 2018-07-27  Bruno Haible  <bruno@clisp.org>
17705         iswcntrl: Mention minor problem on macOS.
17706         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17708 2018-07-26  Colin Watson  <cjwatson@debian.org>
17710         bootstrap, gnulib-tool: fix translations rsync
17711         Previously, we created files such as $pobase/Makefile.in.in and then the
17712         subsequent rsync would immediately delete them.
17713         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17714         non-.po files in target directory when rsyncing translations.
17715         * gnulib-tool (func_import): Likewise.
17716         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17718 2018-07-25  Jim Meyering  <meyering@fb.com>
17720         bootstrap: reinstate definition fo gnulib_mk.
17721         That variable is used at least by cppi.
17722         * build-aux/bootstrap (gnulib_mk): Restore definition.
17723         This reverts the deletion from v0.1-1844-gc66dba9ba.
17725 2018-07-23  Bruno Haible  <bruno@clisp.org>
17727         doc: For module names, use texinfo markup @code{} or @samp{}.
17728         * doc/alloca.texi: Mark gnulib module names with @code.
17729         * doc/alloca-opt.texi: Likewise.
17730         * doc/quote.texi: Likewise.
17731         * doc/posix-functions/freopen.texi: Likewise.
17732         * doc/posix-functions/open.texi: Likewise.
17733         * doc/posix-functions/readlink.texi: Likewise.
17734         * doc/posix-functions/readlinkat.texi: Likewise.
17735         * doc/posix-functions/stdout.texi: Likewise.
17736         * doc/posix-functions/stderr.texi: Likewise.
17737         * doc/posix-functions/unlink.texi: Likewise.
17738         * doc/posix-functions/unlinkat.texi: Likewise.
17739         * doc/posix-functions/utime.texi: Likewise.
17740         * doc/posix-functions/utimensat.texi: Likewise.
17741         * doc/posix-functions/utimes.texi: Likewise.
17742         * doc/posix-headers/stdint.texi: Likewise.
17743         * doc/glibc-functions/futimesat.texi: Likewise.
17744         * doc/glibc-functions/lutimes.texi: Likewise.
17745         * doc/glibc-functions/memmem.texi: Likewise.
17747 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17749         doc: Avoid some overfull lines in the TeX output.
17750         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17751         @example.
17752         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17753         newline before the long URL.
17754         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17755         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17756         Add line breaks in code snippets.
17758 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17760         hard-locale: simplify by removing hard-locale.m4
17761         * m4/hard-locale.m4: Remove.
17762         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17763         (configure.ac): Do not call gl_HARD_LOCALE.
17765         gnulib-tool: limit line length for git send-email
17766         * gnulib-tool (func_import): Break actioncmd log line
17767         into multiple lines.
17769 2018-07-16  Bruno Haible  <bruno@clisp.org>
17771         ffs: Ensure declaration on mingw.
17772         Reported by Daniel P. Berrangé <berrange@redhat.com>
17773         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17774         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17775         also declared.
17777 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17779         regex-tests: add dependency
17780         * modules/regex-tests (Depends-on): Add gettext-h.
17781         This is needed given the recent changes to regex,
17782         which no longer depends on gettext-h.
17784 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17786         regex: now in sync with glibc
17787         * config/srclist.txt: Gnulib and glibc regex code
17788         are synchronized again.
17790 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17792         renameatu: rename from renameat2
17793         It's looking like Glibc will add a renameat2 function
17794         that is incompatible with Gnulib renameat2; see:
17795         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17796         To help avoid future confusion, rename renameat2 to something else.
17797         Use the name 'renameatu', as the Gnulib function is close to the
17798         Glibc function.  Perhaps someday there will also be a renameat2
17799         Gnulib module, which mimicks the future glibc renameat2, but that
17800         can wait as nobody seems to need such a module now.
17801         * NEWS: Mention this.
17802         * lib/renameatu.c: Rename from lib/renameat2.c.
17803         * lib/renameatu.h: Rename from lib/renameat2.h.
17804         * modules/renameatu: Rename from modules/renameat2.
17805         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17806         All uses of "renameat2" in identifiers or file name
17807         changed to "renameatu", except for two instances in
17808         lib/renameatu.c that deal with the Linux kernel's
17809         renameat2 syscall.
17811 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17813         gnulib-tool: minor tweaks for --gnu-make
17814         * gnulib-tool: Do not allow --gnu-make in test modes,
17815         since they all require automake.
17816         (func_emit_lib_Makefile_am): Don’t emit automake comment
17817         if --gnu-make.
17819         regex: work around conditional-dependencies glitch
17820         * modules/regex (Depends-on): Add langinfo.
17821         Without this change, I had problems building an experimental
17822         version of GNU Emacs.  The symptom of the bug was a message
17823         ‘./configure: line 12726: test: =: unary operator expected’.
17824         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17825         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17826         was unset.  Although gl_FUNC_NL_LANGINFO has
17827         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17828         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17829         --conditional-dependencies sometimes arranges for the
17830         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17831         code.  Since the regex code includes <langinfo.h> it should be
17832         depending on the langinfo module anyway, and this happens to work
17833         around the bug, so install that as a workaround for now.  To
17834         reproduce the original problem, run the following shell script on
17835         the version of Gnulib just before this patch was installed.
17836                 rm -fr foo
17837                 mkdir foo
17838                 cat >foo/configure.ac <<'EOF'
17839                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17840                 gl_EARLY
17841                 gl_INIT
17842                 AC_OUTPUT
17843                 EOF
17844                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17845                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17846                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17847                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17848                 cd foo
17849                 aclocal -I m4
17850                 autoconf
17851                 ./configure --with-included-regex
17853 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17855         wchar: fix bug when checking for ‘inline’
17856         I discovered this when looking into using the regex module
17857         with Emacs.
17858         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17859         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17860         conftest1.c and conftest2.c but these files were not created.
17861         As far as I can see, this check never worked and nobody reported
17862         it until now, which is a bit worrisome.
17864 2018-06-30  Jim Meyering  <meyering@fb.com>
17866         bootstrap: s/--option val/--option=val/
17867         * build-aux/bootstrap (gnulib_tool_options): Change the
17868         spelling of "--option val" pairs to "--option=val", for
17869         aesthetics, and also so that this file no longer triggers
17870         a common help2man syntax-check warning when copied into
17871         projects like grep, gzip, etc.
17873 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17875         manywarnings: omit -Wswitch-default
17876         This should make things more consistent, as we already ignore
17877         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17878         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17879         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17880         Add -Wswitch-default.
17881         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17882         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17883         Remove -Wswitch-default.
17885         regex: revert most trimming
17886         Problems reported by Bruno Haible in:
17887         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17888         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17889         and wctype back in.  lock because regex users shouldn’t
17890         need to know that regex needs locking, and the rest because
17891         gnulib-tool should ordinarily ignore them anyway.
17893 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17895         regex: trim module dependencies
17896         * modules/regex (Depends-on): Remove gettext-h and lock,
17897         since the regex code should work OK without these modules,
17898         and Emacs uses it that way.  Also remove memcmp, memmove,
17899         and wctype, as these modules are obsolete and should not be
17900         needed any more.
17902 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17904         regex: glibc does not use intprops.h
17905         Maybe we can talk glibc into using intprops.h someday, but
17906         now doesn’t seem to be a good time.
17907         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17908         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17909         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17911 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17913         regex: port to recently proposed glibc regex merge
17914         This patch is inspired by Adhemerval Zanella's recent proposal
17915         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17916         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17917         the glibc side, without keeping Gnulib portable.
17918         * lib/regex.h: Fix a problem with glibc installed-header checking,
17919         as follows:
17920         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17921         (_Restrict_arr_): Prefer __restrict_arr if defined,
17922         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17923         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17924         (build_wcs_upper_buffer, build_upper_buffer)
17925         (re_string_translate_buffer, re_string_context_at):
17926         Move decls here from lib/regex_internal.h, for glibc internal tests.
17927         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17928         glibc BZ #18496.
17929         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17930         -Wunused-value.
17931         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17932         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17933         (bitset_mask): Now static inline, and without any __attribute__
17934         ((unused)) decoration, for glibc internal tests.
17936 2018-06-25  Bruno Haible  <bruno@clisp.org>
17938         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17939         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17940         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17941         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17942         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17943         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17944         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17945         / -lthread / -lpth does not get optimized away by a preceding
17946         --as-needed option.
17948 2018-06-25  Bruno Haible  <bruno@clisp.org>
17950         Continue to use spaces for indentation, not tabs.
17951         * MODULES.html.sh: Untabify.
17952         * doc/regex.texi: Likewise.
17953         * lib/acl-internal.c: Likewise.
17954         * lib/dfa.c: Likewise.
17955         * lib/exclude.c: Likewise.
17956         * lib/exclude.h: Likewise.
17957         * lib/get-permissions.c: Likewise.
17958         * lib/gettimeofday.c: Likewise.
17959         * lib/parse-datetime.y: Likewise.
17960         * lib/pselect.c: Likewise.
17961         * lib/set-permissions.c: Likewise.
17962         * lib/time.in.h: Likewise.
17963         * m4/canonicalize.m4: Likewise.
17964         * m4/gc.m4: Likewise.
17965         * m4/gnulib-common.m4: Likewise.
17966         * m4/pthread_sigmask.m4: Likewise.
17967         * m4/vararrays.m4: Likewise.
17968         * tests/test-digest.h: Likewise.
17969         * tests/test-fcntl-h.c: Likewise.
17970         * tests/test-timespec.c: Likewise.
17971         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17973 2018-06-25  Bruno Haible  <bruno@clisp.org>
17975         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17976         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17977         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17978         -Wjump-misses-init.
17980 2018-06-25  Jim Meyering  <meyering@fb.com>
17982         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17983         * lib/acl-internal.h (free_permission_context): Remove that
17984         attribute directive.  Otherwise, it would provoke this from GCC 9:
17985         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17986           returning 'void' [-Werror=attributes]
17988 2018-06-24  Jim Meyering  <meyering@fb.com>
17990         parse-datetime: accommodate gcc-4.8.5
17991         Bruno Haible reported the build failure in
17992         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17993         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17994         on declaration of new local.
17996 2018-06-24  Bruno Haible  <bruno@clisp.org>
17998         af_alg: Fail in continuable manner on Linux/powerpc64le.
17999         Reported by Assaf Gordon <assafgordon@gmail.com>
18000         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
18001         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
18002         byte send() as the first round.
18004 2018-06-24  Bruno Haible  <bruno@clisp.org>
18006         af_alg: Fix state of stream after sendfile() succeeds.
18007         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
18008         the stream is correctly positioned afterwards.
18009         * modules/crypto/af_alg (Depends-on): Add fflush.
18010         * tests/test-digest.h (test_digest_on_files): Verify that after the
18011         operation the stream is positioned at end of file.
18013 2018-06-24  Jim Meyering  <meyering@fb.com>
18015         canon-host: take GCC9's advice rather than ignoring warning
18016         Pádraig Brady suggested not to ignore this GCC9 advice.
18017         * lib/canon-host.c: Undo preceding change.
18018         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
18020         parse-datetime.y: avoid spurious GCC 9 warning
18021         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
18022         a function local prior to the first "goto fail".  The prior use would
18023         evoke this:
18024         parse-datetime.y: In function 'parse_datetime2':
18025         parse-datetime.y:1791:19: error: jump skips variable initialization \
18026           [-Werror=jump-misses-init]
18027         parse-datetime.y:2385:2: note: label 'fail' defined here
18028         parse-datetime.y:188:43: note: '({anonymous})' declared here
18029         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
18031         canon-host.c: avoid spurious GCC 9 warning
18032         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
18034         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
18035         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
18036         * m4/manywarnings.m4: Remove them.
18037         Otherwise, building coreutils, I would see this:
18038         cc1: error: deprecated command line option '-Wchkp' [-Werror]
18039         cc1: error: -Wabi won't warn about anything [-Werror=abi]
18040         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
18041           which is also used by default
18042         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
18044 2018-06-24  Bruno Haible  <bruno@clisp.org>
18046         af_alg tests: Add another test.
18047         * tests/test-digest.h (test_digest_on_files): Also check a large file
18048         with a skipped header.
18049         * tests/test-md5.c: Include macros.h.
18050         * tests/test-sha1.c: Likewise.
18051         * tests/test-sha256.c: Likewise.
18052         * tests/test-sha512.c: Likewise.
18053         * modules/crypto/md5-tests (Files): Add tests/macros.h.
18054         * modules/crypto/sha1-tests (Files): Likewise.
18055         * modules/crypto/sha256-tests (Files): Likewise.
18056         * modules/crypto/sha512-tests (Files): Likewise.
18058 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18060         maint: clarify comments about sticky EOF
18061         * lib/af_alg.c: Be more direct that we can't
18062         assume stickiness of EOF for portability reasons.
18063         * lib/md5.c: Clarify that this isn't just a glibc issue.
18064         * lib/sha1.c: Likewise.
18065         * lib/sha256.c: Likewise.
18066         * lib/sha512.c: Likewise.
18068 2018-06-24  Bruno Haible  <bruno@clisp.org>
18070         af_alg: Comment and style improvements.
18071         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
18072         (afalg_buffer, afalg_stream): Improve comments.
18074 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18076         af_alg: disable kernel hash functions by default
18077         All the kernel routines were seen to be significantly slower
18078         with these relatively recent components on an i3-2310M system:
18079           kernel-4.10.6-200.fc25.x86_64
18080           openssl-1.0.2m-1.fc25.x86_64
18081         sha1 was nearly twice as slow in the kernel for example.
18082         Further considerations why this should not be the default, at:
18083         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
18085         * m4/af_alg.m4: Require --with-linux-crypto to enable.
18086         * m4/gl-openssl.m4: Tweak accordingly.
18088 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18090         af_alg: avoid hangs when reading from streams
18091         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
18092         and thus avoid doing a fread() when feof() is set.
18093         * lib/md5.c: Ensure feof() is called before fread().
18094         * lib/sha1.c: Likewise.
18095         * lib/sha256.c: Likewise.
18096         * lib/sha512.c: Likewise.
18098 2018-06-24  Pádraig Brady  <P@draigBrady.com>
18100         af_alg: fix error handling when hash not returned
18101         * lib/af_alg.c (afalg_stream): Handle the case where we've
18102         successfully written data to the kernel in the read/write loop,
18103         but the kernel doesn't respond with the hash.
18105 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18107         libc-config: merge from glibc
18108         * lib/cdefs.h (__inline, __restrict):
18109         Copy from current glibc.  This fixes glibc bug 17721,
18110         which Gnulib had already fixed in a different way.
18111         (__nonnull): Lessen the distance from glibc by using the
18112         glibc definition inside an ‘#ifndef __nonnull’.
18113         (__attribute_nonstring__): New macro, copied from
18114         current glibc.
18115         * lib/libc-config.h (__attribute_nonstring__): New undef.
18116         (__restrict): Remove; workaround no longer needed.
18117         Keep the __inline workaround, though, as it uses HAVE___INLINE to
18118         support more compilers than the glibc __inline can.
18120 2018-06-24  Bruno Haible  <bruno@clisp.org>
18122         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
18123         * lib/mbrtowc.c (enc_t): New enum type.
18124         (locale_enc, locale_enc_cached): New functions.
18125         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
18126         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
18127         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
18128         instead.
18129         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
18130         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
18131         * modules/wcwidth (configure.ac): Invoke it.
18133 2018-06-24  Bruno Haible  <bruno@clisp.org>
18135         wchar-single: Fix test failure in wcwidth tests.
18136         * tests/test-wcwidth.c (main): If the wchar-single module is present,
18137         skip the tests in the C locale.
18139 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18141         crypto: mention --without-linux-crypto in --with-openssl --help
18142         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
18143         routines take precedence in --with-openssl help output.
18145 2018-06-23  Pádraig Brady  <P@draigBrady.com>
18147         wchar-single: a new module to enable optimizations in wchar replacements
18148         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
18149         GNULIB_WCHAR_SINGLE is enabled.
18150         * lib/wcwidth.c (wcwidth): Likewise.
18152 2018-06-23  Bruno Haible  <bruno@clisp.org>
18154         libc-config: Fix conflict with FreeBSD include files.
18155         * lib/cdefs.h (__nonnull): Remove definition.
18156         * lib/libc-config.h (__nonnull): Remove undefinition.
18158 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18160         random_r: do not crash if state is unaligned
18161         Problem reported by Bruce Korb in:
18162         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
18163         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
18164         with 'cc -O2 -xmemalign=8s'.
18165         * lib/random_r.c: Include string.h, for memcpy.
18166         (get_int32, set_int32): New functions.
18167         (__srandom_r, __initstate_r, __setstate_r, __random_r):
18168         Use them to avoid assumption that state pointer is aligned.
18169         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
18170         * tests/test-random_r.c (test_failed): New function.
18171         (main): Use it, to test for alignment bugs.
18173         random_r: omit unnecessary include
18174         * lib/random_r.c: Do not include limits.h.
18176         random, random_r: merge from glibc
18177         * lib/random.c, lib/random_r.c:
18178         Include libc-config.h if !_LIBC, not config.h unilaterally.
18179         * lib/random.c:
18180         Do not include stdint.h or time.h; not needed.
18181         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
18182         (unsafe_state): Rename from generator.  All uses changed.
18183         Use C99-style initializers.
18184         (__random, __srandom, __initstate, __setstate): Rename from
18185         non-underscored version, but define it to non-underscored version
18186         on Gnulib.  Add a lock.
18187         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
18188         Likewise.
18189         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
18190         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
18191         (__srandom_r): Use int32_t instead of long int where int32_t will do.
18192         (__random_r): Use uint32 to fix glibc bug 17343.
18193         * modules/random, modules/random_r (Depends-on): Add libc-config.
18194         Depend on stdint only if $HAVE_RANDOM = 0.
18196 2018-06-19  Jim Meyering  <meyering@fb.com>
18198         README-release: also run any check-very-expensive tests
18199         * top/README-release: Adjust instructions so they run the
18200         check-very-expensive tests when there is such a target.
18202 2018-06-18  Bruno Haible  <bruno@clisp.org>
18204         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
18205         * m4/pthread_rwlock_rdlock.m4: Add comment.
18206         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
18207         are reader-preferring in glibc.
18208         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
18209         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
18211 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18213         crypto: use byteswap
18214         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
18215         * lib/sm3.c: Include <byteswap.h>.
18216         (SWAP): Use its macros rather than reinventing the wheel.
18217         * modules/crypto/md4, modules/crypto/md5-buffer:
18218         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
18219         * modules/crypto/sha512-buffer, modules/crypto/sm3:
18220         (Depends-on): Add byteswap.
18222 2018-06-17  Pádraig Brady  <P@draigBrady.com>
18224         gendocs.sh: fix support for legacy --texi2html
18225         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
18226         to the default makeinfo invocation.
18227         Reported by Bruce Korb
18229 2018-06-17  Bruno Haible  <bruno@clisp.org>
18231         gettext po infrastructure: Update from current gettext git.
18232         Reported by Akim Demaille <akim@lrde.epita.fr>.
18233         * build-aux/po/Makefile.in.in: Update from current gettext git.
18234         * build-aux/po/remove-potcdate.sin: Likewise.
18235         * config/srclist.txt: Temporarily disable sync for these files.
18237 2018-06-17  Bruno Haible  <bruno@clisp.org>
18239         getloadavg: Return 0 on Windows without Cygwin.
18240         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
18242 2018-06-17  Paul Smith  <psmith@gnu.org>
18244         getloadavg: Allow building on Windows without Cygwin
18245         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
18246         * m4/getloadavg.m4: Check for unistd.h.
18248 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
18250         Port crypto/af_alg to GCC 4.8.4
18251         Problem reported by Peter Simons in:
18252         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
18253         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18255 2018-05-27  Colin Watson  <cjwatson@debian.org>
18257         bootstrap: document source fetching in --help
18258         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18260 2018-04-09  Colin Watson  <cjwatson@debian.org>
18262         bootstrap: allow non-submodule control of gnulib
18263         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18264         bootstrap.conf when fetching gnulib using "git clone" or via
18265         GNULIB_SRCDIR.
18267 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18269         crypto: omit stream ops Emacs doesn’t need
18270         * lib/md5.c (md5_stream):
18271         * lib/sha1.c (sha1_stream):
18272         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18273         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18274         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18275         defined.  Emacs needs this, as it does not use the stream
18276         operations and doesn’t need all the af_alg stuff we’ve recently
18277         added.  Perhaps a similar change is needed to the other crypto
18278         modules, but this patch changes only those needed for Emacs.
18279         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18280         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18281         New modules, used by Emacs.
18282         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18283         * modules/crypto/sha512: Rewrite to depend on the new modules.
18285 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18287         fts: avoid a memory leak edge case
18288         * lib/fts.c (fts_open): Set an appropriate fts_level
18289         so that an immediate fts_close() will free the allocation.
18290         * tests/test-fts.c (fts_dealloc): Add a test case which
18291         will trigger under valgrind or address sanitizer.
18292         Fixes https://bugs.gnu.org/31439
18294 2018-05-20  Bruno Haible  <bruno@clisp.org>
18296         wcwidth tests: Fix link error.
18297         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18298         $(LIBUNISTRING).
18300 2018-05-20  Bruno Haible  <bruno@clisp.org>
18302         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18303         * modules/regex (Files): Add m4/glibc21.m4.
18305 2018-05-20  Bruno Haible  <bruno@clisp.org>
18307         localcharset: Optimize.
18308         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18309         platforms where these don't matter. This reduces the table size,
18310         which in turn reduces the lookup time.
18312 2018-05-19  Bruno Haible  <bruno@clisp.org>
18314         localcharset: Map the locale encodings found in newer OSes.
18315         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18316         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18317         IRIX 6.5, Minix 3.3.
18318         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18320 2018-05-19  Bruno Haible  <bruno@clisp.org>
18322         localcharset: Move mapping tables into the code. Use a binary search.
18323         * lib/localcharset.h: Document the GNU canonical names for character
18324         encodings here.
18325         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18326         relocatable.h, configmake.h.
18327         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18328         macros.
18329         (charset_aliases): Remove variable.
18330         (get_charset_aliases): Remove function.
18331         (struct table_entry): New type.
18332         (alias_table, locale_table): New constants.
18333         (locale_charset): Use the alias_table or locale_table to get the
18334         canonicalized encoding name.
18335         * lib/config.charset: Remove file.
18336         * lib/ref-add.sin: Remove file.
18337         * lib/ref-del.sin: Remove file.
18338         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18339         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18340         * modules/localcharset (Notice): Remove.
18341         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18342         glibc21.m4.
18343         (Depends-on): Remove configmake.
18344         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18345         (Makefile.am): Simplify.
18346         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18348 2018-05-19  Bruno Haible  <bruno@clisp.org>
18350         localcharset: Add a manual test.
18351         * tests/test-localcharset.c: New file.
18352         * modules/localcharset-tests: New file.
18354 2018-05-19  Bruno Haible  <bruno@clisp.org>
18356         localcharset: Remove support for obsolete platforms.
18357         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18358         Mac OS X 10.2. Comment out dubious entry for Solaris.
18360 2018-05-19  Jim Meyering  <meyering@fb.com>
18362         gnupload: adjust comment
18363         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18364         more likely we'll remove the just-added code in a year or two.
18366 2018-05-19  Bruno Haible  <bruno@clisp.org>
18368         gnupload: Fix "gpg-agent is not available in this session" error.
18369         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18371 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18373         crypto/af_alg: fix --help
18374         * m4/af_alg.m4: Avoid spurious newline in --help output.
18376 2018-05-13  Bruno Haible  <bruno@clisp.org>
18378         nl_langinfo: Fix compilation error on Android.
18379         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18380         INT_CURR_SYMBOL, etc. only if these items are defined.
18382 2018-05-13  Bruno Haible  <bruno@clisp.org>
18384         truncate: Fix compilation error on Android.
18385         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18386         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18387         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18388         HAVE_TRUNCATE.
18389         * modules/truncate: Likewise.
18390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18391         not HAVE_TRUNCATE.
18392         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18393         HAVE_TRUNCATE.
18394         * doc/posix-functions/truncate.texi: Mention the issue.
18396 2018-05-13  Bruno Haible  <bruno@clisp.org>
18398         pthread: Fix compilation error on Android.
18399         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18400         recursive inclusion of this file.
18402 2018-05-13  Bruno Haible  <bruno@clisp.org>
18404         posix_spawn: Fix compilation error on Android.
18405         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18406         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18407         (posix_spawn_file_actions_t): Consider also the case
18408         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18410 2018-05-13  Bruno Haible  <bruno@clisp.org>
18412         tsearch: Move from K&R C to ANSI C.
18413         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18415 2018-05-13  Bruno Haible  <bruno@clisp.org>
18417         tsearch: Fix compilation error on Android.
18418         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18419         is 0.
18420         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18421         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18422         GNULIB_defined_tsearch is true.
18423         (twalk): Define only if GNULIB_defined_twalk is true.
18424         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18425         is 0.
18426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18427         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18428         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18430 2018-05-13  Bruno Haible  <bruno@clisp.org>
18432         imaxdiv: Fix compilation error on Android.
18433         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18434         is not defined.
18435         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18436         HAVE_DECL_IMAXDIV, is 0.
18437         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18438         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18440 2018-05-13  Bruno Haible  <bruno@clisp.org>
18442         Support selective inclusion mechanism of recent mingw.org header files.
18443         Reported by Eli Zaretskii <eliz@gnu.org>.
18444         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18445         __need_ssize_t, or __need_time_t is defined, just include the system's
18446         <sys/types.h>.
18447         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18448         include the system's <locale.h>.
18450 2018-05-13  Bruno Haible  <bruno@clisp.org>
18452         Avoid compilation error due to 'mmap' on Android.
18453         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18454         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18455         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18456         Undefine on Android.
18458 2018-05-13  Bruno Haible  <bruno@clisp.org>
18460         Add cross-compilation guesses for Linux systems without glibc.
18461         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18463         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18464         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18465         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18466         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18467         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18468         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18469         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18470         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18471         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18472         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18473         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18474         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18475         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18477         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18478         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18480 2018-05-13  Bruno Haible  <bruno@clisp.org>
18482         getpagesize: Fix compilation error on Android.
18483         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18484         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18485         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18486         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18487         HAVE_GETPAGESIZE accordingly.
18488         * modules/getcwd (Files): Add m4/getpagesize.m4.
18490 2018-05-13  Bruno Haible  <bruno@clisp.org>
18492         tcgetsid: Fix compilation error on Android.
18493         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18494         AC_CHECK_FUNC.
18496 2018-05-13  Bruno Haible  <bruno@clisp.org>
18498         getpass: Fix configure test for Android.
18499         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18500         AC_CHECK_FUNC.
18502 2018-05-13  Bruno Haible  <bruno@clisp.org>
18504         ffs: Fix compilation error on Android.
18505         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18507 2018-05-13  Bruno Haible  <bruno@clisp.org>
18509         mkfifo: Fix compilation error on Android.
18510         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18511         AC_CHECK_FUNC.
18513 2018-05-13  Bruno Haible  <bruno@clisp.org>
18515         c-strtod: Fix configure test for Android.
18516         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18517         AC_CHECK_FUNC.
18519 2018-05-13  Bruno Haible  <bruno@clisp.org>
18521         random: Fix compilation error on Android.
18522         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18523         AC_CHECK_FUNC.
18525 2018-05-13  Bruno Haible  <bruno@clisp.org>
18527         grantpt: Fix compilation error on Android.
18528         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18529         AC_CHECK_FUNC.
18531 2018-05-13  Bruno Haible  <bruno@clisp.org>
18533         stdioext: Fix compilation errors with newer Android headers.
18534         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18535         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18536         fallbacks for Android.
18537         * lib/fpending.c: Update comments.
18538         * lib/fpurge.c: Likewise.
18539         * lib/freadable.h: Likewise.
18540         * lib/freadable.c: Likewise.
18541         * lib/freadahead.c: Likewise.
18542         * lib/freading.h: Likewise.
18543         * lib/freadptr.c: Likewise.
18544         * lib/fseterr.c: Likewise.
18545         * lib/fwritable.h: Likewise.
18546         * lib/fwritable.c: Likewise.
18547         * lib/fwriting.h: Likewise.
18548         * lib/fwriting.c: Likewise.
18550 2018-05-13  Bruno Haible  <bruno@clisp.org>
18552         doc: Add info about Android versions 2.0 to 8.1.
18553         * doc/**/*.texi: Add info about functions in all released versions of
18554         Bionic.
18556 2018-05-12  Bruno Haible  <bruno@clisp.org>
18558         fseeko: On mingw, don't use the hidden function _fseeki64.
18559         Reported by Eli Zaretskii <eliz@gnu.org>.
18560         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18561         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18563 2018-05-12  Bruno Haible  <bruno@clisp.org>
18565         glob: Choose 'dirent_type' in a way that works better on mingw.
18566         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18567         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18569 2018-05-12  Bruno Haible  <bruno@clisp.org>
18571         execute, spawn-pipe: Avoid warning about redefining 'close'.
18572         Reported by Eli Zaretskii <eliz@gnu.org>.
18573         * lib/execute.c: Undefine 'close' before redefining it.
18574         * lib/spawn-pipe.c: Likewise.
18576 2018-05-12  Bruno Haible  <bruno@clisp.org>
18578         nanosleep: Avoid test failure on mingw when it has nanosleep.
18579         Reported by Eli Zaretskii <eliz@gnu.org>.
18580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18581         If it does not exist, use a simpler test program that does not call
18582         alarm().
18584 2018-05-10  Bruno Haible  <bruno@clisp.org>
18586         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18587         Reported by Devin Hussey <husseydevin@gmail.com>.
18588         Based on a patch by Paul Eggert.
18589         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18590         as witness of libpthread.
18591         * lib/glthread/cond.h (pthread_in_use): Likewise.
18592         * lib/glthread/thread.h (pthread_in_use): Likewise.
18593         * lib/glthread/tls.h (pthread_in_use): Likewise.
18595 2018-05-10  Bruno Haible  <bruno@clisp.org>
18597         cond tests: Fix compilation error on Solaris.
18598         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18599         macro.
18601 2018-05-10  Bruno Haible  <bruno@clisp.org>
18603         doc: Add partial info about Android 4.3.
18604         * doc/*-functions/*.texi: Add info about functions that were added
18605         to Bionic between Android 4.3 and Android 9.0.
18607 2018-05-10  Bruno Haible  <bruno@clisp.org>
18609         doc: Add info about Android 9.0.
18610         * doc/**/*.texi: Add info about functions and headers in Bionic from
18611         Android 9.0.
18613 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18615         af_alg: fix my typo in afalg_buffer
18616         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18617         (afalg_stream): Simplify and avoid the need for a runtime test
18618         at the end.
18620         af_alg: recover better from crypto failures
18621         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18622         input stream is seekable, by repositioning the stream back to
18623         where it was, possibly by just calling sendfile with an offset
18624         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18625         cases, which lets our callers try again with user-mode code.
18626         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18627         instead of on fflush and lseek.
18629         af_alg: distiguish I/O errors better
18630         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18631         not -EIO, if it’s OK for the caller to try again with user-mode code.
18632         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18633         some other error number) if fflush fails, as the caller should not
18634         try again that case.
18636         af_alg: avoid gotos
18637         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18638         gotos, as they were a source of unreliability and made the code a
18639         bit harder to follow.
18641         af_alg: don’t leak file descriptors into children
18642         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18643         This code should be compiled only on recent GNU/Linux platforms
18644         so we shouldn’t have to also depend on the accept4 module.
18646         af_alg: coalesce socket creation
18647         * lib/af_alg.c (alg_socket): New function.
18648         (afalg_buffer, afalg_stream): Use it.  This avoids some
18649         code duplication and gotos.
18651         af_alg: fix file descriptor leak
18652         * lib/af_alg.c (afalg_stream): Close leak.
18654         af_alg: Pacify --enable-gcc-warnings on GCC 8
18655         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18656         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18658 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18660         af_alg: Pacify --enable-gcc-warnings
18661         Problem reported by Assaf Gordon in:
18662         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18663         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18664         gcc -Wjump-misses-init.
18665         * lib/sha512.c (shaxxx_stream): Now static.
18667 2018-05-06  Bruno Haible  <bruno@clisp.org>
18669         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18670         * lib/af_alg.h (afalg_buffer): New declaration.
18671         * lib/af_alg.c (afalg_buffer): New function.
18673 2018-05-06  Bruno Haible  <bruno@clisp.org>
18675         af_alg: Avoid warnings.
18676         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18677         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18679 2018-05-06  Bruno Haible  <bruno@clisp.org>
18681         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18682         * tests/bench-digest.h: New file.
18683         * tests/bench-md5.c: New file.
18684         * tests/bench-sha1.c: New file.
18685         * tests/bench-sha224.c: New file.
18686         * tests/bench-sha256.c: New file.
18687         * tests/bench-sha384.c: New file.
18688         * tests/bench-sha512.c: New file.
18689         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18690         tests/bench-digest.h.
18691         (Depends-on): Add getrusage, gettimeofday.
18692         (Makefile.am): Add variables to build bench-md5.
18693         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18694         tests/bench-digest.h.
18695         (Depends-on): Add getrusage, gettimeofday.
18696         (Makefile.am): Add variables to build bench-sha1.
18697         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18698         tests/bench-sha256.c, tests/bench-digest.h.
18699         (Depends-on): Add getrusage, gettimeofday.
18700         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18701         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18702         tests/bench-sha512.c, tests/bench-digest.h.
18703         (Depends-on): Add getrusage, gettimeofday.
18704         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18706 2018-05-06  Bruno Haible  <bruno@clisp.org>
18708         af_alg: Fix a resource leak.
18709         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18710         New local variable 'result'.
18712 2018-05-06  Bruno Haible  <bruno@clisp.org>
18714         af_alg: Fix bug with streams that are not at position 0.
18715         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18716         assume that the stream is positioned at position 0.
18717         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18718         of the stream.
18719         * lib/md5.h (md5_stream): Likewise.
18720         * lib/sha1.h (sha1_stream): Likewise.
18721         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18722         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18723         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18725         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18726         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18727         stream that is not positioned at the beginning.
18729 2018-05-06  Bruno Haible  <bruno@clisp.org>
18731         af_alg: Add configure option to enable/disable use of Linux crypto API.
18732         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18733         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18734         USE_LINUX_CRYPTO_API.
18735         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18736         * lib/af_alg.c: Likewise.
18738 2018-05-06  Bruno Haible  <bruno@clisp.org>
18740         Followup to 'af_alg: New module.'.
18741         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18742         * modules/crypto/sha1 (Depends-on): Likewise.
18743         * modules/crypto/sha256 (Depends-on): Likewise.
18744         * modules/crypto/sha512 (Depends-on): Likewise.
18746 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18748         crypto/{md5,sha1,sha256,sha512}: simplify
18749         * lib/md5.c (md5_stream):
18750         * lib/sha1.c (sha1_stream):
18751         * lib/sha256.c (shaxxx_stream):
18752         Simplify, partly by assuming C99.
18753         * lib/sha256.c (shaxxx_stream):
18754         New function, which implements both sha256 and sha224.
18755         Simplify, partly by assuming C99.
18756         (sha256_stream, sha224_stream):
18757         Use it to avoid code duplication, removing a FIXME.
18758         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18759         Likewise.
18761         af_alg: Improve comments.
18762         * lib/af_alg.h: Use imperatives and tighten up wording.
18764 2018-05-05  Bruno Haible  <bruno@clisp.org>
18766         af_alg: Improve comments.
18767         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18769 2018-05-05  Bruno Haible  <bruno@clisp.org>
18771         af_alg: New module.
18772         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18773         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18774         * lib/md5.c: Include "af_alg.h" unconditionally.
18775         (md5_stream): Invoke afalg_stream unconditionally.
18776         * lib/sha1.c: Include "af_alg.h" unconditionally.
18777         (sha1_stream): Invoke afalg_stream unconditionally.
18778         * lib/sha256.c: Include "af_alg.h" unconditionally.
18779         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18780         * lib/sha512.c: Include "af_alg.h" unconditionally.
18781         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18782         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18783         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18784         * modules/crypto/af_alg: New file.
18785         * modules/crypto/md5 (Files): Remove files that are now in the
18786         'crypto/af_alg' module.
18787         (Depends-on): Add crypto/af_alg.
18788         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18789         (Makefile.am): Don't mention af_alg.c here.
18790         * modules/crypto/sha1 (Files): Remove files that are now in the
18791         'crypto/af_alg' module.
18792         (Depends-on): Add crypto/af_alg.
18793         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18794         (Makefile.am): Don't mention af_alg.c here.
18795         * modules/crypto/sha256 (Files): Remove files that are now in the
18796         'crypto/af_alg' module.
18797         (Depends-on): Add crypto/af_alg.
18798         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18799         (Makefile.am): Don't mention af_alg.c here.
18800         * modules/crypto/sha512 (Files): Remove files that are now in the
18801         'crypto/af_alg' module.
18802         (Depends-on): Add crypto/af_alg.
18803         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18804         (Makefile.am): Don't mention af_alg.c here.
18806 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18808         crypto tests: pacify GCC
18809         * tests/test-digest.h (test_digest_on_files):
18810         Don’t assume digest size fits in int (!).
18812         af_alg: minor style improvements
18813         * lib/af_alg.c (afalg_stream): Prefer C99 style
18814         decl-after-statement, since we’re already assuming C99.  Clarify
18815         by strengthening the bind test and omit unnecessary assignment.
18817 2018-05-05  Bruno Haible  <bruno@clisp.org>
18819         af_alg: Fix bug on empty files.
18820         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18821         stream is empty.
18823 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18825         sys-limits.h: new file for crypto and safe I/O
18826         * lib/af_alg.c: Include sys-limits.h.
18827         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18828         (afalg_stream): Also reject negative sizes for sendfile; they
18829         should not happen and the code is a bit cleaner and faster this way.
18830         * lib/safe-read.c: Include sys-limits.h.
18831         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18832         * lib/sys-limits.h: New file, with values and commentary derived
18833         from the old safe-read.c and from GNU Emacs sysdep.c.
18834         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18835         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18836         Add lib/sys-limits.h to Files section.
18838 2018-05-05  Bruno Haible  <bruno@clisp.org>
18840         af_alg: Improve function signature.
18841         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18842         * lib/af_alg.c (afalg_stream): Likewise.
18843         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18845 2018-05-05  Bruno Haible  <bruno@clisp.org>
18847         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18848         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18849         * modules/crypto/sha1 (Depends-on): Likewise.
18850         * modules/crypto/sha256 (Depends-on): Likewise.
18851         * modules/crypto/sha512 (Depends-on): Likewise.
18853 2018-05-05  Bruno Haible  <bruno@clisp.org>
18855         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18856         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18857         * modules/crypto/sha1 (Depends-on): Likewise.
18858         * modules/crypto/sha256 (Depends-on): Likewise.
18859         * modules/crypto/sha512 (Depends-on): Likewise.
18861 2018-05-05  Bruno Haible  <bruno@clisp.org>
18863         af_alg: Add documentation.
18864         * lib/af_alg.h: Add comments.
18866 2018-05-05  Bruno Haible  <bruno@clisp.org>
18868         sha512: Add tests.
18869         * tests/test-sha512.c: New file.
18870         * modules/crypto/sha512-tests: New file.
18872 2018-05-05  Bruno Haible  <bruno@clisp.org>
18874         sha256: Add tests.
18875         * tests/test-sha256.c: New file.
18876         * modules/crypto/sha256-tests: New file.
18878 2018-05-05  Bruno Haible  <bruno@clisp.org>
18880         sha1 tests: Add test for sha1_stream.
18881         * tests/test-sha1.c: Include test-digest.h.
18882         (main): Invoke test_digest_on_files on 'sha1_stream'.
18883         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18885 2018-05-05  Bruno Haible  <bruno@clisp.org>
18887         md5 tests: Add test for md5_stream.
18888         * tests/test-digest.h: New file.
18889         * tests/test-md5.c: Include test-digest.h.
18890         (main): Invoke test_digest_on_files on 'md5_stream'.
18891         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18893 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18895         md5sum: Use AF_ALG when available.
18896         * lib/md5.c: Include af_alg.h.
18897         (md5_stream): Use afalg_stream when available.
18898         * modules/crypto/md5 (Files): Add the af_alg files.
18899         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18900         (Makefile.am): Add af_alg.c.
18902 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18904         sha512sum: Use AF_ALG when available.
18905         * lib/sha512.c: Include af_alg.h.
18906         (sha512_stream, sha384_stream): Use afalg_stream when available.
18907         * modules/crypto/sha512 (Files): Add the af_alg files.
18908         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18909         (Makefile.am): Add af_alg.c.
18911 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18913         sha256sum: Use AF_ALG when available.
18914         * lib/sha256.c: Include af_alg.h.
18915         (sha256_stream, sha224_stream): Use afalg_stream when available.
18916         * modules/crypto/sha256 (Files): Add the af_alg files.
18917         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18918         (Makefile.am): Add af_alg.c.
18920 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18922         sha1sum: Use AF_ALG when available.
18923         * lib/af_alg.h: New file.
18924         * lib/af_alg.c: New file.
18925         * lib/sha1.c: Include af_alg.h.
18926         (sha1_stream): Use afalg_stream when available.
18927         * m4/linux-if-alg.m4: New file.
18928         * modules/crypto/sha1 (Files): Add the new files.
18929         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18930         (Makefile.am): Add af_alg.c.
18932 2018-05-05  Bruno Haible  <bruno@clisp.org>
18934         all: Replace more http URLs by https URLs.
18935         * lib/localename.c: Use https: URL.
18936         * lib/timespec.h: Likewise.
18938 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18940         maint: port more modules to GCC 8
18941         * lib/dirname.h (base_name):
18942         * lib/exclude.h (new_exclude):
18943         * lib/xstrndup.h (xstrndup):
18944         Add malloc attribute.
18945         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18946         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18947         This pacifies GCC 8.
18948         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18949         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18951 2018-05-03  Bruno Haible  <bruno@clisp.org>
18953         Simplify code. Drop support for Borland C++ on Windows.
18954         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18955         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18956         'defined _WIN32'.
18957         * lib/canonicalize-lgpl.c: Likewise.
18958         * lib/classpath.c: Likewise.
18959         * lib/clean-temp.c: Likewise.
18960         * lib/csharpexec.c: Likewise.
18961         * lib/ctime.c: Likewise.
18962         * lib/dosname.h: Likewise.
18963         * lib/dup2.c: Likewise.
18964         * lib/errno.in.h: Likewise.
18965         * lib/error.c: Likewise.
18966         * lib/euidaccess.c: Likewise.
18967         * lib/execute.c: Likewise.
18968         * lib/fcntl.in.h: Likewise.
18969         * lib/fcntl.c: Likewise.
18970         * lib/filename.h: Likewise.
18971         * lib/findprog.c: Likewise.
18972         * lib/flock.c: Likewise.
18973         * lib/fopen.c: Likewise.
18974         * lib/freopen.c: Likewise.
18975         * lib/fstat.c: Likewise.
18976         * lib/fsync.c: Likewise.
18977         * lib/gc-gnulib.c: Likewise.
18978         * lib/get-rusage-data.c: Likewise.
18979         * lib/getaddrinfo.c: Likewise.
18980         * lib/getdelim.c: Likewise.
18981         * lib/getdtablesize.c: Likewise.
18982         * lib/gethostname.c: Likewise.
18983         * lib/getlogin.c: Likewise.
18984         * lib/getlogin_r.c: Likewise.
18985         * lib/getopt.c: Likewise.
18986         * lib/getpagesize.c: Likewise.
18987         * lib/getpass.c: Likewise.
18988         * lib/getrusage.c: Likewise.
18989         * lib/gettimeofday.c: Likewise.
18990         * lib/glob.c: Likewise.
18991         * lib/inttypes.in.h: Likewise.
18992         * lib/isapipe.c: Likewise.
18993         * lib/javaexec.c: Likewise.
18994         * lib/link.c: Likewise.
18995         * lib/localcharset.c: Likewise.
18996         * lib/localename.h: Likewise.
18997         * lib/localename.c: Likewise.
18998         * lib/localtime.c: Likewise.
18999         * lib/lseek.c: Likewise.
19000         * lib/mbsinit.c: Likewise.
19001         * lib/mkdir.c: Likewise.
19002         * lib/msvc-nothrow.h: Likewise.
19003         * lib/nanosleep.c: Likewise.
19004         * lib/nl_langinfo.c: Likewise.
19005         * lib/nonblocking.c: Likewise.
19006         * lib/nproc.c: Likewise.
19007         * lib/open.c: Likewise.
19008         * lib/openpty.c: Likewise.
19009         * lib/pathmax.h: Likewise.
19010         * lib/pipe-filter-aux.c: Likewise.
19011         * lib/pipe-filter-gi.c: Likewise.
19012         * lib/pipe-filter-ii.c: Likewise.
19013         * lib/pipe.c: Likewise.
19014         * lib/pipe2.c: Likewise.
19015         * lib/poll.c: Likewise.
19016         * lib/popen.c: Likewise.
19017         * lib/posix_openpt.c: Likewise.
19018         * lib/printf-parse.c: Likewise.
19019         * lib/progreloc.c: Likewise.
19020         * lib/putenv.c: Likewise.
19021         * lib/read.c: Likewise.
19022         * lib/relocatable.c: Likewise.
19023         * lib/rename.c: Likewise.
19024         * lib/same-inode.h: Likewise.
19025         * lib/secure_getenv.c: Likewise.
19026         * lib/select.c: Likewise.
19027         * lib/sethostname.c: Likewise.
19028         * lib/setlocale.c: Likewise.
19029         * lib/sigaction.c: Likewise.
19030         * lib/sigprocmask.c: Likewise.
19031         * lib/sleep.c: Likewise.
19032         * lib/spawn-pipe.h: Likewise.
19033         * lib/spawn-pipe.c: Likewise.
19034         * lib/spawni.c: Likewise.
19035         * lib/stat-time.h: Likewise.
19036         * lib/stat-w32.c: Likewise.
19037         * lib/stat.c: Likewise.
19038         * lib/stdio.in.h: Likewise.
19039         * lib/stdio-impl.h: Likewise.
19040         * lib/stdio-read.c: Likewise.
19041         * lib/stdio-write.c: Likewise.
19042         * lib/stdlib.in.h: Likewise.
19043         * lib/strerror_r.c: Likewise.
19044         * lib/strftime-fixes.c: Likewise.
19045         * lib/sys_stat.in.h: Likewise.
19046         * lib/sys_types.in.h: Likewise.
19047         * lib/sys_wait.in.h : Likewise.
19048         * lib/system-quote.h: Likewise.
19049         * lib/system-quote.c: Likewise.
19050         * lib/tmpdir.c: Likewise.
19051         * lib/tzset.c: Likewise.
19052         * lib/uname.c: Likewise.
19053         * lib/unistd.in.h: Likewise.
19054         * lib/utime.in.h: Likewise.
19055         * lib/utime.c: Likewise.
19056         * lib/utimecmp.c: Likewise.
19057         * lib/utimens.c: Likewise.
19058         * lib/vasnprintf.c: Likewise.
19059         * lib/vma-iter.h: Likewise.
19060         * lib/vma-iter.c: Likewise.
19061         * lib/wait-process.c: Likewise.
19062         * lib/wcsftime.c: Likewise.
19063         * lib/wctype.in.h: Likewise.
19064         * lib/write.c: Likewise.
19065         * tests/nap.h: Likewise.
19066         * tests/test-cloexec.c: Likewise.
19067         * tests/test-dup-safer.c: Likewise.
19068         * tests/test-dup2.c: Likewise.
19069         * tests/test-dup3.c: Likewise.
19070         * tests/test-fcntl.c: Likewise.
19071         * tests/test-get-rusage-data.c: Likewise.
19072         * tests/test-getaddrinfo.c: Likewise.
19073         * tests/test-getlogin.h: Likewise.
19074         * tests/test-isatty.c: Likewise.
19075         * tests/test-localename.c: Likewise.
19076         * tests/test-mbrtowc-w32.c: Likewise.
19077         * tests/test-nonblocking.c: Likewise.
19078         * tests/test-nonblocking-pipe-main.c: Likewise.
19079         * tests/test-nonblocking-socket-main.c: Likewise.
19080         * tests/test-nonblocking-socket.h: Likewise.
19081         * tests/test-pipe.c: Likewise.
19082         * tests/test-pipe2.c: Likewise.
19083         * tests/test-poll.c: Likewise.
19084         * tests/test-pthread_sigmask1.c: Likewise.
19085         * tests/test-select.h: Likewise.
19086         * tests/test-sethostname2.c: Likewise.
19087         * tests/test-sigprocmask.c: Likewise.
19088         * tests/test-spawn-pipe-child.c: Likewise.
19089         * tests/test-stat-time.c: Likewise.
19090         * tests/test-system-quote-main.c: Likewise.
19091         * tests/test-utimens-common.h: Likewise.
19092         * tests/test-wcrtomb-w32.c: Likewise.
19093         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19094         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19095         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
19096         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
19097         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
19098         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19099         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19100         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19101         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19102         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19103         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
19104         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
19105         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19106         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19107         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
19108         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19110 2018-05-02  Bruno Haible  <bruno@clisp.org>
19112         localename: Fix test failures on mingw.
19113         * lib/localename.c (gl_locale_name_thread): Remove code specific to
19114         native Windows.
19115         (gl_locale_name_posix): Move code specific to native Windows here.
19116         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
19117         Accept result without charset suffix, as it appears on mingw.
19119 2018-04-28  Paul Smith  <psmith@gnu.org>
19121         bootstrap: Avoid gnulib operations if not needed
19122         * build-aux/bootstrap: Remove unused variable gnulib_mk.
19123         Set $gnulib_extra_files early so it can be overridden in .conf.
19124         Remove redundant --import flag from $gnulib_tool_options.
19125         Set $use_gnulib to false if no gnulib modules or files are needed.
19126         If $use_gnulib is false, don't do anything related to gnulib.
19127         A lot of this is just whitespace (indentation) changes.
19129 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19131         manywarnings: port to GCC 8.0
19132         * build-aux/gcc-warning.spec: Add -Wcatch-value,
19133         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
19134         fact that the GCC help message now mentions operands for
19135         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
19136         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
19137         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
19138         and -Wunused-const-variable.
19139         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
19140         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
19141         -Wmissing-attributes, -Wmultistatement-macros,
19142         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
19143         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
19145 2018-04-24  Bruno Haible  <bruno@clisp.org>
19147         sys_socket: Make SO_REUSEPORT available across platforms.
19148         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19149         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
19150         * doc/posix-headers/sys_socket.texi: Mention the issue.
19151         * tests/test-poll.c (SO_REUSEPORT): Remove.
19152         * tests/test-select.h: Include <sys/socket.h>.
19153         (SO_REUSEPORT): Remove.
19154         * modules/select-tests (Depends-on): Add 'sys_socket'.
19156 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
19158         localcharset: short-circuit the search for an alias on a Mac
19159         * lib/localcharset.c (get_charset_aliases): Add a tautological
19160         UTF-8 entry to speed up the search for this case.
19161         Most machines default to a UTF-8 locale nowadays, so begin the
19162         list of aliases with a dummy UTF-8 entry so it will be found
19163         immediately and a time-consuming search through the rest of
19164         the list is avoided.
19166 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
19168         fts: add comment
19169         * lib/fts.c (fts_build): Explain why ==, not >.
19170         See remark by Bernhard Voelker in:
19171         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
19173         fts: fix bug in find across filesystems
19174         This fixes a bug I introduced last summer.
19175         Problem reported by Kamil Dudka in:
19176         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
19177         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
19178         (leaf_optimization):
19179         New arg for file descriptor.  All callers changed.
19180         (fts_build): Check for whether inodes should be sorted
19181         before closing the directory.
19183 2018-04-07  Bruno Haible  <bruno@clisp.org>
19185         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
19186         Reported by Genki Sky <sky@genki.is>.
19187         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
19188         version 0.9.10 or newer.
19189         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
19190         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
19191         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
19192         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
19193         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
19195 2018-04-07  Bruno Haible  <bruno@clisp.org>
19197         execute: Update comment.
19198         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
19200 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19202         fts: treat CIFS like NFS
19203         Problem reported by Kamil Dudka in:
19204         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
19205         * lib/fts.c (S_MAGIC_CIFS): New macro.
19206         (dirent_inode_sort_may_be_useful, leaf_optimization):
19207         Treat CIFS like NFS.
19209 2018-03-28  Bruno Haible  <bruno@clisp.org>
19211         c-stack: Fix possible build failure on some platforms.
19212         * lib/c-stack.c (die): Define whenever this function is referenced.
19214 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
19216         time_rz: fix workaround for Mac OS X 10.6 infloop
19217         Problems reported by Charles A. Roelli (Bug#27736#117).
19218         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
19219         Also, discard output, which clutters the 'configure' log.
19221 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
19223         havelib: port to Solaris 10 /bin/sh
19224         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
19225         instead of '! test EXPR'.
19227 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
19229         time_rz: work around Mac OS X 10.6 infloop
19230         * doc/posix-functions/localtime.texi:
19231         * doc/posix-functions/localtime_r.texi: Mention the bug.
19232         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
19233         better to fix localtime and localtime_r instead, but that would be
19234         more work and is not needed to fix the Emacs problem.
19235         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
19237 2018-03-24  Jim Meyering  <meyering@fb.com>
19239         test-version-etc.sh: don't use diff directly: use init.sh's compare
19240         We'd rather not sacrifice readable "diff -u" output even for
19241         "diff -c" output (not supported by busybox) or for even less
19242         readable ed-style "diff" output.  So use init.sh's compare function
19243         * tests/test-version-etc.sh: Source init.sh and add "." to path.
19244         Remove "./" from invocation of test-version-etc, so we use path.
19245         And s/diff/compare/.
19246         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
19247         to get init.sh.
19248         Prompted by Eric Blake's comments in
19249         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
19251 2018-03-24  Bruno Haible  <bruno@clisp.org>
19253         javacomp-script, javacomp: Add support for Java 10.
19254         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19255         target-version 10.
19256         * lib/javaversion.h: Update comments.
19257         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19258         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19259         TARGET_VERSION_BOUND, target_version_index,
19260         corresponding_classfile_version): Accept source_version 10 and
19261         target_version 10.
19262         * lib/javacomp.h: Update comments accordingly.
19264 2018-03-24  Bruno Haible  <bruno@clisp.org>
19266         javacomp-script, javacomp: Update comments.
19267         * m4/javacomp.m4: Update comments regarding gcj.
19268         * lib/javacomp.h: Likewise.
19270 2018-03-24  Bruno Haible  <bruno@clisp.org>
19272         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19273         * lib/javaversion.h: Update comments.
19274         * lib/javacomp.h: Likewise.
19275         * lib/javacomp.c (default_target_version, source_version_index,
19276         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19277         "1.9".
19278         (TARGET_VERSION_BOUND): Bump to 9.
19279         (target_version_index, corresponding_classfile_version): Recognize "9"
19280         instead of "1.9".
19281         (get_source_version_for_javac): New function.
19282         (is_envjavac_nongcj_usable, is_javac_usable): Add
19283         source_version_for_javac argument.
19284         (compile_java_class): Determine and pass source_version_for_javac.
19285         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19286         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19287         appropriate.
19289 2018-03-23  Jim Meyering  <meyering@fb.com>
19291         test-version-etc.sh: port to diff without -c
19292         * tests/test-version-etc.sh: Don't use diff's -c option.
19293         This caused spurious test failure on Alpine Linux, which
19294         uses busybox's diff. Reported by Assaf Gordon in
19295         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19297 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19299         c-stack: port to recent GCC build
19300         Problem reported by The Fireplace (Bug#30913).
19301         * lib/c-stack.c (die): Define only if used.
19303 2018-03-20  Bruno Haible  <bruno@clisp.org>
19305         euidaccess: Port to native Windows.
19306         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19307         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19309 2018-03-19  Bruno Haible  <bruno@clisp.org>
19311         javacomp: Add support for Java 7, 8, 9.
19312         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19313         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19314         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19315         and target_version 1,7, 1.8, 1.9.
19316         * lib/javacomp.h: Update comments accordingly.
19318 2018-03-19  Bruno Haible  <bruno@clisp.org>
19320         javacomp-script: Add support for Java 9.
19321         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19322         target-version 1.9.
19324 2018-03-16  Bruno Haible  <bruno@clisp.org>
19326         glob: Don't compile replacements on recent glibc systems.
19327         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19328         REPLACE_GLOB is 0, include the system's <glob.h> and use
19329         _GL_CXXALIAS_SYS.
19330         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19331         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19332         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19333         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19334         Remove snippet/warn-on-use.
19335         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19336         (Makefile.am): Create glob.h always. Update list of substitutions in
19337         glob.h. Don't depend on $(WARN_ON_USE_H).
19339 2018-03-16  Bruno Haible  <bruno@clisp.org>
19341         glob: Fix link error on native Windows.
19342         * modules/glob (Depends-on): Add 'lstat'.
19344 2018-03-15  Bruno Haible  <bruno@clisp.org>
19346         glob: Fix compilation error in C++ mode.
19347         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19349 2018-03-15  Bruno Haible  <bruno@clisp.org>
19351         host-cpu-c-abi: Support for RISC-V CPU.
19352         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19353         riscv32 and riscv64 ABIs.
19354         References:
19355         https://github.com/riscv/riscv-toolchain-conventions
19356         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19357         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19359 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19361         fflush: be more paranoid about libio.h change
19362         Suggested by Eli Zaretskii in:
19363         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19364         * lib/fbufmode.c (fbufmode):
19365         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19366         (disable_seek_optimization, rpl_fflush):
19367         * lib/fpending.c (__fpending):
19368         * lib/fpurge.c (fpurge):
19369         * lib/freadable.c (freadable):
19370         * lib/freadahead.c (freadahead):
19371         * lib/freading.c (freading):
19372         * lib/freadptr.c (freadptr):
19373         * lib/freadseek.c (freadptrinc):
19374         * lib/fseeko.c (fseeko):
19375         * lib/fseterr.c (fseterr):
19376         * lib/fwritable.c (fwritable):
19377         * lib/fwriting.c (fwriting):
19378         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19380 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19382         maint: write-file-hooks -> before-save-hook
19383         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19384         it's time to use the recommended replacement.
19385         Problem reported by Glenn Morris in:
19386         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19387         * build-aux/announce-gen, build-aux/bootstrap:
19388         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19389         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19390         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19391         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19392         * build-aux/update-copyright, build-aux/useless-if-before-free:
19393         * build-aux/vc-list-files:
19394         Update hook usage for files where Gnulib is the canonical source.
19396 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19398         binary-io: pacify gcc -Wunused-parameter
19399         Problem reported by Reuben Thomas in:
19400         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19401         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19402         Use _GL_UNUSED where appropriate.
19404         fflush: adjust to glibc 2.28 libio.h removal
19405         Problem reported by Daniel P. Berrangé in:
19406         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19407         * lib/fbufmode.c (fbufmode):
19408         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19409         (disable_seek_optimization, rpl_fflush):
19410         * lib/fpending.c (__fpending):
19411         * lib/fpurge.c (fpurge):
19412         * lib/freadable.c (freadable):
19413         * lib/freadahead.c (freadahead):
19414         * lib/freading.c (freading):
19415         * lib/freadptr.c (freadptr):
19416         * lib/freadseek.c (freadptrinc):
19417         * lib/fseeko.c (fseeko):
19418         * lib/fseterr.c (fseterr):
19419         * lib/fwritable.c (fwritable):
19420         * lib/fwriting.c (fwriting):
19421         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19422         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19423         Define if not already defined.
19425 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19427         environ: fix link error on 32-bit Cygwin
19428         Problem reported for GNU Emacs by Ken Brown in:
19429         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19430         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19432 2018-02-24  Bruno Haible  <bruno@clisp.org>
19434         mbrtowc tests: Fix regression on glibc.
19435         Reported by Bernhard Voelker.
19436         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19438 2018-02-24  Bruno Haible  <bruno@clisp.org>
19440         striconveha, uniconv/*: Avoid test failures on musl libc.
19441         * tests/iconvsupport.c: New file.
19442         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19443         does not support the ISO-2022-JP-2 encoding.
19444         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19445         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19446         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19447         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19448         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19449         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19450         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19451         (Makefile.am): Link test-striconveha with iconvsupport.o.
19452         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19453         tests/iconvsupport.c.
19454         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19455         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19456         tests/iconvsupport.c.
19457         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19458         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19459         tests/iconvsupport.c.
19460         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19461         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19462         tests/iconvsupport.c.
19463         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19464         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19465         tests/iconvsupport.c.
19466         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19467         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19468         tests/iconvsupport.c.
19469         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19471 2018-02-24  Bruno Haible  <bruno@clisp.org>
19473         localename: Add support for musl libc.
19474         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19475         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19476         on Linux platforms which define NL_LOCALE_NAME.
19478 2018-02-24  Bruno Haible  <bruno@clisp.org>
19480         mbrtowc tests: Don't make assumptions about the charset the C locale.
19481         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19482         particular mapping in the C locale.
19484 2018-02-24  Bruno Haible  <bruno@clisp.org>
19486         ptsname_r: Don't expect that this function sets errno.
19487         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19488         from ptsname_r().
19489         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19491 2018-02-23  Bruno Haible  <bruno@clisp.org>
19493         xmalloca: pacify gcc -Wbad-function-cast
19494         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19496 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19498         nl_langinfo: pacify gcc -Wunused-function
19499         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19500         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19501         this case.  Without this change, I got a diagnostic when building
19502         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19504         same: pacify gcc -Wunused-variable
19505         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19506         Omit unused variable.
19508         malloca: pacify gcc -Wbad-function-cast
19509         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19510         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19511         To pacify GCC, I had to cast alloca’s result to some type other
19512         than void * before casting that to uintptr_t.
19514 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19516         utimecmp: new function utimecmpat
19517         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19518         Do not include utimens.h.
19519         (utimecmpat): New function, generalizing utimecmp.
19520         (utimecmp): Now a thin layer around utimecmpat.
19521         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19522         utimensat instead of on lstat and utimens.
19524         same: new function same_nameat
19525         * lib/same.c: Include fcntl.h.
19526         * lib/same.c (same_nameat): New function, generalizing same_name.
19527         (same_name): Now a thin layer around same_nameat.
19528         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19529         * modules/same (Depends-on): Depend on fstatat, openat.
19531 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19533         warnings: Add support for Objective C.
19534         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19535         macro.
19537 2018-02-17  Bruno Haible  <bruno@clisp.org>
19539         lock: Fix test-once1 crash on FreeBSD11.
19540         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19541         'pthread_create', not 'pthread_cancel'.
19543 2018-02-17  Bruno Haible  <bruno@clisp.org>
19545         lock: Add test of gl_once.
19546         * tests/test-once.c: New file.
19547         * modules/lock-tests (Files): Add it.
19548         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19550 2018-02-17  Bruno Haible  <bruno@clisp.org>
19552         thread: Fix compilation error on IRIX.
19553         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19554         needed; include it outside the C++ extern "C" {} block.
19555         * doc/posix-headers/pthread.texi: Mention the problem with
19556         pthread_atfork on IRIX.
19558 2018-02-04  Bruno Haible  <bruno@clisp.org>
19560         nl_langinfo: Override the system's nl_langinfo() when needed.
19561         Reported by Jim Meyering.
19562         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19563         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19565 2018-02-04  Bruno Haible  <bruno@clisp.org>
19567         signal-h, monetary, strings: Fix build failure in some cases.
19568         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19569         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19570         as delimiter in sed command, not '|'.
19571         * modules/monetary (Makefile.am): Likewise.
19572         * modules/strings (Makefile.am): Likewise.
19574 2018-02-03  Jim Meyering  <meyering@fb.com>
19576         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19577         * top/maint.mk (sc_file_system): Don't complain about
19578         "/proc/filesystems".
19580 2018-02-03  Bruno Haible  <bruno@clisp.org>
19582         stdlib: Fix compilation error on OpenIndiana.
19583         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19584         <sys/time.h>.
19585         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19586         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19588 2018-02-03  Bruno Haible  <bruno@clisp.org>
19590         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19591         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19592         and use $EGREP instead of 'grep -E'.
19593         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19594         'grep -E'.
19596 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19598         malloca: Add a compile-time verification.
19599         * lib/malloca.c (small_t): Verify that it is wide enough.
19600         * modules/malloca (Depends-on): Add verify.
19602 2018-02-02  Bruno Haible  <bruno@clisp.org>
19604         malloca: Add an argument check.
19605         Suggested by Paul Eggert.
19606         * lib/malloca.c (freea): Check against an invalid argument.
19608 2018-02-02  Bruno Haible  <bruno@clisp.org>
19610         localename: Add support for OpenIndiana.
19611         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19612         Solaris 11 variants with uselocale() but without getlocalename_l().
19614 2018-02-02  Bruno Haible  <bruno@clisp.org>
19616         malloca, xmalloca: Make multithread-safe.
19617         Reported by Florian Weimer <fweimer@redhat.com>.
19618         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19619         * lib/malloca.h (malloca): In the stack allocation case, return a
19620         pointer that is a multiple of 2 * sa_alignment_max.
19621         (sa_increment): Remove enum item.
19622         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19623         a pointer that is a multiple of 2 * sa_alignment_max.
19624         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19625         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19626         HASH_TABLE_SIZE, mmalloca_results): Remove.
19627         (small_t): New type.
19628         (mmalloca, free): Rewritten.
19629         * lib/malloca.valgrind: Remove file.
19630         * modules/malloca (Files): Remove it.
19631         (Depends-on): Remove verify.
19633 2018-01-31  Bruno Haible  <bruno@clisp.org>
19635         environ: Fix link error on 64-bit Cygwin.
19636         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19637         __declspec(dllimport) attribute.
19638         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19640 2018-01-30  Bruno Haible  <bruno@clisp.org>
19642         get-rusage-data: Add support for Minix 3.
19643         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19645 2018-01-30  Bruno Haible  <bruno@clisp.org>
19647         vma-iter: Add support for Minix 3.
19648         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19649         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19651 2018-01-27  Bruno Haible  <bruno@clisp.org>
19653         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19654         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19655         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19656         _HPUX_ALT_XOPEN_SOCKET_API.
19657         * modules/accept (Depends-on): Add 'extensions'.
19658         * modules/getpeername (Depends-on): Likewise.
19659         * modules/getsockname (Depends-on): Likewise.
19660         * modules/getsockopt (Depends-on): Likewise.
19661         * modules/recvfrom (Depends-on): Likewise.
19662         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19663         * doc/posix-functions/getpeername.texi: Likewise.
19664         * doc/posix-functions/getsockname.texi: Likewise.
19665         * doc/posix-functions/getsockopt.texi: Likewise.
19666         * doc/posix-functions/recvfrom.texi: Likewise.
19668 2018-01-27  Bruno Haible  <bruno@clisp.org>
19670         getsockname tests: More tests.
19671         * tests/test-getsockname.c (open_server_socket): New function, mostly
19672         copied from test-poll.c.
19673         (main): Check that getsockname fills in addr.
19674         * modules/getsockname-tests (Depends-on): Add the necessary
19675         dependencies.
19676         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19678 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19680         manywarnings: fix maintainer comment
19681         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19682         it does not mistakenly think that ‘-1)’ is an option.
19684 2018-01-26  Bruno Haible  <bruno@clisp.org>
19686         langinfo: Fix last commit.
19687         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19688         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19690 2018-01-24  Bruno Haible  <bruno@clisp.org>
19692         langinfo, nl_langinfo: Add support for alternative month names.
19693         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19694         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19695         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19696         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19697         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19698         * doc/posix-functions/nl_langinfo.texi: Likewise.
19700 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19702         Merge strftime.c changes from glibc
19703         This incorporates:
19704         2017-11-14 [BZ #10871] Implement alternative month names
19705         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19706         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19707         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19708         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19709         Use locale_t, not __locale_t.
19710         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19711         (__strftime_internal): Add support for alternate months.
19713 2018-01-23  Bruno Haible  <bruno@clisp.org>
19715         doc: Mention another prerequisite for using Gnulib.
19716         Reported at <https://stackoverflow.com/questions/48378214/>.
19717         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19718         AC_CONFIG_HEADERS.
19720 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19722         build: GuixSD doesn't have /bin/bash
19723         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19725 2018-01-21  Bruno Haible  <bruno@clisp.org>
19727         Avoid test failures on Microsoft Windows Subsystem for Linux.
19728         * tests/test-fcntl.c (main): Allow a different errno.
19729         * tests/test-rename.h (test_rename): Likewise.
19730         * tests/test-renameat.c (main): Likewise.
19731         * tests/test-renameat2.c (main): Likewise.
19733 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19735         filenamecat: make base a suffix of result
19736         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19737         (mfile_name_concat): Always make BASE a suffix of the result, as
19738         cp expects this.  To implement this, separate with '.' instead of
19739         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19740         * tests/test-filenamecat.c (main): Adjust tests to match
19741         current behavior.  Check that BASE_IN_RESULT points to
19742         a copy of BASE and is a suffix of the resultk, and that DIR
19743         is a prefix of the result that is no longer than the prefix
19744         indicated by BASE_IN_RESULT.
19746 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19748         update-copyright: Handle use of ©
19749         * build-aux/update-copyright ($circle_c_re): Update regex to
19750         handle use of © in headers.
19752 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19754         Fix -Wundef warning in user-included header lib/cdefs.h.
19755         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19757 2018-01-04  Bruno Haible  <bruno@clisp.org>
19759         pthread_sigmask: Avoid compilation error on mingw.
19760         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19761         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19762         macro.
19764 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19766         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19767         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19768         Suggested by Bob Proulx (Bug#29968).
19769         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19771 2018-01-02  Eric Blake  <eblake@redhat.com>
19773         stat-time: silence -Wunused-parameter regression
19774         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19775         Prefer attribute over cast-to-void.
19776         (stat_time_normalize): Mark st as potentially unused.
19778 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19780         test-framework-sh: avoid netstat
19781         Problem reported by Kristýna Streitová (Bug#29947).
19782         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19783         deprecated on SuSE and it's not that important anyway.
19785 2018-01-01  Jim Meyering  <meyering@fb.com>
19787         update-copyright: add code to handle more special cases
19788         After running "make update-copyright" this year, five files
19789         required additional manual changes.  Automate those adjustments
19790         for next year.
19791         * Makefile (_year_and_prev): Define.
19792         (update-copyright): Add perl commands to induce this year's post-
19793         update-copyright adjustments.
19795 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19797         version-etc: new year
19798         * build-aux/gendocs.sh (version):
19799         * doc/gendocs_template:
19800         * doc/gendocs_template_min:
19801         * doc/gnulib.texi:
19802         * lib/version-etc.c (COPYRIGHT_YEAR):
19803         Update copyright dates by hand in templates and the like.
19805         maint: fix 'make update-copyright'
19806         * Makefile (update-copyright): Adjust to 2016-11-23 change
19807         to config/srclist-update, which changed the format of srclist.txt.
19809 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19811         chdir-safer: remove this module
19812         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19813         * NEWS: Document removal.
19814         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19815         * modules/chdir-safer: Remove these files.
19817 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19819         Add cross-compilation results for GNU/Hurd.
19820         * m4/calloc.m4: Add GNU/Hurd guess.
19821         * m4/cbrtl.m4: Likewise.
19822         * m4/ceil.m4: Likewise.
19823         * m4/ceilf.m4: Likewise.
19824         * m4/ceill.m4: Likewise.
19825         * m4/chown.m4: Likewise.
19826         * m4/duplocale.m4: Likewise.
19827         * m4/exp2l.m4: Likewise.
19828         * m4/expm1.m4: Likewise.
19829         * m4/fchdir.m4: Likewise.
19830         * m4/floor.m4: Likewise.
19831         * m4/floorf.m4: Likewise.
19832         * m4/fmod.m4: Likewise.
19833         * m4/fmodf.m4: Likewise.
19834         * m4/fmodl.m4: Likewise.
19835         * m4/getcwd.m4: Likewise.
19836         * m4/getgroups.m4: Likewise.
19837         * m4/gettimeofday.m4: Likewise.
19838         * m4/hypot.m4: Likewise.
19839         * m4/hypotf.m4: Likewise.
19840         * m4/hypotl.m4: Likewise.
19841         * m4/link-follow.m4: Likewise.
19842         * m4/link.m4: Likewise.
19843         * m4/linkat.m4: Likewise.
19844         * m4/log.m4: Likewise.
19845         * m4/log10.m4: Likewise.
19846         * m4/log10f.m4: Likewise.
19847         * m4/log1p.m4: Likewise.
19848         * m4/log1pf.m4: Likewise.
19849         * m4/log1pl.m4: Likewise.
19850         * m4/log2.m4: Likewise.
19851         * m4/log2f.m4: Likewise.
19852         * m4/logf.m4: Likewise.
19853         * m4/lstat.m4: Likewise.
19854         * m4/malloc.m4: Likewise.
19855         * m4/mbrlen.m4: Likewise.
19856         * m4/mbrtowc.m4: Likewise.
19857         * m4/mkdir.m4: Likewise.
19858         * m4/mkfifo.m4: Likewise.
19859         * m4/mknod.m4: Likewise.
19860         * m4/mkstemp.m4: Likewise.
19861         * m4/modf.m4: Likewise.
19862         * m4/modff.m4: Likewise.
19863         * m4/modfl.m4: Likewise.
19864         * m4/printf.m4: Likewise.
19865         * m4/pselect.m4: Likewise.
19866         * m4/ptsname.m4: Likewise.
19867         * m4/putenv.m4: Likewise.
19868         * m4/readlink.m4: Likewise.
19869         * m4/realloc.m4: Likewise.
19870         * m4/remainder.m4: Likewise.
19871         * m4/remainderf.m4: Likewise.
19872         * m4/remainderl.m4: Likewise.
19873         * m4/rmdir.m4: Likewise.
19874         * m4/round.m4: Likewise.
19875         * m4/roundf.m4: Likewise.
19876         * m4/roundl.m4: Likewise.
19877         * m4/select.m4: Likewise.
19878         * m4/setenv.m4: Likewise.
19879         * m4/signbit.m4: Likewise.
19880         * m4/sleep.m4: Likewise.
19881         * m4/stat.m4: Likewise.
19882         * m4/strerror.m4: Likewise.
19883         * m4/strtok_r.m4: Likewise.
19884         * m4/symlink.m4: Likewise.
19885         * m4/symlinkat.m4: Likewise.
19886         * m4/trunc.m4: Likewise.
19887         * m4/truncf.m4: Likewise.
19888         * m4/truncl.m4: Likewise.
19889         * m4/tzset.m4: Likewise.
19890         * m4/ungetc.m4: Likewise.
19891         * m4/usleep.m4: Likewise.
19892         * m4/wcwidth.m4: Likewise.
19894 2017-12-28  Bruno Haible  <bruno@clisp.org>
19896         gnulib-tool: Make --conditional-dependencies work better.
19897         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19898         * gnulib-tool (Options): Don't reject the combination of
19899         --conditional-dependencies with --with-tests.
19900         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19901         Don't reference $modules.
19902         (func_import, func_create_testdir): Pass it.
19904 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19906         regex: use re_malloc etc. consistently
19907         Problem and original patch reported by Arnold Robbins in:
19908         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19909         * lib/regcomp.c (re_comp):
19910         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19911         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19913 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19914             Paul Eggert  <eggert@cs.ucla.edu>
19916         glob: Silence warning about void pointer arithmetic.
19917         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19918         arithmetic.
19920 2017-12-15  Bruno Haible  <bruno@clisp.org>
19922         spawn-pipe: Silence a clang warning.
19923         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19924         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19925         in this file.
19927 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19929         explicit_bzero: port to macOS + Clang 9.0.0
19930         Problem reported by Marcus Johnson (Bug#29658).
19931         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19932         Don’t use asm.
19934 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19936         doc: Improve explanation of supporting relocatable libraries.
19937         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19938         properly how to build the relocatable module for
19939         libraries. (Method and example code from Bruno Haible.)
19941 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19943         doc: Use better texinfo tags in a few cases.
19944         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19945         instead of @samp in a few places.
19947 2017-12-11  Bruno Haible  <bruno@clisp.org>
19949         unistr/base: Update comment.
19950         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19952 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19954         test-faccessat.c: unlink temp file to avoid subsequent test failure
19955         * tests/test-faccessat.c: Remove the file to avoid failure
19956         to open the file on subsequent runs due to being created
19957         with no permissions.
19959 2017-12-10  Bruno Haible  <bruno@clisp.org>
19961         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19962         * doc/gnulib-tool.texi (Modified build rules): New node.
19964 2017-12-10  Bruno Haible  <bruno@clisp.org>
19966         doc: Tweak wording.
19967         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19968         "binaries".
19970 2017-12-05  Sam Steingold  <sds@gnu.org>
19971             Bruno Haible  <bruno@clisp.org>
19973         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19974         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19975         AC_EGREP_CPP pattern.
19977 2017-12-03  Bruno Haible  <bruno@clisp.org>
19979         all: Replace more http URLs by https URLs.
19980         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19981         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19982         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19983         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19985 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19987         Port better to CentOS 5
19988         Problems reported by Tom G. Christensen in:
19989         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19990         * doc/glibc-functions/strverscmp.texi (strverscmp):
19991         Document strverscmp bug with glibc 2.9 and earlier.
19992         * doc/posix-functions/tzset.texi (tzset):
19993         Document that TZ with angle brackets is POSIX-2001 and later.
19994         * tests/test-nstrftime.c: Include unistd.h.
19995         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19996         (TZ): Use it to skip tests with angle brackets in TZ,
19997         for older systems.
19999         stat: add missing module dependencies
20000         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
20001         Add stat-time.
20003 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
20005         stat: fix compilation failure on macOS Sierra
20006         Reported by Marius Schamschula <mschamschula@gmail.com> in:
20007         https://savannah.gnu.org/bugs/?52546
20008         * lib/stat.c: Add missing include of stat-time.h.
20010 2017-11-28  Jim Meyering  <meyering@fb.com>
20012         test-faccessat.c: correct BASE definition to avoid parallel test failure
20013         * tests/test-faccessat.c (BASE): Define using this file's name, not
20014         that of test-lstat.c.  Using the latter caused this test to fail
20015         sometimes when run concurrently with test-lstat.
20017 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20019         unicase: fix VPATH build
20020         * modules/unicase/special-casing (Makefile.am): Ensure that the
20021         base directory is created when generating
20022         unicase/special-casing.h.
20024 2017-11-27  Daiki Ueno  <ueno@gnu.org>
20026         libunistring: update to Unicode 9.0.0
20027         * lib/gen-uni-tables.c (fill_properties): Recognize
20028         Sentence_Terminal and Prepended_Concatenation_Mark.
20029         (is_property_default_ignorable_code_point): Exclude U+08E2.
20030         (fill_arabicshaping): Allow missing whitespace when parsing;
20031         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
20032         (output_blocks): Increase the element size of the level1 table to
20033         accommodate more blocks.
20034         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
20035         Update each class according to the standard.
20036         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
20037         E_Base_GAZ characters.
20038         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
20039         Glue_After_Zwj, and E_Base_GAZ characters.
20040         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
20041         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
20042         enum value.
20043         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
20044         value.
20045         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
20046         LBP_ZWJ, LBP_EB, and LBP_EM.
20047         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
20048         enum value.
20049         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
20050         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
20051         declaration.
20052         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
20053         (uniwbrk_table): Implement WB14.
20054         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
20055         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
20056         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
20057         uc-is-grapheme-break.
20058         * modules/unigbrk/uc-grapheme-breaks: New module.
20059         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
20060         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
20061         enum value.
20062         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
20063         * lib/unigbrk/u-grapheme-breaks.h: New file.
20064         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
20065         u-grapheme-breaks.h instead of uc_is_grapheme_break.
20066         * lib/unigbrk/uc-grapheme-breaks.c: New file.
20067         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
20068         29.
20069         * tests/unigbrk/test-uc-gbrk-prop.c
20070         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20071         GBP_GAZ, and GBP_EBG.
20072         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
20073         * tests/unigbrk/test-uc-is-grapheme-break.c
20074         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
20075         GBP_GAZ, and GBP_EBG.
20076         (main): Skip unsupported rules involving 3 or more characters,
20077         namely GB10, GB12, and GB13.
20078         * lib/uniwidth/width.c (nonspacing_table_data): Update.
20079         * all generated files under lib/uni* and tests/uni*: Regenerate.
20080         * all the affected modules: Bump version.
20082 2017-11-26  Bruno Haible  <bruno@clisp.org>
20084         strfmon_l: Fix compilation error with glibc 2.5.
20085         Reported by Tom G. Christensen <tgc@jupiterrise.com>
20086         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
20087         * lib/monetary.in.h: Include also <locale.h>.
20089 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20091         posixtm: remove PDS_LEADING_YEAR
20092         This changes the API slightly, in a hopefully-innocuous way.
20093         Without this change the code had undefined behavior when a
20094         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
20095         Problem reported by Pádraig Brady in:
20096         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
20097         * NEWS: Mention this.
20098         * lib/posixtm.c (posix_time_parse): Treat the absence of
20099         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
20100         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
20101         present, but define it as zero, for compatibility with existing
20102         source code).  All other PDS_* values moved up.
20103         * tests/test-posixtm.c (LY): New macro.
20104         (T): Use it.  Do not expect a particular numeric encoding
20105         for PDS_CENTURY etc.
20107 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
20109         stat: work around Solaris bug with tv_nsec < 0
20110         * doc/posix-functions/fstat.texi (fstat):
20111         * doc/posix-functions/fstatat.texi (fstatat):
20112         * doc/posix-functions/lstat.texi (lstat):
20113         * doc/posix-functions/stat.texi (stat):
20114         Mention Solaris 11 bug.
20115         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
20116         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
20117         * lib/lstat.c (rpl_lstat):
20118         * lib/stat.c (rpl_stat):
20119         Normalize resulting timestamps.
20120         * lib/fstatat.c (normal_fstatat): New function.
20121         (rpl_fstatat): Use it.
20122         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
20123         (stat_time_normalize): New function.
20124         * m4/fstat.m4 (gl_FUNC_FSTAT):
20125         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
20126         * m4/lstat.m4 (gl_FUNC_LSTAT):
20127         * m4/stat.m4 (gl_FUNC_STAT):
20128         Replace on Solaris.
20129         * modules/fstat (Depends-on):
20130         * modules/fstatat (Depends-on):
20131         Add stat-time.
20132         * modules/stat-time (Depends-on): Add errno, intprops.
20134 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
20136         regex: merge from glibc
20137         * lib/regcomp.c (init_word_char): Add comments.
20139 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
20141         regex: merge from glibc
20142         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
20143         * lib/regex_internal.h (internal_function): Remove.
20144         All uses removed.
20146 2017-11-20  Bruno Haible  <bruno@clisp.org>
20148         crypto/gc-sm3: Fix buffer overrun.
20149         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
20150         Reported by Coverity.
20152 2017-11-12  Jim Meyering  <meyering@fb.com>
20154         maint: shorten https://lists.gnu.org/archive/html/... links
20155         Each /archive/html/ part can be replace with /r/.
20156         Run this to induce the change:
20157         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
20158         * ChangeLog: Perform that substitution.
20159         * Makefile: Likewise.
20160         * STATUS-libposix: Likewise.
20161         * build-aux/bootstrap: Likewise.
20162         * doc/maintain.texi: Likewise.
20163         * gnulib-tool: Likewise.
20164         * lib/allocator.h: Likewise.
20165         * lib/argp-ba.c: Likewise.
20166         * lib/argp-pv.c: Likewise.
20167         * lib/canon-host.c: Likewise.
20168         * lib/canonicalize-lgpl.c: Likewise.
20169         * lib/float.in.h: Likewise.
20170         * lib/fstat.c: Likewise.
20171         * lib/getdelim.c: Likewise.
20172         * lib/getprogname.c: Likewise.
20173         * lib/glthread/thread.h: Likewise.
20174         * lib/intprops.h: Likewise.
20175         * lib/mbsrtowcs-state.c: Likewise.
20176         * lib/safe-read.c: Likewise.
20177         * lib/signal.in.h: Likewise.
20178         * lib/stat.c: Likewise.
20179         * lib/stdbool.in.h: Likewise.
20180         * lib/stdio-impl.h: Likewise.
20181         * lib/stdio.in.h: Likewise.
20182         * lib/sysexits.in.h: Likewise.
20183         * lib/timespec.h: Likewise.
20184         * lib/wcsrtombs-state.c: Likewise.
20185         * m4/alloca.m4: Likewise.
20186         * m4/extern-inline.m4: Likewise.
20187         * m4/fstatat.m4: Likewise.
20188         * m4/gnulib-common.m4: Likewise.
20189         * m4/lib-ignore.m4: Likewise.
20190         * m4/printf.m4: Likewise.
20191         * m4/regex.m4: Likewise.
20192         * m4/stat-size.m4: Likewise.
20193         * m4/std-gnu11.m4: Likewise.
20194         * m4/stdbool.m4: Likewise.
20195         * m4/sys_types_h.m4: Likewise.
20196         * m4/threadlib.m4: Likewise.
20197         * m4/vararrays.m4: Likewise.
20198         * pygnulib/GLImport.py: Likewise.
20199         * tests/test-exp.h: Likewise.
20200         * tests/test-exp2.h: Likewise.
20201         * tests/test-expm1.h: Likewise.
20202         * tests/test-fflush2.c: Likewise.
20203         * tests/test-getopt_long.h: Likewise.
20204         * tests/test-intprops.c: Likewise.
20205         * tests/test-log.h: Likewise.
20206         * tests/test-log10.h: Likewise.
20207         * tests/test-log1p.h: Likewise.
20208         * tests/test-log2.h: Likewise.
20209         * tests/test-printf-posix.h: Likewise.
20210         * tests/test-regex.c: Likewise.
20211         * tests/test-snprintf-posix.h: Likewise.
20212         * tests/test-sprintf-posix.h: Likewise.
20213         * tests/test-stdalign.c: Likewise.
20214         * tests/test-stdbool.c: Likewise.
20215         * tests/test-vasnprintf-posix.c: Likewise.
20216         * tests/test-vasprintf-posix.c: Likewise.
20217         * top/maint.mk: Likewise.
20219 2017-11-12  Bruno Haible  <bruno@clisp.org>
20221         faccessat: Make the last change more robust.
20222         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
20223         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
20225 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20227         faccessat: port to macOS (Bug#29231)
20228         macOS faccessat has the same bug that lstat does: if the file
20229         name ends in '/' it ignores the trailing slash.
20230         Problem reported for Emacs by Vincent Zhang.
20231         * doc/posix-functions/faccessat.texi (faccessat): Document this.
20232         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
20233         around the initial includes.  Include errno.h, string.h, sys/stat.h.
20234         (orig_faccessat) [HAVE_FACCESSAT]: New function.
20235         Include "unistd.h" after defining it.
20236         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
20237         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
20238         Handle in the usual way.
20239         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
20240         lstat dereferences symlinks, since faccessat is likely to
20241         have the same problem.
20242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
20243         * modules/faccessat (Depends-on): Add fstatat.
20244         Depend if REPLACE_FACCESSAT is 1, too.
20245         (configure.ac): Link if REPLACE_FACCESSAT is 1.
20246         * modules/faccessat-tests (Depends-on): Add symlink.
20247         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
20248         * tests/test-faccessat.c (main): Test for the bug.
20250 2017-11-11  Bruno Haible  <bruno@clisp.org>
20252         getprogname: Fix compilation error on IRIX.
20253         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20254         'namesize'.
20256 2017-11-11  Bruno Haible  <bruno@clisp.org>
20258         year2038: Tweak last patch.
20259         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20261 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20263         year2038: be more insistent about 64-bit time_t
20264         Applications requiring access to arbitrary files should not be
20265         built with 32-bit time_t on hosts that have 64-bit timestamps,
20266         as this can lead to real trouble at runtime.
20267         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20268         Check on all systems, not just MinGW.  Use a heuristic involving
20269         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20270         output a failure or just a warning, to make it more likely that
20271         builders will select 64-bit time_t.
20273 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20275         havelib: fix typo in previous change
20276         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20278         Don’t use AC_EGREP_CPP if affected by CFLAGS
20279         * m4/float_h.m4 (gl_FLOAT_H):
20280         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20281         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20282         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20283         * m4/year2038.m4 (gl_YEAR2038):
20284         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20285         likely to be affected by the choice of CFLAGS, since CFLAGS are
20286         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20287         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20289         fstatat: pacify GCC on unusual platform
20290         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20291         Omit, as it’s unused in this case.
20293 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20295         timespec: prefer ‘assume’ to ‘assure’
20296         This avoids some runtime tests.  The rest of the module makes
20297         similar assumptions and there is little point to testing here.
20298         * lib/timespec.h: Include verify.h instead of assure.h.
20299         (timespec_cmp): Use ‘assume’, not ‘assure’.
20300         Also, remove an unnecessary cast to ‘int’, as lots of other
20301         code in this module now causes -Wconversion to complain, and
20302         this is a problem with -Wconversion not with the code.
20304         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20306         Port recent gnulib-tool change to Dash
20307         * gnulib-tool (func_create_testdir): Don't assume that the shell
20308         retokenizes after expanding "$@" inside the call to
20309         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20311 2017-10-27  Jim Meyering  <meyering@fb.com>
20313         timespec.h: use "assure" to avoid a spurious warning
20314         * lib/timespec.h: Include "assure.h" and use it to help
20315         gcc7's -Wstrict-overflow avoid a false positive warning
20316         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20317         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20318         * modules/timespec (Depends-on): Add assure.
20320 2017-10-29  Bruno Haible  <bruno@clisp.org>
20322         Avoid several test failures with traditional locales on Haiku.
20323         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20324         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20325         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20326         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20327         LOCALE_ZH_CN=none.
20329 2017-10-29  Bruno Haible  <bruno@clisp.org>
20331         strerror_r-posix: Fix behaviour and test failure on Haiku.
20332         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20333         are positive. Work around return value 0 instead of ERANGE on Haiku.
20334         For unknown error numbers, use a format string consistent with perror().
20335         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20336         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20337         are positive.
20339 2017-10-29  Bruno Haible  <bruno@clisp.org>
20341         get-rusage-data: Avoid crash on Haiku.
20342         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20344 2017-10-29  Bruno Haible  <bruno@clisp.org>
20346         get-rusage-as: Avoid crash on Haiku.
20347         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20349 2017-10-29  Bruno Haible  <bruno@clisp.org>
20351         ilogbl: Ensure replacement on Haiku.
20352         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20353         REPLACE_ILOGBL if ilogbl does not work.
20354         (gl_FUNC_ILOGBL_WORKS): New macro.
20355         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20357         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20358         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20359         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20361 2017-10-29  Bruno Haible  <bruno@clisp.org>
20363         expl: Ensure replacement on Haiku.
20364         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20365         zero.
20366         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20368 2017-10-29  Bruno Haible  <bruno@clisp.org>
20370         math: Fix test failure on Haiku.
20371         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20372         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20373         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20374         * doc/posix-headers/math.texi: Mention the Haiku problem.
20376 2017-10-29  Bruno Haible  <bruno@clisp.org>
20378         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20379         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20380         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20382 2017-10-29  Bruno Haible  <bruno@clisp.org>
20384         crypto/*: Verify that the header file is self-contained.
20385         * tests/test-gc-*.c: Include the module's header file immediately after
20386         <config.h>.
20387         * tests/test-hmac-*.c: Likewise.
20388         * tests/test-arcfour.c: Likewise.
20389         * tests/test-arctwo.c: Likewise.
20390         * tests/test-des.c: Likewise.
20391         * tests/test-md2.c: Likewise.
20392         * tests/test-md4.c: Likewise.
20393         * tests/test-md5.c: Likewise.
20394         * tests/test-rijndael.c: Likewise.
20395         * tests/test-sha1.c: Likewise.
20396         * tests/test-sm3.c: Likewise.
20398 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20399             Bruno Haible  <bruno@clisp.org>
20401         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20402         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20404 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20406         New module: crypto/gc-sm3
20407         * lib/gc.h: Declare SM3-related stuffs.
20408         * lib/gc-gnulib.c: Support sm3 in internal functions.
20409         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20410         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20411         * modules/crypto/gc-sm3: Define gc-sm3 module.
20412         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20413         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20414         * MODULES.html.sh: List gc-sm3 module.
20416 2017-10-29  Bruno Haible  <bruno@clisp.org>
20418         random, random_r: Mention different prototypes on Haiku.
20419         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20420         * doc/glibc-functions/random_r.texi: Likewise.
20421         * doc/glibc-functions/initstate_r.texi: Likewise.
20422         * doc/glibc-functions/setstate_r.texi: Likewise.
20424 2017-10-28  Bruno Haible  <bruno@clisp.org>
20426         posix_spawn: Avoid spurious message in configure output.
20427         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20428         'cmp' command.
20430 2017-10-28  Bruno Haible  <bruno@clisp.org>
20432         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20433         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20434         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20436 2017-10-28  Bruno Haible  <bruno@clisp.org>
20438         ioctl: Override non-POSIX declaration on Haiku.
20439         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20440         * lib/sys_ioctl.in.h: Add comment about Haiku.
20441         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20442         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20444 2017-10-28  Bruno Haible  <bruno@clisp.org>
20446         crypto/sm3: Add overview documentation to the .h file.
20447         * lib/sm3.h: Add comments.
20449 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20451         New module: crypto/sm3
20452         This new module can be used to compute SM3 message digest of files or
20453         memory blocks according to the specification GM/T 004-2012
20454         Cryptographic Hash Algorithm SM3, published by State Cryptography
20455         Administration, China.
20456         The official SM3 cryptographic hash algorithm specification is
20457         available at
20458         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20459         * lib/sm3.h: Declare the APIs of sm3 module.
20460         * lib/sm3.c: Implement SM3 hash algorithm.
20461         * m4/sm3.m4: m4 file for sm3 module.
20462         * modules/crypto/sm3: Define sm3 module.
20463         * tests/test-sm3.c: Implement SM3 test case.
20464         * modules/crypto/sm3-tests: Define sm3 test module.
20465         * MODULES.html.sh: List sm3 module.
20467 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20469         gc-libgcrypt: fix undefined enum type in switch statement
20470         Resolve the following build failure:
20471         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20472         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20473         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20474              case 0:
20475              ^~~~
20476         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20477         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20479 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20481         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20482         Resolve the following build failure:
20483         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20484         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20485         in signedness [-Werror=pointer-sign]
20486             digest = gcry_md_read (ctx->gch, 0);
20487                    ^
20488         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20490 2017-10-26  Bruno Haible  <bruno@clisp.org>
20492         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20493         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20494         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20496 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20498         glob: fix another heap buffer overflow
20499         Problem reported by Tim Rühsen in:
20500         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20501         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20503 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20505         quotearg: pacify compiler re unsigned
20506         * lib/quotearg.c (quotearg_n_options):
20507         Rewrite to avoid diagnostic from overly-picky compiler.
20508         Problem reported by Sami Kerola in:
20509         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20511         glob: fix heap buffer overflow
20512         * lib/glob.c (glob): Fix off-by-one error introduced into
20513         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20514         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20515         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20516         Fix suggested by Bruno Haible.
20518 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20520         glob: pacify fuzzer for mempcpy
20521         Problem reported by Tim Rühsen in:
20522         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20523         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20525 2017-10-12  Bruno Haible  <bruno@clisp.org>
20527         doc: Fix syntax error (regression from 2017-10-03).
20528         * doc/posix-functions/strncpy.texi: Fix syntax error.
20530 2017-10-12  Bruno Haible  <bruno@clisp.org>
20532         doc: Update for Solaris 11.3.
20533         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20534         mention Solaris 11.3.
20535         * m4/log2.m4: Fix comments.
20536         * m4/log2f.m4: Likewise.
20537         * m4/printf.m4: Update comments.
20538         * m4/rename.m4: Likewise.
20539         * m4/strncat.m4: Likewise.
20541         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20543 2017-10-10  Bruno Haible  <bruno@clisp.org>
20545         doc: Improve doc about ioctl.
20546         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20547         prototype.
20549 2017-10-09  Bruno Haible  <bruno@clisp.org>
20551         wcwidth: Don't use obsolete syntax of 'test'.
20552         Reported by Eric Blake.
20553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20554         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20556 2017-10-09  Bruno Haible  <bruno@clisp.org>
20558         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20559         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20560         and Daniel P. Berrange <berrange@redhat.com>.
20561         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20562         on glibc systems. The getopt-pfx-core.h file declares exactly what
20563         unistd.h needs, nothing more.
20565 2017-10-08  Bruno Haible  <bruno@clisp.org>
20567         vma-iter: Improve support for FreeBSD.
20568         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20569         vma_iterate.
20570         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20572 2017-10-08  Bruno Haible  <bruno@clisp.org>
20574         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20575         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20577 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20579         test-framework-sh: Fix 'invalid path dir' error.
20580         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20581         separator between a drive letter and directory parts.
20582         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20583         treated as an invalid path dir.
20584         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20585         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20586         instead of hard coded ':'.
20588 2017-10-07  Bruno Haible  <bruno@clisp.org>
20590         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20591         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20592         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20593         (rof_open): On Linux, do multiple read() calls and make sure
20594         MIN_LEFTOVER bytes are left when read() returns.
20596 2017-10-07  Bruno Haible  <bruno@clisp.org>
20598         vma-iter: Improve support for GNU/Hurd.
20599         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20600         API, not the /proc file system.
20602 2017-10-07  Bruno Haible  <bruno@clisp.org>
20604         test-framework-sh: Don't require bash on Windows and OS/2.
20605         Reported by KO Myung-Hun.
20606         * tests/test-init.sh: Use 'shopt' only when running in bash.
20608 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20610         wcwidth: check a macro version of wcwidth () as well
20611         * lib/wchar.in.h: Revert commit from 2016-01-14.
20612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20614 2017-10-06  Bruno Haible  <bruno@clisp.org>
20616         getopt-posix: Clarify copyright header.
20617         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20618         * lib/getopt-pfx-core.h: Likewise.
20619         * lib/getopt-pfx-ext.h: Likewise.
20620         * lib/getopt-cdefs.in.h: Likewise.
20622 2017-10-03  Bruno Haible  <bruno@clisp.org>
20624         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20625         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20626         gl_HOST_CPU_C_ABI.
20628 2017-10-03  Bruno Haible  <bruno@clisp.org>
20630         doc: warn about misuse of strncpy and wcsncpy.
20631         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20632         memory allocation.
20633         * doc/posix-functions/wcscpy.texi: Likewise.
20634         * doc/posix-functions/strncpy.texi: Describe what this function is not
20635         useful for.
20636         * doc/posix-functions/wcsncpy.texi: Likewise.
20638 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20640         fsuage: fix typo in previous change
20641         * lib/fsusage.c: Remove stray include of full-read.h.
20642         Problem reported by Sam Steingold for macOS (Bug#28669).
20644 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20646         fsusage: remove SVR2 support
20647         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20648         and its code was getting in the way of use of this module by
20649         Emacs, which has its own ‘read’ function anyway.
20650         * lib/fsusage.c: Do not include sys/filsys.h.
20651         (get_fs_usage): Remove SVR2-specific code.
20652         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20653         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20654         * modules/fsusage (Depends-on): Do not depend on full-read.
20656         Simplify autoupdate of licenses
20657         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20658         place.
20660 2017-10-01  Bruno Haible  <bruno@clisp.org>
20662         vma-iter: Add support for GNU/Hurd.
20663         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20664         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20666 2017-09-30  Bruno Haible  <bruno@clisp.org>
20668         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20669         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20670         fail when module 'largefile' is in use.
20671         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20672         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20673         Don't test HAVE_SYS_PROCFS_H.
20675 2017-09-30  Bruno Haible  <bruno@clisp.org>
20677         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20678         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20679         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20680         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20682 2017-09-30  Bruno Haible  <bruno@clisp.org>
20684         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20685         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20686         scope of local variables.
20688 2017-09-28  Bruno Haible  <bruno@clisp.org>
20690         string: code style
20691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20692         substitutable variables.
20693         * modules/string (Makefile.am): Likewise.
20695 2017-09-26  Bruno Haible  <bruno@clisp.org>
20697         uniname/uniname-tests: Tighten code.
20698         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20699         local variables into one.
20701 2017-09-26  Bruno Haible  <bruno@clisp.org>
20703         vma-iter: Improvements for Linux and BSD platforms.
20704         - Add support for DragonFly BSD.
20705         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20706         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20707         Read the entire file into memory in a single system call.
20708         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20709         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20711 2017-09-26  Bruno Haible  <bruno@clisp.org>
20713         vma-iter: Provide the protection flags on FreeBSD.
20714         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20715         skip three fields between the addresses and the protection flags.
20717 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20719         glob: remove bogus extern decl
20720         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20721         extern declaration.  Problem reported by Adhemerval Zanella in:
20722         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20724 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20726         uniname/uniname-tests: integer overflow fix
20727         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20728         Check for integer overflow.
20730         duplocale-tests: fix unlikely crash
20731         * tests/test-duplocale.c (get_locale_dependent_values):
20732         Don’t crash with absurdly long month names.
20734         maint: fix overflow checking in nap.h
20735         * modules/chown-tests:
20736         * modules/fchownat-tests, modules/fdutimensat-tests:
20737         * modules/futimens-tests, modules/lchown-tests:
20738         * modules/stat-time-tests, modules/utime-tests:
20739         * modules/utimens-tests, modules/utimensat-tests:
20740         Depend on intprops.
20741         * tests/nap.h: Include intprops.h.
20742         (diff_timespec): Handle overflow properly.
20744         sys_types: update URL
20745         * m4/sys_types_h.m4: Use https: URL.
20747         parse-datetime: fix dependency
20748         * modules/parse-datetime (Depends-on): Depend
20749         on nstrftime, not strftime.
20751         parse-datetime, posixtm: avoid uninit access
20752         * lib/parse-datetime.y (parse_datetime2):
20753         * lib/posixtm.c (posixtime):
20754         Do not access uninitialized storage, even though the resulting
20755         value is never used.
20757 2017-09-25  Bruno Haible  <bruno@clisp.org>
20759         vma-iter: Improvements for BSD platforms.
20760         - Add support for GNU/kFreeBSD.
20761         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20762         - Speed up on OpenBSD.
20763         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20764         (vma_iterate_bsd): New function.
20765         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20766         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20767         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20768         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20770 2017-09-23  Bruno Haible  <bruno@clisp.org>
20772         strfmon_l: New module.
20773         * modules/strfmon_l: New file.
20774         * lib/strfmon_l.c: New file.
20775         * m4/strfmon_l.m4: New file.
20776         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20777         * modules/strfmon_l-tests: New file.
20778         * tests/test-strfmon_l.c: New file.
20780         monetary: New module.
20781         * modules/monetary: New file.
20782         * lib/monetary.in.h: New file.
20783         * m4/monetary_h.m4: New file.
20784         * doc/posix-headers/monetary.texi: Mention the new module.
20785         * modules/monetary-tests: New file.
20786         * tests/test-monetary.c: New file.
20787         * modules/monetary-c++-tests: New file.
20788         * tests/test-monetary-c++.cc: New file.
20789         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20791 2017-09-23  Bruno Haible  <bruno@clisp.org>
20793         duplocale tests: Fix test crash on Linux/x86.
20794         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20795         locale from the current thread before freeing it.
20797 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20799         mktime: port to OpenVMS
20800         Problem reported by John E. Malmberg in:
20801         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20802         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20804 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20806         manywarnings: port to GCC on 64-bit MS-Windows
20807         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20808         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20809         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20811 2017-09-13  Bruno Haible  <bruno@clisp.org>
20813         all: Replace many more http URLs by https URLs. Update stale URLs.
20814         * users.txt: Remove mention of 'newts'.
20815         * lib/localename.c: Update comment about LANG_SOTHO.
20817 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20819         all: Replace many http URLs by https URLs.
20821 2017-09-12  Bruno Haible  <bruno@clisp.org>
20823         doc: Prefer https URLs where possible.
20824         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20825         * doc/ld-output-def.texi: Remove unavailable URL.
20827 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20829         maintainer-makefile: FTP -> HTTPS
20830         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20831         of FTP, which is planned to be decommissioned on 2017-11-01.
20833 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20835         libc-config: Fix __GNUC_PREREQ macro.
20836         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20837         __GNUC_MINOR.
20839 2017-09-09  Bruno Haible  <bruno@clisp.org>
20841         gnulib-tool: Simplify commit from 2015-08-20.
20842         * gnulib-tool (func_add_or_update): Remove local variable
20843         is_binary_file.
20845 2017-09-08  Bruno Haible  <bruno@clisp.org>
20847         stddef: Avoid conflict with system-defined max_align_t.
20848         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20849         Reported by Werner Lemberg <wl@gnu.org> in
20850         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20851         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20852         (max_align_t): Define as a macro.
20853         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20854         definitions of rpl_max_align_t in different copies of gnulib-generated
20855         <stddef.h>.
20857 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20859         libc-config: port to MSVC
20860         Problems reported by Gisle Vanem in:
20861         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20862         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20863         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20864         * m4/__inline.m4: New file.
20865         * modules/libc-config (Files): Add it.
20866         (Depends-on): Use it.
20868         glob: Use enum for __glob_pattern_type result
20869         From a patch proposed by Adhemerval Zanella in:
20870         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20871         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20872         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20873         * lib/glob_internal.h (__glob_pattern_type):
20874         * lib/glob.c (glob):
20875         * lib/glob_pattern_p.c (__glob_pattern_p):
20876         Use them.
20878         glob: fix for use in glibc
20879         Problem reported by Adhemerval Zanella in:
20880         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20881         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20882         Do not redefine if _LIBC.
20884 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20886         glob: fix bugs with long login names
20887         Problem reported by Adhemerval Zanella in:
20888         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20889         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20890         (glob): Use the same scratch buffer for both getlogin_r and
20891         getpwnam_r.  Don’t require preallocation of the login name.  This
20892         simplifies storage allocation, and corrects the handling of
20893         long login names.
20895 2017-09-02  Bruno Haible  <bruno@clisp.org>
20897         dirent: Update doc.
20898         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20900 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20902         glob: fix getpwnam_r errno typo
20903         * lib/glob.c (glob): Fix longstanding misuse of errno after
20904         getpwnam_r, which returns an error number rather than setting
20905         errno.
20907         glob: fix typo in recent change
20908         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20909         Fix recently-introduced typo.
20911 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20913         glob: don't save and restore errno unnecessarily
20914         * lib/glob.c (glob): Don't save and restore errno
20915         merely because we have getpwnam_r.
20917         glob: don't assume getpwnam_r
20918         * lib/glob.c (glob): Port recent patches to platforms
20919         lacking getpwnam_r.
20921         scratch_buffer: don’t use private glibc API
20922         Suggested by Florian Weimer in:
20923         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20924         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20925         * lib/scratch_buffer_grow.c: Rename to
20926         lib/malloc/scratch_buffer_grow.c.
20927         * lib/scratch_buffer_grow_preserve.c: Rename to
20928         lib/malloc/scratch_buffer_grow_preserve.c.
20929         * lib/scratch_buffer_set_array_size.c: Rename to
20930         lib/malloc/scratch_buffer_set_array_size.c.
20931         * lib/scratch_buffer.h: New file.
20932         * modules/scratch_buffer (Files, Makefile.am):
20933         Adjust to source-file renaming.
20935 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20937         glob: use scratch_buffer instead of extend_alloca
20938         Much of the lib/glob.c part of this patch comes from a glibc patch
20939         proposed by Adhemerval Zanella in:
20940         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20941         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20942         included via glob.h, does this for us now.
20943         (__set_errno): Remove, as libc-config does this for us now.
20944         Include <scratch_buffer.h>.
20945         (GETPW_R_SIZE_MAX): Remove.
20946         (glob): Use struct scratch_buffer instead of extend_alloca.
20947         * lib/glob.in.h: Include libc-config.h rather than
20948         including <sys/cdefs.h> conditionally.
20949         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20950         (__glibc_unlikely, __restrict, weak_alias):
20951         Remove, as libc-config does this for us now.
20952         * m4/glob.m4 (gl_PREREQ_GLOB):
20953         Remove sys/cdefs.h tests; no longer needed.
20954         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20955         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20957         scratch_buffer: new module
20958         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20959         * lib/scratch_buffer_grow_preserve.c:
20960         * lib/scratch_buffer_set_array_size.c:
20961         New files, copied from glibc with very minor changes that can be
20962         copied back.
20963         * modules/scratch_buffer: New file.
20965         libc-config: new module
20966         * MODULES.html.sh: Add libc-config.
20967         * lib/cdefs.h: New file, copied from the GNU C Library with very
20968         minor changes that can be copied back.
20969         * lib/libc-config.h, modules/libc-config: New files.
20971 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20973         glob: match dangling symlinks
20974         This fixes a bug I inadvertently introduced to Gnulib when I
20975         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20976         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20977         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20978         * doc/posix-functions/glob.texi: Update list of affected platforms.
20979         * lib/glob.c (__lstat64): New macro.
20980         (is_dir): New function.
20981         (glob, glob_in_dir): Match symlinks even if they are dangling.
20982         (link_stat, link_exists_p): Remove.  All uses removed.
20983         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20984         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20985         * modules/glob-tests (Depends-on): Add symlink.
20986         * tests/test-glob.c: Include errno.h, unistd.h.
20987         (BASE): New macro.
20988         (main): Test dangling symlinks, if symlinks are supported.
20990         glob, backupfile: inode 0 is a valid inode number
20991         * doc/posix-functions/readdir.texi (readdir):
20992         * doc/posix-headers/dirent.texi (dirent.h):
20993         Document more readdir portability issues.
20994         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20995         (numbered_backup): Don’t treat inode 0 any differently from
20996         other inode values.
20997         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20998         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20999         All uses removed.
21000         * modules/glob (Depends-on): Remove d-ino.
21002         glob: simplify symlink detection
21003         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
21004         uint8_t, as C99 does not require uint8_t.
21005         (struct readdir_result): Use it.  Do not define skip_entry unless
21006         it is needed; this saves a byte on platforms lacking d_ino.
21007         (readdir_result_type, readdir_result_skip_entry):
21008         New functions, replacing ...
21009         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
21010         ... these functions, which were removed.  This makes the callers
21011         easier to read.  All callers changed.
21012         (D_INO_TO_RESULT): Now empty if there is no d_ino.
21014 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21016         fts-tests: tag as a longrunning-test so not included by default
21017         * modules/fts-tests: This test takes about 20s on current systems,
21018         and uses about 285M of space on ext4.
21020 2017-08-30  Pádraig Brady  <P@draigBrady.com>
21022         renameat2: fix compilation on alpine linux
21023         * m4/renameat.m4: Check for <linux/fs.h> presence.
21024         * lib/renameat2.h: Only include <linux/fs.h> if present.
21025         Reported by Assaf Gordon on Alpine Linux.
21027 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21029         glob: try to port recent changes to MS-Windows
21030         Problem reported by Bruno Haible in:
21031         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
21032         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
21033         * lib/glob.in.h (__glob_pattern_p): ... to here.
21035 2017-08-24  Eric Blake  <eblake@redhat.com>
21037         warnings: fix compilation with old autoconf
21038         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
21039         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
21040         AC_DEFUN.
21041         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
21042         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
21044 2017-08-24  Bruno Haible  <bruno@clisp.org>
21046         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
21047         * modules/glob (Depends-on): Add c99.
21049 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21051         glob: fix typo that broke platforms lacking d_ino
21052         This typo also hurt performance on GNU/Linux and similar hosts.
21053         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
21054         in previous change.
21056 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21058         glob: merge from glibc with Zanella glob changes
21059         Merge glob from glibc, with changes for glob proposed
21060         by Adhemerval Zanella in the thread starting here:
21061         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
21062         plus some fixes for this merge.
21063         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
21064         New files, ported from glibc.
21065         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
21066         with __restrict.
21067         (__size_t): Remove.  All uses replaced by size_t.
21068         (size_t): Define by defining __need_size_t and including <stddef.h>.
21069         This should work even in non-glibc platforms, where any name
21070         pollution is OK.
21071         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
21072         (struct stat64): Don’t worry about __GLOB_GNULIB.
21073         (glob, globfree, glob_pattern_p): Remove macros for
21074         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
21075         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
21076         but set errno.
21077         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
21078         removed since the glibc behavior works on null pointers.
21079         Do not include stdio.h; old SunOS is irrelevant now.
21080         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
21081         Include glob_internal.h.
21082         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
21083         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
21084         worked only coincidentally.
21085         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
21086         Remove macros; now done in glob.in.h.
21087         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
21088         (glob): Properly initialize glob structure with
21089         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
21090         Remove old code using SHELL since Bash no longer
21091         uses this.
21092         (glob, prefix_array): Separate MS code better.
21093         (glob, glob_in_dir): Use C99 decls before statements when glibc
21094         does.
21095         (glob_in_dir): Remove old Amiga and VMS code.
21096         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
21097         separate files.
21098         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
21099         (__glibc_unlikely):
21100         Move here from glob.c.
21101         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
21102         (weak_alias): New macro.
21103         (__size_t): Remove.  All uses replaced by size_t.
21104         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
21105         * modules/glob (Files): Add +lib/glob_internal.h,
21106         lib/glob_pattern_p.c, lib/globfree.c.
21107         (Depends-on): Remove snippet/arg-nonnull.
21109 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
21111         glob: port to clang's Undefined Sanitizer
21112         Problem reported by Tim Rühsen in:
21113         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
21114         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
21115         (glob_in_dir): Do not rely on undefined behavior in accessing
21116         struct members beyond their bounds.  Use a flexible array member
21117         instead.
21119 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
21121         vc-list-files: port to Solaris 10
21122         * build-aux/vc-list-files: Don't assume test -e works.
21124 2017-08-21  Karl Berry  <karl@freefriends.org>
21126         * doc/posix-functions/srandom.texi (srandom): typo }.
21128 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21130         git-version-gen: port to Solaris 10
21131         Problem reported by Dagobert Michelsen in:
21132         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
21133         * build-aux/git-version-gen (v_from_git):
21134         Use expr instead of shell substitution.
21136 2017-08-19  Bruno Haible  <bruno@clisp.org>
21138         host-cpu-c-abi: Improve detection of MIPS ABI.
21139         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
21140         _MIPS_SIM.
21142 2017-08-17  Bruno Haible  <bruno@clisp.org>
21144         hypot tests: Fix test failure on FreeBSD 11.0/x86.
21145         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
21147 2017-08-17  Bruno Haible  <bruno@clisp.org>
21149         float: Fix LDBL_MIN value on FreeBSD/x86.
21150         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
21152 2017-08-17  Bruno Haible  <bruno@clisp.org>
21154         random: Fix test compilation failure on Cygwin 1.5.25.
21155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
21156         HAVE_DECL_SETSTATE.
21157         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
21158         declared.
21159         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
21160         HAVE_DECL_SETSTATE.
21161         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
21162         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
21163         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
21164         * doc/posix-functions/random.texi: Likewise.
21165         * doc/posix-functions/setstate.texi: Likewise.
21166         * doc/posix-functions/srandom.texi: Likewise.
21168 2017-08-16  Bruno Haible  <bruno@clisp.org>
21170         stdnoreturn: Fix test compilation failure on Cygwin.
21171         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
21172         <stdnoreturn.h> replacement.
21173         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
21174         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
21176 2017-08-16  Bruno Haible  <bruno@clisp.org>
21178         thread: Fix conflict with pthread_sigmask module.
21179         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
21180         it's defined as a macro.
21181         * modules/thread (Depends-on): Add pthread_sigmask.
21183 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21185         rename: port better to NetBSD
21186         * doc/posix-functions/rename.texi (rename): NetBSD 7
21187         does not have the link-count bug.
21188         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
21189         broken merely because rename ("a", "b") removes "a" when the two
21190         names are hard links to the same file.
21192 2017-08-16  Bruno Haible  <bruno@clisp.org>
21194         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
21195         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
21196         the target file names with '$(srcdir)/'.
21197         * modules/unicase/locale-language (Makefile.am): Likewise.
21198         * modules/unicase/special-casing (Makefile.am): Likewise.
21199         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
21200         * modules/unictype/category-byname (Makefile.am): Likewise.
21201         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
21202         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
21203         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
21204         * modules/unictype/property-byname (Makefile.am): Likewise.
21205         * modules/unictype/scripts (Makefile.am): Likewise.
21206         * modules/uninorm/composition (Makefile.am): Likewise.
21208 2017-08-16  Bruno Haible  <bruno@clisp.org>
21210         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
21211         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
21212         value for OpenBSD.
21214 2017-08-16  Bruno Haible  <bruno@clisp.org>
21216         rename, renameat: Update doc regarding NetBSD.
21217         * doc/posix-functions/rename.texi: Clarify that when using
21218         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
21219         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
21220         version.
21222 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21224         renameat2: port better to macOS
21225         * lib/renameat2.c (renameat2): Use renameatx_np if available.
21227         futimens: don’t assume struct timespec layout
21228         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
21229         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
21230         * tests/test-fdutimensat.c (main):
21231         * tests/test-futimens.h (test_futimens):
21232         * tests/test-lutimens.h (test_lutimens):
21233         * tests/test-utimens.h (test_utimens):
21234         * tests/test-utimensat.c (main):
21235         Don’t assume that struct timespec is a two-member structure in
21236         tv_sec, tv_nsec order.  Although this is true on all platforms we
21237         know about, POSIX does not guarantee it.
21239         rename: document+test NetBSD rename
21240         Test failure reported by Bruno Haible in:
21241         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
21242         This is an area where NetBSD is better-behaved than POSIX,
21243         so allow the NetBSD behavior in tests.
21244         * doc/posix-functions/rename.texi:
21245         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
21246         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
21248 2017-08-15  Bruno Haible  <bruno@clisp.org>
21250         renameat: Ensure declaration in <stdio.h> on NetBSD.
21251         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
21252         * doc/posix-functions/renameat.texi: Mention this problem.
21254 2017-08-15  Bruno Haible  <bruno@clisp.org>
21256         duplocale: Work around NetBSD 7.0 bug.
21257         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21258         * lib/duplocale.c: Add comment about NetBSD problem.
21259         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21261 2017-08-15  Bruno Haible  <bruno@clisp.org>
21263         duplocale tests: Verify use with *_l functions.
21264         * modules/duplocale-tests (configure.ac): Test for uselocale and
21265         some *_l functions.
21266         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21267         from main.
21268         (get_locale_dependent_values_from, test_with_locale_parameter): New
21269         functions.
21270         (main): Test both test_with_uselocale and test_with_locale_parameter.
21272 2017-08-15  Bruno Haible  <bruno@clisp.org>
21274         extensions: Enable NetBSD specific extensions.
21275         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21277 2017-08-14  Bruno Haible  <bruno@clisp.org>
21279         open, openat: Update doc about O_CLOEXEC.
21280         * doc/posix-functions/open.texi: More concrete list of platforms.
21281         * doc/posix-functions/openat.texi: Likewise.
21283 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21285         open: support O_CLOEXEC
21286         * NEWS, doc/posix-functions/open.texi:
21287         * doc/posix-functions/openat.texi: Document this.
21288         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21289         (GNULIB_defined_O_CLOEXEC): New symbol.
21290         * lib/open.c: Include cloexec.h.
21291         (open): Support O_CLOEXEC.
21292         * lib/openat.c: Include cloexec.h.
21293         (rpl_openat): Support O_CLOEXEC.
21294         * lib/popen-safer.c: Do not include cloexec.h.
21295         (open_noinherit): Remove.
21296         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21297         * lib/save-cwd.c: Do not include cloexec.h.
21298         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21299         * m4/open-cloexec.m4: New file.
21300         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21301         Replace 'open' if O_CLOEXEC is not present.
21302         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21303         Replace 'openat' if O_CLOEXEC is not present.
21304         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21305         * modules/open (Files): Add m4/open-cloexec.m4.
21306         (Depends-on): Depend on cloexec if replacing 'open'.
21307         * modules/openat (Files): Add m4/open-cloexec.m4.
21308         (Depends-on): Depend on cloexec if replacing openat.
21309         * modules/popen-safer (Depends-on): Remove cloexec.
21310         * modules/save-cwd (Depends-on): Remove cloexec, and add
21311         fd-safer-flag and 'open'.
21313 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21315         reallocarray: minor fixes
21316         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21317         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21318         * modules/reallocarray (License): Change from GPL to LGPL.
21319         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21320         Indent properly and don't use tabs.
21322 2017-08-13  Darshit Shah  <darnir@gnu.org>
21324         reallocarray: New module
21325         reallocarray is a new function in glibc 2.26 to safely allocate an array
21326         of memory locations with integer overflow protection.
21327         * MODULES.html.sh: Add reallocarray.
21328         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21329         * lib/reallocarray.c: New file to implement module reallocarray.
21330         * lib/stdlib.in.h: Add function declarations for reallocarray.
21331         * m4/reallocarray.m4: New file.
21332         * m4/stdlib_h.m4: Declare reallocarray.
21333         * modules/reallocarray: New file.
21334         * modules/reallocarray-test: New file.
21335         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21336         * tests/test-reallocarray.c: New test.
21338 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21340         dirent-safer: fix cloexec race
21341         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21342         (opendir_safer): Use F_DUPFD_CLOEXEC.
21343         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21344         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21345         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21346         instead of dup_safer.
21348         fts: fix cloexec races
21349         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21350         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21351         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21352         (fd_ring_check): Set cloexec flag on new file descriptors.
21353         (fts_build, fd_ring_check): While we’re at it, make sure the
21354         resulting file descriptor is not 0, 1, or 2, since that is easy.
21356 2017-08-11  Bruno Haible  <bruno@clisp.org>
21358         fts tests: Fix link error.
21359         Reported by Tom G. Christensen in
21360         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21361         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21363 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21365         fts: port recent changes to CentOS 6
21366         Problem reported by Tom G. Christensen in:
21367         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21368         * lib/fts.c (fsword): New type.
21369         (struct dev_type, filesystem_type): Use it.
21370         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21371         Also, check for f_type only if fstatfs and sys/vfs.h work.
21373 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21375         tempname: do not depend on secure_getenv
21376         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21377         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21378         * modules/tempname (Depends-on): Remove secure_getenv.
21380 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21382         extensions: add _OPENBSD_SOURCE
21383         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21385 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21386             Bruno Haible  <bruno@clisp.org>
21388         manywarnings: Add support for C++.
21389         * build-aux/g++-warning.spec: New file.
21390         * m4/manywarnings-c++.m4: New file.
21391         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21392         redirects to manywarnings-c++.m4.
21393         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21395 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21397         git-version-gen: another fix for tags with "-"
21398         * build-aux/git-version-gen: Improve fix for tags containing "-".
21399         Suggested by Markus Armbruster in:
21400         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21402 2017-08-06  Bruno Haible  <bruno@clisp.org>
21404         warnings, manywarnings: Add support for multiple languages, not just C.
21405         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21406         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21407         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21408         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21409         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21410         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21411         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21412         of the current language. If C++ is the current language, modify
21413         WARN_CXXFLAGS instead of WARN_CFLAGS.
21414         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21415         gl_MANYWARN_ALL_GCC.
21416         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21418 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21420         git-version-gen: Fix for tags containing '-'
21422         Really old versions of git-describe (before v1.5.0, Feb 2007)
21423         don't have the number of commits in their long format output,
21424         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21425         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21426         recognizes both patterns, and normalizes the old format to the new one.
21428         Unfortunately, this normalization code gets confused when the tag
21429         contains '-'.  Reproducer:
21431             $ git-tag -m test v0.2-rc1
21432             $ build-aux/git-version-gen .tarball-version; echo
21433             build-aux/git-version-gen: WARNING: git rev-list failed
21434             UNKNOWN
21436         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21437         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21438         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21440         * git-version-gen: We could perhaps drop support for versions from
21441         more than a decade ago.  But tightening the pattern match is easy
21442         enough, so do that.  Still breaks when you use version tags ending in
21443         something matching -g????, but you arguably get what you deserve then.
21445 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21447         valgrind-tests: use ls, and cache
21448         * m4/valgrind-tests.m4: Test ls, not bash.
21449         Problem reported by Reuben Thomas.
21450         Also, cache the result so that it can be overridden.
21452 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21454         manywarnings: port to 64-bit GCC builds of Emacs
21455         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21456         object size rather than hardwiring 2147483647.  This is needed to
21457         build GNU Emacs, which has one conditional (and used
21458         only-in-theory) call to malloc with a literal greater than
21459         2147483647.
21461 2017-08-04  Bruno Haible  <bruno@clisp.org>
21463         Relax the license of some modules with no runtime code.
21464         * modules/std-gnu11 (License): Set to 'unlimited'.
21465         * modules/c99 (License): Likewise.
21466         Reported by Reuben Thomas <rrt@sc3d.org>.
21467         * modules/d-ino (License): Set to 'LGPL'.
21468         * modules/host-os (License): Likewise.
21469         * modules/longlong (License): Likewise.
21471 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21473         renameat2: port to RHEL 7 + NFS
21474         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21475         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21476         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21478 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21480         renameat2: port to non-renameat platforms
21481         Problem reported for MSVC-2015 by Gisle Vanem in:
21482         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21483         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21484         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21486 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21488         manywarnings: port to 32-bit GCC bug
21489         Problem reported by Pino Toscano in:
21490         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21491         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21492         not 2**63 - 1, to work around the following GCC bug:
21493         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21495 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21497         backupfile: new function to validate backup suffix
21498         * lib/backupfile.c (set_simple_backup_suffix): New function.
21499         (backupfile_internal): Use it.
21501         canonicalize: fix EOVERFLOW commentary
21502         Problem reported by Bruno Haible in:
21503         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21504         * lib/canonicalize.c (canonicalize_filename_mode):
21505         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21507         Don't interpret EOVERFLOW to mean nonexistence
21508         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21509         may be EOVERFLOW; this is likely more useful than reporting the
21510         stat errno.
21511         * lib/glob.c (link_stat): Rename from link_exists2_p and
21512         return -1/0 instead of 0/1.  Caller changed.
21513         * lib/glob.c (link_exists_p):
21514         * lib/renameat2.c (rename_noreplace, renameat2):
21515         * lib/tempname.c (try_nocreate):
21516         If errno == EOVERFLOW then the directory entry exists, so do not
21517         act as if it does not exist.
21519         backup-rename: new module
21520         It is like backupfile, except it avoids some race conditions,
21521         and it does not output to stderr or exit.
21522         * MODULES.html.sh: Add backup-rename.
21523         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21524         * modules/backup-rename: New files.
21525         * lib/backupfile.c: Turn this into an internals file, which
21526         contains code common to backupfile and backup_rename.  Include
21527         backupfile-internal.h instead of backupfile.h.  Do not include
21528         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21529         renameat2.h and fcntl.h.
21530         (BACKUP_NOMEM): New constant.
21531         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21532         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21533         (backupfile_internal): Rename from find_backup_file_name.
21534         Support new arg RENAME.
21535         (backup_args, backup_types, get_version, xget_version):
21536         Move to lib/backup-find.c.
21537         * lib/backupfile.h (backup_file_rename): New decl.
21538         * modules/backupfile (Files): Add lib/backup-internal.h,
21539         lib/backup-find.c.
21540         (Depends-on): Add dirfd, fcntl, renameat2.
21541         (lib_SOURCES): Add backup-find.c.
21543         renameat2: port better to older Solaris
21544         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21545         Add goto to use a label, to silence picky compilers.
21547         fts-tests: port to gcc -Wwrite-strings
21548         * tests/test-fts.c (base, base_d): New static vars.
21549         (argv, remove_tree, main): Use them.
21551 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21553         relocatable-lib{,-lgpl}: improve documentation
21554         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21555         Various other updates.
21557 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21558             Bruno Haible  <bruno@clisp.org>
21560         relocatable-lib{,-lgpl}: add Valgrind suppressions
21561         * lib/relocatable.valgrind: New file.
21562         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21563         * modules/relocatable-lib-lgpl: Likewise.
21565 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21567         relocatable: Make the license on the sources the GPL.
21568         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21569         LGPL, which was a special case so that the relocatable source files
21570         could be used without gnulib-tool, to GPL. They can still be used under
21571         the LGPL, using the --lgpl option to gnulib-tool.
21573 2017-07-30  Bruno Haible  <bruno@clisp.org>
21575         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21576         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21577         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21578         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21579         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21581 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21583         faccessat: document AT_SYMLINK_NOFOLLOW issue
21584         * doc/posix-functions/faccessat.texi: Modernize platform list.
21585         Document AT_SYMLINK_NOFOLLOW limitation.
21587         renameat2: port to Solaris 10
21588         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21589         with AT_SYMLINK_NOFOLLOW (which is not portable).
21590         (renameat): Undef before using, to avoid endless recursion when
21591         the replacement renameat calls renameat2 which calls the
21592         replacement renameat.
21593         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21594         * modules/renameat2 (Depends-on): Remove faccessat.
21595         * modules/renameat-tests (test_renameat_LDADD):
21596         * modules/renameat2-tests (test_renameat2_LDADD):
21597         Remove $(LIB_EACCESS).
21599         renameat2: new module
21600         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21601         useful to have access to its RENAME_NOREPLACE flag.
21602         * MODULES.html.sh (func_all_modules): Add renameat2.
21603         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21604         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21605         * lib/renameat.c (renameat): Move most of the implementation
21606         to renameat2, and just call renameat2.
21607         * modules/renameat (Files): Remove lib/at-func2.c.
21608         (Depends-on): Depend only on renameat2.
21609         (Include): Remove <fcntl.h>.
21610         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21611         since renameat (via renameat2) might use faccessat.
21613 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21615         vc-list-files: Adjust the script to support git worktrees
21616         * build-aux/vc-list-files: Require existence, not directory.
21618 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21620         doc: bring MODULES.html.sh up to date
21621         Somehow a few months ago we stopped updating MODULES.html.sh.
21622         I don’t recall explicitly deciding this, so I updated it now.
21623         Alternatively I suppose we could remove it.
21624         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21625         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21626         truncate, utime, utime-h, windows-stat-inodes,
21627         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21629 2017-07-26  Jim Meyering  <meyering@fb.com>
21631         fprintftime: fix build-break caused by recent renaming
21632         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21633         "strftime.c".
21634         * modules/fprintftime: Depend directly on nstrftime.
21636 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21638         regex: work with GCC7's -Werror=implicit-fallthrough=
21639         * lib/regex_internal.h (FALLTHROUGH): New macro.
21640         * lib/regcomp.c (peek_token_bracket, parse_expression):
21641         * lib/regexec.c (check_node_accept): Use it.
21643 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21645         fts: simplify fts_build
21646         * lib/fts.c (fts_build): Simplify, and be lazier about
21647         calling leaf_optimization.
21649         fts: three levels of leaf optimization
21650         * lib/fts.c (enum leaf_optimization): New type with three values.
21651         (S_MAGIC_AFS): New macro.  Sort them.
21652         (leaf_optimization): Rename from leaf_optimization_applies, and
21653         return enum leaf_optimization instead of bool.  All uses changed.
21654         Add cases for unknown type and for AFS.
21655         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21657         fts: cache dirent_inode_sort_may_be_useful too
21658         * lib/fts.c (struct dev_type): New struct.
21659         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21660         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21661         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21662         Now takes FTSENT const *, not int.  All uses changed.  Use
21663         filesystem_type to cache.
21664         (link_count_optimize_ok): Remove.  Caller changed to use
21665         leaf_optimization_applies, which now uses shared cache.
21667         fts: introduce MIN_DIR_NLINK
21668         * lib/fts.c (MIN_DIR_NLINK): New constant.
21669         Use it instead of 2, whenever we are talking about link counts.
21671         fts: nlink_t signedness fixups
21672         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21673         so that root need not be a special case later.
21674         (fts_read): Remove now-redundant test for fts_level.
21675         Do not assume that nlink_t is signed.
21676         (fts_build): Remove useless decrement of nlinks.
21677         (fts_stat): Avoid unlikely signed integer overflow later, if
21678         nlink_t is signed.
21680         fts-tests: new module
21681         * modules/fts-tests, tests/test-fts.c: New files.
21683 2017-07-23  Bruno Haible  <bruno@clisp.org>
21685         Rename module 'strftime' to 'nstrftime'.
21686         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21687         * lib/nstrftime.c: Renamed from lib/strftime.c.
21688         * modules/nstrftime: Renamed from modules/strftime.
21689         (Files, Makefile.am): Update.
21690         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21691         Fix comment.
21692         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21693         (Files, Makefile.am): Update.
21694         * modules/strftime: New file, an obsolete indirection.
21695         * doc/posix-functions/strftime.texi: Update reference.
21696         * config/srclist.txt: Update info.
21697         * NEWS: Mention the change.
21699 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21701         malloca: Silence a warning from clang's memory sanitizer.
21702         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21703         (freea): Use it.
21705 2017-07-18  Bruno Haible  <bruno@clisp.org>
21707         host-cpu-c-abi: Fix detection of MIPS ABI.
21708         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21709         ABI, not the CPU instruction set.
21711 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21713         explicit_bzero: new module
21714         The explicit_bzero function has been added to glibc.
21715         This module is intended to supports its use in GNU programs.
21716         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21717         * m4/explicit_bzero.m4, modules/explicit_bzero:
21718         New files.
21719         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21720         * lib/string.in.h (explicit_bzero): Declare.
21721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21722         * modules/string (string.h): Substitute its vars.
21724 2017-07-16  Bruno Haible  <bruno@clisp.org>
21726         threadlib: Support static linking.
21727         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21728         set gl_cv_have_weak to 'no'.
21730 2017-07-16  Bruno Haible  <bruno@clisp.org>
21732         unicase/locale-language: Fix link dependencies.
21733         * modules/unicase/locale-language (Link): New section.
21734         * modules/unicase/locale-language-tests (Makefile.am): Link
21735         test-locale-language program with $(LIBTHREAD).
21737 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21739         sys_socket: Add support for OpenVMS.
21740         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21741         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21743 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21745         sys_resource: Add support for OpenVMS.
21746         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21747         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21749 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21750             Bruno Haible  <bruno@clisp.org>
21752         math: Add support for OpenVMS.
21753         * lib/math.in.h [__VMS]: Include <fp.h>.
21754         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21756 2017-07-15  Bruno Haible  <bruno@clisp.org>
21758         getdtablesize: Add minimal support for OpenVMS.
21759         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21760         * modules/getdtablesize (Description): Fix.
21761         * lib/getdtablesize.c: Fix comment.
21762         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21763         getdtablesize() function, even though the test fails.
21764         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21765         limitation on OpenVMS.
21767 2017-07-13  Bruno Haible  <bruno@clisp.org>
21769         Revisit cross-compilation guesses.
21770         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21772 2017-07-13  Bruno Haible  <bruno@clisp.org>
21774         Improve cross-compilation guesses for native Windows.
21775         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21776         Windows.
21777         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21778         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21779         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21780         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21781         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21782         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21783         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21784         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21785         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21786         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21787         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21788         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21789         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21790         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21791         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21792         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21793         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21795         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21796         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21797         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21798         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21799         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21800         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21801         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21802         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21803         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21804         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21805         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21806         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21807         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21808         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21809         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21810         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21811         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21812         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21813         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21814         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21815         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21816         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21819         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21820         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21821         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21822         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21823         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21824         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21825         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21826         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21827         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21828         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21829         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21830         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21831         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21832         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21833         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21834         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21835         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21836         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21838         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21839         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21840         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21841         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21843         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21844         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21845         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21846         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21847         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21848         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21849         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21850         * m4/regex.m4 (gl_REGEX): Likewise.
21851         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21852         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21853         gl_FUNC_REMAINDERF_WORKS): Likewise.
21854         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21855         gl_FUNC_REMAINDERL_WORKS): Likewise.
21856         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21857         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21858         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21859         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21860         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21861         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21862         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21863         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21864         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21865         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21866         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21867         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21868         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21869         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21870         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21871         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21873         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21874         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21875         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21876         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21877         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21878         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21879         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21880         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21881         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21882         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21883         Likewise.
21884         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21885         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21886         Windows. Enable also on Autoconf 2.70.
21887         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21888         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21889         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21890         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21891         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21892         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21893         for native Windows.
21894         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21895         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21897 2017-07-13  Bruno Haible  <bruno@clisp.org>
21899         Improve cross-compilation guesses for native Windows.
21900         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21901         Windows.
21902         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21903         memchr.m4.
21904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21906 2017-07-13  Bruno Haible  <bruno@clisp.org>
21908         Improve cross-compilation guesses for native Windows.
21909         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21910         native Windows.
21911         (gl_FUNC_FFLUSH): Update accordingly.
21912         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21913         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21915 2017-07-11  Bruno Haible  <bruno@clisp.org>
21917         More systematic m4 quoting and indentation.
21918         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21919         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21920         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21921         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21922         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21923         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21924         gl_WINSIZE_IN_PTEM): Likewise.
21925         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21926         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21927         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21928         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21929         Correct indentation.
21930         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21931         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21932         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21933         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21934         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21935         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21937 2017-07-10  Bruno Haible  <bruno@clisp.org>
21939         round, roundf: Avoid compiler warning in configure test.
21940         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21941         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21943 2017-07-10  Bruno Haible  <bruno@clisp.org>
21945         getlogin tests: Avoid #ifdefs when sharing code between modules.
21946         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21947         * modules/getlogin-tests (Files): Likewise. Remove
21948         tests/test-getlogin_r.c.
21949         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21950         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21951         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21952         getlogin().
21954 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21956         getlogin: don’t assume one name per uid
21957         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21958         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21959         (ttyname): Remove test.
21960         * modules/getlogin_r-tests (ttyname): Remove test.
21961         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21962         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21963         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21964         getlogin rather than getlogin_r.  This avoids code duplication.
21965         (main): Use isatty and fstat rather than ttyname and stat.
21966         Use getpwnam instead of getpwuid, to be portable to test platforms
21967         that have multiple login names for the same uid.
21969 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21970             Bruno Haible  <bruno@clisp.org>
21972         glob: Fix more memory leaks.
21973         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21974         returning.
21975         Reported by Tim Rühsen.
21977 2017-07-10  Bruno Haible  <bruno@clisp.org>
21979         Make sure $host and $host_os are defined when used.
21980         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21981         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21982         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21983         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21984         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21985         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21986         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21987         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21988         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21989         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21990         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21991         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21992         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21993         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21994         m4_ifdef block.
21996 2017-07-09  Bruno Haible  <bruno@clisp.org>
21998         *printf: Fix cross-compilation guess for Solaris.
21999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
22000         2010-12-21.
22002 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22003             Bruno Haible  <bruno@clisp.org>
22005         vasnprintf: port to macOS 10.13
22006         Problem reported by comex in:
22007         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
22008         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
22010 2017-07-06  Bruno Haible  <bruno@clisp.org>
22012         imaxdiv tests: Fix logic.
22013         * tests/test-imaxdiv.c (main): Use == instead of =.
22014         Reported by Coverity.
22016 2017-07-06  Bruno Haible  <bruno@clisp.org>
22018         uninorm/filter: Fix use-after-free bug.
22019         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
22020         sortbuf == filter->sortbuf invariant.
22021         Reported by Coverity.
22023 2017-07-06  Bruno Haible  <bruno@clisp.org>
22025         glob: Fix more memory leaks.
22026         * lib/glob.c (glob): Free dirname before returning.
22027         Reported by Coverity and Tim Rühsen.
22029 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22031         parse-datetime: fix uninit var bug
22032         Reported by Bruno Haible in:
22033         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
22034         * lib/parse-datetime.y (parse_datetime2): Do not use
22035         uninitialized.
22037 2017-07-05  Bruno Haible  <bruno@clisp.org>
22039         doc: Update for MSVC 14.
22040         * doc/posix-headers/*.texi: Add info about MSVC 14.
22041         * doc/posix-functions/*.texi: Likewise.
22042         * doc/pastposix-functions/*.texi: Likewise.
22043         * doc/glibc-headers/*.texi: Likewise.
22044         * doc/glibc-functions/*.texi: Likewise.
22046 2017-07-05  Bruno Haible  <bruno@clisp.org>
22048         sched: Fix build failure on native Windows (regression from 2017-06-19).
22049         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
22051 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
22053         stdioext: Port to OpenVMS.
22054         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
22055         * lib/fpending.c (fpending): Remove non-working VMS specific code.
22056         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
22057         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
22058         * lib/fpurge.c (fpurge): Likewise.
22059         * lib/freadable.c (freadable): Likewise.
22060         * lib/freadahead.c (freadahead): Likewise.
22061         * lib/freading.c (freading): Likewise.
22062         * lib/freadptr.c (freadptr): Likewise.
22063         * lib/freadseek.c (freadseek): Likewise.
22064         * lib/fseeko.c (fseeko): Likewise.
22065         * lib/fseterr.c (fseterr): Likewise.
22066         * lib/fwritable.c (fwriteable): Likewise.
22067         * lib/fwriting.c (fwriting): Likewise.
22069 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
22071         glob: Declare variables at the very start of their scope.
22072         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
22073         its separate scope, so the functions will compile on Haiku.
22075 2017-07-01  Bruno Haible  <bruno@clisp.org>
22077         logbl: Work around a glibc bug on PowerPC64LE.
22078         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
22079         numbers.
22080         * doc/posix-functions/logbl.texi: Update.
22082 2017-06-29  Bruno Haible  <bruno@clisp.org>
22084         stat, fstat: Compile stat-w32.c only on platforms that need it.
22085         Suggested by Paul Eggert.
22086         * modules/stat (configure.ac): Request stat-w32.o only on native
22087         Windows.
22088         * modules/fstat (configure.ac): Likewise.
22090 2017-06-25  Bruno Haible  <bruno@clisp.org>
22092         stat: Improve last change.
22093         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
22095 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
22097         stat: port to xlc 12.01
22098         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
22099         12.01 complains "Compilation unit is empty."
22101 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22103         xalloc-oversized: port to icc
22104         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
22105         __builtin_mul_overflow if ICC is defined, as this results in
22106         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
22107         20170213.
22109 2017-06-19  Bruno Haible  <bruno@clisp.org>
22111         classpath: Avoid including config.h twice, as it produces warnings.
22112         Reported by John E. Malmberg <wb8tyw@gmail.com>.
22113         * lib/classpath.h: Conditionalize the include of config.h.
22115 2017-06-19  Bruno Haible  <bruno@clisp.org>
22116             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
22118         sched: Fix compilation failure on OpenVMS.
22119         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
22120         test whether <pthread.h> exists and defines struct sched_param.
22121         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
22123 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
22125         diffseq: port to GCC 7 with --enable-gcc-warnings
22126         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
22127         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
22128         not complain about big_snake being defined but not used.
22130 2017-06-15  Bruno Haible  <bruno@clisp.org>
22132         gettext-h: Update theoretical condition for use of variable size arrays.
22133         Reported by Paul Eggert.
22134         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
22135         to include the theoretical condition for availability of variable size
22136         arrays, if we could trust the value of __STDC_VERSION__.
22138 2017-06-12  Bruno Haible  <bruno@clisp.org>
22140         Relicense some modules under LGPLv2+.
22141         Daiki Ueno's approval is in
22142         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
22143         * modules/uniwidth/base (License): Change to LGPLv2+.
22144         * modules/uniwidth/width (License): Likewise.
22146 2017-06-11  Bruno Haible  <bruno@clisp.org>
22148         localename: Fix test failure on DragonFly BSD.
22149         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
22150         like FreeBSD.
22152 2017-06-11  Bruno Haible  <bruno@clisp.org>
22154         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
22155         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
22156         * lib/float.in.h: Likewise.
22157         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
22159 2017-06-11  Bruno Haible  <bruno@clisp.org>
22161         gnulib-tool: Clean up after autotools.
22162         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
22163         useless directory left over by the Autotools.
22165 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
22167         getopt-posix: port to glibc 2.25.90
22168         Problem reported by Daniel P. Berrange in:
22169         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
22170         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
22171         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
22172         #undef if __GETOPT_PREFIX is defined.
22174 2017-06-11  Bruno Haible  <bruno@clisp.org>
22176         strtod-obsolete: Fix license.
22177         * modules/strtod-obsolete (License): Change to LGPL.
22179 2017-06-10  Jim Meyering  <meyering@fb.com>
22181         maint: update to work with GCC7's -Werror=implicit-fallthrough=
22182         * lib/savewd.c (FALLTHROUGH): Define.
22183         (savewd_save, savewd_restore): Use this, rather than a comment,
22184         whenever one switch case falls through into the next.
22186 2017-06-08  Bruno Haible  <bruno@clisp.org>
22188         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
22189         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
22190         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
22191         case.
22193 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
22195         doc: remove robots, add prereqs
22196         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
22197         builds.  Simon's robot site does not seem to be up, so remove
22198         mentions of it for now.
22200 2017-06-08  Bruno Haible  <bruno@clisp.org>
22202         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
22203         * gnulib-tool (func_symlink_target): New function, extracted from
22204         func_symlink.
22205         (func_symlink, func_symlink_if_changed): Use it.
22207 2017-06-08  Bruno Haible  <bruno@clisp.org>
22209         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
22210         * gnulib-tool (func_ln_s): Determine cp_src correctly.
22212 2017-06-07  Bruno Haible  <bruno@clisp.org>
22214         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
22215         Reported by John E. Malmberg <wb8tyw@gmail.com> in
22216         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
22217         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
22218         override, pass 2 arguments to getcwd, not 3.
22220 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
22222         same-inode: port better to VMS 8.2 and later
22223         Problem reported by John E. Malmberg in:
22224         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
22225         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
22226         Use the usual POSIX definition.
22227         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
22229 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
22231         error: fix POSIX violation for va_end
22232         Problem reported by Bruno Haible in:
22233         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
22234         * lib/error.c (error_tail): Do not call va_end here.
22235         (error, error_at_line): Call it here instead.
22237 2017-05-28  Bruno Haible  <bruno@clisp.org>
22239         c-strtod: Make it usable in C++ mode.
22240         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
22242 2017-05-25  Jim Meyering  <meyering@fb.com>
22244         quotearg: fix compilation failure due to FALLTHROUGH misuse
22245         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
22246         macro back to /* fall through */ comment.  The macro can apply only
22247         to a following case statement.  Reported by Assaf Gordon.
22249 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
22251         intprops: port to recent icc
22252         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
22253         but does not support __builtin_add_overflow etc.
22254         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22255         Define to 0.
22257 2017-05-23  Karl Berry  <karl@freefriends.org>
22259         * config/srclist.txt (iconv.m4): sync broken, comment out
22260         until (hopefully) the next gettext release.
22262 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22264         Remove repeated words in comments.
22266 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22268         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22269         quotearg.c: Reinstate this instance which is significant
22270         when the if branch is not taken.
22272 2017-05-21  Bruno Haible  <bruno@clisp.org>
22274         gnulib-tool: Add options to create hard links.
22275         * gnulib-tool (func_usage): Document options --hardlink,
22276         --local-hardlink, --more-hardlinks.
22277         (func_symlink): Renamed from func_ln.
22278         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22279         (func_hardlink): New function.
22280         (copymode, lcopymode): New variables.
22281         (symbolic, lsymbolic): Remove variables.
22282         (Options): Implement options --hardlink, --local-hardlink,
22283         --more-hardlinks.
22284         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22285         (func_add_file, func_update_file): Update invocation of
22286         func_should_link. Invoke func_hardlink when appropriate.
22287         (func_import): Update comments.
22288         (func_create_testdir): Update invocation of func_should_link. Invoke
22289         func_hardlink when appropriate.
22290         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22291         the hard links on git.
22293 2017-05-20  Bruno Haible  <bruno@clisp.org>
22295         argp: Simplify bit manipulation.
22296         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22297         on a signed integer type.
22299 2017-05-20  Bruno Haible  <bruno@clisp.org>
22301         Avoid wrong configure results with gcc -fsanitize=address.
22302         This completes the work done on 2016-02-06 on this topic.
22303         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22304         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22305         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22306         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22307         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22308         returning.
22309         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22310         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22311         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22312         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22313         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22314         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22315         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22316         free allocated memory before returning.
22317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22318         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22319         objects before returning.
22320         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22321         returning.
22323 2017-05-20  Bruno Haible  <bruno@clisp.org>
22325         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22326         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22328 2017-05-20  Bruno Haible  <bruno@clisp.org>
22330         argp, tsearch tests: Fix file list.
22331         * modules/argp-tests (Files): Add tests/macros.h.
22332         * modules/tsearch-tests (Files): Likewise.
22334 2017-05-20  Bruno Haible  <bruno@clisp.org>
22336         getopt-posix tests: Remove redundant include.
22337         * tests/test-getopt.h: Don't include "macros.h". It's already included
22338         by tests/test-getopt-main.h.
22340 2017-05-19  Jim Meyering  <meyering@fb.com>
22342         dfa: two small simplifications
22343         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22345 2017-05-18  Jim Meyering  <meyering@fb.com>
22347         fallthrough: update for GCC 7/8
22348         * lib/quotearg.c (FALLTHROUGH): New macro.
22349         Use it whenever one switch case falls through into the next,
22350         replacing "/* Fall through */" comments.  This exposed one
22351         instance of an unwarranted "fall through" comment: unwarranted
22352         because it preceded a "goto" label not a case statement.
22353         * lib/freopen-safer.c (freopen_safer): Likewise.
22354         * lib/fts.c (leaf_optimization_applies): Likewise.
22355         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22356         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22357         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22358         tests/macros.h for the definition.
22359         * tests/test-argp.c (group1_parser): Likewise.
22360         * tests/test-getopt.h (getopt_loop): Likewise.
22362 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22364         argp: fix shift bug
22365         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22366         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22368         argp: fix pointer-subtraction bug
22369         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22370         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22371         See the thread containing Bruno Haible’s report in:
22372         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22374 2017-05-19  Bruno Haible  <bruno@clisp.org>
22376         printf-posix tests: Avoid test failure with "gcc --coverage".
22377         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22378         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22379         than 5000000.
22380         * tests/test-fprintf-posix2.c (main): Likewise.
22382 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22384         closeout: don’t close stderr when sanitizing
22385         * NEWS: Document this.
22386         * lib/closeout.c (__has_feature): New macro, if not already defined.
22387         (SANITIZE_ADDRESS): New constant.
22388         (close_stdout): Don’t close stderr if sanitizing addresses.
22390 2017-05-19  Bruno Haible  <bruno@clisp.org>
22392         get-rusage-data tests: Avoid failure on Linux/glibc.
22393         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22394         on glibc systems.
22396 2017-05-18  Bruno Haible  <bruno@clisp.org>
22398         localename: Include necessary header files on Cygwin.
22399         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22400         where NL_LOCALE_NAME is defined.
22402 2017-05-18  Bruno Haible  <bruno@clisp.org>
22404         gettext: Update macros from gettext git.
22405         * m4/intldir.m4: Require Autoconf >= 2.60.
22406         * m4/progtest.m4: Fix typos in copyright notice.
22408 2017-05-18  Bruno Haible  <bruno@clisp.org>
22410         copy-file tests: Fix link error (regression from 2017-05-01).
22411         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22412         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22413         $(LIB_CLOCK_GETTIME).
22415 2017-05-18  Bruno Haible  <bruno@clisp.org>
22417         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22418         (regression from 2017-02-13).
22419         * lib/unicase/special-casing.in.h: Renamed from
22420         lib/unicase/special-casing.h.
22421         * modules/unicase/special-casing (Files): Add
22422         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22423         (Makefile.am): Add rule for generating unicase/special-casing.h.
22424         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22425         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22426         not "special-casing.h".
22427         * lib/unicase/u*.c: Likewise.
22429 2017-05-17  Bruno Haible  <bruno@clisp.org>
22431         README: Don't ask people to read a TeXinfo file.
22432         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22433         * README: Tell people how to read the HTML formatted manual.
22435 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22437         parse-datetime: Fix memleak
22438         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22439         localtime_rz() failure.
22441 2017-05-16  Bruno Haible  <bruno@clisp.org>
22443         javacomp: Fix handle leak.
22444         Found by Coverity.
22445         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22447 2017-05-16  Bruno Haible  <bruno@clisp.org>
22449         relocate: Make it easier to reclaim allocated memory.
22450         * lib/relocatable.h (relocate2): New declaration/macro.
22451         * lib/relocatable.c (relocate2): New function.
22452         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22453         relocate2 function.
22454         * lib/localcharset.c (relocate2): Define fallback.
22455         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22456         allocated memory.
22457         * lib/javaversion.c (relocate2): Define fallback.
22458         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22459         allocated memory.
22461 2017-05-16  Bruno Haible  <bruno@clisp.org>
22463         relocate: Simplify EMX specific code.
22464         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22465         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22467 2017-05-16  Bruno Haible  <bruno@clisp.org>
22469         sigpipe tests: Fix file list.
22470         * modules/sigpipe-tests (Files): Add tests/macros.h.
22472 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22474         manywarnings: update for GCC 7
22475         * build-aux/gcc-warning.spec:
22476         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22477         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22478         requires a non-comment fallthrough attribute.  This is a bit
22479         cleaner than the comment versions.
22480         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22481         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22482         Use it whenever one switch case falls through into the next.
22483         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22484         Use FALLTHROUGH macro.
22486 2017-05-15  Bruno Haible  <bruno@clisp.org>
22488         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22489         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22490         @ALLOCA@, not @LTALLOCA@.
22492 2017-05-15  Bruno Haible  <bruno@clisp.org>
22494         sys_select: Avoid "was expanded before it was required" warning.
22495         * modules/sys_select (configure.ac): Require, not invoke,
22496         gl_HEADER_SYS_SELECT.
22498 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22500         gnulib-tool: improve GNU Make debugging
22501         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22502         Report autoconf diagnostics when it fails, in the output makefile.
22504 2017-05-14  Bruno Haible  <bruno@clisp.org>
22506         stat-time tests: Improve comment.
22507         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22509 2017-05-14  Bruno Haible  <bruno@clisp.org>
22511         same-inode: Adapt for windows-stat-inodes.
22512         * lib/same-inode.h: Include <sys/types.h>.
22513         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22514         * modules/same-inode (Depends-on): Add sys_types.
22516 2017-05-14  Bruno Haible  <bruno@clisp.org>
22518         windows-stat-inodes: New module.
22519         * m4/windows-stat-inodes.m4: New file.
22520         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22521         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22522         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22523         (_GL_WINDOWS_STAT_INODES): New macro.
22524         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22525         (GetFileInformationByHandleExFunc): New variable.
22526         (initialize): Initialize it.
22527         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22528         st_ino appropriately.
22529         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22530         a fallback, because it does not provide st_dev and st_ino values.
22531         * modules/fstat (Depends-on): Add 'verify'.
22532         * modules/windows-stat-inodes: New file.
22533         * doc/windows-stat-inodes.texi: New file.
22534         * doc/gnulib.texi: Include it.
22535         * doc/posix-headers/sys_stat.texi: Mention the new module.
22537 2017-05-14  Bruno Haible  <bruno@clisp.org>
22539         stat-time tests: Workaround for native Windows.
22540         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22541         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22542         New variables.
22543         (initialize_filenames): New function.
22544         (main): Invoke it.
22545         (cleanup, prepare_test): Update.
22547 2017-05-14  Bruno Haible  <bruno@clisp.org>
22549         stat-time: Adapt for windows-stat-timespec.
22550         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22551         entire st_ctim field.
22553 2017-05-13  Jim Meyering  <meyering@fb.com>
22555         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22556         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22557         file that uses the assume macro, claiming that verify.h is unused.
22559 2017-05-13  Bruno Haible  <bruno@clisp.org>
22561         Use symbolic values for _WIN32_WINNT.
22562         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22563         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22565 2017-05-13  Bruno Haible  <bruno@clisp.org>
22567         year2038: New module.
22568         * m4/year2038.m4: New file.
22569         * modules/year2038: New file.
22570         * doc/year2038.texi: New file.
22571         * doc/gnulib.texi: Include it.
22573 2017-05-13  Bruno Haible  <bruno@clisp.org>
22575         largefile: Simplify.
22576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22577         of _GL_WINDOWS_64_BIT_ST_SIZE.
22579 2017-05-13  Bruno Haible  <bruno@clisp.org>
22581         largefile: Improve and document.
22582         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22583         the mingw headers already define 'stat' appropriately.
22584         * modules/largefile (Description): Clarify.
22585         * doc/largefile.texi: New file.
22586         * doc/gnulib.texi: Include it.
22587         * doc/posix-headers/sys_types.texi: Update.
22589 2017-05-13  Bruno Haible  <bruno@clisp.org>
22591         truncate: New module.
22592         * lib/unistd.in.h (truncate): New declaration.
22593         * lib/truncate.c: New file.
22594         * m4/truncate.m4: New file.
22595         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22596         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22597         REPLACE_TRUNCATE.
22598         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22599         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22600         * modules/truncate: New file.
22601         * tests/test-unistd-c++.cc (truncate): Test signature.
22602         * doc/posix-functions/truncate.texi: Mention the new module.
22604         * tests/test-truncate.c: New file.
22605         * modules/truncate-tests: New file.
22607 2017-05-13  Bruno Haible  <bruno@clisp.org>
22609         windows-stat-timespec: New module.
22610         * modules/windows-stat-timespec: New file.
22611         * m4/windows-stat-timespec.m4: New file.
22612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22613         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22614         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22615         fields st_atim, st_mtim, st_ctim.
22616         (st_atime, st_mtime, st_ctime): Define as macros.
22617         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22618         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22619         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22620         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22621         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22622         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22623         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22624         FILETIME to 'struct timespec', not 'time_t'.
22625         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22626         FILETIME to 'struct timespec', not 'time_t'.
22627         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22628         _GL_WINDOWS_STAT_TIMESPEC.
22629         * doc/windows-stat-timespec.texi: New file.
22630         * doc/gnulib.texi: Include it.
22632 2017-05-13  Bruno Haible  <bruno@clisp.org>
22634         windows-stat-override: New module.
22635         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22636         definition. Define GNULIB_defined_struct_stat.
22637         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22638         link error if this symbol is used and the corresponding module is not
22639         in use.
22640         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22641         GNULIB_OVERRIDES_STRUCT_STAT.
22642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22643         GNULIB_OVERRIDES_STRUCT_STAT.
22644         * modules/sys_stat (Makefile.am): Substitute
22645         GNULIB_OVERRIDES_STRUCT_STAT.
22646         * modules/windows-stat-override: New file.
22648 2017-05-13  Bruno Haible  <bruno@clisp.org>
22650         fstat: Fix module dependency conditions.
22651         * modules/fstat (Depends-on): Fix typo.
22653 2017-05-13  Bruno Haible  <bruno@clisp.org>
22655         stat, fstat: Complete removal of old native Windows code.
22656         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22657         * lib/fstat.c: Likewise.
22658         * lib/stat-w32.c: Likewise.
22660 2017-05-13  Bruno Haible  <bruno@clisp.org>
22662         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22663         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22665 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22667         getopt-posix: port to mingw
22668         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22669         Problem reported by Daniel P. Berrage in:
22670         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22672 2017-05-11  Bruno Haible  <bruno@clisp.org>
22674         gettimeofday: Increase precision on mingw.
22675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22676         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22677         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22678         GetSystemTimePreciseAsFileTime based implementation always.
22679         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22680         mingw.
22682 2017-05-11  Bruno Haible  <bruno@clisp.org>
22684         poll: Fix confusion between SOCKETs and FDs on native Windows.
22685         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22686         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22688 2017-05-11  Bruno Haible  <bruno@clisp.org>
22690         doc: Clarify doc about socket functions on native Windows.
22691         This reworks doc that was added on 2008-09-29.
22692         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22693         clearer wording.
22694         * doc/posix-functions/accept.texi: Use clearer wording.
22695         * doc/posix-functions/bind.texi: Likewise.
22696         * doc/posix-functions/connect.texi: Likewise.
22697         * doc/posix-functions/getpeername.texi: Likewise.
22698         * doc/posix-functions/getsockname.texi: Likewise.
22699         * doc/posix-functions/getsockopt.texi: Likewise.
22700         * doc/posix-functions/ioctl.texi: Likewise.
22701         * doc/posix-functions/listen.texi: Likewise.
22702         * doc/posix-functions/recv.texi: Likewise.
22703         * doc/posix-functions/recvfrom.texi: Likewise.
22704         * doc/posix-functions/send.texi: Likewise.
22705         * doc/posix-functions/sendto.texi: Likewise.
22706         * doc/posix-functions/setsockopt.texi: Likewise.
22707         * doc/posix-functions/shutdown.texi: Likewise.
22708         * doc/posix-functions/socket.texi: Likewise.
22710 2017-05-10  Bruno Haible  <bruno@clisp.org>
22712         poll: Fix link error on native Windows.
22713         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22715 2017-05-10  Bruno Haible  <bruno@clisp.org>
22717         time: Fix missing initialization of HAVE_TIMEZONE_T.
22718         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22719         here...
22720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22721         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22722         gl_HEADER_SYS_TIME_H_DEFAULTS.
22723         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22724         (configure.ac): Remove useless quoting.
22726 2017-05-10  Bruno Haible  <bruno@clisp.org>
22728         Implement a way to opt out from MSVC support, part 2.
22729         * modules/msvc-inval (Include): Document recommended idiom.
22730         * modules/msvc-nothrow (Include): Likewise.
22732         Implement a way to opt out from MSVC support.
22733         This is useful for Emacs.
22734         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22735         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22736         * lib/error.c: Likewise.
22737         * lib/fcntl.c: Likewise.
22738         * lib/flock.c: Likewise.
22739         * lib/fstat.c: Likewise.
22740         * lib/fsync.c: Likewise.
22741         * lib/ioctl.c: Likewise.
22742         * lib/isapipe.c: Likewise.
22743         * lib/lseek.c: Likewise.
22744         * lib/nonblocking.c: Likewise.
22745         * lib/poll.c: Likewise.
22746         * lib/select.c: Likewise.
22747         * lib/sockets.h: Likewise.
22748         * lib/sockets.c: Likewise.
22749         * lib/stdio-read.c: Likewise.
22750         * lib/stdio-write.c: Likewise.
22751         * lib/utimens.c: Likewise.
22752         * lib/w32sock.h: Likewise.
22753         * lib/w32spawn.h: Likewise.
22754         * tests/test-cloexec.c: Likewise.
22755         * tests/test-dup-safer.c: Likewise.
22756         * tests/test-dup2.c: Likewise.
22757         * tests/test-dup3.c: Likewise.
22758         * tests/test-fcntl.c: Likewise.
22759         * tests/test-pipe.c: Likewise.
22760         * tests/test-pipe2.c: Likewise.
22761         * lib/ftruncate.c: Likewise.
22762         (chsize_nothrow): Renamed from chsize.
22763         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22764         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22765         * lib/close.c: Likewise.
22766         * lib/dup.c: Likewise.
22767         * lib/fclose.c: Likewise.
22768         * lib/raise.c: Likewise.
22769         * tests/test-fgetc.c: Likewise.
22770         * tests/test-fputc.c: Likewise.
22771         * tests/test-fread.c: Likewise.
22772         * tests/test-fwrite.c: Likewise.
22773         * lib/getdtablesize.c: Likewise.
22774         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22775         * lib/isatty.c: Don't include msvc-inval.h if
22776         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22777         Include <io.h> as an alternative to msvc-nothrow.h.
22778         * lib/read.c: Likewise.
22779         * lib/write.c: Likewise.
22780         * lib/dup2.c: Likewise.
22781         (dup2_nothrow): New function.
22782         (ms_windows_dup2): Use it.
22783         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22784         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22785         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22786         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22787         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22788         * m4/read.m4 (gl_FUNC_READ): Likewise.
22789         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22790         * doc/windows-without-msvc.texi: New file.
22791         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22792         section.
22794 2017-05-10  Bruno Haible  <bruno@clisp.org>
22796         wait-process: Adjust native Windows support.
22797         * lib/wait-process.c: Use the usual condition for recognizing a native
22798         Windows platform.
22800 2017-05-10  Bruno Haible  <bruno@clisp.org>
22802         doc: New chapter "Native Windows Support".
22803         * doc/gnulib.texi (Native Windows Support): New chapter.
22804         * doc/windows-libtool.texi: Small wording changes.
22805         * doc/windows-sockets.texi: Small wording and formatting changes.
22807 2017-05-10  Bruno Haible  <bruno@clisp.org>
22809         doc: Move section "Library version handling".
22810         * doc/gnulib.texi: Move section "Library version handling"
22811         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22813 2017-05-10  Bruno Haible  <bruno@clisp.org>
22815         doc: Move section "Running self-tests under valgrind".
22816         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22817         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22819 2017-05-10  Bruno Haible  <bruno@clisp.org>
22821         doc: New chapter "Build Infrastructure Modules".
22822         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22824 2017-05-10  Bruno Haible  <bruno@clisp.org>
22826         Prepare for reordering sections in the manual.
22827         * doc/gnulib.texi: Move several sections to separate files. Include
22828         these files.
22829         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22830         * doc/obsolete.texi: Likewise.
22831         * doc/extra-tests.texi: Likewise.
22832         * doc/transversal.texi: Likewise.
22833         * doc/namespace.texi: Likewise.
22834         * doc/check-version.texi: Likewise.
22835         * doc/windows-sockets.texi: Likewise.
22836         * doc/windows-libtool.texi: Likewise.
22837         * doc/licenses-texi.texi: Likewise.
22838         * doc/build-automation.texi: Likewise.
22839         * doc/c-locale.texi: Likewise.
22841 2017-05-10  Bruno Haible  <bruno@clisp.org>
22843         Fix instructions how to update manual on www.gnu.org.
22844         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22846 2017-05-09  Bruno Haible  <bruno@clisp.org>
22848         tzset: Expand comment about TZ problem on native Windows.
22849         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22850         Paul Eggert.
22851         * lib/ctime.c (rpl_ctime): Likewise.
22852         * lib/localtime.c (rpl_localtime): Likewise.
22853         * lib/mktime.c (mktime): Likewise.
22854         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22855         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22857 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22859         intprops: don’t depend on ‘verify’
22860         Problem reported by Ævar Arnfjörð Bjarmason in:
22861         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22862         * lib/intprops.h: Do not include verify.h, and move compile-time
22863         checks from here ...
22864         * tests/test-intprops.c (main): ... to here, if they’re not here
22865         already.  Check widths of other standard integer types.
22866         * modules/intprops (Depends-on): Remove ‘verify’.
22868 2017-05-07  Bruno Haible  <bruno@clisp.org>
22870         utimens: On native Windows, support 100ns resolution also if fd < 0.
22871         * lib/utime.in.h: Include <time.h>.
22872         (_gl_utimens_windows): New declaration.
22873         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22874         (utime): Invoke it.
22875         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22876         instead of utime.
22877         * modules/utime (Depends-on): Add 'time'.
22879 2017-05-07  Bruno Haible  <bruno@clisp.org>
22881         utimens: Improve error code on native Windows.
22882         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22883         error code EACCES, not EINVAL.
22885 2017-05-07  Bruno Haible  <bruno@clisp.org>
22887         utime: Handle more Windows error codes.
22888         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22889         Based on explanations by Billy O'Neal.
22891 2017-05-05  Bruno Haible  <bruno@clisp.org>
22893         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22894         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22895         union.
22896         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22897         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22898         value of cipher->IV.
22900 2017-05-05  Bruno Haible  <bruno@clisp.org>
22902         wctype-h-c++-tests: Update.
22903         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22905 2017-05-05  Bruno Haible  <bruno@clisp.org>
22907         wchar-c++-tests: Update.
22908         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22910 2017-05-05  Bruno Haible  <bruno@clisp.org>
22912         utime-h-c++-tests: New module.
22913         * tests/test-utime-h-c++.cc: New file.
22914         (utime): Declare, missing since 2017-04-30.
22915         * modules/utime-h-c++-tests: New file.
22917 2017-05-05  Bruno Haible  <bruno@clisp.org>
22919         unistd-c++-tests: Update.
22920         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22921         (read): Declare, missing since 2011-04-15.
22922         (sethostname): Declare, missing since 2011-12-03.
22924 2017-05-05  Bruno Haible  <bruno@clisp.org>
22926         time-c++-tests: Update.
22927         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22928         (localtime, gmtime): Declare, missing since 2017-04-30.
22929         (ctime): Declare, missing since 2017-04-30.
22930         (strftime): Declare, missing since 2017-04-30.
22931         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22932         2015-07-24.
22934 2017-05-05  Bruno Haible  <bruno@clisp.org>
22936         sys_resource-c++-tests: New module.
22937         * tests/test-sys_resource-c++.cc: New file.
22938         (getrusage): Declare, missing since 2012-04-13.
22939         * modules/sys_resource-c++-tests: New file.
22941 2017-05-05  Bruno Haible  <bruno@clisp.org>
22943         strings-c++-tests: New module.
22944         * tests/test-strings-c++.cc: New file.
22945         (ffs): Declare, missing since 2011-07-12.
22946         * modules/strings-c++-tests: New file.
22948 2017-05-05  Bruno Haible  <bruno@clisp.org>
22950         string-c++-tests: Update.
22951         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22952         (ffsll): Declare, missing since 2011-07-15.
22954 2017-05-05  Bruno Haible  <bruno@clisp.org>
22956         stdlib-c++-tests: Update.
22957         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22958         2011-10-18.
22959         (ptsname_r): Declare, missing since 2011-11-07.
22960         (qsort_r): Declare, missing since 2014-08-29.
22961         (random, srandom, initstate, setstate): Declare, missing since
22962         2012-01-14.
22963         (secure_getenv): Declare, missing since 2013-02-05.
22965 2017-05-05  Bruno Haible  <bruno@clisp.org>
22967         stdio-c++-tests: Update.
22968         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22970 2017-05-05  Bruno Haible  <bruno@clisp.org>
22972         signal-h-c++-tests: Update.
22973         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22975 2017-05-05  Bruno Haible  <bruno@clisp.org>
22977         math-c++-tests: Update.
22978         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22979         (fma): Declare, missing since 2011-10-17.
22980         (fmal): Declare, missing since 2011-10-17.
22982 2017-05-05  Bruno Haible  <bruno@clisp.org>
22984         locale-c++-tests: Update.
22985         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22986         2012-03-25.
22988 2017-05-05  Bruno Haible  <bruno@clisp.org>
22990         inttypes-c++-tests: New module.
22991         * tests/test-inttypes-c++.cc: New file.
22992         (strtoimax): Declare, missing since 2012-01-05.
22993         (strtoumax): Declare, missing since 2012-01-05.
22994         * modules/inttypes-c++-tests: New file.
22996 2017-05-05  Bruno Haible  <bruno@clisp.org>
22998         dirent-c++-tests: Update.
22999         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
23000         (rewinddir): Declare, missing since 2011-09-13.
23001         (dirfd): Declare, missing since 2010-03-08.
23003 2017-05-04  Bruno Haible  <bruno@clisp.org>
23005         argp: Fix mistake in 2017-04-23 commit.
23006         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
23007         assume that strerror_r returns 'int', not 'char *'.
23009 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
23011         argp: Fix typo.
23012         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
23014 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23016         utimens: port to Emacs + MS-Windows
23017         Skip the new MS-Windows-specific code if Emacs.
23018         * lib/utimens.c [EMACS_CONFIGUATION]:
23019         Avoid new MS-Windows-specific code.
23020         (USE_SETFILETIME): New macro.
23021         (fdutimens): Use it.
23023 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23025         tzset: update doc for TZ problems on MS-Windows
23026         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
23027         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
23028         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
23029         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
23030         * doc/posix-functions/wcsftime.texi:
23031         Mention some issues with TZ under MS-Windows.
23033 2017-05-01  Bruno Haible  <bruno@clisp.org>
23035         copy-file: Fix build error on mingw.
23036         * modules/copy-file (Depends-on): Add 'close'.
23038 2017-05-01  Bruno Haible  <bruno@clisp.org>
23040         tzset: Work around TZ problem on native Windows.
23041         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
23042         Windows, set REPLACE_TZSET to 1.
23043         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
23044         invoke '_tzset' instead of 'tzset'.
23045         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
23047         * modules/time_rz (Depends-on): Add tzset.
23048         * lib/time_rz.c (tzset): Remove fallback definition.
23049         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
23051 2017-05-01  Bruno Haible  <bruno@clisp.org>
23053         mktime: Fix dependencies.
23054         * modules/mktime (Depends-on): Add 'time'.
23056 2017-05-01  Bruno Haible  <bruno@clisp.org>
23058         New module 'localtime-buffer', split off from module 'gettimeofday'.
23059         * lib/localtime-buffer.h: New file.
23060         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
23061         * lib/time.in.h (tzset): New declaration.
23062         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
23063         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
23064         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
23065         moved to lib/localtime-buffer.c or lib/tzset.c.
23066         * m4/localtime-buffer.m4: New file.
23067         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
23068         HAVE_TZSET, REPLACE_TZSET.
23069         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
23070         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
23071         gl_LOCALTIME_BUFFER_NEEDED.
23072         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
23073         since 2007-01-18.
23074         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
23075         tzset.
23076         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
23077         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
23078         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
23079         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
23080         * modules/localtime-buffer: New file.
23081         * modules/time (Depends-on): Remove 'gettimeofday'.
23082         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
23083         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
23084         * modules/tzset (Description): Enable hyperlink to POSIX spec.
23085         (Files): Add lib/tzset.c.
23086         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
23087         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
23088         gl_TIME_MODULE_INDICATOR.
23089         * modules/gettimeofday (Depends-on): Add localtime-buffer.
23091 2017-05-01  Bruno Haible  <bruno@clisp.org>
23093         copy-file: Preserve sub-second time stamps.
23094         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
23095         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
23096         transport the time stamps from the original file to the destination
23097         file.
23098         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
23099         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
23100         utime-h.
23102 2017-05-01  Bruno Haible  <bruno@clisp.org>
23104         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
23105         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
23106         also on MSVC.
23107         Reported by Eli Zaretskii <eliz@gnu.org>.
23109 2017-05-01  Bruno Haible  <bruno@clisp.org>
23111         wchar: Fix compilation error with the original mingw.org mingw.
23112         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23113         <stddef.h> instead.
23114         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
23115         gl_WCTYPE_H.
23116         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
23117         gl_TYPE_WINT_T_PREREQ instead.
23118         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
23119         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
23120         Reported by Eli Zaretskii <eliz@gnu.org>.
23122 2017-04-30  Bruno Haible  <bruno@clisp.org>
23124         utimecmp: Add support for native Windows.
23125         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
23127 2017-04-30  Bruno Haible  <bruno@clisp.org>
23129         utimens: Add support for native Windows.
23130         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
23131         (fdutimens): Provide a native Windows implementation, like utime.c with
23132         added tv_nsec support.
23133         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
23134         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
23136 2017-04-30  Bruno Haible  <bruno@clisp.org>
23138         wcsftime: New module.
23139         * lib/wchar.in.h (wcsftime): New declaration.
23140         * lib/wcsftime.c: New file.
23141         * m4/wcsftime.m4: New file.
23142         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
23143         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
23144         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
23146         HAVE_WCSFTIME, REPLACE_WCSFTIME.
23147         * modules/wcsftime: New file.
23148         * doc/posix-functions/wcsftime.texi: Mention the new module.
23150 2017-04-30  Bruno Haible  <bruno@clisp.org>
23152         strftime-fixes: New module.
23153         * lib/time.in.h (strftime): New declaration.
23154         * lib/strftime-fixes.c: New file.
23155         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
23156         (gl_FUNC_STRFTIME): Remove macro.
23157         * m4/strftime-fixes.m4: New file.
23158         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
23159         REPLACE_STRFTIME.
23160         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
23161         REPLACE_STRFTIME.
23162         * modules/strftime-fixes: New file.
23163         * doc/posix-functions/strftime.texi: Mention the new module.
23165 2017-04-30  Bruno Haible  <bruno@clisp.org>
23167         mktime: Work around TZ problem on native Windows.
23168         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
23169         from the native Windows workaround.
23170         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
23171         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
23172         'guessing no'.
23173         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
23174         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
23175         NEED_MKTIME_WINDOWS.
23176         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
23177         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
23178         NEED_MKTIME_INTERNAL.
23179         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
23180         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
23181         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
23182         not REPLACE_MKTIME.
23183         * doc/posix-functions/mktime.texi: Mention the native Windows
23184         workaround.
23186 2017-04-30  Bruno Haible  <bruno@clisp.org>
23188         localtime: New module.
23189         * lib/time.in.h (localtime): Declare also if requested by module
23190         'localtime'.
23191         * lib/localtime.c: New file.
23192         * m4/localtime.m4: New file.
23193         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
23194         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
23195         * modules/localtime: New file.
23196         * doc/posix-functions/localtime.texi: Mention the new module.
23198 2017-04-30  Bruno Haible  <bruno@clisp.org>
23200         ctime: New module.
23201         * lib/time.in.h (ctime): New declaration.
23202         * lib/ctime.c: New file.
23203         * m4/ctime.m4: New file.
23204         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
23205         REPLACE_CTIME.
23206         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
23207         * modules/ctime: New file.
23208         * doc/posix-functions/ctime.texi: Mention the new module.
23210 2017-04-30  Bruno Haible  <bruno@clisp.org>
23212         gettimeofday: Provide higher resolution on native Windows.
23213         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
23214         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
23215         (initialize): Initialize it.
23216         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
23217         'struct timeval'. Don't use _ftime().
23218         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
23219         <sys/timeb.h> and _ftime.
23221 2017-04-30  Bruno Haible  <bruno@clisp.org>
23223         Document the problem with the Cygwin environment variable TZ.
23224         * doc/posix-functions/tzset.texi: Add note about TZ.
23225         * doc/posix-functions/ctime.texi: Likewise.
23226         * doc/posix-functions/localtime.texi: Likewise.
23227         * doc/posix-functions/mktime.texi: Likewise.
23228         * doc/posix-functions/strftime.texi: Likewise.
23229         * doc/posix-functions/wcsftime.texi: Likewise.
23230         * doc/pastposix-functions/ftime.texi: Likewise.
23232 2017-04-30  Bruno Haible  <bruno@clisp.org>
23234         utime-tests: New module.
23235         * tests/test-utime.c: New file, based on tests/test-utimens.h.
23236         * tests/test-utimens-common.h: Include <sys/stat.h>.
23237         * modules/utime-tests: New file.
23239 2017-04-29  Bruno Haible  <bruno@clisp.org>
23241         utime: New module.
23242         * lib/utime.in.h: Add comment for snippets.
23243         (utime): New declaration.
23244         * lib/utime.c: New file.
23245         * m4/utime.m4: New file.
23246         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
23247         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
23248         REPLACE_UTIME.
23249         * modules/utime-h (Depends-on): Add snippets.
23250         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
23251         Insert snippets.
23252         * modules/utime: New file.
23253         * doc/posix-functions/utime.texi: Mention the new module.
23255 2017-04-29  Bruno Haible  <bruno@clisp.org>
23257         utime-h: Modernize handling of 'struct utimbuf'.
23258         * lib/utime.in.h: Include next <utime.h> if it exists.
23259         (utimbuf): Define to _utimbuf on native Windows.
23260         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23261         Set UTIME_H on native Windows.
23262         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23263         * modules/utime-h (Depends-on): Add include_next.
23264         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23265         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23267         * lib/utimens.c (utimbuf): Remove fallback definition.
23268         * m4/utimens.m4 (gl_UTIMENS): Don't require
23269         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23270         * m4/utimbuf.m4: Remove file.
23271         * modules/utimens (Files): Remove m4/utimbuf.m4.
23273 2017-04-29  Bruno Haible  <bruno@clisp.org>
23275         Make use of module 'utime-h'.
23276         * modules/copy-file (Depends-on): Add utime-h.
23277         * lib/copy-file.c: Assume that <utime.h> exists.
23278         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23280         * modules/utimens (Depends-on): Add utime-h.
23281         * lib/utimens.c: Assume that <utime.h> exists.
23283 2017-04-29  Bruno Haible  <bruno@clisp.org>
23285         utime-h: New module.
23286         * m4/utime_h.m4: New file.
23287         * lib/utime.in.h: New file.
23288         * modules/utime-h: New file.
23289         * doc/posix-headers/utime.texi: Mention the new module.
23291         * tests/test-utime-h.c: New file.
23292         * modules/utime-h-tests: New file.
23294 2017-04-30  Bruno Haible  <bruno@clisp.org>
23296         Fix a few typos.
23297         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23298         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23299         * doc/posix-functions/fstat.texi: Fix a plural typo.
23300         * doc/posix-functions/stat.texi: Likewise.
23301         * m4/include_next.m4: Update comments.
23303 2017-04-29  Bruno Haible  <bruno@clisp.org>
23305         error: Fix mistake in 2017-04-23 commit.
23306         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23307         assume that strerror_r returns 'int', not 'char *'.
23309 2017-04-29  Bruno Haible  <bruno@clisp.org>
23311         stat: Fix time_t values and other problems on native Windows platforms.
23312         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23313         implementations of stat().
23314         * lib/stat.c: Include filename.h instead of dosname.h. Include
23315         malloca.h, stat-w32.h.
23316         (is_unc_root): New function.
23317         (rpl_stat): New implementation for native Windows. Remove
23318         REPLACE_FUNC_STAT_DIR code.
23319         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23320         Don't define REPLACE_FUNC_STAT_DIR.
23321         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23322         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23323         (Depends-on): Remove dosname. Add filename, malloca.
23324         (configure.ac): Also compile lib/stat-w32.c.
23326 2017-04-29  Bruno Haible  <bruno@clisp.org>
23328         fstat: Fix time_t values on native Windows platforms.
23329         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23330         * lib/stat-w32.h: New file.
23331         * lib/stat-w32.c: New file.
23332         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23333         stat-w32.h instead.
23334         (fstat_nothrow): Remove function.
23335         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23336         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23337         always.
23338         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23339         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23340         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23341         (configure.ac): Also compile lib/stat-w32.c.
23343 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23345         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23346         Problem reported by Assaf Gordon and Gavin Smith in:
23347         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23348         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23349         #define this, too.
23351 2017-04-29  Bruno Haible  <bruno@clisp.org>
23353         strerror_r-posix: Fixes for MSVC 14.
23354         * lib/strerror_r.c: Include <stdarg.h>.
23355         (strerror_r): Provide error messages for errno values 100...140.
23356         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23358 2017-04-28  Bruno Haible  <bruno@clisp.org>
23360         noreturn: New module.
23361         * lib/noreturn.h: New file.
23362         * modules/noreturn: New file.
23363         * tests/test-noreturn.c: New file.
23364         * modules/noreturn-tests: New file.
23365         * tests/test-noreturn-c++.cc: New file.
23366         * modules/noreturn-c++-tests: New file.
23368 2017-04-27  Bruno Haible  <bruno@clisp.org>
23370         wctype-h: Fix compilation error with the original mingw.org mingw.
23371         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23372         HAVE_CRTDEFS_H.
23373         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23374         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23375         <stddef.h> instead.
23376         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23378 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23380         nap.h: Fix compilation on non windows platforms
23381         * tests/nap.h: Move misplaced endif.
23383 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23384         and Paul Eggert  <eggert@cs.ucla.edu>
23386         time_rz: fix heap buffer overflow vulnerability
23387         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23388         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23389         whether there is enough buffer space available, thus avoiding
23390         the problematic promotion of signed to unsigned causing an invalid
23391         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23392         the start of the buffer.
23393         * tests/test-parse-datetime.c (main): Add a test case written by
23394         Paul Eggert, which overwrites enough of the heap so that
23395         standard glibc will fail with "free(): invalid pointer"
23396         without the patch applied.
23398 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23400         xalloc: add missing integer overflow check
23401         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23402         overflow when P is null.
23404 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23406         parse-datetime: make it standalone
23407         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23408         (_GL_ATTRIBUTE_FORMAT): New macro.
23409         These are needed to get './gnulib-tool --test parse-datetime' to work.
23411 2017-04-23  Bruno Haible  <bruno@clisp.org>
23413         nap.h: Port to native Windows.
23414         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23415         use nap_fd instead. On native Windows, close and reopen nap_fd.
23416         (nap_works): Don't compare the ctimes, because on native Windows, these
23417         are the creation times.
23418         (nap): Update.
23420 2017-04-23  Bruno Haible  <bruno@clisp.org>
23422         nap.h: Fix logic.
23423         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23425 2017-04-23  Bruno Haible  <bruno@clisp.org>
23427         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23428         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23429         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23430         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23431         * lib/argp-help.c (__argp_failure): Likewise.
23433 2017-04-23  Bruno Haible  <bruno@clisp.org>
23435         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23436         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23437         * lib/strerror_r.c: Likewise.
23439 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23441         Target a C99 subset, not a C89 subset
23442         For many years Gnulib has targeted C89 and has resisted using C99
23443         features, as some Gnulib-using programs still wanted to target
23444         C89.  As this no longer seems to be the case, relax the porting
23445         requirements to allow some C99 features.  This is merely a change
23446         to the documentation, to give other Gnulib developers a chance to
23447         weigh in on the topic.
23448         * doc/extern-inline.texi (extern inline):
23449         * doc/gnulib-readme.texi (Portability guidelines):
23450         * doc/gnulib-tool.texi (Initial import):
23451         * doc/gnulib.texi (Header files):
23452         Modernize to talk about C99 and C11 instead of C89 and C99.
23453         * doc/gnulib-readme.texi (Portability guidelines):
23454         Now a section, not merely a subsection, so that it
23455         can be split up.  Modernize a bit.
23456         (C language versions, C99 features assumed)
23457         (C99 features avoided):
23458         New sections.
23460 2017-04-23  Bruno Haible  <bruno@clisp.org>
23462         doc: New section "Modules that modify the way other modules work".
23463         * doc/gnulib.texi (Modules that modify the way other modules work): New
23464         section.
23466 2017-04-23  Bruno Haible  <bruno@clisp.org>
23468         stat-time: Update comments.
23469         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23470         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23471         Windows.
23473 2017-04-01  Bruno Haible  <bruno@clisp.org>
23475         glob: Fix more memory leaks.
23476         * lib/glob.c (glob): Free allocated memory before returning.
23477         Reported by Coverity via Tim Rühsen.
23479 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23481         poll: improve fast check for out-of-range NFD
23482         * lib/poll.c: Do not include intprops.h.
23483         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23484         * modules/poll (Depends-on): Remove intprops.
23486         ftoastr: cite a newer paper
23487         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23488         instead of Loitsch 2010.
23490 2017-04-22  Bruno Haible  <bruno@clisp.org>
23492         poll: Enable argument check also in the Windows implementation.
23493         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23494         Reported by Paul Eggert.
23496 2017-04-22  Bruno Haible  <bruno@clisp.org>
23498         getlogin_r: Work around bug in Mac OS X 10.12.
23499         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23500         bug.
23501         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23502         given size minus 1, call getlogin_r a second time, on a larger buffer.
23503         * modules/getlogin_r (Depends-on): Add malloca.
23504         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23506 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23508         parse-datetime: fix %z and prefer signed int
23509         %z problem reported by Pádraig Brady in:
23510         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23511         While fixing it, I decided to prefer signed ints to size_t, as
23512         they are less error-prone (e.g., ubsan catches overflow).
23513         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23514         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23515         counts, since signed integers make for better debugging.
23516         (date): Don’t assume %z works in printf formats.
23517         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23518         sizes of buffers known to be small, e.g., because we’re using snprintf.
23519         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23521 2017-04-22  Bruno Haible  <bruno@clisp.org>
23523         *printf: Work around rounding bug on Mac OS X.
23524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23525         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23526         Mac OS X and FreeBSD.
23527         * doc/glibc-functions/*printf.texi: Likewise.
23529 2017-04-22  Bruno Haible  <bruno@clisp.org>
23531         vasnprintf tests: Avoid warnings.
23532         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23533         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23534         test.
23536 2017-04-22  Bruno Haible  <bruno@clisp.org>
23538         sys_file tests: Avoid warning.
23539         * tests/test-sys_file.c (main): Add a default clause to the switch
23540         statement.
23542 2017-04-22  Bruno Haible  <bruno@clisp.org>
23544         sethostname: Update doc.
23545         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23546         Mac OS X.
23548 2017-04-22  Bruno Haible  <bruno@clisp.org>
23550         quotearg tests: Avoid warnings.
23551         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23552         false.
23554 2017-04-22  Bruno Haible  <bruno@clisp.org>
23556         poll: Enable argument check.
23557         * lib/poll.c: Include intprops.h.
23558         (poll): Check value of nfd correctly.
23559         * modules/poll (Depends-on): Add intprops.
23561 2017-04-22  Bruno Haible  <bruno@clisp.org>
23563         get-rusage-data: Avoid warnings on Mac OS X.
23564         * lib/get-rusage-data.c: On Mac OS X, don't define
23565         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23566         (get_rusage_data) [Mac OS X]: Just return 0.
23568 2017-04-22  Bruno Haible  <bruno@clisp.org>
23570         xbinary-io: Fix build error.
23571         * modules/xbinary-io (Depends-on): Add gettext-h.
23572         * lib/xbinary-io.c: Include gettext.h and define _().
23573         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23574         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23576 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23578         parse-datetime: overflow and debug cleanups
23579         This long patch was triggered by this bug report from Ruediger Meier:
23580         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23581         I fixed the bug he noted, then found some others nearby, and then
23582         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23583         up some of the code to follow GNU standards while I was at it.
23584         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23585         use c_isdigit.
23586         (EPOCH_YEAR): Remove; unused.
23587         (TM_YEAR_BASE): Now an enum rather than a macro.
23588         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23589         time zone offset, since timezones now are in terms of seconds and
23590         not minutes.
23591         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23592         appropriate.  Verify that intmax_t is wide enough.
23593         (time_overflow, time_zone_str): New functions, used to deal
23594         more reliably with overflow.
23595         (dbg_printf): Add printf attribute, to help catch integer width errors.
23596         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23597         (%union, to_hour, yylex, parse_datetime2):
23598         Use intmax_t instead of long int and/or long_time_t.
23599         All uses changed.
23600         (DBGBUFSIZE): Move earlier.
23601         (relative_time, set_hhmmss, parser_control):
23602         Just use int for nanoseconds and for time zones; that’s wide enough.
23603         (parser_control): Use bool for members like year_seen that can
23604         be booleans instead of counters.  All uses changed.
23605         Remove debug_default_input_timezone; no longer needed.
23606         All uses removed.
23607         (apply_relative_time): Return a bool overflow flag.
23608         All uses changed to check for overflow.
23609         (apply_relative_time, zone, date, relunit, relunit_snumber)
23610         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23611         Check for integer overflow portably.
23612         (str_days): Use just int for N, as it’s wide enough.
23613         Prefer 2D char arrays to arrays of char * when it looks like
23614         2D is a win on typical platforms.
23615         Prefer snprintf to strncpy/strncat, for simplicity;
23616         all buffers are smaller than INT_MAX so this is safe.
23617         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23618         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23619         as this is not true on x32.  Output "." before any nanoseconds.
23620         (debug_print_current_time, parse_datetime2):
23621         Output local zones using a more-consistent format.
23622         (debug_print_current_time, date, parse_datetime2):
23623         (main) [TEST]:
23624         Don’t assume time_t is the same width as long.
23625         (print_rel_part): New function, replacing ...
23626         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23627         (debug_print_relative_time): Use bool for boolean.
23628         (local_zone): dsts_seen now counts only tDST instances.
23629         (date): Fix printf of size_t to use %z.  Do not assume numeric
23630         tokens have negative values merely because the context suggests
23631         a syntax with "-" separating tokens.
23632         (time_zone_hhmm): Return bool success indicator, which checks for
23633         overflow.  Store result into PC->time_zone instead.  All callers
23634         changed.
23635         (tm_year_str): New function.  Return a bool success indicator and
23636         store the result into a buffer.  All callers changed.  Output the
23637         numerically correct string even if adding 1900 to the year would
23638         overflow.
23639         (to_tm_year): New function, replacing the old to_year.  All
23640         callers changed.
23641         (tm_diff): Sync with glibc.
23642         (lookup_word): Use to_uchar instead of doing it by hand.
23643         (TZBUFSIZE): Now local to the only function that needs it.
23644         (debug_strfdatetime): Simplify now that time zones are int seconds.
23645         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23646         (get_effective_timezone): Remove.  All uses removed.
23647         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23648         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23649         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23650         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23651         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23652         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23653         * modules/parse-datetime (Depends-on): Add inttypes.
23655 2017-04-21  Bruno Haible  <bruno@clisp.org>
23657         gettext-h: Avoid -Wundef warning.
23658         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23659         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23660         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23662 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23664         error: Avoid "function declaration isn't a prototype" warning.
23665         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23667 2017-04-21  Bruno Haible  <bruno@clisp.org>
23669         vasnprintf: Fix for MSVC 14.
23670         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23671         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23672         of !HAVE_SNPRINTF_RETVAL_C99.
23674 2017-04-21  Bruno Haible  <bruno@clisp.org>
23676         mbrtowc tests: Fix test failures on MSVC 14.
23677         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23678         behaviour for invalid input.
23680 2017-04-21  Bruno Haible  <bruno@clisp.org>
23682         mbsinit: Fix for MSVC 14.
23683         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23684         implementation that is in sync with mbrtowc.c. On other platforms, use
23685         an adequate ad-hoc implementation.
23687 2017-04-21  Bruno Haible  <bruno@clisp.org>
23689         Fix test-mbrtowc5.sh failure on native Windows.
23690         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23691         "C".
23693 2017-04-21  Bruno Haible  <bruno@clisp.org>
23695         Avoid accidental use of native Windows APIs on Cygwin.
23696         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23697         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23698         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23700 2017-04-20  Bruno Haible  <bruno@clisp.org>
23702         Remove red warnings from the generated MODULES.html.
23703         * modules/fcntl (Description): Disambiguate function references.
23704         * modules/getcwd-lgpl (Description): Likewise.
23705         * modules/hostent (Description): Likewise.
23706         * modules/servent (Description): Likewise.
23707         * modules/tempname (Description): Likewise.
23709 2017-04-20  Bruno Haible  <bruno@clisp.org>
23711         verify tests: Fix spurious failure with parallel make.
23712         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23713         EXTRA_PROGRAMS.
23714         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23715         * tests/test-verify-try.c: New file.
23716         * modules/verify-tests (Files): Add it.
23717         (EXTRA_PROGRAMS): Add test-verify-try.
23718         (MOSTLYCLEANFILES): Update accordingly.
23719         Reported by Adam James Stewart <ajstewart@anl.gov>.
23721 2017-04-18  Bruno Haible  <bruno@clisp.org>
23723         vma-iter: Fix compilation error on Solaris 7.
23724         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23725         like on IRIX, OSF/1.
23726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23728 2017-04-18  Bruno Haible  <bruno@clisp.org>
23730         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23731         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23732         included.
23733         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23734         <sys/procfs.h>.
23735         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23736         <sys/procfs.h> cannot be included.
23737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23739 2017-04-18  Bruno Haible  <bruno@clisp.org>
23741         getopt-gnu: Add comments.
23742         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23743         * modules/getopt-gnu (configure.ac): Likewise.
23745 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23747         regex: port better to Solaris 10
23748         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23749         gettext, and this causes a double #define.
23750         Problem reported by Gavin Smith in:
23751         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23752         * lib/regex_internal.h (gettext): #undef before #defining.
23754 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23756         intprops: improve comments
23757         * lib/intprops.h: Improve and shorten commentary.
23758         For the record, if we ever run into a pedantic compiler that
23759         behaves differently from GCC when converting an out-of-range value
23760         to a signed integer, we can work around the problem with something
23761         like the following code, where UCT is the signed counterpart of T
23762         (UCT is sometimes narrower than UT) and all callers are changed
23763         accordingly:
23764         #if __SUNPRO_C <= 0x5120
23765         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23766            ((t) ((ut) (a) op (ut) (b)))
23767         #else
23768         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23769            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23770             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23771                + TYPE_MINIMUM (t)) \
23772             : (t) (uct) ((ut) (a) op (ut) (b)))
23773         #endif
23775 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23777         intprops: try to avoid tickling similar bugs
23778         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23779         needs to be the same width as T; it can be wider.
23780         Change callers so that UT is at least as wide as unsigned int,
23781         as I suspect that this is less likely to run into compiler bugs.
23783         intprops: port to Oracle Studio 12.3 x86
23784         Problem reported by Gavin Smith in:
23785         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23786         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23787         Convert unsigned to signed via the usual rather than the standard way,
23788         to avoid a compiler bug in Oracle Studio 12.3 x86.
23790 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23792         getopt: prefer - to _ in new file names
23793         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23794         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23795         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23796         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23797         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23798         All uses changed.
23800         getopt: port recent getopt changes to macOS
23801         Problem reported by Harald Maier (Bug#26398).
23802         The macOS C compiler uses __nonnull for its own purposes and that
23803         clashes with glibc's __nonnull.
23804         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23805         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23806         * lib/getopt_core.h (getopt):
23807         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23808         Use _GL_ARG_NONNULL, not __nonnull.
23809         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23810         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23811         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23812         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23814 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23816         getopt-gnu: omit some duplicate code
23817         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23818         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23819         gnulib-tool already does this.
23820         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23821         getopt-posix, which we depend on.
23823         getopt-posix: use angle-bracket include
23824         * lib/getopt1.c: Include <config.h>, not "config.h".
23826 2017-04-06  Zack Weinberg  <zackw@panix.com>
23828         getopt: annotate files with relationship to glibc
23830         As the final act in this patchset, adjust the message at the top of
23831         each file to indicate which files are synced with glibc.  (This has
23832         already been done for most of the headers.)
23834         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23835         Mention in top-of-file boilerplate that these files are shared
23836         between glibc and gnulib.
23839         getopt: split up getopt.in.h and eliminate __need_getopt
23841         Over in glibc, all of the __need macros are being phased out in favor
23842         of small headers that declare only the necessary components, as this
23843         is much simpler and less prone to bugs.  As getopt is shared with
23844         glibc, gnulib needs to do the same for __need_getopt.
23846         __need_getopt is misnamed; what it really means is "we want only the
23847         getopt features specified in POSIX, not the GNU extensions".  glibc
23848         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23849         these files can be shared verbatim with gnulib.  The portability
23850         wrapper, on the other hand, they have renounced altogether; glibc's
23851         getopt.h will no longer be shared with gnulib at all.  In exchange,
23852         certain glibc-specific quirks (having to do with __posix_getopt) no
23853         longer need appear in gnulib's headers at all.
23855         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23856         splits up the current gnulib-side portability wrapper into three
23857         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23858         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23859         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23860         unistd.in.h just use them.  All new files are clearly marked with
23861         whether they are shared with glibc.
23863         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23864         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23865         with glibc, and ...
23866         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23867         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23868         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23869         instead of defining __need_getopt and including the full getopt.h.
23871         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23872         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23873         * modules/getopt-posix (Files): Add new headers and sort list.
23874         (Depends-on): No longer need snippet/arg-nonnull.
23875         (Makefile.am): Generate getopt_cdefs.h.
23878         getopt: better handling of ambiguous options
23880         glibc's getopt uses alloca to construct a linked list of possibilities
23881         for an "ambiguous" long option.  In gnulib, malloc should be used
23882         instead.  Providing for both cases complicates things a fair bit.
23884         This patch rewrites ambiguous-option handling to use a boolean vector
23885         instead of a linked list.  There is then only one allocation that
23886         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23887         and in gnulib we define __libc_use_alloca to always be false, so we
23888         don't need ifdefs in the middle of the function.  This should also be
23889         slightly more efficient in the normal case of long options being fully
23890         spelled out -- I think most people aren't even aware they _can_
23891         sometimes abbreviate long options.
23893         One interesting consequence is that the list of possibilities is now
23894         printed in exactly the order they appear in the list of long options,
23895         instead of the first possibility being shuffled to the end.
23897         (The patch looks bigger than it really is because there's a fair bit
23898         of reindentation and code rearrangement.)
23900         * lib/getopt.c: When used standalone, define __libc_use_alloca
23901         as always false and alloca to abort if called.
23902         (process_long_option): Rewrite handling of ambiguous long options
23903         to use a single boolean vector, not a linked list; use
23904         __libc_use_alloca to decide whether to allocate this using alloca.
23907         getopt: refactor long-option handling
23909         There were two copies of the bulk of the code to handle long options.
23910         Now there is only one.
23912         This change temporarily removes the logic to avoid using alloca when
23913         standalone; the next patch in the series will restore it.
23915         * lib/getopt.c (process_long_option): New function split out
23916         from _getopt_internal_r.
23917         (_getopt_internal_r): Replace both copies of the long-option
23918         processing code with calls to process_long_option.
23921         getopt: tidy up _getopt_initialize a bit
23923         _getopt_data.__posixly_correct is completely redundant to
23924         _getopt_data.__ordering, and some work that logically belongs in
23925         _getopt_initialize was being done by _getopt_internal_r, making the
23926         code harder to understand.
23928         As a side effect, getenv will no longer be called if the first
23929         character of the options string is '+' or '-', which is probably a
23930         Good Thing.  (Perhaps we should have a flag character that
23931         specifically asks for the permutation behavior?)
23933         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23934         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23935         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23938         getopt: merge from glibc: repetition reduction
23940         The definitions of the entry point functions 'getopt' and
23941         '__posix_getopt' can be made substantially less repetitive with a
23942         helper macro.
23944         While I was merging the const-correctness changes from gnulib into
23945         glibc I noticed there are still some unnecessary casts in
23946         _getopt_internal_r.
23948         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23949         a macro.  Consistently cast 'argv' to 'char **' when calling
23950         _getopt_internal.
23951         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23954         getopt: clean up error reporting
23956         getopt can print a whole bunch of error messages, and when used
23957         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23958         cancellation point and getopt isn't, and also applying fprintf to a
23959         stream in wide-character mode is not allowed.  So every single error
23960         reporting case has an #ifdef _LIBC block in which it calls internal
23961         libc functions instead.  The counterpart patch series in glibc makes
23962         it possible to simplify all of that down to a set of #defines at the
23963         top of the file; core code is written as if it is safe to just call
23964         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23965         call any *other* stdio functions.)
23967         * lib/getopt.c: When _LIBC is defined, define fprintf to
23968         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23969         to _IO_funlockfile.  When neither _LIBC nor
23970         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23971         funlockfile as no-ops.
23972         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23973         standalone error-printing code can now be used for libc as well.
23974         Add an flockfile/funlockfile pair around one case where the error
23975         message is printed in several chunks.  Don't use fputc.
23978         getopt: fix fencepost error in ambiguous-W-option handling
23980         getopt_long contains an undocumented (AFAICT) feature in which, if you
23981         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23982         treated as equivalent to '--foo'.  This is implemented with a partial
23983         second copy of the code for handling long options, and that code
23984         increments optind one too many times when recovering from an ambiguous
23985         abbreviated option, which can cause the main loop to walk past the end
23986         of argv and crash.
23988         I discovered this while writing a test case that tries to exercise all
23989         of getopt's error reporting paths; I wouldn't be surprised to learn
23990         that this feature is never used by real applications.
23992         * lib/getopt.c (_getopt_internal_r): Don't increment
23993         d->optind a second time when reporting ambiguous -W options.
23996         getopt: clean up getopt.c and getopt1.c file headers
23998         In getopt.c, there is no need to include wchar.h at all, and it is
23999         safe nowadays to assume that stdlib.h does declare getenv (several
24000         other gnulib modules make this assumption).
24002         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
24003         by using "" inclusions consistently, and there is no actual need to
24004         include stdlib.h (except in the #ifdef TEST block, where it should be
24005         unconditional), nor to provide a backup definition of NULL at all.
24007         * lib/getopt1.c: Simplify #ifdeffage at top of file.
24008         Move inclusion of stdlib.h to #ifdef TEST block and make
24009         unconditional.  Do not define NULL.
24010         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
24011         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
24012         * modules/getopt-gnu, modules/getopt-posix: Don't call
24013         gl_PREREQ_GETENV.
24016         getopt: harmonize comments with glibc
24018         The comments explaining how the behavior of 'getopt' varies depending
24019         on whether it's the standalone version and whether there are special
24020         characters at the beginning of the options string were inconsistent
24021         between gnulib and glibc, and also out of sync with the code.
24023         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
24026         getopt: remove USE_NONOPTION_FLAGS
24028         getopt includes code to parse an environment variable named
24029         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
24030         in decimal); but all of it has been #ifdefed out since 2001, with no
24031         official way to turn it back on.
24033         According to commentary in glibc's config.h.in, bash version 2.0
24034         set this environment variable to indicate argv elements that were
24035         the result of glob expansion and therefore should not be treated
24036         as options, but the feature was "disabled later" because "it
24037         caused problems".  According to bash's CHANGES file, "later" was
24038         release 2.01; it gives no more detail about what the problems
24039         were.
24041         Version 2.0 of bash was released on the last day of 1996, and version
24042         2.01 in June of 1997.  Twenty years later, I think it is safe to
24043         assume that this environment variable isn't coming back.
24045         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
24046         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
24047         __libc_argc and __libc_argv externs, which were only used by
24048         #ifdef USE_NONOPTION_FLAGS blocks.
24051         getopt: tabify, in preparation for merge with glibc
24053         glibc sticks to the GNU default of indenting with a mix of
24054         8-column tabs and spaces; make the gnulib copy match.
24056         getopt.h is not included because it is *not* going to be merged in its
24057         present form.
24059         * getopt.c, getopt1.c, getopt_int.h: Tabify.
24061 2017-04-02  Bruno Haible  <bruno@clisp.org>
24063         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
24064         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
24065         like it was done in modules/relocatable-lib on 2011-05-21 and in
24066         modules/relocatable-prog on 2011-08-15.
24067         Reported by Reuben Thomas <rrt@sc3d.org>.
24069 2017-03-31  Bruno Haible  <bruno@clisp.org>
24071         glob: Fix invalid free() call.
24072         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
24073         static storage to home_dir.
24074         Reported by Coverity via Tim Rühsen.
24076 2017-03-31  Bruno Haible  <bruno@clisp.org>
24078         glob: Fix memory leaks.
24079         * lib/glob.c (glob): Free allocated memory before returning.
24080         Reported by Coverity via Tim Rühsen.
24082 2017-03-31  Bruno Haible  <bruno@clisp.org>
24084         md5, sha1, sha256, sha512: Add comments regarding correctness.
24085         * lib/md5.h (buflen): Add comments regarding range.
24086         * lib/sha1.h (buflen): Likewise.
24087         * lib/sha256.h (buflen): Likewise.
24088         * lib/sha512.h (buflen): Likewise.
24089         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
24090         * lib/sha1.c (sha1_process_bytes): Likewise.
24091         * lib/sha256.c (sha256_process_bytes): Likewise.
24092         * lib/sha512.c (sha512_process_bytes): Likewise.
24093         Reported by Coverity via Tim Rühsen.
24095 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24097         getopt: merge from glibc
24098         This does not change anything substantial; it merely simplifies
24099         hypothetical merges back to glibc.
24100         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
24101         Change copyright notice to match what is in glibc.
24102         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
24103         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
24104         __open_memstream rather than open_memstream and __glibc_likely
24105         instead of __builtin_expect.
24106         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
24108 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24110         dfa: make [0-9] faster in non-C locales
24111         Problem reported by John P. Linderman (Bug#26193).
24112         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
24113         If both ends of the range are ASCII digits, do not worry about
24114         multi-character collating sequences and the like.  Be consistent
24115         about using isalpha as a precondition for setbit_case_fold_c.
24117 2017-03-19  Bruno Haible  <bruno@clisp.org>
24119         lock: Fix compilation error with HP-UX IA64 cc.
24120         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
24121         weak on non-glibc platforms.
24123 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24125         stdalign: tweak version# and test for HP-UX IA64
24126         Problems reported by Bruno Haible in:
24127         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
24128         * lib/stdalign.in.h (_Alignas):
24129         * m4/stdalign.m4 (gl_STDALIGN_H):
24130         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
24131         used octal (as that is how they document it), but it is decimal in
24132         practice now and the ancient implementations no longer matter.
24133         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
24135 2017-03-19  Bruno Haible  <bruno@clisp.org>
24137         vma-iter: Add support for Solaris.
24138         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
24139         approach.
24140         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
24141         * lib/get-rusage-as.c: Update comment about Solaris.
24142         * lib/get-rusage-data.c: Likewise.
24144 2017-03-19  Bruno Haible  <bruno@clisp.org>
24146         vma-iter: Prefer HP-UX specific API on HP-UX.
24147         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
24148         * lib/vma-iter.h: Update.
24149         Just in case HP-UX ever implements mquery().
24151 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
24153         stdalign: restore previous behavior for HP-UX IA64
24154         See Bruno Haible's email in:
24155         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24156         which cites p 150 of a manual saying that 'aligned' works on Itanium.
24157         * lib/stdalign.in.h (_Alignas):
24158         Assume the '061200' applies to Itanium, not to PA-RISC.
24159         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
24161 2017-03-17  Bruno Haible  <bruno@clisp.org>
24163         stat-time, timespec: Support use of the header files in C++ mode.
24164         * lib/stat-time.h: Add "C" linkage declaration.
24165         * lib/timespec.h: Likewise.
24167 2017-03-17  Bruno Haible  <bruno@clisp.org>
24169         stdalign: Make it work with HP-UX cc.
24170         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
24171         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
24172         for HP-UX cc.
24174 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
24176         flexmember: try to detect HP-UX 11.31 cc bug
24177         Problem reported by Bruno Haible in:
24178         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
24179         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24180         Attempt to detect bug in HP-UX 11.31 cc.
24182 2017-03-16  Bruno Haible  <bruno@clisp.org>
24184         stdint: Fix test compilation failure with HP-UX 11 cc.
24185         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
24186         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
24187         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
24188         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
24190 2017-03-14  Bruno Haible  <bruno@clisp.org>
24192         gnulib-tool: Don't produce a tests directory with only snippet .h files.
24193         * gnulib-tool (func_modules_transitive_closure_separately): If
24194         testsrelated_modules ends up with no "real" modules, aside from
24195         modules with applicability 'all', set it to empty.
24197 2017-03-14  Bruno Haible  <bruno@clisp.org>
24199         vma-iter: Add support for HP-UX.
24200         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
24201         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
24202         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
24203         * lib/get-rusage-as.c: Update comment about HP-UX.
24204         * lib/get-rusage-data.c: Likewise.
24205         (get_rusage_data): Use get_rusage_data_via_setrlimit.
24207 2017-03-14  Bruno Haible  <bruno@clisp.org>
24209         limits-h: Make it work with HP-UX cc.
24210         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
24211         defined.
24213 2017-03-14  Bruno Haible  <bruno@clisp.org>
24215         Fix test failures on DragonFlyBSD.
24216         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
24217         * tests/test-select.h (test_bad_fd): Likewise.
24218         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
24220 2017-03-14  Bruno Haible  <bruno@clisp.org>
24222         freadahead: Silence warning on DragonFlyBSD.
24223         * lib/freadahead.c (__sreadahead): Declare ourselves.
24225 2017-03-14  Bruno Haible  <bruno@clisp.org>
24227         vma-iter: Add comment about AIX.
24228         * lib/vma-iter.c: Add comment about why this module is not implemented
24229         on AIX.
24231 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24233         snippets: move unadjusted snippet sources to lib
24234         Problem reported by Michal Privoznik in:
24235         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
24236         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
24237         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
24238         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
24239         * lib/unused-parameter.h: Rename from
24240         build-aux/snippet/unused-parameter.h.
24241         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
24242         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
24243         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
24244         * modules/snippet/c++defs (Files:, CXXDEFS_H):
24245         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
24246         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
24247         Adjust to file renamings.
24249 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
24251         gnulib-tool: don't automatically distribute files from top/
24252         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
24253         not distribute top/README-release by default, don't distribute files
24254         from top/ unconditionally.
24255         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24256         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24258 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24260         gnulib-tool: fix typo in comment output
24261         * gnulib-tool (func_import): Fix typo with previous change.
24263         snippets: work around GNU Make 3.82 VPATH
24264         When using 'gnulib-tool --gnu-make' on Emacs, and building
24265         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24266         an out-of-source (VPATH) build failed because the sans-copyright
24267         snippet file was not built before the file that used it.
24268         Presumably this is some sort of VPATH thing.  Work around the
24269         problem by using the original snippet, i.e., don’t bother to
24270         remove its copyright notice.
24271         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24272         Don’t assume Automake in comments.  Omit long-incorrect comment.
24273         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24274         (MOSTLYCLEANFILES):
24275         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24276         (MOSTLYCLEANFILES):
24277         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24278         (MOSTLYCLEANFILES):
24279         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24280         (MOSTLYCLEANFILES):
24281         Remove.
24282         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24283         * modules/snippet/c++defs (CXXDEFS_H):
24284         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24285         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24286         Don’t bother to remove the copyright notice; just use the
24287         original snippet as-is.
24289 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24291         gnulib-tool: minor --gnu-make fixups
24292         * gnulib-tool (func_emit_lib_Makefile_am):
24293         Remove useless code that was a blind alley during implementation.
24294         Problem reported by Thien-Thi Nguyen in:
24295         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24296         (func_import): Note the "--gnu-make" option in the output comment.
24298 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24300         gnulib-tool: new option --gnu-make
24301         This is for applications like GNU Emacs that use GNU Make
24302         features instead of Automake.
24303         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24304         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24305         Do not assume Automake.
24306         * gnulib-tool (func_determine_path_separator)
24307         (func_modules_transitive_closure, func_update_file)
24308         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24309         (func_import): Add support for --gnu-make.
24311 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24313         gnulib-common.m4: avoid aclocal.m4 bloat
24314         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24315         Hide AM_PROG_AR from aclocal, so that aclocal does not
24316         install irrelevant macro definitions into aclocal.m4.
24318 2017-03-10  Bruno Haible  <bruno@clisp.org>
24320         vma-iter: Let callers know about error.
24321         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24322         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24324 2017-03-05  Bruno Haible  <bruno@clisp.org>
24326         Fix value of LD for 64-bit compilers on AIX.
24327         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24328         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24330 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24332         dtotimespec: simplify
24333         * lib/dtotimespec.c (dtotimespec): Simplify.
24335 2017-03-04  Bruno Haible  <bruno@clisp.org>
24337         test-calloc-gnu: Reenable test also for GCC 7.
24338         * tests/test-calloc-gnu.c (eight): New function.
24339         (main): Don't skip test; use eight() instead.
24341 2017-03-04  Jim Meyering  <meyering@fb.com>
24343         test-calloc-gnu: port to GCC7
24344         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24345         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24346         and newer would detect that at compilation time.
24348 2017-03-04  Bruno Haible  <bruno@clisp.org>
24350         tests: Avoid compiler warning about uses of null_ptr.
24351         * tests/null-ptr.h: New file.
24352         * tests/test-canonicalize.c: Include null-ptr.h.
24353         (null_ptr): Remove function.
24354         * tests/test-canonicalize-lgpl.c: Likewise.
24355         * tests/test-memmem.c: Likewise.
24356         * tests/test-ptsname_r.c: Likewise.
24357         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24358         * modules/canonicalize-lgpl-tests: Likewise.
24359         * modules/memmem-tests: Likewise.
24360         * modules/ptsname_r-tests: Likewise.
24361         Reported by Jim Meyering.
24363 2017-03-03  Bruno Haible  <bruno@clisp.org>
24365         doc: Mention Mac OS X deficiencies regarding semaphores.
24366         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24367         * doc/posix-functions/sem_destroy.texi: Likewise.
24368         * doc/posix-functions/sem_getvalue.texi: Likewise.
24370 2017-03-03  Bruno Haible  <bruno@clisp.org>
24372         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24373         Reported by Assaf Gordon <assafgordon@gmail.com> via
24374         Pádraig Brady <P@draigBrady.com>.
24375         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24376         semaphores.
24377         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24378         (atomic_int_semaphore): New macro.
24380 2017-02-28  Bruno Haible  <bruno@clisp.org>
24382         perror tests: Tweak for z/OS.
24383         Reported by Daniel Richard G. <skunk@iskunk.org>.
24384         * tests/test-perror.sh: Don't fail z/OS style perror output.
24386 2017-02-26  Bruno Haible  <bruno@clisp.org>
24388         nproc: Refactor large function.
24389         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24390         from num_processors.
24391         (num_processors): In this function, only deal with OMP.
24393 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24395         nproc: adjust handling of OpenMP environment variables
24396         to match the return value from omp_get_num_threads(), i.e.:
24397          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24398          - Treat 0 as an invalid value and ignore
24399         Also remove the call to omp_get_num_threads() because
24400         it's ineffective without the omp pragmas in place.
24401         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24402         so that it can be ignored.
24403         (num_processors): Honor OMP_THREAD_LIMIT even without
24404         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24405         variable being checked, from the previous recent commit.
24407 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24409         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24410         * lib/nproc.c (parse_omp_threads): A new function refactored
24411         from num_processors() to support parsing both of the
24412         above environment variables.
24413         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24414         to accurately reflect the current OpenMP nesting level.
24415         Also support the OMP_THREAD_LIMIT environment variable
24416         to limit the max value determined from OMP_NUM_THREADS.
24417         * modules/nproc: Depend on minmax header.
24418         Suggested by Oliver Heimlich.
24420 2017-02-25  Bruno Haible  <bruno@clisp.org>
24422         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24423         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24425 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24427         ftoastr: port to -Wdouble-promotion
24428         Work around -Wdouble-promotion false alarm in recent GCCs.
24429         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24430         (ftoastr_snprintf, FTOASTR): Use it.
24432 2017-02-21  Bruno Haible  <bruno@clisp.org>
24434         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24435         Reported by Rene Saavedra <rennes@openmailbox.org> in
24436         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24437         * lib/glthread/lock.h: On glibc systems without
24438         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24439         implementation of rwlocks.
24440         * lib/glthread/lock.c: Likewise.
24442 2017-02-20  Bruno Haible  <bruno@clisp.org>
24444         lock tests: Fix build failure on z/OS.
24445         Reported by Daniel Richard G. <skunk@iskunk.org>.
24446         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24447         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24448         exist.
24450 2017-02-19  Bruno Haible  <bruno@clisp.org>
24452         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24453         This helps when CC=clang.
24454         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24455         of /usr/bin/gcc.
24457         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24458         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24460 2017-02-19  Bruno Haible  <bruno@clisp.org>
24462         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24463         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24464         --with-tests --single-configure is specified.
24466 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24468         users.txt: Update links, use HTTPS where possible
24469         * users.txt: Updated to HTTPS where possible,
24470         fixed some links to new locations.
24472 2017-02-16  Bruno Haible  <bruno@clisp.org>
24474         xbinary-io: Fix inlining.
24475         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24477 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24479         xbinary-io: rename from xsetmode
24480         This patch is taken from suggestions by Bruno Haible in:
24481         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24482         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24483         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24484         not ENOTTY, when it is an inappropriate device.
24485         * lib/binary-io.h (SET_BINARY): Resurrect.
24486         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24487         (xset_binary_mode_error): Rename from xsetmode_error.
24488         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24489         (xset_binary_mode): Rename from xsetmode.
24490         All uses changed.
24491         * modules/xbinary-io: Rename from modules/xsetmode.
24492         Update file names.
24493         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24494         * NEWS: Update to match revised behavior.
24496 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24498         tests: Adjust to recent SET_BINARY change
24499         * tests/test-binary-io.c (main):
24500         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24501         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24502         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24503         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24505         xsetmode: new module
24506         This is to fix a problem noted by Eric Blake.
24507         Code was using xfreopen to change files to binary mode, but this
24508         fails for stdout when in append mode.  Such code should use
24509         xsetmode instead.
24510         * NEWS: Document incompatible changes to binary-io module.
24511         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24512         New function.
24513         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24514         (set_binary_mode): New function, which also checks for tty.
24515         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24517 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24519         headers: fix begin-end typos
24520         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24521         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24523         selinux-h: port to PGI 16.10
24524         * lib/se-selinux.in.h: Don't assume that include_next skips over
24525         duplicate -I DIR options.
24527         argp: port to PGI 16.10
24528         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24530 2017-02-13  Darshit Shah  <darnir@gnu.org>
24532         unicase: Update function protoype to match definition.
24533         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24534         uses 'size_t' as the datatype for the 'len' parameter in the functions
24535         it generates. Update the prototype specified here to match the newly
24536         generated function.
24538 2017-02-12  Bruno Haible  <bruno@clisp.org>
24540         times test: Avoid gcc warnings on Linux/x32.
24541         * tests/test-times.c (main): Really cast printf arguments from clock_t
24542         to 'long int'.
24544 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24546         glob: port better to emscripten
24547         Problem reported by Bruno Haible in:
24548         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24549         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24551 2017-02-11  Bruno Haible  <bruno@clisp.org>
24553         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24554         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24555         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24556         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24557         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24558         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24559         Distinguish hppa64 from hppa.
24561 2017-02-10  Bruno Haible  <bruno@clisp.org>
24563         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24564         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24565         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24566         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24568 2017-02-09  Bruno Haible  <bruno@clisp.org>
24570         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24571         * doc/gnulib.texi (Libtool and Windows): Recommend
24572         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24573         Reported by Reuben Thomas <rrt@sc3d.org>.
24575 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24577         stddef-tests: port to SIZE_MAX <= INT_MAX
24578         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24579         Do not assume that INT_MAX < SIZE_MAX.
24581 2017-02-01  Bruno Haible  <bruno@clisp.org>
24583         lock tests: Fix link error.
24584         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24587 2017-01-31  Bruno Haible  <bruno@clisp.org>
24589         lock: Fix link error (regression from 2017-01-05).
24590         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24591         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24592         pthread_rwlockattr_destroy weak.
24593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24595 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24597         Port to PGI 16.10 x86-64
24598         This patch fixes one real bug in gl_anylinked_list2.h, along with
24599         some minor glitches that are not bugs.  It does not silence PGI’s
24600         thousands of bogus warnings when compiling test-intprops.c.
24601         Fortunately, the warnings do not cause a failure.
24602         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24603         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24604         My goodness, PGI goes back a long ways - this predates C89!
24605         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24606         For example, ASYNCSAFE (const void *) should expand to
24607         ‘const void *volatile’, not to ‘volatile const void *’.
24608         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24609         * lib/verify.h (verify) [!__GNUC__]:
24610         Use shorter albeit meaningless string to bypass silly compiler limits.
24611         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24612         * tests/nan.h (NaNf, NaNd, NaNl):
24613         Use static functions to avoid misguided compiler diagnostics.
24614         Is there some reason we don’t use static functions on all platforms?
24616 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24618         parse-datetime: handle timezones reentrantly
24619         This API change was prompted by a report by Pádraig Brady in:
24620         https://bug.debian.org/851934#10
24621         To help fix the bug, make parse_datetime2 more reentrant.
24622         * NEWS: Document this incompatible change.
24623         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24624         Add two arguments, the timezone and the timezone name.
24625         All callers changed.  If TZ="..." is specified, use it for
24626         calculating defaults.
24627         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24628         this code should be usable in a library.
24629         (mktime_ok, get_effective_timezone):
24630         Accept timezone arg too.  All callers changed.
24631         (get_tz): Remove.
24632         (get_effective_timezone): Check for failures.
24634 2017-01-20  Eric Blake  <eblake@redhat.com>
24636         localename: port to cygwin 2.6
24637         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24638         Cygwin.
24639         * modules/localename (Depends-on): Add extensions, since
24640         NL_LOCALE_NAME() is not visible without it.
24642 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24644         parse-datetime: fix dependence on AC_PROG_SED
24645         * modules/parse-datetime: Use `sed` directly like all other modules.
24646         Reported by J William Piggott
24648 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24650         intprops: update doc URLs
24651         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24653 2017-01-16  Bruno Haible  <bruno@clisp.org>
24655         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24656         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24657         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24658         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24659         distinguish s390 and s390x.
24660         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24661         * NEWS: Mention the change regarding 'armel'.
24663 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24665         localeinfo: case_folded_counterparts and WEOF
24666         * NEWS: Document this.
24667         * lib/localeinfo.c (case_folded_counterparts):
24668         First arg is now wint_t, not wchar_t.  This generalizes the
24669         function to also work on WEOF, where it returns 0.
24671         dfa: port to gcc -fsanitize=undefined
24672         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24673         as this runs afoul of gcc -fsanitize=undefined.
24675 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24677         strftime: %z is -00 if unknown
24678         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24679         the caller's responsibility to set 'negative_number'.  All uses changed.
24680         (__strftime_internal): Put '-' before a zero UTC offset if the time
24681         zone abbreviation starts with "-", which is the recently-introduced
24682         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24683         * tests/test-strftime.c: Test for this.
24685 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24687         dfa: port to older GCC
24688         Problem reported by Assaf Gordon in:
24689         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24690         * modules/c99: New module.  This merely attempts to use the latest
24691         C version, which should be enough to solve this particular problem.
24692         The idea is to document which Gnulib modules assume C99 or later.
24693         * modules/dfa (Depends-on): Add it.
24695 2017-01-10  Bruno Haible  <bruno@clisp.org>
24697         Update DEPENDENCIES.
24698         * DEPENDENCIES: List only https URLs. Update recommended version for
24699         autoconf, automake, gperf.
24701 2017-01-10  Jim Meyering  <meyering@fb.com>
24703         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24704         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24705         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24707 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24709         dfa: minor simplification with emptyset
24710         * lib/dfa.c (build_state): Simplify by using emptyset.
24712 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24714         dfa: shrink constraints from 4 bits to 3
24715         * lib/dfa.c (newline_constraint, letter_constraint)
24716         (other_constraint, prev_newline_dependent)
24717         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24718         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24719         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24720         Constraints need only 3 bits, not 4.  Using smaller integers
24721         shrinks the code a bit and makes grep a tad faster on x86-64.
24723         dfa: omit unnecessary ptrdiff_t check
24724         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24725         overflow, since xnmalloc does that now.
24727         dfa: omit unnecessary allocation
24728         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24729         an all-zero follow set works just fine.
24731         dfa: omit unused local
24732         * lib/dfa.c (build_state): Fix up recent change.
24734         maint: remove stray .texi files
24735         Although these were superseded by other files like
24736         doc/posix-functions/ctime.texi, the old files were not removed.
24737         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24739 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24741         getprogname: fix port to IRIX
24742         * lib/getprogname.c (getprogname) [__sgi]:
24743         Don't dump core if malloc returns NULL.
24745         dfa: fix reallocation bug when matching newlines
24746         Problem reported for sed by S. Gilles (Bug#25390).
24747         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24748         (dfastate): Reallocate before moving any newline transition ...
24749         (build_state): ... instead of reallocating here, where it is too late.
24751 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24753         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24754         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24756 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24758         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24759         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24761 2017-01-07  Bruno Haible  <bruno@clisp.org>
24763         stdioext: Port to Minix 3.2 and newer.
24764         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24765         * lib/fseeko.c (fseeko): Likewise.
24766         Reported by Nelson Beebe via Paul Eggert.
24768 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24770         getprogname: port to IRIX
24771         * lib/getprogname.c (getprogname): Port to IRIX.
24772         Based on an idea by Bastien Roucariès at:
24773         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24774         via code from Bruno Haible at:
24775         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24777         localename-tests: port to NetBSD 7
24778         Problem reported by Nelson H. F. Beebe.
24779         * tests/test-localename.c:
24780         Test newlocale and uselocale only if both exist.
24782         glob, intprops, xalloc: work around Clang bug
24783         Work around LLVM bug 16404, which is still not fixed.
24784         https://llvm.org/bugs/show_bug.cgi?id=16404
24785         Problem reported by Nelson H. F. Beebe.
24786         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24787         Remove.
24788         * lib/glob.c (size_add_wrapv):
24789         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24790         * lib/xalloc-oversized.h (xalloc_oversized):
24791         Do not use overflow builtins if Clang.
24793         dfa: fix 'return' typo
24794         Problem reported by Nelson H. F. Beebe.
24795         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24797 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24799         parse-datetime: fix generated paths for coverage files
24800         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24801         within parse-datetime.c, so that gcc generates appropriate .gcno
24802         files, allowing lcov to proceed without error.  Previously it
24803         would error trying to find "lib/lib/parse-datetime.y".
24805 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24807         maint.mk: support parallel execution of coverage
24808         * top/maint.mk (coverage): Run dependencies serially,
24809         thus supporting parallel processing of each one,
24810         particularly build-coverage, which builds and runs tests.
24812 2017-01-05  Bruno Haible  <bruno@clisp.org>
24814         lock tests: Prefer semaphore over mutex.
24815         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24816         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24817         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24818         Suggested by Torvald Riegel <triegel@redhat.com>.
24820 2017-01-05  Bruno Haible  <bruno@clisp.org>
24822         lock: Provide guarantee to avoid writer starvation for rwlocks.
24823         The rationale is: 1) Read-preferring read-write locks are prone to
24824         writer starvation if the number of reader threads multiplied by the
24825         percentage of time they have the lock held is too high. 2) Write-
24826         preferring read-write locks are the only reliable way to avoid this.
24827         3) There have been reports of 'test-lock' hanging on glibc systems
24828         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24829         and glibc indeed implements read-preferring rwlocks by default, see
24830         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24831         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24832         * m4/pthread_rwlock_rdlock.m4: New file.
24833         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24834         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24835         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24836         of rwlock initialization on glibc systems without
24837         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24838         of rwlocks altogether on non-glibc systems without
24839         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24840         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24841         * lib/glthread/lock.c [USE_POSIX_THREADS]
24842         (glthread_rwlock_init_for_glibc): New function.
24843         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24844         comment.
24845         [USE_PTH_THREADS]: New implementation of rwlocks.
24846         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24847         readers.
24848         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24849         (Depends-on): Add 'extensions'.
24850         * tests/test-rwlock1.c: New file.
24851         * lock-tests (Files): Add it.
24852         (Depends-on): Add usleep.
24853         (Makefile.am): Add test-rwlock1 to the tests.
24855 2017-01-05  Bruno Haible  <bruno@clisp.org>
24857         thread: Fix pth port.
24858         * lib/glthread/thread.h (pth_init): Declare weak.
24859         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24860         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24861         function.
24863 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24865         parse-datetime: fix debug message on lone year number
24866         Input dates such as
24867           date -d "Apr 11 22:59:00 2011"
24868         are parsed as date (Apr 11, with default year 2016), then time, then a
24869         number (2011). Based on the combination of previously seen tokens,
24870         'digits_to_date_time' determines 2011 to be a year value.
24871         This fixes the debug messages to correctly show the updated year.
24872         Before:
24873             $ date --debug -d 'Apr 11 22:59:00 2011'
24874             date: parsed date part: (Y-M-D) 2016-04-11
24875             date: parsed time part: 22:59:00
24876             date: parsed number part: today/this/now
24877         After:
24878             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24879             date: parsed date part: (Y-M-D) 2016-04-11
24880             date: parsed time part: 22:59:00
24881             date: parsed number part: year: 2011
24882         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24883         'debug_year_seen' member fields.
24884         (digits_to_date_time): Update 'year_seen' as needed.
24885         (debug_print_current_time): Inform about year updates.
24886         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24888         parse-datetime: fix local timezone debug messages
24889         "Local timezones" are strings that affect only DST relative to the
24890         default timezone. The debug messages in parse-datetime.y printed
24891         wrong information when encountering local timezones.
24892         Examples:
24893         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24894              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24895              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24896         When the default timezone relates to the zone strings, EET/EEST are
24897         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24898         value (0/1, respectively):
24899              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24900              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24901         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24902         was seen, inform about DST change, don't print actual timezone.
24903         (debug_strfdatetime): If local timezone was seen, use default timezone
24904         (and adjust as needed) instead of using incorrect timezone.
24905         (parse_datetime2): Use correct time-zone source string, and adjust
24906         default timezone as needed.
24908         parse-datetime: add debug warning about DST changes
24909         Incorrect date arithmetic due to daylight saving time (DST) are a
24910         common (false) bug report in coreutils.
24911         Detect two such cases and print a warning:
24912         1. year/month/day adjustments (performed on 'struct tm'),
24913            where 'mktime' returns a different isdst value.
24914         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24915            where the result of 'localtime(3)' on the value will return a
24916            different isdst value.
24917         Note: DST changes could be harmless or unnoticeable.
24918         Examples (with 'TZ=America/New_York'):
24919         Unnoticeable: result is 2016-Dec-14
24920            $ date -d '2016-06-15 EDT + 6 months' +%b
24921            Dec
24922         Unnoticeable: result is 2016-Dec-15 11:00:00
24923            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24924            2016-12-15
24925         This is unexpected:
24926            $ date -d '2016-06-01 EDT + 6 months' +%F
24927            2016-11-30
24928         The new debug warnings will show:
24929            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24930            ...
24931            date: warning: daylight saving time changed after date adjustment
24932            ...
24933         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24934         print an appropriate warning message.
24936         parse-datetime: add debug warning about date arithmetic
24937         Date arithmetic are done directly on the fields of 'struct tm',
24938         which can result in invalid dates. Normalization with 'mktime(3)'
24939         will then produce a different date - which might cause unexpected
24940         results.
24941         Examples:
24942           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24943           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24944         Note that date normalization is not inherently wrong and not rejected,
24945         as it has legitimate uses:
24946           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24947         If the user asked to adjust months but 'mday' changed,
24948         or user asked to adjust years but 'month' changed - warn about it.
24949             $ ./src/date --debug -d '2016-10-31 - 1 month'
24950             ...
24951             date: warning: when adding relative months/years, \
24952                            it is recommended to specify the 15th of the month
24953             ...
24954             date: warning: month/year adjustment resulted in shifted dates:
24955             date:      adjusted Y M D: 2016 09 31
24956             date:    normalized Y M D: 2010 10 01
24957             ...
24958         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24959         a warning message. Improve recommendation of when to use 15 of the
24960         month or noon for date arithmetic.
24962         parse-datetime: fix debug message of relative part after timezone
24963         Relative part (e.g '+8 days') after a timezone string was not
24964         reported (was only reported after a timezone number). Due to the
24965         parser's structure, timezone strings with numbers were handled
24966         separately.
24967         before:
24968              # Timezone number + relative part: OK
24969              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24970              ...
24971              date: parsed relative part: -8 day(s)
24972              # Timezone string + relative part: missing
24973              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24974              [ missing message ]
24975         After: messages are printed in both cases.
24976         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24978         parse-datetime: fix incorrect debug message on lone number
24979         A lone number is an absolute value, not a relative time part.
24980         before:
24981            $ date --debug -d '20130101'
24982            date: parsed number part: today/this/now
24983         After:
24984            $ ./src/date --debug -d '20130101'
24985            date: parsed number part: (Y-M-D) 2013-01-01
24986         * lib/parse-datetime.y ('item'/'number' tokens): Call
24987         'debug_print_current_time' instead of 'debug_print_relative_time'.
24989 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24991         doc: modernize for C11 etc.
24992         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24993         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24994         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24996         dfa: prefer functions to FETCH_WC macro
24997         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24998         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24999         wint_t result into DFA->lex.wctok instead of to a separate arg.
25000         All callers changed.  Move more local decls closer to where
25001         they're used.
25003         dfa: narrow more local var scopes
25004         * lib/dfa.c: Move more local decls to be more local.
25006         dfa: remove duplicate assignment
25007         Problem reported by Bruno Haible in:
25008         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
25009         * lib/dfa.c (parse_bracket_exp): Simplify.
25011 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25013         dfa: simplify constraint-dependency checking
25014         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
25015         (prev_other_constraint): Remove.
25016         (prev_newline_dependent, prev_letter_dependent):
25017         Simplify, to avoid an unnecessary bitwise AND operation.
25019         dfa: prefer functions and constants to macros
25020         * lib/dfa.c: Prefer constants to macros where either will do.
25021         (streq, isasciidigit, newline_constraint)
25022         (letter_constraint, other_constraint, succeeds_in_context)
25023         (prev_newline_constraint, prev_letter_constraint)
25024         (prev_other_constraint, prev_newline_dependent)
25025         (prev_letter_dependent, accepting, accepts_in_context):
25026         Now static functions instead of function-like macros.
25027         Use lower-case names accordingly.  All uses changed.
25029         dfa: narrow more local var scopes
25030         * lib/dfa.c: Move some more local decls down to nearer where
25031         they're needed.
25033 2016-12-31  Jim Meyering  <meyering@fb.com>
25035         dfa: narrow the scope of many local variables
25036         * lib/dfa.c: Now that we are no longer constrained to c89, move
25037         declarations of many variables (often indices) "down" into the
25038         scope(s) where used or to the point of definition.  This is a
25039         no-semantic-change diff.
25041 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25043         version-etc: new year
25044         * build-aux/gendocs.sh (version):
25045         * doc/gendocs_template:
25046         * doc/gendocs_template_min:
25047         * doc/gnulib.texi:
25048         * lib/version-etc.c (COPYRIGHT_YEAR):
25049         Update copyright dates by hand in templates and the like.
25050         * all files: Run 'make update-copyright'.
25052 2016-12-31  Eric Blake  <eblake@redhat.com>
25054         do-release-commit-and-tag: avoid shell syntax error
25055         * build-aux/do-release-commit-and-tag (curr_br): $branch can
25056         contain spaces when rebasing.
25058         maint.mk: hoist gnulib_dir definition earlier
25059         * top/maint.mk (gnulib_dir): Move near top of file.
25061 2016-12-31  Jim Meyering  <meyering@fb.com>
25063         maint.mk: do not always evaluate intprops-related shell
25064         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
25065         using gnulib_dir undefined (gnulib_dir is defined later in the
25066         file, which will be fixed separately), and besides, there is no
25067         need to incur the cost of this shell invocation for every single
25068         use of this .mk file.  Reported by Eric Blake in
25069         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
25071 2016-12-30  Jim Meyering  <meyering@fb.com>
25073         maint.mk: improve sc_prohibit_intprops_without_use
25074         * top/maint.mk (_intprops_names): Don't hard-code the list of
25075         symbol names.  Instead, derive it on the fly.
25077 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25079         dfa: shorten sbit, success
25080         * lib/dfa.c (struct regex_syntax.sbit):
25081         (struct dfa.success): Use char, not int, for array elements, since
25082         they are all in the range 0..7.
25084         dfa: simplify multibyte_prop etc.
25085         This follows up on a change made when dfa.c was in grep, namely grep
25086         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
25087         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
25088         That earlier simplification allows for some more simplification
25089         and trimming down here.
25090         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
25091         (struct lexer_state): New mamber brack.
25092         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
25093         since they must be in the range 0..3 now.
25094         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
25095         the brack member now supersedes them.
25096         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
25097         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
25098         (dfaparse): Remove unnecessary initializations of already-0 storage.
25099         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
25100         (dfassbuild): No need to clear sup->mbcsets.
25102         dfa: minor performance tweak
25103         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
25105         dfa: wrap charclass inside a struct
25106         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
25107         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
25108         about 5% faster, where list.txt is generated by 'aspell dump
25109         master | head -n 100000 >list.txt'.  See Bug#22239.
25110         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
25111         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
25112         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
25113         Adjust to this, e.g., by using charclass * rather than charclass.
25114         All callers changed as needed.
25115         (copyset): Remove.  All uses changed to simple assignment.
25116         (parse_bracket_exp): Use zeroset instead of memset.
25118 2016-12-30  Jim Meyering  <meyering@fb.com>
25120         maint.mk: update list of intprops.h symbol names
25121         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
25122         This avoids a false failure of the sc_prohibit_intprops_without_use
25123         rule in grep.
25125 2016-12-29  Eric Blake  <eblake@redhat.com>
25127         getopt: fix parallel test failure
25128         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
25129         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
25130         * tests/test-getopt-main.h (main): Use different file names
25131         in case test-getopt-gnu and test-getopt-posix run in parallel.
25133 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25135         xalloc: x2nrealloc check for ptrdiff_t overflow
25136         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
25137         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
25139 2016-12-24  Bruno Haible  <bruno@clisp.org>
25141         lock test: Fix performance problem on multi-core machines.
25142         * tests/test-lock.c (USE_VOLATILE): New macro.
25143         (struct atomic_int): New type.
25144         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
25145         functions.
25146         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
25147         as 'struct atomic_int'.
25148         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
25149         reclock_checker_thread, test_recursive_lock): Use the new functions.
25150         Reported by Eric Blake in
25151         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
25152         and by Pádraig Brady in
25153         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
25155 2016-12-19  Bruno Haible  <bruno@clisp.org>
25157         vma-iter: Fix endless loop on 64-bit Windows.
25158         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
25159         'unsigned long'.
25161 2016-12-19  Bruno Haible  <bruno@clisp.org>
25163         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
25164         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
25165         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
25166         Invoke gt_TYPE_WINT_T instead.
25167         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
25168         * modules/stdint (Files): Add m4/wint_t.m4.
25169         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25170         * modules/wctype-h (Makefile.am): Likewise.
25171         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
25172         not only on MSVC.
25173         * lib/wctype.in.h (wint_t): Likewise.
25175 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25177         getopt-posix-tests: fix Makefile typo
25178         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
25179         Fix typo: the last ‘_’ was missing in the name.
25180         I suspect that the typo explains this build failure:
25181         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
25182         although I can’t reproduce the problem on Solaris 10 sparc.
25184 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25186         dfa: improve worst-case 'replace' performance
25187         See my note in Bug#22357#71.
25188         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
25189         (merge_constrained): New function, which is like
25190         the old 'merge' function, except with a new argument C2.
25191         Simplify the body by avoiding the need for different sections
25192         of code depending on whether one input is exhausted.
25193         (merge): Use the new function.
25194         (delete): Return the constraint of the deleted position,
25195         not the entire position.  Caller changed.
25196         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
25198 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25200         dfa: performance improvement for removal of epsilon closure
25201         See Bug#22357#32.
25202         * lib/dfa.c (delete): Use binary search to find deleted index.
25203         (replace): New function.  It replaces a position with the followed set.
25204         (epsclosure): Replace it with a new algorithm.  Update caller.
25206 2016-12-18  Bruno Haible  <bruno@clisp.org>
25208         Split tests for getopt-posix and getopt-gnu.
25209         * tests/test-getopt-posix.c: New file.
25210         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
25211         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
25212         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
25213         GNULIB_TEST_GETOPT_GNU.
25214         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
25215         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
25216         (Makefile.am): Test test-getopt-posix instead of test-getopt.
25217         * modules/getopt-gnu-tests: New file.
25218         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
25220 2016-12-18  Bruno Haible  <bruno@clisp.org>
25222         posix-modules: Add options for specific platforms.
25223         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
25224         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
25225         Invoke func_tmpdir. Filter out the excludes.
25227 2016-12-18  Bruno Haible  <bruno@clisp.org>
25229         getopt: Fix link error for users of getopt() in <unistd.h>.
25230         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
25231         __need_getopt is defined. Undefine all macros before defining them.
25232         * modules/getopt (Include): Clarify that including <unistd.h> is also
25233         OK.
25234         * tests/test-getopt.c: Add comment.
25236 2016-12-17  Bruno Haible  <bruno@clisp.org>
25238         getaddrinfo tests: Avoid compilation error on MSVC.
25239         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
25240         getaddrinfo on native Windows.
25242 2016-12-17  Bruno Haible  <bruno@clisp.org>
25244         getlogin, getlogin_r: Fix link errors on MSVC.
25245         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
25246         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
25247         (Link): New section.
25248         * modules/getlogin_r (Files): Add m4/getlogin.m4.
25249         (configure.ac): Require gl_LIB_GETLOGIN.
25250         (Link): New section.
25251         * NEWS: Mention the new link requirements.
25252         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
25253         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25255 2016-12-17  Bruno Haible  <bruno@clisp.org>
25257         Un-deprecate the 'progname' module.
25258         * NEWS: Describe the appropriate use-cases of 'progname' versus
25259         'getprogname'. Based on discussion summary at
25260         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25262 2016-12-17  Bruno Haible  <bruno@clisp.org>
25264         Reorganize NEWS a bit.
25265         * NEWS: Move some not so important changes away from section
25266         "Important Notes".
25268 2016-12-17  Bruno Haible  <bruno@clisp.org>
25270         tanhf: Avoid redefinition error on MSVC.
25271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25272         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25273         may be defined as an inline function.
25274         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25275         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25277 2016-12-17  Bruno Haible  <bruno@clisp.org>
25279         tanf: Avoid redefinition error on MSVC.
25280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25281         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25282         may be defined as an inline function.
25283         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25284         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25286 2016-12-17  Bruno Haible  <bruno@clisp.org>
25288         sqrtf: Avoid redefinition error on MSVC.
25289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25290         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25291         may be defined as an inline function.
25292         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25293         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25295 2016-12-17  Bruno Haible  <bruno@clisp.org>
25297         sinhf: Avoid redefinition error on MSVC.
25298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25299         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25300         may be defined as an inline function.
25301         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25302         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25304 2016-12-17  Bruno Haible  <bruno@clisp.org>
25306         sinf: Avoid redefinition error on MSVC.
25307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25308         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25309         may be defined as an inline function.
25310         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25311         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25313 2016-12-17  Bruno Haible  <bruno@clisp.org>
25315         logf: Avoid redefinition error on MSVC.
25316         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25317         may be defined as an inline function.
25319 2016-12-17  Bruno Haible  <bruno@clisp.org>
25321         log10l: Avoid redefinition error on MSVC.
25322         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25323         may be defined as an inline function.
25325 2016-12-17  Bruno Haible  <bruno@clisp.org>
25327         log10f: Avoid redefinition error on MSVC.
25328         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25329         may be defined as an inline function.
25331 2016-12-17  Bruno Haible  <bruno@clisp.org>
25333         hypotl: Avoid redefinition error on MSVC.
25334         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25335         may be defined as an inline function.
25337 2016-12-17  Bruno Haible  <bruno@clisp.org>
25339         hypotf: Avoid redefinition error on MSVC.
25340         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25341         may be defined as an inline function.
25343 2016-12-17  Bruno Haible  <bruno@clisp.org>
25345         fmodl: Avoid redefinition error on MSVC.
25346         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25347         may be defined as an inline function.
25349 2016-12-17  Bruno Haible  <bruno@clisp.org>
25351         fmodf: Avoid redefinition error on MSVC.
25352         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25353         may be defined as an inline function.
25355 2016-12-17  Bruno Haible  <bruno@clisp.org>
25357         expf: Avoid redefinition error on MSVC.
25358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25359         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25360         may be defined as an inline function.
25361         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25362         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25364 2016-12-17  Bruno Haible  <bruno@clisp.org>
25366         coshf: Avoid redefinition error on MSVC.
25367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25368         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25369         may be defined as an inline function.
25370         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25371         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25373 2016-12-17  Bruno Haible  <bruno@clisp.org>
25375         cosf: Avoid redefinition error on MSVC.
25376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25377         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25378         may be defined as an inline function.
25379         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25380         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25382 2016-12-17  Bruno Haible  <bruno@clisp.org>
25384         atan2f: Avoid redefinition error on MSVC.
25385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25386         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25387         may be defined as an inline function.
25388         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25389         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25391 2016-12-17  Bruno Haible  <bruno@clisp.org>
25393         atanf: Avoid redefinition error on MSVC.
25394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25395         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25396         may be defined as an inline function.
25397         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25398         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25400 2016-12-17  Bruno Haible  <bruno@clisp.org>
25402         asinf: Avoid redefinition error on MSVC.
25403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25404         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25405         may be defined as an inline function.
25406         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25407         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25409 2016-12-17  Bruno Haible  <bruno@clisp.org>
25411         acosf: Avoid redefinition error on MSVC.
25412         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25413         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25414         may be defined as an inline function.
25415         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25416         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25418 2016-12-17  Bruno Haible  <bruno@clisp.org>
25420         Avoid redefinition errors on MSVC.
25421         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25422         the function may be defined as an inline function.
25423         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25424         the function may be defined as an inline function.
25426 2016-12-17  Bruno Haible  <bruno@clisp.org>
25428         Avoid redefinition errors on MSVC.
25429         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25430         * lib/unistd.in.h: Include <stdio.h> when necessary.
25432 2016-12-17  Bruno Haible  <bruno@clisp.org>
25434         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25435         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25436         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25437         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25438         WINT_MAX.
25440 2016-12-17  Bruno Haible  <bruno@clisp.org>
25442         Avoid autoconf warning.
25443         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25444         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25446 2016-12-17  Bruno Haible  <bruno@clisp.org>
25448         fpending: Revert workaround against Emacs bug.
25449         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25450         The Emacs bug is fixed by Eli Zaretskii in
25451         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25453 2016-12-17  Bruno Haible  <bruno@clisp.org>
25455         getlogin_r tests: Port to mingw.
25456         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25457         regression introduced on 2014-05-19.
25459 2016-12-17  Bruno Haible  <bruno@clisp.org>
25461         getlogin: Port to newer mingw.
25462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25463         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25464         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25465         HAVE_GETLOGIN.
25466         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25467         HAVE_GETLOGIN.
25468         * doc/posix-functions/getlogin.texi: Mention the issue.
25469         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25470         regression introduced on 2014-05-14.
25472 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25474         builtin-expect: improve port to IBM XL C
25475         Problem reported for z/OS by Daniel Richard G. in:
25476         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25477         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25478         Test for <builtins.h> directly.
25480         builtin-expect: port to IBM XL C
25481         Problem reported for z/OS by Daniel Richard G. in:
25482         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25483         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25484         Also allow __builtin_expect defined via a standard include file.
25486         regex: fix dependency
25487         Problem reported by Bruno Haible in:
25488         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25489         * modules/regex: Depend on builtin-expect.
25491         builtin-expect: new module
25492         Fix fnmatch to use it.
25493         Problem reported for z/OS by Daniel Richard G.
25494         * lib/fnmatch.c (__builtin_expect):
25495         * lib/glob.c (__builtin_expect):
25496         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25497         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25498         * lib/scandir.c (__builtin_expect):
25499         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25500         Remove macro; config.h now does this.
25501         * lib/gl_anytreehash_list1.h (add_to_bucket):
25502         * lib/regex_internal.h (BE):
25503         Assume __builtin_expect.
25504         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25505         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25506         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25507         * modules/scandir, modules/strstr-simple:
25508         Depend on builtin-expect.
25510 2016-12-15  Bruno Haible  <bruno@clisp.org>
25512         init.sh: Add possibility to not delete temporary files.
25513         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25514         to yes, don't erase the temporary directory.
25516 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25518         regex: fix integer-overflow bug in never-used code
25519         Problem reported by Clément Pit–Claudel in:
25520         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25521         * lib/regex_internal.h: Include intprops.h.
25522         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25523         behavior on integer overflow.
25524         * modules/regex (Depends-on): Add intprops.
25526         fpending: fix port to MinGW on Emacs
25527         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25528         Problem reported by Eli Zaretskii in:
25529         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25530         Is Plan 9 still a valid porting target, anyway?
25532 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25534         safe-alloc: use xalloc-oversized
25535         * lib/safe-alloc.c: Include xalloc-oversized.h.
25536         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25537         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25539         xalloc: do not exceed PTRDIFF_MAX
25540         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25541         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25542         bytes have pointer-subtraction problems.
25544         malloca: do not exceed PTRDIFF_MAX
25545         * lib/malloca.h: Include xalloc-oversized.
25546         (nmalloca): Use xalloc_oversized instead of rolling our own.
25547         * modules/malloca (Depends-on):
25548         * modules/relocatable-prog-wrapper (Depends-on):
25549         Add xalloc-oversized.
25551         quotearg: pacify GCC better
25552         * modules/quotearg (Depends-on): Add minmax, stdint.
25553         * lib/quotearg.c: Include minmax.h, stdint.h.
25554         (nslots): Now int, as there seems little point to going to extra
25555         work merely to support the INT_MAX slot, which nobody ever uses.
25556         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25557         and to catch (mostly-theoretical) ptrdiff_t problems too.
25558         This can be done via one comparison.
25560 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25562         xalloc-oversized: check for PTRDIFF_MAX too
25563         This avoids undefined behavior when subtracting pointers to
25564         objects containing more than PTRDIFF_MAX bytes.
25565         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25566         Also return 1 if the result would exceed PTRDIFF_MAX>
25567         * modules/xalloc-oversized (Depends-on):
25568         Add stdint.
25570         dfa: fix glitches in previous commit
25571         Sorry, I don't know how I managed to commit the wrong version.
25572         * lib/dfa.c (MIN): Move up.
25573         (xpalloc): Now static.
25575         dfa: fix some unlikely integer overflows
25576         I found these while reviewing the recent Coverity-related fix.
25577         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25578         size_t for object counts.  Using ptrdiff_t is the style typically
25579         used in Emacs; although it wastes a sign bit as sizes can never be
25580         negative, it makes -fsanitize=undefined more likely to catch
25581         integer overflows in index calculation, and nowadays the upside is
25582         typically more important than the downside.  Although perhaps the
25583         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25584         of dfa.c already does, since it uses state_num which is signed),
25585         that is a bigger change and is not needed to fix the bugs I found.
25586         * lib/dfa.c: Include stdint.h and intprops.h.
25587         (TOKEN_MAX): New macro.
25588         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25589         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25590         (realloc_trans_if_necessary, free_mbdata):
25591         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25592         This is safe because xpalloc checks that the sizes do not exceed
25593         either SIZE_MAX or PTRDIFF_MAX.
25594         (xpalloc): New function, mostly taken from Emacs.
25595         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25596         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25597         (charclass_index): Check for integer overflow in computing
25598         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25599         added to it later.
25600         (alloc_position_set): Check for integer overflow.  On typical
25601         platforms this check has zero overhead, since the constant
25602         expression is false.
25603         (realloc_trans_if_necessary):
25604         Remove assertion, which I hope Coverity no longer needs.
25606         * modules/dfa (Depends-on): Add intprops, stdint.
25608 2016-12-12  Jim Meyering  <meyering@fb.com>
25610         dfa: add an assertion to avoid coverity false positive
25611         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25612         warned that "newalloc1 - 2" could overflow.
25614 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25616         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25617         * dfa.h (DFA_CASE_FOLD): Remove.
25618         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25620 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25622         link: fix test to declare use of rename()
25623         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25624         -Werror=implicit-function-declaration
25626 2016-12-12  Bruno Haible  <bruno@clisp.org>
25628         fpending: Port to native Windows with MSVC.
25629         * lib/fpending.c: Include stdio-impl.h.
25630         (__fpending): Include all known implementations. Err out if it's not
25631         ported.
25632         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25633         * modules/fpending (Files): Add lib/stdio-impl.h.
25634         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25636 2016-12-12  Bruno Haible  <bruno@clisp.org>
25638         stdioext: Port to native Windows with MSVC.
25639         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25640         (struct _gl_real_FILE): New type.
25641         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25642         Windows.
25643         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25644         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25645         other SystemV derived implementations.
25646         * lib/fpurge.c (fpurge): Likewise.
25647         * lib/freadable.c (freadable): Likewise.
25648         * lib/freadahead.c (freadahead): Likewise.
25649         * lib/freading.c (freading): Likewise.
25650         * lib/freadptr.c (freadptr): Likewise.
25651         * lib/freadseek.c (freadptrinc): Likewise.
25652         * lib/fseeko.c (fseeko): Likewise.
25653         * lib/fseterr.c (fseterr): Likewise.
25654         * lib/fwritable.c (fwritable): Likewise.
25655         * lib/fwriting.c (fwriting): Likewise.
25656         Reported by Gisle Vanem <gvanem@yahoo.no>.
25658 2016-12-11  Jim Meyering  <meyering@fb.com>
25660         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25661         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25662         to work with most shells, but not with the one provided by many
25663         Solaris 10 systems, so running configure with such a /bin/sh evokes
25664         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25665         Reported by Assaf Gordon in
25666         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25668 2016-12-10  Bruno Haible  <bruno@clisp.org>
25670         threadlib: Optimize out runtime test on Solaris >= 10.
25671         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25672         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25673         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25675 2016-12-10  Bruno Haible  <bruno@clisp.org>
25677         stdint: Update doc about Solaris 9.
25678         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25680 2016-12-09  Bruno Haible  <bruno@clisp.org>
25682         c-ctype tests: Fix link error on Solaris 9.
25683         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25684         Reported at <https://savannah.gnu.org/bugs/?46827>.
25686 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25688         dfa: fix performance bug that recomputes trans
25689         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25690         25 on-demand changes.  The bug caused build_state to reset all
25691         d->trans elements to -2 even when d->trans was already non-null.
25692         Use C99 style decls after statements in this function.
25694         same-inode: port to MinGW
25695         Here st_ino is always 0, so change the definition of SAME_INODE so
25696         that 1 means the two files are the same, 0 with st_ino != 0 means
25697         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25698         reported by Bruno Haible (Bug#25146).
25699         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25700         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25702 2016-12-04  Bruno Haible  <bruno@clisp.org>
25704         javacomp-script: Support Java 7 and 8.
25705         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25706         target-version 1.7, 1.8.
25708 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25710         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25711         GPLv2" rewriting.
25713 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25715         * gnulib-tool (func_import): Adhere to the license guideline when
25716         rewriting the license text to "LGPLv3+ or GPLv2":
25717         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25719 2016-12-02  Bruno Haible  <bruno@clisp.org>
25721         localcharset: Avoid theoretical buffer overrun.
25722         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25723         return value from setlocale if it would lead to a buffer overrun.
25725 2016-12-01  Bruno Haible  <bruno@clisp.org>
25727         Relicense some modules under LGPLv2+.
25728         Kevin Cernekee's approval is in
25729         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25730         * modules/fseterr (License): Change to LGPLv2+.
25731         * modules/mbchar (License): Likewise.
25732         * modules/mbiter (License): Likewise.
25733         * modules/mbsnlen (License): Likewise.
25734         * modules/wcwidth (License): Likewise.
25736 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25738         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25739         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25740         OS/2 kLIBC.
25742 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25744         alphasort, scandir: Port to OS/2 kLIBC
25745         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25746         declaration.
25747         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25749 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25751         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25752         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25753         with '/@unixroot'.
25755 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25757         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25758         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25759         OS/2 kLIBC unless TCPV40HDRS is defined.
25761 2016-11-29  Jim Meyering  <meyering@fb.com>
25763         dfa: avoid new infinite loop
25764         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25765         * lib/dfa.c (dfastate): When constructing a new state table, we could
25766         initially declare that we had found a match, and later find that
25767         constraints eliminate that possibility, yet continue to use the
25768         now stale "matched" indicator.  That would lead to an infinite loop.
25769         The solution is to update "matched" when necessary.
25770         Introduced by commit v0.1-983-g403adf1.
25772 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25774         dfa: avoid match middle in multibyte character
25775         * lib/dfa.c (transit_state): If fails in matching single byte characters
25776         on a state including period expression in non-UTF8 multibyte locales,
25777         skip trailing bytes.
25778         (dfa_supported): Revert previous change.
25780 2016-11-27  Jim Meyering  <meyering@fb.com>
25782         dfa: avoid false match in non-UTF8 multibyte locales
25783         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25784         as "not supported" so that callers will resort to using regex-based
25785         matcher.  This will surely hurt performance, but correctness trumps
25786         performance here, and the affected locales are less and less relevant,
25787         these days.  See grep's bug report https://bugs.gnu.org/24975.
25789 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25791         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25792         * lib/ptsname_r.c: Include the appropriate headers.
25793         [__sun]: Delete sys/sysmacros.h include.
25794         [_AIX || __osf__]: Likewise.
25795         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25797 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25799         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25800         * lib/md4.c (md4_process_bytes): The existing define is made internal
25801         in recent versions of glibc, so also use this new public define.
25802         * lib/md5.c (md5_process_bytes): Likewise.
25803         * lib/sha1.c (sha1_process_bytes): Likewise.
25804         * lib/sha256.c (sha256_process_bytes): Likewise.
25805         * lib/sha512.c (sha512_process_bytes): Likewise.
25807 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25809         maint: use a more standard return from mbrtowc test
25810         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25811         from the test program as this often indicates an
25812         unhandled case in the test program.
25813         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25814         (gl_MBRTOWC_SANITYCHECK): Likewise.
25815         (gl_MBRTOWC_NULL_ARG2): Likewise.
25816         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25818 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25820         freopen: work around glibc bug with closed fd
25821         Work around glibc bug#15589, where freopen mishandles the case
25822         where stdin etc. are already closed.
25823         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25824         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25825         instead of __need_FILE, as the latter does not work with glibc.
25826         Include <fcntl.h>, for open flags.
25827         (rpl_freopen): Work around glibc bug.
25828         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25829         * modules/freopen (Depends-on): Add fcntl-h.
25830         * tests/test-freopen.c (main): Test for bug.
25832 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25834         fnmatch: fix typo introduced on 2016-08-17
25835         This fixes the port to non-GCC compilers that lack __builtin_expect.
25836         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25838         dfa: simplify with new function fillset
25839         * lib/dfa.c (fillset): New function.
25840         Use it for clarity when applicable.
25842         dfa: fix glitches with on-demand states
25843         Also, adjust commentary to better match new code.
25844         Some of these glitches predate the recent change.
25845         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25846         only non-initial states.
25847         (dfastate): Rename locals to better match new roles.
25848         Move them into nested scopes if this is easy.
25849         Omit unnecessary calls to zeroset.
25850         Simplify test for whether to throw in the positions of state 0.
25851         Omit C99-ism (decl after statement) since Gawk still wants C89.
25852         (build_state): Omit unnecessary test and assignment.
25853         Fix some confusion that counted transition tables inaccurately
25854         and could cause a memory leak.
25855         (dfaexec_main): Redo to make it clearer to the compiler that
25856         -1 and -2 are the only negative state numbers here.
25858 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25860         dfa: addition of new state on demand
25861         * src/dfa.c (dfastate): Add argument UC, the current input character.
25862         Fill only a group including the character in transition table.
25863         (realloc_trans_if_necessary): Add the dummy state which means that a
25864         transition table is assigned but the next state is not assigned.
25865         (build_state): Return the next state.  All callers updated.
25866         (transit_state_singlebyte): If we get the dummy state,
25867         fill the transition table.
25868         (dfaexec_main): Handle the dummy state.
25869         (free_mbdata, dfafree): Consider the dummy state.
25871 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25873         srclist: sync with released gettext
25874         * config/srclist.txt: Set "release" option to the files under
25875         $GETTEXT.
25877 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25879         srclist: add "release" option
25880         * config/srclist.txt: Change the format so that the first column
25881         of each line points to the top-level directory of the source
25882         archive.
25883         * config/srclist-update: Accept "release" option that checks files
25884         from the most recently tagged revision in the source archive.
25886 2016-11-21  Bruno Haible  <bruno@clisp.org>
25888         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25889         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25890         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25891         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25892         Inline and remove member function 'rpl ()' of the wrapper struct.
25894 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25896         dfa: fix logic typo
25897         Problem reported by Stephane Chazelas (Bug#24973).
25898         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25899         non-simple locales like fr_FR to be treated as simple.
25901 2016-11-20  Jim Meyering  <meyering@fb.com>
25903         fix test driver leaks: exclude, malloc, realloc
25904         * tests/test-exclude.c (main): Fix trivial leak.
25905         * tests/test-malloc-gnu.c (main): Likewise.
25906         * tests/test-realloc-gnu.c (main): Likewise.
25907         With these changes, grep's tests are now leak free.
25908         I.e., running them with ASAN elicits no failure:
25909           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25910             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25912 2016-11-11  Bruno Haible  <bruno@clisp.org>
25914         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25915         * modules/libunistring: (License): Change from LGPL to
25916         "LGPLv3+ or GPLv2".
25917         * modules/libunistring-optional: Likewise.
25918         * modules/unicase/*: Likewise.
25919         * modules/uniconv/*: Likewise.
25920         * modules/unictype/*: Likewise.
25921         * modules/unigbrk/*: Likewise.
25922         * modules/unilbrk/*: Likewise.
25923         * modules/uniname/*: Likewise.
25924         * modules/uninorm/*: Likewise.
25925         * modules/unistdio/*: Likewise.
25926         * modules/unistr/*: Likewise.
25927         * modules/uniwbrk/*: Likewise.
25928         * modules/uniwidth/*: Likewise.
25930 2016-11-12  Bruno Haible  <bruno@clisp.org>
25932         Relicense some modules under LGPLv2+.
25933         Paul Eggert's approval is in
25934         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25935         Eric Blake's approval is in
25936         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25937         Ludovic Courtès's approval is in
25938         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25939         * modules/isnand-nolibm (License): Change to LGPLv2+.
25940         * modules/isnanf-nolibm (License): Likewise.
25941         * modules/isnanl-nolibm (License): Likewise.
25943 2016-11-19  Bruno Haible  <bruno@clisp.org>
25945         Relicense some modules under LGPLv2+.
25946         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25947         modules/vasnprintf.
25948         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25949         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25950         All other significant changes to the files in lib/ of these modules
25951         are from me.
25952         * modules/memcmp2 (License): Change to LGPLv2+.
25953         * modules/amemxfrm (License): Likewise.
25954         * modules/fpieee (License): Likewise.
25955         * modules/fpucw (License): Likewise.
25956         * modules/frexp-nolibm (License): Likewise.
25957         * modules/frexpl-nolibm (License): Likewise.
25958         * modules/printf-frexp (License): Likewise.
25959         * modules/printf-frexpl (License): Likewise.
25960         * modules/printf-safe (License): Likewise.
25961         * modules/signbit (License): Likewise.
25963 2016-11-17  Bruno Haible  <bruno@clisp.org>
25965         Enable Unicode decoder safety unconditionally.
25966         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25967         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25968         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25969         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25970         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25971         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25972         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25973         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25974         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25975         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25976         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25977         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25978         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25979         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25980         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25981         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25982         * lib/unistr/u32-next.c (u32_next): Likewise.
25983         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25984         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25985         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25986         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25987         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25988         CONFIG_UNICODE_SAFETY tests unconditionally.
25989         * tests/unistr/test-u32-mblen.c (main): Likewise.
25990         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25991         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25992         * tests/unistr/test-u32-next.c (main): Likewise.
25993         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25994         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25995         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25996         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25997         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25998         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25999         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
26000         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
26001         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
26002         * lib/unistr/u16-check.c (u16_check): Update comment.
26003         * NEWS: Mention the changes that callers should be aware of.
26005 2016-11-19  Bruno Haible  <bruno@clisp.org>
26007         relocatable-prog-wrapper: Fix breakage on Cygwin.
26008         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
26009         (Depends-on): Remove intprops.
26010         * lib/relocwrapper.c: Update dependency tree.
26011         (strerror): Undefine.
26012         * build-aux/install-reloc (func_create_wrapper): Do not compile
26013         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
26015 2016-11-19  Bruno Haible  <bruno@clisp.org>
26017         strerror: Make it compile in C++ mode.
26018         * lib/strerror.c (strerror): Ignore the return value of memcpy().
26020 2016-11-15  Pedro Alves  <palves@redhat.com>
26022         sys_time: add gnulib::timeval for C++
26023         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
26024         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
26025         timeval macro.
26027 2016-11-14  Pedro Alves  <palves@redhat.com>
26029         snippet/c++defs: fix real-floating arg functions in C++ mode
26030         Also, define isfinite, isinf, isnan, signbit in the gnulib
26031         namespace instead of in the global namespace.
26032         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
26033         (_GL_END_NAMESPACE): New.
26034         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
26035         (isfinite, isinf, isnan, signbit) [__cplusplus &&
26036         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
26037         instead of in the global namespace.
26038         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
26039         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
26040         of in the global namespace.
26042 2016-11-13  Jim Meyering  <meyering@fb.com>
26044         strftime: don't use __THROW
26045         Each use of __THROW would provoke this from gcc-7-to-be:
26047           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
26048             on unit local functions [-Wattributes]
26049           static int iso_week_days (int, int) __THROW;
26050           ^~~~~~
26051         * lib/strftime.c (__THROW): Don't define.
26052         Remove each use of __THROW.
26053         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
26054         (tm_diff, iso_week_days, __strftime_internal): Likewise.
26056 2016-11-14  Paul Eggert  <eggert@union>
26058         obstack: port to gcc -fcheck-pointer-bounds
26059         Problem found by 'make check' failure on bleeding-edge coreutils
26060         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
26061         6.2.0-5ubuntu12), configured via "./configure
26062         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
26063         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
26064         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
26065         New macro, copied from fts_.h.
26066         (struct _obstack_chunk.contents): Use it.
26068 2016-11-14  Eric Blake  <eblake@redhat.com>
26070         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
26071         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
26072         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
26074 2016-11-14  Pádraig Brady  <P@draigBrady.com>
26076         strptime: fix compile error in recent change
26077         * lib/strptime.c (__strptime_internal): Fix ported code.
26079 2016-11-11  Bruno Haible  <bruno@clisp.org>
26081         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
26082         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
26083         (func_import): Extend determination of license_incompatibilities.
26084         (func_create_testdir): Extend table of license compatibility. Handle
26085         also the licenses GPLv3+, GPL, LGPLv3+.
26087 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26089         strftime: tune %q
26090         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
26092         Merge strftime.c changes from glibc
26093         This incorporates:
26094         2007-10-16 [BZ #5184] Add tzset_called argument
26095         2008-06-13 [BZ #6612] pass reference to tzset_called around
26096         2009-10-30 Implement Burmese language locale for Myanmar
26097         2010-01-09 Add support for XPG7 testing
26098         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
26099         2015-10-20 Convert miscellaneous function definitions to prototype style
26100         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
26101         it anyway and this lessens the difference between gnulib and glibc.
26102         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
26103         (__THROW): Define if standard headers do not.
26104         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
26105         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
26106         Declare with __THROW.
26107         (__strftime_internal): Rename from strftime_case_. Add arg for
26108         whether tzset is called.  All uses changed.  Call tzset at most
26109         once.  Allow %OC, for Burmese.
26110         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
26111         Don't assume values are in range.
26113 2016-11-12  Eric Blake  <eblake@redhat.com>
26115         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
26116         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
26117         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
26118         different value.
26120 2006-11-12  Pedro Alves  <palves@redhat.com>
26122         Fix gnulib C++ namespace support and std::frexp
26123         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
26124         _GL_CXXALIASWARN.
26126 2006-11-12  Pedro Alves  <palves@redhat.com>
26128         GNULIB_NAMESPACE::func need not pull in rpl_func
26129         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26130         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
26131         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
26132         struct instead of a function pointer.
26134 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
26136         manywarnings: fix -Wno-missing-field-initializers detection
26137         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
26138         to be independent of -Wunused-variable.  I.E. ensure the latter
26139         warning doesn't occur so that detection of the former is accurate.
26141 2016-11-05  Pádraig Brady  <pbrady@fb.com>
26143         strftime,strptime: support %q to represent the quarter
26144         * lib/strftime.c (strftime_case_): Add %q case.
26145         * lib/strptime.c (__strptime_internal): Likewise.
26146         * tests/test-strftime.c (quarter_test): A new test case.
26148 2016-11-03  Eric Blake  <eblake@redhat.com>
26150         bootstrap: Fix get_version() for AIX 5.3
26151         * build-aux/bootstrap (get_version): Factor out sed script, since
26152         indented comments choke AIX 5.3 sed.
26153         Reported-by: Michael Felt <aixtools@gmail.com>
26155 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26157         intprops: port to older XL C
26158         Problem reported by Alexander Samoilov in:
26159         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
26160         http://savannah.nongnu.org/bugs/?49448
26161         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
26162         Define to 1 only for XL C 12.1 or later, since this bug
26163         occurs in XL C for AIX 6.0 but not in 12.1.
26165 2016-11-02  Pádraig Brady  <P@draigBrady.com>
26167         backupfile: initialize default suffix within the implementation
26168         * lib/backupfile.c (find_backup_file_name): Initialize the
26169         global variable here, to simplify usage, and to only call
26170         getenv() when needed.
26172 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
26174         futimens: remove FIXME for old Linux kernels
26175         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
26176         this in 2012" FIXME, like that for utimensat.
26178         utimensat: remove FIXME for old Linux kernels
26179         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
26180         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
26181         this in 2012" FIXME, by assuming the file system bug is absent
26182         unless demonstrated to be present.  We no longer need to worry
26183         about Linux kernel 2.6.32 when building with newer kernels.
26185 2016-10-16  Bruno Haible  <bruno@clisp.org>
26187         qsort_r: Fix macrology for platforms that lack the function.
26188         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
26189         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
26190         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
26191         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
26192         not exist.
26193         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
26194         the function exists.
26195         * modules/qsort_r: Add comments.
26197 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26199         sys_types: fix Texinfo typos
26200         * doc/glibc-functions/gnu_dev_major.texi:
26201         * doc/glibc-functions/gnu_dev_makedev.texi:
26202         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
26204 2016-10-26  John David Anglin  <dave.anglin@bell.net>
26206         getprogname: port to HP-UX
26207         See Bug#24805.
26208         * lib/getprogname.c (getprogname) [__hpux]: Port.
26209         * tests/test-getprogname.c (STREQ) [__hpux]:
26210         Special-case for HP-UX limitations on program name length.
26212 2016-10-20  Bruno Haible  <bruno@clisp.org>
26214         Update doc about target platforms.
26215         * doc/gnulib-intro.texi (Target Platforms): Update list.
26217 2016-10-15  Bruno Haible  <bruno@clisp.org>
26219         opendir, readdir, closedir: Relicense under LGPLv2+.
26220         * modules/opendir (License): Change to LGPLv2+.
26221         * modules/readdir (License): Likewise.
26222         * modules/closedir (License): Likewise.
26224 2016-10-16  Bruno Haible  <bruno@clisp.org>
26226         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
26227         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
26228         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
26229         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
26230         HAVE_DECL_STRERROR_R.
26232 2016-10-16  Bruno Haible  <bruno@clisp.org>
26234         Make the 'argp' module work without the 'error' module.
26235         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
26237 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26239         diffseq: restore TOO_EXPENSIVE heuristic
26240         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
26241         (Bug#24715).  The simplest solution is to restore the
26242         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
26243         using a higher threshold to avoid Bug#16848 on smaller files.
26244         * lib/diffseq.h (struct context): Restore member too_expensive.
26245         (struct partition): Restore members lo_minimal, hi_minimal.
26246         (diag, compareseq): Restore arg find_minimal.  All uses changed.
26247         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
26248         1993 to make 'diff' run faster (but not as well) on large inputs,
26249         but use a threshold of 4096 instead of the old 256.
26250         * lib/fstrcmp.c (strcmp_bounded):
26251         * lib/git-merge-changelog.c (compute_differences):
26252         Adjust to diffseq.h changes.
26254 2016-10-22  Bruno Haible  <bruno@clisp.org>
26256         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26257         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26258         declaration yet, define ICONV_CONST to empty.
26260 2016-10-15  Bruno Haible  <bruno@clisp.org>
26262         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26263         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26264         module.
26266 2016-10-16  Bruno Haible  <bruno@clisp.org>
26268         system-quote tests: Avoid compiler warning on AIX.
26269         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26270         <stdio.h> does.
26272 2016-10-16  Bruno Haible  <bruno@clisp.org>
26274         Fix some "gcc -Wall" warnings.
26275         * tests/test-ffsl.c (main): Use variable x, not i.
26276         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26277         freopen.
26278         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26279         of sethostname.
26281 2016-10-16  Bruno Haible  <bruno@clisp.org>
26283         gnulib-tool: Make --create-testdir on all modules work again.
26284         * gnulib-tool (func_create_testdir): Don't include the
26285         non-recursive-gnulib-prefix-hack module.
26287 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26289         libunistring: change the maintainer to 'all'
26290         * modules/gen-uni-tables, modules/libunistring:
26291         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26292         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26293         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26294         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26295         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26296         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26297         * modules/uniwidth/*: Change the maintainer to 'all'.
26299 2016-10-16  Bruno Haible  <bruno@clisp.org>
26301         Simplify "configure: checking ..." messages.
26302         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26303         AC_MSG_NOTICE.
26304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26306 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26308         quotearg-tests: pacify gcc -Wall
26309         Problem reported by Bruno Haible in:
26310         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26311         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26312         * tests/test-quotearg.h: ... from here.
26314 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26316         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26317         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26318         Needed on Centos <= 4.
26320 2016-10-20  Jim Meyering  <meyering@fb.com>
26322         printf.m4: fix a bug in detecting printf %j support
26323         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26324         uintmax_t is defined in neither stdint.h nor inttypes.h.
26325         Before, this macro might have mistakenly set
26326         gl_cv_func_printf_sizes_c99=yes on such a system.
26327         Spotted by Zev Weiss.
26329 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26331         sched: substitute HAVE_SYS_CDEFS_H too
26332         Problem reported by Tom G. Christensen in:
26333         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26334         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26335         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26337 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26339         quotearg: never write beyond the returned length
26340         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26341         scan of the string when we initially encounter a single quote when
26342         shell quoting, so that if we then switch to a more concise quoting method
26343         we will not have written beyond that returned length.
26344         This is significant for sh-quote, which has separate routines
26345         to determine the length and do the actual quoting.
26346         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26347         now that we never write more than the returned length.
26349 2016-10-18  Bruno Haible  <bruno@clisp.org>
26351         getprogname tests: Avoid failure in packages that use libtool.
26352         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26353         Based on a patch by Jim Meyering.
26355 2016-10-16  Bruno Haible  <bruno@clisp.org>
26357         getprogname: Fix test failure on Cygwin. Comments.
26358         * lib/getprogname.h: Add comments.
26359         * lib/getprogname.c: Add comments. Fix #elif indentation.
26360         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26361         ".exe" suffix.
26363 2016-10-16  Bruno Haible  <bruno@clisp.org>
26365         Make sure the libunistring detection rejects older versions with a
26366         known bug.
26367         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26368         * modules/unistr/u16-strtok (configure.ac): Likewise.
26369         * modules/unistr/u32-strtok (configure.ac): Likewise.
26371 2016-10-18  Bruno Haible  <bruno@clisp.org>
26373         sh-quote, system-quote: revert regression of unit test.
26374         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26375         * tests/test-system-quote-main.c (check_one): Likewise.
26377 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26379         quotearg: fix stale tests
26380         * tests/test-quotearg.c [locale_results]: Add the missing str7
26381         entries to the expected results.
26382         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26383         don't write beyond the returned length, since that's no longer the
26384         case if we switch to a more concise quoting style.
26385         * tests/test-sh-quote.c (check_one): Likewise.
26386         (main): Adjust for the new more concise quoting style.
26387         Reported by Bruno Haible.
26389 2016-10-16  Jim Meyering  <meyering@fb.com>
26391         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26392         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26393         to "$1".  This macro is always invoked with $1 == lib.
26394         Spotted by Bruno Haible
26396 2016-10-16  Bruno Haible  <bruno@clisp.org>
26398         Fix a test crash.
26399         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26400         fails.
26402 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26404         test-limits-h: suppress -Woverlength-strings
26405         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26407 2016-10-15  Bruno Haible  <bruno@clisp.org>
26409         gettime, timespec, utimens: Relicense under LGPL.
26410         * modules/gettime (License): Change to LGPL.
26411         * modules/timespec (License): Likewise.
26412         * modules/utimens (License): Likewise.
26414 2016-10-14  Bruno Haible  <bruno@clisp.org>
26415             Pádraig Brady  <P@draigBrady.com>
26417         canonicalize-lgpl: Support the case path_max > INT_MAX.
26418         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26419         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26421 2016-10-13  Jim Meyering  <meyering@fb.com>
26423         getprogname: IBM z/OS: avoid NULL-dereference
26424         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26425         upon strdup failure.
26427 2016-10-12  Jim Meyering  <meyering@fb.com>
26429         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26430         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26431         and an abbreviated diagnostic rather than verify with the full one,
26432         because the full-length strings would evoke warnings from gcc with
26433         -Woverlength-strings.
26435 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26437         stdint: port SIZE_MAX to glibc s390
26438         Problem reported by Eric Blake in:
26439         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26440         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26441         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26442         correct type, if possible.
26444 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26446         getprogname: port to IBM z/OS
26447         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26449 2016-10-11  Jim Meyering  <meyering@fb.com>
26451         maint: remove stray space after "." in AC_DEFINE comment.
26452         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26453         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26455 2016-10-05  Jim Meyering  <meyering@fb.com>
26457         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26458         * lib/long-options.c (parse_long_options): Add a break statement
26459         to avoid this new warning/failure:
26460         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26461           --create-testdir --dir=/t/x --with-tests --test long-options
26462         ../../gllib/long-options.c: In function 'parse_long_options':
26463         ../../gllib/long-options.c:66:12: error: this statement may \
26464           fall through [-Werror=implicit-fallthrough]
26465                    (*usage_func) (EXIT_SUCCESS);
26466                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26468 2016-10-05  Jim Meyering  <meyering@fb.com>
26470         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26471         Testing this module would fail when using GCC 7 like this:
26472         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26473           --dir=/tmp/x --with-tests --test utimecmp
26474         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26475         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26476           [-Werror=bool-operation]
26477                          time_t s = src_s & ~ (res == 2 * BILLION);
26478                                             ^
26479         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26480           [-Werror=bool-operation]
26481                src_s &= ~ (res == 2 * BILLION);
26482                         ^
26483         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26484         Instead, make it explicit that we intend to apply it to 0 or 1.
26486 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26488         dfa: save memory for states
26489         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26490         states if dfa has a lot of caches.
26492 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26494         wchar, wctype-h: fix for MinGW 3.22.2
26495         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26496         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26497         when included from <string.h>.
26498         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26499         convention for MinGW 3.22.2, to solve issues with their
26500         wctype.h when included from <ctype.h>.
26502 2016-10-05  Jim Meyering  <meyering@fb.com>
26504         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26505         * lib/long-options.c (parse_long_options): Add a break statement
26506         to avoid this new warning/failure:
26507         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26508           --create-testdir --dir=/t/x --with-tests --test long-options
26509         ../../gllib/long-options.c: In function ‘parse_long_options’:
26510         ../../gllib/long-options.c:66:12: error: this statement may \
26511           fall through [-Werror=implicit-fallthrough]
26512                    (*usage_func) (EXIT_SUCCESS);
26513                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26515         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26516         Testing this module would fail when using GCC 7 like this:
26517         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26518           --dir=/tmp/x --with-tests --test utimecmp
26519         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26520         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26521           [-Werror=bool-operation]
26522                          time_t s = src_s & ~ (res == 2 * BILLION);
26523                                             ^
26524         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26525           [-Werror=bool-operation]
26526                src_s &= ~ (res == 2 * BILLION);
26527                         ^
26528         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26529         Instead, make it explicit that we intend to apply it to 0 or 1.
26531 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26533         quotearg: minimize shell quoting using double quotes
26534         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26535         quote in encountered then use double quotes (c style quoting)
26536         when possible, as it simplifies the quoting.
26537         * tests/test-quotearg-simple.c: Add test cases.
26538         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26539         for the fact we now may write beyond the returned length.
26541 2016-10-02  Jim Meyering  <meyering@fb.com>
26543         vasnprintf.c: avoid spurious warning from GCC 7
26544         The presence of cpp directives renders this "FALLTHROUGH" comment
26545         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26546         from GCC 7 built from git on 2016-10-02.
26547         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26548         directives, so that it takes effect once again.  This is clearly
26549         not a proper change, and I will revert it once this bug is fixed:
26550         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26552 2016-10-01  Jim Meyering  <meyering@fb.com>
26554         getprogname: correct the test for a __progname variable
26555         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26556         and AC_LINK_IFELSE to check for a global __progname.  If found,
26557         define HAVE_VAR___PROGNAME.
26558         * lib/getprogname.c (getprogname): Reflect the new name of the
26559         feature- checked preprocessor symbol:
26560         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26562 2016-09-28  Jim Meyering  <meyering@fb.com>
26564         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26565         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26566         fall-through case with a /* fallthrough */ comment.
26568         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26569         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26570         /* fallthrough */ comment.
26572         getprogname: avoid __progname vs program_invocation_short_name pitfall
26573         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26574         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26575         not with Fedora 24's glibc-2.23.1-10.
26576         * lib/getprogname.c (__progname): Move this declaration down...
26577         (getprogname): ... into the #elif block where used, and make it
26578         explicitly "extern".
26580         getprogname: port to OpenBSD 5.1
26581         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26582         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26583         * modules/getprogname (configure.ac): Move most of this code...
26584         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26585         increment serial number, and add a test for __progname.
26586         https://bugs.gnu.org/24562
26587         Reported by Nelson H. F. Beebe.
26589 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26591         sched: port to GCC 6.2.1 on macOS Sierra
26592         Problem reported by Denis Davydov in:
26593         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26594         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26595         Include <sys/cdefs.h> before <sched.h>.
26596         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26597         so that we needn’t worry about the sched.h include bug here.
26598         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26599         and include it before <sched.h> if it exists, when
26600         checking for <sched.h>.
26602         tests/init.sh: port Alpine fix to AIX 7.1
26603         * tests/init.sh (compare_): When attempting to use diff -U3,
26604         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26605         diff -u not outputting a space after leading '+', as the users
26606         of 'compare' should not be that picky about its output format.
26607         In the AIX 7.1 case, return with diff exit status (or with 2 if
26608         trouble), instead of some random nonzero exit status.
26609         * tests/test-init.sh (test_compare): Remove space after leading
26610         '+', so that AIX 7.1 'diff' passes the test.
26612 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26614         nl_langinfo: pacify GCC
26615         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26616         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26618         stdint: also set GL_GENERATE_LIMITS_H
26619         Problem reported by Jim Meyering in:
26620         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26621         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26623         limits-h, stdint: Don't assume extensions, fix typo
26624         * m4/limits-h.m4 (gl_LIMITS_H):
26625         * m4/stdint.m4 (gl_STDINT_H):
26626         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26627         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26628         reported by Jim Meyering in:
26629         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26631 2016-09-21  Jim Meyering  <meyering@fb.com>
26633         getprogname: port to AIX
26634         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26635         and strdup to obtain a short program name string.  Using code from
26636         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26637         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26638         Assaf Gordon reported that this new file would fail to compile on
26639         AIX-7.1 32bit.
26641 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26643         extensions: fix typo in comment
26644         * m4/extensions.m4: Sync from Autoconf master.
26646         stdint: support new _WIDTH macros
26647         * doc/posix-headers/stdint.texi: Document this.
26648         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26649         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26650         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26651         * modules/stdint (Depends-on): Add limits-h.
26652         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26653         * modules/stdint-tests (Depends-on): Add extensions, so that
26654         INTMAX_MAX etc. are defined.
26655         * tests/test-stdint.c: Verify the new macros.
26657         limits-h: new module
26658         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26659         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26660         * doc/posix-headers/limits.texi: Document new module.
26661         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26662         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26664         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26665         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26666         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26667         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26669 2016-09-15  Eric Blake  <eblake@redhat.com>
26671         sys_types: avoid glibc 2.25 warnings about major()
26672         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26673         older autoconf.
26674         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26675         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26676         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26677         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26679         mountlist: include sysmacros.h for glibc
26680         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26681         AC_HEADER_MAJOR.
26682         * lib/mountlist.c (includes): Use correct headers.
26684 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26686         extensions: port to more ISO C TSes
26687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26688         master, to add support for more recent ISO C TRs and TSes.
26690 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26692         intprops: new macro TYPE_WIDTH
26693         * lib/intprops.h (TYPE_WIDTH): New macro.
26694         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26695         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26696         * lib/parse-datetime.y (parse_datetime2):
26697         Use it.
26699         extensions: port to recent ISO C TRs
26700         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26701         Sync from Autoconf master, to add support for recent ISO C TRs.
26702         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26703         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26704         the MinGW option is not an extension.
26706 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26708         dfa: port to Solaris 9
26709         Problems reported by Tom G. Christensen in:
26710         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26711         * modules/dfa (Depends-on): Add isblank.
26712         * modules/dfa-tests (dfa_match_aux_LDADD):
26713         Rename from test_stat_LDADD, to fix typo.
26714         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26716 2016-09-10  Jim Meyering  <meyering@fb.com>
26718         strverscmp: avoid link failure on OS X
26719         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26720         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26722 2016-08-16  Jim Meyering  <meyering@fb.com>
26724         dfa: new module, importing grep's DFA matcher
26725         Since grep's DFA matcher is now being used by two gnulib-enabled
26726         projects, grep and sed, it makes sense to version-control its
26727         sources and unit tests in one place: here.
26728         * modules/dfa: New module.
26729         * modules/dfa-tests: New file.
26730         * lib/dfa.c: New file, from grep.
26731         * lib/dfa.h: Likewise.
26732         * lib/localeinfo.c: Likewise.
26733         * lib/localeinfo.h: Likewise.
26734         * tests/dfa-match-aux.c: Likewise.
26735         * tests/dfa-invalid-char-class.sh: Likewise.
26736         * tests/dfa-match.sh: Likewise, with minor changes.
26737         * MODULES.html.sh (Misc): Add "dfa" to this list.
26739 2016-09-09  Jim Meyering  <meyering@fb.com>
26741         getprogname-tests: don't depend on assert-h
26742         * modules/getprogname-tests (Depends-on): Remove assert-h.
26743         It was not needed, and in fact would cause build failure for
26744         coreutils on some systems.  Reported by Assaf Gordon in https:
26745         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26747 2016-09-07  Jim Meyering  <meyering@fb.com>
26749         getprogname-tests: work also when EXEEXT is nonempty
26750         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26751         * tests/test-getprogname.c (main): Use it.
26752         Suggested by Gisle Vanem.
26754 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26756         getprogname: fix errors in previous change
26757         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26758         s/program_invocation_name/base/
26759         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26761 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26763         parse-datetime: restrict debug output to input string
26764         * lib/parse-datetime.y (parse_datetime2): If we parse
26765         all of the input but determine it's invalid, ensure
26766         we don't output the now invalid input pointer.
26767         This issue was seen with `date -d 'now +1'`.
26769 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26771         flexmember: new macro FLEXALIGNOF
26772         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26773         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26774         this macro.  Update comments.
26776 2016-09-07  Jim Meyering  <meyering@fb.com>
26778         getprogname: port to systems with __argv (mingw, msvc)
26779         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26780         last_component: more general than open coding it with hard-coded "/".
26781         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26782         * modules/getprogname (Depends-on): Add dirname-lgpl.
26783         (configure.ac): Check for __argv in <stdlib.h>.
26784         * modules/getprogname-tests: New file.
26785         * tests/test-getprogname.c: New file.
26786         Suggested by Gisle Vanem in
26787         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26789 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26791         flexmember: port better to GCC + valgrind
26792         With a char[] flexible array member in a struct with nontrivial
26793         alignment, GCC-generated code can access past the end of the
26794         array, because GCC assumes there are padding bytes to get the
26795         struct aligned.  So the common idiom of malloc (offsetof (struct
26796         s, m), n) does not properly allocate an n-byte trailing member, as
26797         malloc’s argument should be the next multiple of alignof (struct s).
26798         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26799         Although C11 apparently permits this GCC optimization (i.e., there
26800         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26801         See the thread containing:
26802         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26803         * lib/flexmember.h: New file.
26804         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26805         * lib/localename.c, lib/time_rz.c:
26806         Include flexmember.h.
26807         * lib/fnmatch_loop.c (struct patternlist):
26808         * lib/localename.c (struct hash_node):
26809         Use FLEXIBLE_ARRAY_MEMBER.
26810         * lib/fnmatch_loop.c (EXT):
26811         * lib/fts.c (fts_alloc):
26812         * lib/glob.c (glob_in_dir):
26813         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26814         * lib/localename.c (gl_lock_define_initialized):
26815         * lib/time_rz.c (tzalloc):
26816         Use FLEXSIZEOF instead of offsetof.
26817         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26818         Check that the size of the struct can be taken.
26819         * modules/flexmember (Files): Add lib/flexmember.h.
26820         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26821         Add flexmember.
26823 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26825         getprogname: port to Solaris 10
26826         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26827         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26828         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26830         stdalign: correct mistake in alignof doc
26831         Problem reported by Joseph Myers in:
26832         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26833         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26834         alignof(S) where S is a structure containing a flexible array
26835         member.  The Gnulib substitute does not support this, but C11 does.
26837 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26839         main.mk: remove sc_program_name, since there is no more need to
26840         use set_program_name in tools (getprogname is enough for most
26841         of the cases).
26842         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26843         * top/maint.mk (sc_program_name): Remove.
26845 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26847         Port tests away from progname, since modules that need the
26848         program name already depend on getprogname.
26849         * modules/acl-tests (Depends-on): Remove progname.
26850         * modules/argmatch (Depends-on): Likewise.
26851         * modules/argmatch-tests (Depends-on): Likewise.
26852         * modules/argp-tests (Depends-on): Likewise.
26853         * modules/argp-version-etc-tests (Depends-on): Likewise.
26854         * modules/array-list-tests (Depends-on): Likewise.
26855         * modules/array-oset-tests (Depends-on): Likewise.
26856         * modules/avltree-list-tests (Depends-on): Likewise.
26857         * modules/avltree-oset-tests (Depends-on): Likewise.
26858         * modules/avltreehash-list-tests (Depends-on): Likewise.
26859         * modules/carray-list-tests (Depends-on): Likewise.
26860         * modules/copy-file-tests (Depends-on): Likewise.
26861         * modules/exclude-tests (Depends-on): Likewise.
26862         * modules/fchownat-tests (Depends-on): Likewise.
26863         * modules/fdopendir-tests (Depends-on): Likewise.
26864         * modules/filenamecat-tests (Depends-on): Likewise.
26865         * modules/fstatat-tests (Depends-on): Likewise.
26866         * modules/fstrcmp-tests (Depends-on): Likewise.
26867         * modules/linked-list-tests (Depends-on): Likewise.
26868         * modules/linkedhash-list-tests (Depends-on): Likewise.
26869         * modules/mkdirat-tests (Depends-on): Likewise.
26870         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26871         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26872         * modules/obstack-printf-tests (Depends-on): Likewise.
26873         * modules/openat-tests (Depends-on): Likewise.
26874         * modules/parse-datetime-tests (Depends-on): Likewise.
26875         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26876         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26877         * modules/quotearg-simple-tests (Depends-on): Likewise.
26878         * modules/quotearg-tests (Depends-on): Likewise.
26879         * modules/rbtree-list-tests (Depends-on): Likewise.
26880         * modules/rbtree-oset-tests (Depends-on): Likewise.
26881         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26882         * modules/spawn-pipe-tests (Depends-on): Likewise.
26883         * modules/system-quote-tests (Depends-on): Likewise.
26884         * modules/uniname/uniname-tests (Depends-on): Likewise.
26885         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26886         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26887         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26888         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26889         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26890         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26891         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26892         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26893         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26894         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26895         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26896         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26897         * modules/unlinkat-tests (Depends-on): Likewise.
26898         * modules/version-etc-tests (Depends-on): Likewise.
26899         * modules/xalloc-die-tests (Depends-on): Likewise.
26900         * modules/xmemdup0-tests (Depends-on): Likewise.
26901         * modules/xprintf-posix-tests (Depends-on): Likewise.
26902         * modules/xvasprintf-tests (Depends-on): Likewise.
26903         * tests/test-argmatch.c: Do not include progname.h.
26904         (main) Stop calling set_program_name.
26905         * tests/test-argp-version-etc.c: Likewise.
26906         * tests/test-argp.c: Likewise.
26907         * tests/test-argv-iter.c: Likewise.
26908         * tests/test-array_list.c: Likewise.
26909         * tests/test-array_oset.c: Likewise.
26910         * tests/test-avltree_list.c: Likewise.
26911         * tests/test-avltree_oset.c: Likewise.
26912         * tests/test-avltreehash_list.c: Likewise.
26913         * tests/test-carray_list.c: Likewise.
26914         * tests/test-copy-acl.c: Likewise.
26915         * tests/test-copy-file.c: Likewise.
26916         * tests/test-exclude.c: Likewise.
26917         * tests/test-fchownat.c: Likewise.
26918         * tests/test-fdopendir.c: Likewise.
26919         * tests/test-filenamecat.c: Likewise.
26920         * tests/test-fstatat.c: Likewise.
26921         * tests/test-fstrcmp.c: Likewise.
26922         * tests/test-linked_list.c: Likewise.
26923         * tests/test-linkedhash_list.c: Likewise.
26924         * tests/test-mkdirat.c: Likewise.
26925         * tests/test-nonblocking-pipe-main.c: Likewise.
26926         * tests/test-nonblocking-socket-main.c: Likewise.
26927         * tests/test-obstack-printf.c: Likewise.
26928         * tests/test-openat.c: Likewise.
26929         * tests/test-parse-datetime.c: Likewise.
26930         * tests/test-pipe-filter-gi1.c: Likewise.
26931         * tests/test-pipe-filter-gi2-main.c: Likewise.
26932         * tests/test-pipe-filter-ii1.c: Likewise.
26933         * tests/test-pipe-filter-ii2-main.c: Likewise.
26934         * tests/test-quotearg-simple.c: Likewise.
26935         * tests/test-quotearg.c: Likewise.
26936         * tests/test-rbtree_list.c: Likewise.
26937         * tests/test-rbtree_oset.c: Likewise.
26938         * tests/test-rbtreehash_list.c: Likewise.
26939         * tests/test-sameacls.c: Likewise.
26940         * tests/test-set-mode-acl.c: Likewise.
26941         * tests/test-spawn-pipe-main.c: Likewise.
26942         * tests/test-system-quote-main.c: Likewise.
26943         * tests/test-unlinkat.c: Likewise.
26944         * tests/test-version-etc.c: Likewise.
26945         * tests/test-xalloc-die.c: Likewise.
26946         * tests/test-xfprintf-posix.c: Likewise.
26947         * tests/test-xmemdup0.c: Likewise.
26948         * tests/test-xprintf-posix.c: Likewise.
26949         * tests/test-xvasprintf.c: Likewise.
26950         * tests/uniname/test-uninames.c: Likewise.
26951         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26952         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26953         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26954         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26955         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26956         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26957         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26958         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26959         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26960         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26961         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26962         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26963         * tests/test-c-stack.c: (program_name): Do not define.
26964         (main): Do not set program_name.
26965         * tests/test-closein.c: Likewise.
26966         * tests/test-xstrtol.c: Likewise.
26967         * tests/test-yesno.c: Likewise.
26969 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26971         Port modules to use getprogname explicitly, instead of requiring
26972         progname to be used (or program_name to be provided).
26973         * lib/argmatch.c: Do not include progname.h.
26974         [TEST] (program_name): Do not define.
26975         [TEST] (main): Call getprogname instead of using program_name.
26976         * lib/c-stack.c: Do not include progname.h.
26977         (program_name): Do not define.
26978         (die): Call getprogname instead of using program_name.
26979         * lib/chdir-long.c: Do not include progname.h.
26980         [TEST_CHDIR] (main): Do not set program_name.
26981         * lib/error.c [!_LIBC]: Include progname.h.
26982         [!_LIBC] (program_name): Define using getprogname.
26983         * lib/euidaccess.c: Do not include progname.h.
26984         [TEST] (main): Do not set program_name.
26985         * lib/git-merge-changelog.c: Include getprogname.h instead of
26986         progname.h.
26987         (usage): Call getprogname instead of using program_name.
26988         (main): Likewise.  Stop calling set_program_name.
26989         * lib/group-member.c: Do not include progname.h.
26990         [TEST] (main): Do not set program_name.
26991         * modules/argmatch (Depends-on): Add getprogname.
26992         * modules/c-stack (Depends-on): Likewise.
26993         * modules/error (Depends-on): Likewise.
26994         * modules/git-merge-changelog (Depends-on): Likewise.
26995         Also remove progname.
26997 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26999         * NEWS: Document the deprecation of the 'progname' module.
27001 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27003         getprogname: new module
27004         This provides a LGPL module for getting the name of the current
27005         program, using the same API found on *BSD systems.
27006         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
27007         * modules/getprogname: New files.
27008         * MODULES.html.sh (Misc): Add getprogname.
27010 2016-09-02  Jim Meyering  <meyering@fb.com>
27012         manywarnings: add -fno-common
27013         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
27014         to the list.  Quoting the manual, "Compiling with -fno-common is
27015         useful on targets for which it provides better performance, or if
27016         you wish to verify that the program will work on other systems that
27017         always treat uninitialized variable declarations this way [putting
27018         it in the data section]."  If diffutils had been using this sooner,
27019         it would have prevented this duplicate declaration issue:
27020         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
27022 2016-08-31  Simon Josefsson  <simon@josefsson.org>
27024         parse-datetime: Fix typo.
27025         * lib/parse-datetime.y (parse_datetime2): Fix typo.
27027 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27029         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
27030         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
27031         GCC 5 and 6 that have __builtin_sub_overflow but not
27032         __builtin_sub_overflow_p.  With the recent changes, these
27033         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
27034         implementation than with INT_SUBTRACT_OVERFLOW implementation,
27035         since the former needs just one runtime comparison whereas the
27036         latter needs two.
27038         strverscmp: sync with glibc
27039         Although this doesn't exactly synchronize with glibc
27040         byte-for-byte, it makes the code behave the same as glibc.
27041         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
27042         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
27043         difference shouldn't matter in practical use.  All uses changed
27044         back to isdigit.
27045         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
27046         (next_state): Now unsigned char array; redo elements.
27047         (result_type): Now signed char array; redo elements.
27048         (__strverscmp): Fix glibc bug 9913 by using new states.
27049         * tests/test-strverscmp.c (main): Test glibc bug 9913.
27051 2016-08-29  Jim Meyering  <meyering@fb.com>
27053         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
27054         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
27055         similarly to how it was done to intprops.h.
27057 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27059         intprops.h: port recent changes to GCC 6.2.0
27060         * lib/intprops.h (__has_builtin): Move earlier.
27061         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
27062         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
27063         the last argument can be null.  All uses changed.
27064         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
27065         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27066         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
27067         and it's not clear which GCC versions it works for.
27068         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
27069         its definiens.
27071         intprops.h: use __typeof__ with GCC 7
27072         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
27073         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
27074         This avoids computing the expression's value (which might overflow!).
27076 2016-08-29  Jim Meyering  <meyering@fb.com>
27078         intprops.h, xalloc-oversized.h: work with gcc 7
27079         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
27080         __builtin_mul_overflow each accept a NULL pointer as the third
27081         argument.  However in gcc 7, that is no longer accepted.
27082         Instead, one must use the "_p"-suffixed names, with which, the
27083         third parameter is no longer a pointer.
27084         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
27085         the definition: not true for gcc 7 and subsequent.
27086         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
27087         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27088         Provide new definitions for gcc 7 and subsequent.
27089         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
27090         that works with gcc-7.
27092         intprops.h: fix missing-backslash problems
27093         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
27094         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
27096 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27098         intprops: fix paren typo on old platforms
27099         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
27100         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
27101         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
27102         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
27103         && !defined LLONG_MAX]:
27104         Remove stray paren.
27106         intprops: port to OpenVMS
27107         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
27108         * doc/posix-headers/limits.texi: Document the problem.
27109         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
27110         Define if not already defined.
27112 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
27114         parse-datetime: improve debug implementation
27115         Follow-up to commit 12ad79069 ("add optional debug printing").
27116         Improve parse-datetime's debug implementation: remove macros,
27117         replace global debug flag variable with a function parameter,
27118         use nstrftime for formatting.
27119         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
27120         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
27121         (parse_datetime2): New function, accepts 'flags' parameter, supporting
27122         debug flag. Existing interface 'parse_datetime' left unmodified.
27123         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
27124         (struct parser_control): add 'parse_datetime_debug' member variable.
27125         (parse_datetime): Call new function 'parse_datetime2' without debug.
27126         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
27127         pc.parse_datetime_debug variable as needed.
27128         (to_year): Accept new flags parameter, instead of using global variable.
27129         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
27130         use struct 'debug' variable instead of global variable.
27131         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
27132         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
27133         correspnding functions directly instead of using macros.
27134         * modules/parse-datetime: Add gnulib's strftime module.
27136 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
27138         c-strcase-tests: port to EBCDIC
27139         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
27140         which assume ASCII encoding semantics to run only in ASCII
27141         mode, as they fail in EBCDIC.
27143         sigpipe-tests: fix typo
27144         * tests/test-sigpipe.sh: C, not B.
27146 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27148         canonicalize-lgpl: fix errno after malloca fails
27149         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
27150         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
27151         * lib/canonicalize-lgpl.c (__realpath):
27152         Don't assume malloca sets errno on failure.
27154 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27156         strtod: port errno handling to z/OS
27157         * lib/strtod.c (strtod): Save and restore errno more reliably.
27159 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27161         strtod: port to z/OS
27162         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27163         implementation.
27165 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27167         strtod: port to z/OS
27168         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
27169         implementation.
27171         regex, string: rename to avoid '__string'
27172         * lib/regex.h, lib/string.in.h: Do not use the identifier
27173         '__string', as it is effectively reserved by string.h on z/OS.
27175         c-strcase-tests, wcwidth-tests: depend on c-ctype
27176         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
27177         Add c-ctype.
27179 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
27181         thread: port to z/OS
27182         * lib/glthread/thread.c, lib/glthread/thread.h:
27183         Rudimentary gl_thread support for z/OS.
27185         maint: port tests to z/OS errno behavior
27186         * tests/test-nonblocking-reader.h:
27187         * tests/test-nonblocking-writer.h:
27188         Accommodate z/OS errno code preferences. (I believe this should
27189         still be within spec; IBM is good at following the letter if not
27190         the spirit of such things.)
27192         maint: preprocessor changes to support z/OS
27193         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
27194         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
27195         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
27196         * tests/test-nonblocking-pipe.h:
27198         fclose, strstr-simple, wchar: port to z/OS
27199         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
27200         Changes to the Autoconf M4 code to support z/OS.  Note that
27201         fclose() is broken in a different way on z/OS than it is on other
27202         systems, thus the special-case in fclose.m4.
27204         iconv_open-utf-tests, iconv-tests: port to EBCDIC
27205         * tests/test-iconv-utf.c, tests/test-iconv.c:
27206         Added appropriately conditional #pragmas so that the test strings
27207         in test-iconv-utf.c are correctly interpreted in ASCII instead of
27208         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
27209         addressed in a more portable way by simply rewriting all the ASCII
27210         literal characters as octal escapes, but then you would lose the
27211         partial readability that the strings have now. Also, iconv_open()
27212         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
27214         c-strcase-tests, wcwidth-tests: port to EBCDIC
27215         * tests/test-c-strcasecmp.c: Include c-ctype.h.
27216         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
27217         * tests/test-wcwidth.c: Likewise.
27219 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27221         stdbool: don't require _Bool for C++
27222         Problem reported by David Seifert in:
27223         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
27224         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
27225         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
27226         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
27227         stricter about checking that bool and _Bool are compatible in C.
27229 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
27231         getdelim: remove dependency on realloc-posix
27232         * lib/canonicalize-lgpl.c (alloc_failed)
27233         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
27234         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
27235         Use __set_errno where needed, for consistency.
27236         * lib/getdelim.c (alloc_failed): New function.
27237         (getdelim): Use it.
27239 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
27241         parse-datetime: add optional debug printing
27242         Print parsing information, warnings, and errors to stderr.
27243         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
27244         * lib/parse-datetime.y:
27245         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
27246         (PROGRESS*): Same as DEBUG, for progress reporting.
27247         (dbg_printf): Print message to stderr, with 'date' prefix.
27248         (struct parser_control): Add 'debug_*_seen' variables.
27249         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
27250         (debug_print_current_time, debug_print_relateive_time): Prints the
27251         current/relative date/time value of parser_control.
27252         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
27253         (to_year): Warn about 2-digit year parsing.
27254         (yylex):   Warn about unrecognized words.
27255         (get_effective_timezone): Returns current timezone in minutes.
27256         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27257         clearly and unambigiously as possible.
27258         (debug_mktime_not_ok): Print detailed information about failed
27259         date/time values.
27260         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27261         PROGRESS messages for status messages.
27262         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27264 2016-08-06  Jim Meyering  <meyering@fb.com>
27266         tests/init.sh: exclude dash with bad "local" semantics
27267         * tests/init.sh (gl_shell_test_script_): Add a function to
27268         eliminate a shell like "dash" (unlike bash, zsh) that has
27269         surprising/risky "local var='...'" semantics.  Inspired by
27270         the problem and discussion in https://bugs.gnu.org/24116#11.
27272 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27274         maint.mk: expand the prohibit_doubled_word regex
27275         This check has a static list of words that are checked for
27276         repetitions.  Expand it before running the perl script to
27277         avoid using expensive captures.  This decreases the cost
27278         for libvirt from 1.66s to 0.66s.
27279         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27280         (sc_prohibit_doubled_word): Use it.
27282 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27284         useless-if-before-free: skip non-matching lines early
27285         * build-aux/useless-if-before-free: First match each line with the
27286         simple/quick /\bif\b/ and reject if there is no match. This often
27287         saves the cost of the much more involved regular expression.
27288         For libvirt, this decreases the cost from 1.44s to 1.02s.
27290 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27292         maint.mk: speed up sc_po_check
27293         sc_po_check would skip files based on their names, or on the
27294         existence of files with derived names. Rewrite it to use perl
27295         instead of shell to make the check faster.
27296         * top/maint.mk (perl_translatable_files_list_): Define.
27297         (sc_po_check): Use it.
27299 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27301         maint.mk: speed up require_config_h_first
27302         Instead of spawning three processes per file,
27303         rewrite the check in perl and run it once for all the files.
27304         * top/maint.mk (perl_config_h_first_): Define.
27305         (sc_require_config_h_first): Use it in place of shell code.
27307 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27309         maint.mk: speed up sc_po_check
27310         sc_po_check would skip files based on their names, or on the
27311         existence of files with derived names. Rewrite it to use perl
27312         instead of shell to make the check faster.
27313         * top/maint.mk (perl_translatable_files_list_): Define.
27314         (sc_po_check): Use it.
27316 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27318         obstack: pacify GCC 6 with -Wnull-dereference
27319         Problem reported by Assaf Gordon in:
27320         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27321         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27322         Declare with __attribute_noreturn__.
27323         * lib/obstack.h (__attribute_noreturn__): New macro.
27325 2016-07-13  Eric Blake  <eblake@redhat.com>
27327         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27328         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27329         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27331 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27333         doc: mention glibc SSIZE_MAX buglet
27334         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27336 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27338         printf-posix: Fix mingw build
27339         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27340         expression for detecting C symbol prefixes but forgot to qoute square
27341         brackets in the command line arguments for grep.  That way when
27342         building with mingw the condition was false although it ought to be
27343         true instead.  In particular scenarios this led to the following
27344         compile error:
27346             Cannot export rpl_printf: symbol not found
27347             Cannot export rpl_scanf: symbol not found
27348             collect2: error: ld returned 1 exit status
27350         Fix this by properly quoting square brackets.
27352 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27354         mktime: call tzset as per POSIX
27355         Problem reported by Ludovic Courtès in:
27356         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27357         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27358         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27360 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27362         fts: handle readdir() errors
27363         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27364         but also upon error when it will also set errno.  Therefore
27365         flag the error case from readdir().  We treat the case where
27366         no items are read the same as if the dir can't be accessed,
27367         i.e. by setting fts_errno to FTS_DNR.
27369 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27371         intprops: port better to GCC 7
27372         GCC 7 __builtin_add_overflow supports a new usage form, where the
27373         last argument is a null pointer, and which merely returns 1 if an
27374         overflow would occur.  This is a constant expression if all
27375         arguments are constants, and should generate faster code when code
27376         needs to be generated.
27377         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27378         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27379         Use builtin operations if available.
27380         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27381         operations are available, as it's almost surely faster.
27383 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27385         intprops-test: port to GCC 6
27386         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27387         since the bug is not fixed in GCC 6.1.
27389 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27391         xalloc-oversized: port to GCC 7; fewer warnings
27392         GCC 7 will have a better way to deal with integer overflow.
27393         Plus, fix a warnings problem reported by Tim Ruehsen in:
27394         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27395         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27396         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27397         For GCC 5, use __xalloc_oversized if both args are constants,
27398         or if pedantic.
27400 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27402         regex: port to Sun C
27403         Reported by Daiki Ueno.
27404         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27405         __restrict, in prototype.  This fixes a problem I introduced in
27406         the 2016-02-19 merge from glibc.
27408 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27410         stdbool: Restore __bool_true_false_are_defined check
27411         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27412         __bool_true_false_are_defined is still defined, even with C++11.
27414 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27416         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27417         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27419 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27421         Use GCC_LINT, not lint
27422         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27423         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27424         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27425         Document problem with lint and _Noreturn.
27426         * lib/diffseq.h (IF_LINT, IF_LINT2):
27427         * lib/fts.c (sccsid):
27428         * lib/getndelim2.c (IF_LINT):
27429         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27430         (gl_linked_iterator_from_to):
27431         * lib/gl_anytree_list2.h (gl_tree_iterator)
27432         (gl_tree_iterator_from_to):
27433         * lib/gl_anytree_oset.h (gl_tree_iterator):
27434         * lib/gl_array_list.c (gl_array_iterator)
27435         (gl_array_iterator_from_to):
27436         * lib/gl_array_oset.c (gl_array_iterator):
27437         * lib/gl_carray_list.c (gl_carray_iterator)
27438         (gl_carray_iterator_from_to):
27439         * lib/idcache.c:
27440         * lib/inet_ntop.c (IF_LINT):
27441         * lib/regcomp.c (build_charclass_op, create_tree):
27442         * lib/regex_internal.c (re_acquire_state)
27443         (re_acquire_state_context):
27444         * lib/trigl.c (rcsid):
27445         * lib/trim.c (IF_LINT):
27446         * lib/vasnprintf.c (IF_LINT):
27447         * lib/verify.h (assume):
27448         Treat GCC_LINT like lint.
27450 2016-05-29  Bruno Haible  <bruno@clisp.org>
27452         secure_getenv: Port to many more platforms.
27453         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27454         functions.
27455         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27456         for non-BSD Unix platforms and for native Windows.
27457         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27458         Prompted by a request from Nikos Mavrogiannopoulos.
27460 2016-05-27  Eric Blake  <eblake@redhat.com>
27462         canonicalize: Fix broken probe for realpath.
27463         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27464         in logic introduced in 54615b95.
27466 2016-05-26  Eric Blake  <eblake@redhat.com>
27468         unsetenv: relax to LGPLv2+
27469         * modules/unsetenv (License): Match setenv license.
27471 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27473         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27474         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27475         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27476         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27477         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27478         (generate_html, generate_info, generate_tex, outdir)
27479         (source_extra, split, srcfile, texarg): Move above 'version'.
27480         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27482 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27484         manywarnings: update for GCC 6.1
27485         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27486         Add GCC 6.1 options that apply to C.
27487         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27488         do not apply to C, are obsolescent, etc.
27490 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27492         glob: size_t overflow checks
27493         * lib/glob.c (__has_builtin): New macro.
27494         (size_add_wrapv, glob_use_alloca): New static functions.
27495         (glob, glob_in_dir): Check for size_t overflow in several places,
27496         and fix some size_t checks that were not quite right.
27498         glob: don't assume INT_MAX < SIZE_MAX
27499         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27500         latter is not portable to (probably theoretical) hosts where
27501         SIZE_MAX <= INT_MAX.
27503 2016-05-09  Bruno Haible  <bruno@clisp.org>
27505         Fix undefined behaviour in gettext.h.
27506         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27507         pointer's value after the storage it points to has been freed.
27508         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27509         Spotted by Coverity.
27511 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27513         git-version-gen: avoid undefined shift
27514         Problem reported by Mosè Giordano in:
27515         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27516         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27517         with --prefix or --fallback but without a later argument.  While
27518         we're at it, omit unnecessary quotes.
27520 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27522         glob: merge glibc changes into lib/glob.c
27523         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27524         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27525         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27526           struct dirent [BZ #19779]
27527         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27528           callback gl_readdir
27529         2015-10-20 Convert miscellaneous function definitions to prototype style
27530         2015-10-20 Convert 113 more function definitions to prototype style
27531           (files with assertions)
27532         2015-06-12 Fix getlogin_r namespace (bug 18527).
27533         2014-02-10 Use glibc_likely instead __builtin_expect.
27534         2013-10-20 When glob pattern contains a trailing slash match only
27535           directories. Fixes bug 10278.
27536         2013-09-04 glob: silence -Wattribute warnings
27537         2013-06-07 Avoid use of "register" as optimization hint.
27538         2012-09-25 Use size_t instead of int for internal variables in glob
27539           (bug 14621)
27540         2011-07-20 Check for overflows in expressions
27541         2011-05-28 Remove unused variable
27542         2011-05-22 Add a few more alloca size checks
27543         2010-03-27 Whitespace fixes
27544         2010-03-27 Fix one more issue with the glob patch
27545         2010-03-24 Fix glob with empty pattern
27546         2008-05-27 Remove useless more "if" tests before "free"
27547         * modules/glob (Depends-on): Add stdint.
27549 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27551         mktime: port to stricter signed overflow checking
27552         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27553         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27554         instead of merely for INT_MAX * 2.  In practice platforms that
27555         do the latter also do the former.
27556         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27557         (shr): New static function, replacing SHR.  All uses changed.
27558         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27559         and TIME_T_MAX.  All uses changed.
27560         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27561         Use long_int, not time_t.
27562         (long_int_avg): New static function, replacing time_t_avg.
27563         All uses changed.  Round toward positive infinity, as that
27564         generates slightly better code.
27565         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27566         by INT_ADD_WRAPV.
27567         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27568         (convert_time): New static function.
27569         (ranged_convert): Use it
27570         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27571         Use simpler test for loop exit.
27572         (__mktime_internal): Store negative of guessed offset, to simplify
27573         overflow checking.  Remove no-longer-needed test for small time_t
27574         overflows.
27576         mktime: speed up DEBUG_MKTIME benchmarks
27577         Call tzset just once, at the start, rather than for every test
27578         case.  This lets us measure the CPU cost of mktime as opposed to
27579         that of tzset.  This is relevant when TZ is not set and glibc is
27580         being used.  This speeds up tests by a factor of 40 on my Fedora
27581         23 x86-64 platform.
27582         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27583         to call tzset and as a sanity check.  Later on, use localtime_r
27584         instead of localtime.
27586         mktime: resurrect DEBUG_MKTIME testing
27587         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27588         Include <string.h>, for strcmp.
27590         mktime: simplify DEBUG_MKTIME
27591         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27592         Simplify later usage accordingly.
27594         Port mktime_internal offset to unsigned time_t
27595         This avoids some assumptions about wraparound arithmetic on
27596         signed integer overflow.
27597         * lib/mktime-internal.h (mktime_offset_t): New type.
27598         (mktime_internal): Use it in decl.
27599         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27601         * lib/mktime.c (__mktime_internal, localtime_offset):
27602         * lib/timegm.c (timegm): Use it.
27603         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27604         (gl_FUNC_MKTIME): Require it.
27606 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27608         xstrtol: prohibit monstrosities like "1bB"
27609         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27610         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27611         "B" only if the first suffix needs a base.
27612         * tests/test-xstrtol.sh: Test this.
27614 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27616         xstrtod: reinstate setting of *result upon ERANGE
27617         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27618         the returned limits upon ERANGE, so allow and document that.
27620 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27622         xstrtod: modify *result only if no errors
27623         * lib/xstrtod.c (XSTRTOD).
27625 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27627         btowc: document problems in C locale
27628         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27629         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27631 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27633         mktime: improve integer overflow checking
27634         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27635         (WRAPV): Remove; no longer needed.
27636         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27637         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27638         Remove.  Use intprops.h defns instead.
27639         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27640         Use bool for Boolean, for clarity.
27641         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27642         detect integer overflow.
27643         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27645         intprops: check two's complement assumption
27646         Suggested by Eric Blake in:
27647         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27648         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27649         short, int, long, and (if available) long long are two's complement.
27650         * modules/intprops (Depends-on): Add 'verify'.
27652         intprops, mktime, strtol: assume two's complement
27653         These macros were not portable to every conforming C11 ones'
27654         complement platform.  It's not worth the hassle of porting to some
27655         platforms that use ones' complement or signed magnitude, as such
27656         platforms are almost purely theoretical nowadays and porting even
27657         to some of them makes the code harder to review for little
27658         practical benefit.  Problem reported by Florian Weimer in:
27659         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27660         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27661         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27662         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27663         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27664         (TYPE_SIGNED_MAGNITUDE):
27665         Remove.  All uses rewritten to assume two's complement, which is
27666         all we can reasonably test nowadays anyway.
27667         * top/maint.mk (_intprops_names): Remove the removed macros.
27669 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27671         stdint: port to strict C11 left shift
27672         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27673         Pacify clang -Wshift-negative-value, which should be an issue only
27674         on clang setups where stdint.h does not conform to C11 or to C++11.
27675         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27677 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27679         mbrtowc: work around glibc bug#19932
27680         Fix mbrtowc so that it never returns -1 in the C locale,
27681         as this conflicts with a future version of POSIX
27682         http://austingroupbugs.net/view.php?id=663#c2738
27683         and causes problems with GNU grep: http://bugs.gnu.org/23234
27684         See glibc bug 19932:
27685         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27686         * doc/posix-functions/mbrlen.texi (mbrlen):
27687         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27688         Document the glibc bug.
27689         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27690         Include hard-locale.h, locale.h.
27691         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27692         if the bug is possible.
27693         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27694         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27695         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27696         * modules/mbrtowc (Depends-on): Add hard-locale.
27697         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27698         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27699         * tests/test-mbrtowc5.sh: New file.
27701 2016-04-03  Pedro Alves  <palves@redhat.com>
27703         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27704         When gnulib is configured in C++ mode for a system with a working C99
27705         implementation of stdint.h that predates C++11, gnulib ends up
27706         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27707         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27708         MinGW is LLP64.  Instead of trying to detect the right types, detect
27709         good-enough-pre-C++11 stdint.h and in such case define
27710         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27711         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27712         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27713         conforms to C99.  If it does, check whether it hides symbols
27714         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27715         does, define those macros in config.h.
27717 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27719         argp: merge changes from glibc
27720         Among other things, this should fix problems found by a Coverity
27721         scan and reported by Andrei Borzenkov:
27722         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27723         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27724         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27725         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27726         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27727         * lib/argp.h:
27728         Merge changes from glibc.
27729         * tests/test-argp-2.sh: Adjust to match new behavior.
27731 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27733         stddef: support configuring with g++
27734         Problem reported by Ángel González in:
27735         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27736         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27737         Do not define if _GCC_MAX_ALIGN_T is defined.
27739 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27741         test-framework-sh: minor cleanups
27742         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27743         since strictly speaking POSIX requires this.
27744         (setup_): Do not use the variable 'fail', as that makes the
27745         trace output harder to read ('fail' is typically used by
27746         tests to mean the test failed).  Treat // portably.
27747         Check that new directory is not merely a sibling of the tmp dir.
27748         Avoid unnecessary invocation of tr.
27750         test-framework-sh: revert port to NetBSD 7.0
27751         It was a false alarm; I misinterpreted Assaf Gordon's report.
27752         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27753         Restore.
27754         (test_dir_): Adjust to mktempd_ change.
27755         (mktempd_): Restore 2nd arg.  Use -t again.
27756         (base_template_, template_, nx_): Resurrect old code.
27758         Port better to Alpine Linux
27759         Its diff implementation does not support -c, but does support -U3.
27760         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27761         * tests/init.sh (diff_opt_): New var.
27762         (compare_): Prefer diff -U3 to diff -c to plain diff.
27764 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27766         test-framework-sh: port to NetBSD 7.0
27767         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27768         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27769         Remove.  All uses removed.
27770         (test_dir_): Adjust to mktempd_ change.
27771         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27772         (base_template_, template_, nx_): Simplify by hardcoding.
27774 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27776         gitlog-to-changelog: suppress ignored chatter
27777         * build-aux/gitlog-to-changelog: Do not warn about skipping
27778         an SHA if it would have been ignored anyway.
27780 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27782         setlocale: add "sv" to Windows language table
27783         * lib/setlocale.c (language_table) [W32]: Add "sv".
27784         Reported in <https://savannah.gnu.org/bugs/?44588>.
27786 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27788         sys_select: port to new Cygwin
27789         Problem reported by Ken Brown in:
27790         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27791         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27792         diagnostics.
27794 2016-03-17  Jim Meyering  <meyering@fb.com>
27796         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27797         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27798         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27799           test-userspec.c:176:9: error: statement is indented as if it were \
27800             guarded by... [-Werror=misleading-indentation]
27801                    {
27802                    ^
27803           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27804                  if (!diag && !T[i].result)
27805                  ^~
27807 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27809         time_rz: port to clang -Wunused-const-variable
27810         * lib/time_rz.c (TZ): Remove.  All uses removed.
27812         std-gnu11: improve clang support
27813         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27814         2016-03-15 Also try clang
27815         2016-03-15 Port C11 and C++11 testing to clang
27817         select: port more to Intel 2016.1.150 compiler
27818         Problem reported by Balázs Hajgató in:
27819         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27820         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27822 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27824         select: try to port to 2016.1.150 compiler
27825         Problem reported by Balázs Hajgató in:
27826         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27827         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27828         POSIX specifies 'restrict'.
27830 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27832         localename-tests: memory allocation fixes
27833         * tests/test-localename.c (test_locale_name)
27834         (test_locale_name_thread): Don't call freelocale on a locale
27835         that was the base of a successful newlocale, as that
27836         results in a double free.  Problem reported by Assaf Gordon.
27837         (test_locale_name_thread): Free saved names after use, to pacify
27838         gcc -fsanitize=address.
27840 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27842         intprops: make .h file license match module
27843         * lib/intprops.h: Change the license wording to match glibc format.
27844         This is what is in modules/intprops anyway.  See:
27845         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27847 2016-03-08  Eric Blake  <eblake@redhat.com>
27849         acl: fix missing return on Cygwin
27850         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27851         fall off end of function. Fixes http://bugs.gnu.org/22949
27853 2016-03-05  Bruno Haible  <bruno@clisp.org>
27855         extern-inline: port to PGI CC
27856         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27857         keyword 'inline'.
27858         Reported by Adam James Stewart in:
27859         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27861 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27863         signbit: port back to pre-C++11 GCC
27864         * lib/math.in.h (signbit): Do previous change only if
27865         __cplusplus < 201103.  See Jonathan Wakely in:
27866         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27868 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27870         mountlist: recognize autofs-mounted remote file systems, too
27871         Originally reported at: https://bugzilla.redhat.com/1309247
27872         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27873         "-hosts" because it is used by autofs to mount remote file systems.
27875 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27877         signbit: port to C++ with GCC 6
27878         * lib/math.in.h (signbit) [__cplusplus]:
27879         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27880         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27882         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27884         regex: make it closer to libc
27885         Make Idx a signed type, rather than possibly unsigned.
27886         The unsignedness was not really buying us anything, since the code
27887         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27888         it signed allows us to use -1 and -2 with abandon, like libc does,
27889         thus lessening the number of differences between gnulib and libc.
27890         Also, it should help avoid gratuitous warnings like the one
27891         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27892         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27895         regex: merge patches from libc
27897         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27898         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27899         Convert miscellaneous function definitions to prototype style.
27900         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27901         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27902         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27903         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27904         (re_search_internal):
27905         Convert to prototype-style function definition.
27906         Use internal_function for internal functions.
27908 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27910         stdalign: port to older HP and IBM cc
27911         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27912         C compilers, by checking their version numbers.  These version
27913         numbers appear in MariaDB and in Qt code that dates way back and
27914         that conditiionally uses the 'aligned' attribute.
27916 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27918         stdalign: port to clang 3.7.0
27919         Problem reported by Herbert J. Skuhra in:
27920         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27921         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27922         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27923         https://llvm.org/bugs/show_bug.cgi?id=26547
27925 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27927         readdir_r: now obsolescent
27928         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27929         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27931 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27933         misc: port better to gcc -fsanitize=address
27934         Without these patches, ./configure CFLAGS='-fsanitize=address'
27935         would compute incorrect values.  This patch fixes some (but not all)
27936         test failures with recent glibc, with this configuration.
27937         * m4/acl.m4 (gl_ACL_GET_FILE):
27938         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27939         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27940         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27941         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27942         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27943         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27944         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27945         * m4/getline.m4 (gl_FUNC_GETLINE):
27946         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27947         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27948         * m4/regex.m4 (gl_REGEX):
27949         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27950         * tests/test-calloc-gnu.c (main):
27951         * tests/test-duplocale.c (main):
27952         * tests/test-getgroups.c (main):
27953         * tests/test-getline.c (main):
27954         * tests/test-inttostr.c (main):
27955         * tests/test-localename.c (test_locale_name)
27956         (test_locale_name_thread, test_locale_name_environ)
27957         (test_locale_name_default):
27958         * tests/test-regex.c (main):
27959         * tests/test-setlocale1.c (main):
27960         * tests/test-stat.h (test_stat_func):
27961         Free heap-allocated storage before exiting.
27962         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27963         Don't match *_foo symbols inserted by AddressSanitizer.
27964         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27966 2016-02-02  Jim Meyering  <meyering@fb.com>
27968         verify-tests: also remove stray test-verify.Tpo
27969         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27970         to remove the test-verify.Tpo file that is left behind by
27971         the automake-generated rule upon compilation failure.
27972         Otherwise, that .Tpo file would cause a failed "make distcheck"
27973         at least for grep.
27975 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27977         std-gnu11: new module
27978         This makes it easier for applications to prefer C11 and C++11
27979         to older variants, when compiling C and C++ code.
27980         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27981         a nontrivial chunk of GPLed Autoconf source code.
27982         * COPYING: Mention the m4/*.m4 copyright situation.
27983         * MODULES.html.sh (std-gnu11): New module.
27984         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27986 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27988         get-permissions, strftime: fix grammar in comments
27989         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27990         some grammar fixes Alan Mackenzie made to GNU Emacs.
27992 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27994         gettext: mark as obsolete
27995         Suggested by Paul Eggert in:
27996         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27997         * modules/gettext (Status): Mark as obsolete.
27998         (Notice): Suggest to use 'gettext-h' instead.
27999         * modules/gettext-h (Description): Suggest GNU gettext, instead of
28000         the 'gettext' module.
28002 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28004         gnulib-tool: don't give up on ln -s so easily
28005         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
28006         because an earlier one failed.  The targets could be on different
28007         file systems.  Problem reported by KO Myung-Hun in:
28008         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
28010         closedir: fix OS/2-related typos
28011         Problem reported by KO Myung-Hun in:
28012         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
28013         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
28014         in the last couple of changes.
28016 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
28018         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
28019         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
28020         copying a directory.
28022 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28024         regex: treat [x] as x if x is a unibyte encoding error
28025         Problem reported by Aharon Robbins in:
28026         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
28027         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
28028         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
28030         closedir, dirfd, opendir: port to OpenSolaris 5.10
28031         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
28032         * m4/dirfd.m4 (gl_FUNC_DIRFD):
28033         * m4/opendir.m4 (gl_FUNC_OPENDIR):
28034         Don't use ${word##pat} substitution, as it doesn't work in
28035         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
28036         http://bugs.gnu.org/22443#11
28038 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28040         bootstrap: use American spelling
28041         * build-aux/bootstrap: Honor American spelling.
28043 2016-01-22  Karl Berry  <karl@freefriends.org>
28045         * doc/posix-functions/localtime.texi,
28046         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
28048 2016-01-21  Bruno Haible  <bruno@clisp.org>
28050         hash-pjw-bare: fix comment
28051         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
28053         wcwidth: Replace also on OpenBSD 5.8
28054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
28055         * doc/posix-functions/wcwidth.texi: Update.
28057 2016-01-20  Pádraig Brady  <P@draigBrady.com>
28059         gnu-web-doc-update: fix addition of new files
28060         If there were already added (emnpty) dirs,
28061         then cvs aborts the add with the message:
28062           cvs [add aborted]: there is a version in <./dirname> already
28063         * build-aux/gnu-web-doc-update: Add directories separately
28064         to the addition of files, to avoid the above issue
28065         impacting the addition of files.
28067 2016-01-19  Daiki Ueno  <ueno@gnu.org>
28069         utimens-tests: avoid pulling gettext .m4 files
28070         Although this is not the right fix to the original problem:
28071         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
28072         it makes it possible again for consumer projects to use arbitrary
28073         version of gettext, through the steps described at:
28074         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
28075         See here for details:
28076         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
28077         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
28078         'gettext'.
28079         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
28080         'gettext'.
28082 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28084         regex: pacify static checkers
28085         Problem and draft fix reported by Aharon Robbins in:
28086         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28087         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
28088         Clear memory to pacify static checkers.
28090         regex: fix [ diagnostic
28091         Problem and fix reported by Aharon Robbins in:
28092         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28093         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
28095         regex: fix memory leaks
28096         Problem and draft fix reported by Aharon Robbins in:
28097         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
28098         * lib/regcomp.c (build_range_exp, build_charclass_op)
28099         * lib/regex_internal.c (re_dfa_add_node):
28100         Fix memory leak on failure.
28102 2016-01-18  Pádraig Brady  <P@draigBrady.com>
28104         fts: don't unconditionally use leaf optimization for NFS
28105         NFS st_nlink are not accurate on all implementations,
28106         leading to aborts() if that assumption is made.
28107         See <https://bugzilla.redhat.com/1299169>
28108         * lib/fts.c (leaf_optimization_applies): Remove NFS from
28109         the white list, and document the issue.
28111 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28112             KO Myung-Hun  <komh@chollian.net>
28114         gnulib-tool: don't assume ln -s works
28115         * gnulib-tool (func_ln_s): New function.
28116         (func_ln): Use it.
28118 2016-01-15  KO Myung-Hun  <komh@chollian.net>
28120         utimes: detect utimes() correctly on OS/2 kLIBC
28121         utimes() of OS/2 kLIBC has some limitations.
28122         1. OS/2 itself supports a file date since 1980 year in local time.
28123         2. OS/2 itself supports only even seconds for a file time.
28124         3. utimes() of OS/2 kLIBC does not work on an opened file.
28125         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
28126         * doc/posix-functions/utimes.texi: Document the above limitations of
28127         utimes() on OS/2 kLIBC.
28129 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28130             KO Myung-Hun  <komh@chollian.net>
28132         openat_proc_name: port to OS/2 kLIBC
28133         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
28134         instead of /proc/self/fd.
28135         * lib/openat-proc.c (openat_proc_name):
28136         Don't assume file name length is less than INT_MAX.
28137         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
28139 2016-01-14  KO Myung-Hun  <komh@chollian.net>
28141         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
28142         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
28143         definitions of intptr_t and uintptr_t (which use int and unsigned)
28144         to avoid clashes with declarations of system functions like sbrk.
28145         * lib/stdint.in.h (intptr_t, uintptr_t): Check
28146         _INTPTR_T_DECLARED before defining them.
28148         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
28149         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
28150         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
28151         Declare on kLIBC.
28152         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
28153         fd associated with dirp.
28154         (_gl_register_dirp_fd): New. Register fd associated with dirp to
28155         dirp_fd_list.
28156         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
28157         (dirfd): Implemented for kLIBC.
28158         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
28159         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
28160         succeeds.
28161         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
28162         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28163         (REPLACE_DIRFD): Define to 1 if replaced.
28164         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
28165         * modules/closedir (Depends-on): Add dirfd.
28166         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
28167         condition.
28168         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
28169         * modules/opendir (Depends-on): Add dirfd.
28171         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
28172         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
28173         * lib/dup.c (dup_nothrow): New.
28174         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
28175         (klibc_dup2): New.
28176         * lib/fcntl.c (klibc_fcntl): New.
28177         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
28178         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
28179         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
28180         fd.
28182         pipe_filter_ii_execute: port to OS/2 kLIBC
28183         Pipes on kLIBC do not support O_NONBLOCK like Win32.
28184         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
28185         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
28186         Reuse Win32 code on OS/2 kLIBC.
28187         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
28188         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
28190         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
28191         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
28192         static inline function.  The implementation of wcwidth in wcwidth.c
28193         causes a "conflicting types" error.
28194         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
28196         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
28197         spawn() on OS/2 kLIBC is not silly like one on Windows
28198         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
28199         empty string on OS/2 kLIBC.
28201         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
28202         On OS/2 kLIBC, select() works only on sockets.
28203         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
28205         binary-io: don't put fd in binary mode if it is a console on EMX
28206         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
28207         a console on EMX.
28209 2016-01-15  Pádraig Brady  <P@draigBrady.com>
28211         doc: mention unfixed issues with unsupported localtime() values
28212         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
28213         returns nonsense for localtime(2^56).
28214         * doc/posix-functions/localtime_r.texi: Likewise.
28216 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28218         doc: mention setlocale() issues on OpenBSD
28219         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
28220         never fails, and the need to check categories individually.
28222 2016-01-14  Pádraig Brady  <P@draigBrady.com>
28224         sig2str: list all signals on FreeBSD >= 7
28225         FreeBSD >= 7 is contravening POSIX by not defining NSIG
28226         to the maximal statically defined signal value.
28227         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
28228         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
28229         where available, even when NSIG is defined.
28231 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
28233         acl-permissions: port to USE_ACL==0 platforms
28234         I ran into this problem when building bleeding-edge GNU Emacs
28235         with gcc -fsanitize=address on Fedora 23.  On this platform
28236         the ACL library does not pass the 'configure' test and Emacs
28237         then does not build due in part to what appear to be typos in the
28238         ACL part of Gnulib.
28239         * lib/acl-internal.c (free_permission_context):
28240         * lib/acl-internal.h (struct permission_context):
28241         Test whether USE_ACL is nonzero, not whether it is defined.
28243 2016-01-12  Martin Sebor  <msebor@redhat.com>
28245         mktime: rename macro to avoid glibc clash
28246         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
28247         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
28249 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28251         Port "$@" to OpenIndiana ksh93
28252         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
28253         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28254         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28255         bug long-dead shells, so remove the workaround.
28256         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28257         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28258         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28259         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28260         Use "$@" instead of ${1+"$@"}.
28262         Port Universal Time settings to strict POSIX
28263         * build-aux/announce-gen, build-aux/bootstrap:
28264         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28265         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28266         * build-aux/gnupload, build-aux/mkinstalldirs:
28267         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28268         * build-aux/update-copyright, build-aux/useless-if-before-free:
28269         * build-aux/vc-list-files, tests/test-strftime.c:
28270         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28271         but POSIX says the behavior of TZ="UTC" is undefined.
28273 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28275         msvc-inval: fix problem with unset shell var
28276         Problem reported by Karl Berry in:
28277         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28278         * modules/msvc-inval (Depends-on):
28279         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28280         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28282 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28284         tests: for compare_(), use cmp -s where available
28285         * tests/init.sh (compare_): Only fall back to cmp without
28286         the POSIX defined -s option, where this is not available.
28288 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28290         version-etc: new year
28291         * build-aux/gendocs.sh (version):
28292         * doc/gendocs_template:
28293         * doc/gendocs_template_min:
28294         * doc/gnulib.texi:
28295         * lib/version-etc.c (COPYRIGHT_YEAR):
28296         Update copyright dates by hand in templates and the like.
28297         * all files: Run 'make update-copyright'.
28299 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28301         human: fix output buffer overrun by 1
28302         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28303         calculation that could lead to a one-byte buffer overrun.
28305 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28307         maint: fix operator precedence in mbrtowc test
28308         This is a fix for test breakage introduced by commit 45228d96; the
28309         equality expression must be parenthesized when negated with '!',
28310         otherwise we always get:
28312           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28314         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28315         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28317 2015-12-23  James Youngman  <jay@gnu.org>
28319         regexprops-generic: update from regex.h
28320         * doc/regexprops-generic.texi: update by running the regexprops binary
28321         from findutils (the command line is 'regexprops "Regular Expressions"
28322         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28323         gnulib with GNU grep had made this document out-of-date.
28325 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28327         strftime-tests: avoid false failure on OS X
28328         * tests/test-strftime.c (struct localtime_rz_test): Add an
28329         ahistorical member which is used to warn rather than fail
28330         when tm_isdst isn't set for such entries.  This is the case for
28331         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28333 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28335         fts: ensure leaf optimization is used for NFS
28336         NFS provides usable dirent.d_type but not necessarily for all entries
28337         of large directories.  See <https://bugzilla.redhat.com/1252549>
28338         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28340 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28342         fts: enable leaf optimization for XFS
28343         XFS provides usable dirent.d_type only for DT_DIR,
28344         but the noleaf optimization still applies.
28345         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28347 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28349         intprops: comment fix
28350         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28351         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28353         intprops-test: work around GCC bug 68971
28354         Problem reported by Pádraig Brady in:
28355         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28356         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28357         (main): Add a case that better tests 64-bit long in this area.
28359 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28361         gnulib-tool: allow multiple --local-dir usage
28362         * gnulib-tool: Use --local-dir to construct compound
28363         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28364         PATH_SEPARATOR early.
28365         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28366         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28367         func_determine_path_separator because that needs to be detected
28368         earlier now.
28369         (func_determine_path_separator): New function.
28370         (func_path_foreach, func_path_foreach_inner): New functions.
28371         (func_path_prepend, func_path_append): Likewise.
28372         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28373         (func_lookup_file, func_all_modules): Use new functions to work
28374         with local_gnulib_path.
28375         (func_modules_in_dir, func_exists_module): New callbacks for
28376         func_path_foreach.
28377         (func_exists_module, func_get_tests_module): Likewise.
28378         (func_is_local_file, func_should_symlink): New helper methods.
28379         (func_add_file, func_update_file): Use new func_should_symlink
28380         instead, DRY.
28381         (func_reconstruct_cached_local_gnulib_path): New helper.
28382         (func_reconstruct_cached_dir): New callback.
28383         (func_import): The cached_local_gnulib_dir renamed to
28384         cached_local_gnulib_path similarly to local_gnulib_dir.
28385         Use new func_reconstruct_cached_local_gnulib_path.
28386         (func_count_relative_local_gnulib_path): New sub-method.
28387         (func_create_testdir): Use func_should_symlink, DRY.
28388         (func_create_megatestdir): Use new functions to work with
28389         local_gnulib_path correctly.
28390         (func_append_local_dir): New helper.
28392 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28394         fix freadptr to work with ungetc on all uClibc configs
28395         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28396         where GNU coreutils cut(1) generates invalid output on uClibc
28397         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28398         * lib/freadptr.c (freadptr): Return NULL if there are
28399         ungotten chars.  In this case freadseek() will iterate
28400         again to process the ungotten character.
28402 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28404         xalloc-oversized: improve performance with GCC 5
28405         * lib/xalloc-oversized.h (xalloc_oversized):
28406         Improve performance with GCC 5 by using __builtin_mul_overflow.
28408 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28410         intprops: new public macro EXPR_SIGNED
28411         Emacs can use this macro, so make it public.
28412         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28413         'Integer Type Determination', since some of these macros apply
28414         to non-integer types.  Clarify what kinds of constant expressions
28415         these macros return.  Say when the arguments can be non-integers.
28416         Mention newly published macro EXPR_SIGNED.
28417         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28418         make it public.  All uses changed.
28420         intprops: fix typo in clang port
28421         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28422         '__builtin_add_overflow' that is not caught by compiler.
28424 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28426         test-timespec: fix typo in previous change
28427         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28429         timespec-sub: fix overflow bug; add tests
28430         * lib/timespec-add.c (timespec_add):
28431         * lib/timespec-sub.c (timespec_sub):
28432         Work even if time_t is narrower than int (a theoretical
28433         possibility).  Redo code for a bit more clarity.
28434         * lib/timespec-sub.c (timespec_sub):
28435         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28436         * modules/timespec-tests, tests/test-timespec.c: New files.
28438         intprops-test: suppress -Woverlength-strings
28439         Problem reported by Pádraig Brady in:
28440         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28441         It is not worth the hassle to port this test to compilers that
28442         cannot handle long strings in diagnostics.
28443         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28445 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28447         quotearg: add quotearg_n_style_colon()
28448         This quotes with default options of the specified style,
28449         but with quoting enabled for instances of ':'.
28450         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28451         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28453 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28455         intprops: revise _WRAPV macros, revert _OVERFLOW
28456         The incompatible changes to the _OVERFLOW macros were too much of
28457         a hassle in practice, so revert them.  Instead, change the new
28458         _WRAPV macros to make them closer in behavior to GCC 5's new
28459         builtin_add_overflow etc. functions.  No other software was using
28460         these newly-added macros yet, so this should be OK.
28461         * NEWS: Revert previous change, since the incompatible change
28462         has been reverted, and nobody used the incompatible version.
28463         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28464         Document revised behavior.
28465         (Integer Range Overflow): Adjust example to match above revisions.
28466         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28467         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28468         these can be used in integer constant expressions again.
28469         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28470         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28471         needed.
28472         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28473         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28474         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28475         Remove, as they did not seem that useful.
28476         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28477         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28478         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28479         Support new semantics.
28480         (__has_builtin): New macro, if not alreay defined.
28481         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28482         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28483         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28484         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28485         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28486         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28487         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28488         New macros.
28489         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28491 2015-11-03  Jim Meyering  <meyering@fb.com>
28493         intprops: add parentheses for when OP has precedence lower than "-"
28494         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28495         "a OP b" must be parenthesized for when OP is like "<<", which has
28496         lower precedence than the following "-". Reported by Pádraig Brady.
28498 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28500         quotearg: constify get_quoting_style parameters
28501         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28502         * lib/quotearg.c (get_quoting_style): Likewise.
28504 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28506         quotearg: add support for $'' shell escaping
28507         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28508         items and descriptions.
28509         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28510         above types by quoting like "shell", but using $'...' syntax
28511         for non printable characters, which should provide unambiguous
28512         printable output for any input.
28513         * tests/test-quotearg-simple.c: Update accordingly.
28515 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28517         maint: use a more standard return from mbrtowc test
28518         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28519         from the test program as this is non standard and often
28520         indicates an unhandled case in the test program.
28521         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28523 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28525         intprops: add WRAPV and const flavors for GCC 5
28526         If available, use GCC 5's builtin functions for efficient integer
28527         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28528         and safely compute the low-order bits of the correct answer.
28529         A downside of these efficient functions is that they cannot be
28530         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28531         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28532         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28533         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28534         Document the changes.
28535         (Wraparound Arithmetic): New section.
28536         (Integer Range Overflow):
28537         Put this subsection last, since it's least useful.
28538         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28539         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28540         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28541         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28542         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28543         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28544         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28545         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28546         New macros.
28547         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28548         Generate calls to GCC builtins if available, for speed.
28549         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28550         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28551         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28552         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28553         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28554         (CHECK_QUOTIENT, CHECK_REMAINDER):
28555         Test WRAPV and CONST flavors (when available) too.
28557 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28559         doc: use extended timezone format in iso-8601 example
28560         * doc/parse-datetime.texi: The standard states that extended format
28561         is to be used consistently throughout.
28562         Note that lib/parse-datetime.y can handle either tz format.
28564 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28566         stdalign: port to Sun C 5.9
28567         * doc/posix-headers/stdalign.texi: Document this.
28568         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28569         __attribute__ ((__aligned__ (...))).
28571 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28573         time_rz: fix comment about tzalloc
28574         * lib/time_rz.c (tzalloc): Fix comment.
28576 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28578         stdalign: work around pre-4.9 GCC x86 bug
28579         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28580         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28581         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28583 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28585         maint.mk: sc_tight_scope: remove extraneous expressions
28586         * top/maint.mk (tight_scope): This is not really required since
28587         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28588         that matches all nm entries.  But it does remove extraneous entries
28589         that may be confusing or cause issue in future maintenance.
28591 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28593         time_rz: return NULL if localtime_r fails
28594         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28595         while still attempting to pacify bleeding-edge GCC.
28597         fts: port to C11 alignof
28598         * doc/posix-headers/stdalign.texi (stdalign.h):
28599         Document the C11 restriction.
28600         * lib/fts.c: Include stddef.h, for max_align_t.
28601         (fts_alloc): Align using max_align_t, not FTSENT.
28602         * modules/fts (Depends-on): Add stddef.
28604 2015-10-18  Jim Meyering  <meyering@fb.com>
28606         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28607         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28608         would see this:
28610         lib/time_rz.c: In function 'localtime_rz':
28611         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28612           [-Werror=nonnull]
28613                    if (tm && !save_abbr (tz, tm))
28614                        ^
28616         That was complaining about "tm" because it is a parameter that was
28617         declared with the __nonnull__ attribute.
28618         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28619         result of localtime_r.
28621 2015-10-17  Jim Meyering  <meyering@fb.com>
28623         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28624         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28625         name-extraction regexp mistakenly used \S+, and would mistakenly
28626         extract "*F" from "extern int *F()" rather than the desired "F".
28627         Use \w+ instead.
28629 2015-10-17  Jim Meyering  <meyering@fb.com>
28631         maint.mk: sc_tight_scope: factor and support OS X
28632         * top/maint.mk (_gl_tight_scope): Address three issues:
28633         - factor out four instances of code that wraps a string in "^...$"
28634         - allow nm-reported symbol names to have an optional leading "_"
28635         - add "main" to the list of ignored variable names, because on os x,
28636         "main" has nm-reported type "S" in the variable-checking section.
28638 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28640         safe-alloc-tests: fix typo in license header
28641         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28643 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28645         copy-file: fix mem leak in error case
28646         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28647         upon error opening or performing I/O to the src and dest files.
28649 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28651         localename: control langinfo.h inclusion
28652         This header is only used to work around buggy behavior in old
28653         versions of glibc, so do not include it all the time.  Otherwise
28654         we get build failures on systems that do not provide langinfo.h.
28655         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28656         in the source later on.
28657         The patch was originally submitted to gettext as:
28658         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28660 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28662         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28663         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28664         * lib/u64.c, lib/unistd.c:
28665         Append 'typedef int dummy;', to pacify compilers that are picky
28666         about empty translation units.
28668 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28670         accept4-tests: fix to avoid non portable flags
28671         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28672         as they are the only documented ones, and passing others may trigger
28673         EINVAL (seen on FreeBSD 10.1-RELEASE).
28674         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28675         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28677 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28679         gnulib-tool: fix tests of 'extensions' module
28680         This complements f8fe25fab60e3c687a124 commit.
28681         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28682         emitting of initial gl_EARLY macros.
28683         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28684         replaced with func_emit_pre_early_macros call.
28686 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28688         unicase/locale-language: fix typo in utf-8 cookie
28689         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28690         Problem reported by Zbigniew Jędrzejewski-Szmek.
28692 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28694         xalloc: do not worry about GCC 5 warning on 32 bit
28695         * lib/xalloc.h: Revert previous change.
28696         I found a better way to fix this in coreutils.
28698 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28700         xalloc: avoid GCC 5.1 warning on 32 bit
28701         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28702         xalloc_oversized(), which was seen to give this warning
28703         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28704         when simplifying conditional".
28706 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28708         uniname/uniname-tests: avoid compiler warnings
28709         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28710         unused local variables.
28711         (test_alias_lookup): Fix alias name display in failure cases.
28713 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28715         c-ctype: do not worry about EBCDIC + char signed
28716         Drop support for EBCDIC with char being signed, as this breaks too
28717         many programs.  Problem reported by Ben Pfaff in:
28718         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28719         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28720         char being signed.
28721         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28722         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28723         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28724         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28725         * tests/test-c-ctype.c (test_all):
28726         Simplify by assuming standard char values cannot be negative.
28727         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28729 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28731         c-ctype: port better to z/OS EBCDIC
28732         Problems reported by Daniel Richard G. in:
28733         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28734         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28735         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28736         (_C_CTYPE_OTHER_CNTRL): New macro.
28737         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28738         from SCHAR_MIN, as the functions are defined only from values
28739         promoted from char or from unsigned char, not necessarily from
28740         signed char.
28742 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28744         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28746         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28747         and ARFLAGS variables.  Doing this unconditionally could break
28748         later Automake's AM_PROG_AR invocation (at least it's
28749         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28751         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28752         Amsterdam Compiler Kit, so make the previous code to have effects
28753         only on ACK, and rather automatically call the Automake's
28754         AM_PROG_AR as soon as possible to decide other cases.
28756         References:
28757         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28759         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28760         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28761         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28762         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28763         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28764         'extensions' module is used.
28765         * modules/extensions (configure.ac-early): Remove as this snippet
28766         is added to gnulib-comp.m4 earlier anyway.
28768 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28770         sockets: MS Windows initalization fixes
28771         Problem reported by Test User in:
28772         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28773         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28774         Correct the endianness.
28775         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28776         number mismatch, not just on <.  Cleanup before any such failure.
28778 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28780         gc: fix detection of installed libgcrypt version
28781         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28782         at least as recent as 1.4.4.  The previously used macro is not
28783         available now, since modules were removed in version 1.6.0.
28785 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28787         c-ctype: rewrite to use inline functions
28788         This simplifies maintenance, since it makes for just one
28789         implementation of each function, letting the compiler have the fun
28790         of optimization.  In practice this works well nowadays with GCC.
28791         E.g., c_isascii might need only three instructions even though the
28792         source code lists every ASCII character individually in a large
28793         switch statement.
28794         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28795         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28796         * NEWS: Document the API change.
28797         * lib/c-ctype.c: Drastically simplify, since this now just expands
28798         inline functions.
28799         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28800         (C_CTYPE_INLINE): New macro.
28801         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28802         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28803         Verify that either ASCII or EBCDIC is being used.
28804         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28805         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28806         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28807         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28808         New private macros.
28809         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28810         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28811         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28812         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28813         (c_tolower, c_toupper): When converting, return the unsigned char,
28814         as that is what z/OS does.
28815         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28816         of some c-ctype.h macros.
28817         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28818         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28819         c_tolower promotion to be compatible with z/OS.
28821 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28823         gitlog-to-changelog: trim only trailing whitespaces
28824         This is fix for --format regression introduced by commit
28825         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28826         doubled %n string) had no effect anymore.  This format
28827         specification has been used e.g. by GNU paxuitils (commit
28828         edfd8bcc3).
28830         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28831         newlines in commmit messages.
28833 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28835         Test that c_iscntrl agrees with iscntrl, etc.
28836         Suggested by Daniel Richard G. in:
28837         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28838         * modules/c-ctype-tests (Depends-on): Add ctype.
28839         * tests/test-c-ctype.c: Include <ctype.h>.
28840         (NCHARS): New constant.
28841         (test_agree_with_C_locale): New function.
28842         (main): Use it.
28843         (test_all): Use named constants.
28845         c-ctype: improve c_isascii testing
28846         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28847         Add a test to count the number of ASCII characters.
28849 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28851         savewd: remove SAVEWD_CHDIR_READABLE
28852         It was problematic in the light of file systems that ignore umask.
28853         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28854         * NEWS: Document this.
28855         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28856         successful, -1 (setting errno) on failure, rather than something
28857         more complicated than that.
28858         * lib/mkdir-p.c (make_dir_parents):
28859         Do not use SAVEWD_CHDIR_READABLE.
28860         * lib/savewd.c (savewd_chdir):
28861         Remove support for SAVEWD_CHDIR_READABLE.
28862         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28864         c-ctype: port better to EBCDIC
28865         Problems reported by Daniel Richard G. in
28866         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28867         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28868         Include "verify.h".
28869         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28870         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28871         Define as enum constants with value false, if not defined, so that
28872         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28873         code more portable, as both branches of the 'if' are compiled on
28874         all platforms.
28875         (C_CTYPE_EBCDIC): New constant.
28876         Verify that the character set is either ASCII or EBCDIC.
28877         (to_char): New static function.
28878         (c_isascii, c_iscntrl):
28879         Assume standard control-character assignments for EBCDIC.
28880         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28881         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28882         Rewrite to use 'if' instead of 'ifdef'.
28883         Use to_char if non-ASCII.  Prefer <= to >=.
28884         Prefer true and false to 1 and 0, for booleans.
28885         (c_iscntrl): Use 'if', not 'ifdef'.
28886         * modules/c-ctype (Depends-on): Add verify.
28887         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28888         (to_char): New function.
28889         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28891 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28893         nanosleep: fix return code for interrupted replacement
28894         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28895         that we return -1 in the case the call is interrupted by a signal,
28896         rather than the current value of 1.
28897         Diagnosed and tested by Daniel Richard G.
28899 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28901         Diagnose ERE '()|\1'
28902         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28903         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28904         track of the set of previously-completed subexpressions available
28905         before the first alternative, and restore this set just before
28906         parsing each subsequent alternative.  This lets us diagnose the
28907         invalid back-reference in the ERE '()|\1'.
28909         regex: merge patches from libc
28911         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28912         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28913         * lib/regex_internal.h:
28914         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28916         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28917         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28918         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28919         wcscoll.
28920         * lib/regexec.c (check_node_accept_bytes): Likewise.
28922         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28923         Fix regex wcrtomb namespace (bug 18496).
28924         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28925         instead of wcrtomb.
28927         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28928         Fix regex wctype namespace (bug 18495).
28929         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28930         instead of towlower.
28931         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28932         instead of iswlower.  Call __towupper instead of towupper.
28933         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28934         instead of iswalnum.
28936         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28937         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28938         COLL_SYM in a couple of places to avoid uninitialized variable
28939         wanings on tilegx gcc 4.8.2.
28941         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28942         * lib/regex_internal.h: Remove NOT_IN_libc.
28944         2014-11-17  Andreas Schwab  <schwab@suse.de>
28945         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28947         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28948         Move findidx nested functions to top-level.
28949         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28950         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28951         Pass new arguments to findidx.
28952         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28953         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28954         Don't #include it inside the function.  Pass new arguments to findidx.
28955         * lib/regex_internal.h:
28956         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28957         (re_string_elem_size_at): Don't #include it inside the function.
28958         Pass new arguments to findidx.
28960         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28961         Check if DEBUG is defined in regex_internal.c
28962         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28964 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28966         ceill: detect buggy OpenBSD implementation
28967         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28968         which returns zero for small values.  Discussed here:
28969         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28971 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28973         mountlist: add me_mntroot field on Linux machines
28974         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28975         mount_entry so Linux machines based on /proc/self/mountinfo can
28976         distinguish between bind mounts and original mounts.  In reality bind
28977         mounts aren't treated differently than mountroot=/ mounts by the
28978         kernel, but the user often wants these bind mounts distinguished.
28979         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28980         More details at https://pad.lv/1432871
28982 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28984         doc: Describe to use multiple instances of gnulib
28985         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28986         instances of gnulib with different modules can be used, for example one
28987         for a lib and another one for associated tools.
28989 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28991         base32: mark function as __attribute__ const
28992         * lib/base32.h (isbase32): Mark __attribute__ const as
28993         suggested by GCC, and consistent with the base64 module.
28995 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28997         gnulib-tool: don't transform binary files with sed
28998         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28999         .mo and .class files.
29000         Reported by Denis Denisov.
29002 2015-08-10  Daiki Ueno  <ueno@gnu.org>
29004         gperf: respect silent rules
29005         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
29006         V_GPERF_0 for silent rules.
29007         * modules/iconv_open (Makefile.am): Use V_GPERF.
29008         * modules/unicase/locale-language (Makefile.am): Likewise.
29009         * modules/unicase/special-casing (Makefile.am): Likewise.
29010         * modules/unictype/category-byname (Makefile.am): Likewise.
29011         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
29012         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
29013         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
29014         * modules/unictype/property-byname (Makefile.am): Likewise.
29015         * modules/unictype/scripts (Makefile.am): Likewise.
29016         * modules/uninorm/composition (Makefile.am): Likewise.
29018 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29020         Improve port of stdalign to C++11
29021         Problem reported by Sundaram in:
29022         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
29023         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
29024         (__alignas_is_defined): Define if C++11 or newer.
29026 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
29028         pmccabe2html: fix gawk regex escaping
29029         * build-aux/pmccabe2html: Add one more backslash to properly
29030         escape the gsub replacement value.  Fixes this error:
29031         gawk: ./build-aux/pmccabe2html:425: \
29032         warning: escape sequence `\&' treated as plain `&'
29034 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
29036         time_rz: port to pedantic memcpy
29037         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
29038         that reject memcpy (..., NULL, 0).
29040 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
29042         time_rz: port better to MinGW
29043         Don't change tzname, as this makes MinGW dump core (Bug#21020).
29044         Instead, store the tzname copy in the struct tm_zone object.
29045         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
29046         * lib/strftime.c [!_LIBC]:
29047         * lib/time_rz.c: Include time-internal.h.
29048         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
29049         name from *TZ rather than from TZNAME, doable because *TZ now has
29050         a tzname_copy member.
29051         * lib/time-internal.h: New file, with contents taken from
29052         lib/time_rz.c.  It's separate because strftime.c now accesses
29053         struct tm_zone members.
29054         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29055         New member tzname_copy.
29056         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
29057         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
29058         Initialize tzname_copy member.
29059         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
29060         in tzname_copy member.
29061         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
29062         (restore_tzname): Remove; no longer needed.  All calls removed.
29063         * modules/time_rz (Files): Add lib/time-internal.h.
29065         time: port __need_time_t to MinGW
29066         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
29067         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
29069 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29071         strftime: fix newly-introduced bug on Solaris
29072         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
29073         consistently at the start, rather than doing some of the setup at
29074         the start and some in the %Z format spec.  This is cleaner, and
29075         works better with time_rz on platforms like Solaris where struct
29076         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
29077         mktime_z and localtime_rz can mess up the tzname cache.
29079         test-strftime: test for Solaris bug
29080         * modules/strftime-tests (Depends-on): Add strerror.
29081         * tests/test-strftime.c: Include <errno.h>.
29082         (posixtm_test): New function, containing the old 'main'.
29083         (struct tzalloc_test, struct localtime_rz_test): New types.
29084         (TZ, LT): New static vars.
29085         (tzalloc_test): New function.
29086         (main): Rewrite in terms of posixtm_test and tzalloc_test.
29088         time_rz: port to Solaris etc.
29089         Works around a tzname problem on platforms like Solaris that have
29090         tzname but not tm_zone, by setting tzname at the appropriate time
29091         and restoring it later.
29092         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
29093         New static vars.
29094         (save_abbr) [HAVE_TZNAME]: Set them.
29095         (revert_tz) [HAVE_TZNAME]: Clear or use them.
29096         (restore_tzname): New function.
29097         (localtime_rz, mktime_z): Use it.
29099         time_rz: now LGPL
29100         * modules/time_rz (License): Now LGPL, because strftime depends on it.
29102         time_rz: make a constant 'const'
29103         * lib/time_rz.c (local_tz): Now const.
29105         time_rz: fix off-by-one typo
29106         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
29108 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
29110         fprintftime, strftime: use timezone_t args
29111         * NEWS: Document the change.
29112         * lib/fprintftime.h (fprintftime):
29113         * lib/strftime.c (extra_args) [my_strftime]:
29114         * lib/strftime.h (nstrftime):
29115         Time zone arg is now of type timezone_t, not int.
29116         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
29117         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
29118         (my_strftime) [emacs && !my_strftime]:
29119         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
29120         Remove; Emacs doesn't need this any more.
29121         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
29122         fprintftime and nstrftime to call tzset.
29123         (ut) [!my_strftime]: Remove, replacing with ...
29124         (tz) [!my_stftime]: ... this new macro.  All uses changed.
29125         (strftime_case_): Use localtime_rz and mktime_z instead
29126         of localtime_r and mktime.
29127         * modules/fprintftime (Depends-on): Add time_rz.
29128         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
29129         * tests/test-strftime.c (main): Adjust to new nstrftime API.
29131         time_rz: new module
29132         * MODULES.html.sh: Add time_rz.
29133         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
29134         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
29135         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
29136         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
29137         New var HAVE_TIMEZONE_T (default 0).
29138         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29139         New var GNULIB_TIME_RZ (default 0).
29140         * modules/time (time.h): Substitute the new vars.
29142         flexmember: license is now unlimited
29143         * modules/flexmember (License): Change to unlimited,
29144         since its only source file gives an unlimited license.
29146 2015-07-15  Eric Blake  <eblake@redhat.com>
29148         maint: update copyright paper procedures
29149         * config/srclist.txt: Drop outdated files.
29150         * doc/Copyright/conditions.txt: Update to latest.
29151         * doc/Copyright/assign.changes.manual: Delete.
29152         * doc/Copyright/assign.future.manual: Likewise.
29153         * doc/Copyright/assign.manual: Likewise.
29154         * doc/Copyright/assign.translation.manual: Likewise.
29155         * doc/Copyright/disclaim.changes.manual: Likewise.
29156         * doc/Copyright/disclaim.manual: Likewise.
29157         * doc/Copyright/disclaim.program: Likewise.
29159 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29161         localename: fix link error on Illumos
29162         Illumos defines __sun, but does not have getlocalename_l nor the
29163         equivalent.  This partially reverts commit 387c214.
29164         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
29165         available, as well as uselocale.
29166         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
29167         use getlocalename_l if it is not available.
29169 2015-07-07  Daiki Ueno  <ueno@gnu.org>
29171         unistr/uN-strtok-tests: avoid a trivial leak
29172         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
29173         input and delim after the multibyte delimiter tests.
29175 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
29177         file-has-acl, acl-permissions: fix HP-UX typos
29178         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
29179         * lib/file-has-acl.c (file_has_acl):
29180         * lib/set-permissions.c (context_acl_from_mode)
29181         (context_aclv_from_mode, set_acls):
29182         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
29183         They were introduced by the recent ACL changes.
29185         regex: match current GNU grep behavior
29186         These symbols have not matched GNU grep behavior for quite some time.
29187         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
29188         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
29189         Change to match current GNU behavior.
29190         Simplify by expressing it as differences from POSIX BREs and EREs.
29191         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
29193 2015-07-03  Jim Meyering  <meyering@fb.com>
29195         set-permissions.c: adjust acl_from_mode's cpp guard
29196         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
29197         directives identical to those guarding the sole use.
29198         Otherwise, on some systems, we'd get a warning about
29199         the function being defined but not used.
29200         Also, filter through cppi to correct misleading indentation
29201         of cpp directives.
29203 2015-07-03  Pádraig Brady  <P@draigBrady.com>
29205         tests: restrict shells to those that support 'local'
29206         The local keyword is very widely supported and used
29207         in tests in coreutils and grep at least.  Therefore
29208         restrict to testing with shells that support it.
29209         This mainly excludes /bin/sh on Solaris.
29210         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
29212 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
29213         and Daiki Ueno  <ueno@gnu.org>
29215         unistr/uN-strtok: handle multibyte delimiters
29216         Previously, uN_strtok moved PTR to the next unit to the token end.
29217         When DELIM contained a multibyte character, the new position could
29218         be a middle of a multibyte character.
29219         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
29220         after the token.
29221         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
29222         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
29223         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
29224         * modules/unistr/u8-strtok (Depends-on): Depend on
29225         unistr/u8-strmblen.
29226         * modules/unistr/u16-strtok (Depends-on): Depend on
29227         unistr/u16-strmblen.
29228         * modules/unistr/u32-strtok (Depends-on): Depend on
29229         unistr/u32-strmblen.
29230         * tests/unistr/test-u-strtok.h: New file.
29231         * tests/unistr/test-u8-strtok.c: New file.
29232         * tests/unistr/test-u16-strtok.c: New file.
29233         * tests/unistr/test-u32-strtok.c: New file.
29234         * modules/unistr/u8-strtok-tests: New file.
29235         * modules/unistr/u32-strtok-tests: New file.
29236         * modules/unistr/u16-strtok-tests: New file.
29238 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
29240         update-copyright: fix test failure with perl >= 5.22 (trivial)
29241         * build-aux/update-copyright: Escape a literal left curly bracket,
29242         required with perl >= 5.22
29244 2015-07-02  Daiki Ueno  <ueno@gnu.org>
29246         u{16,32}-strstr-tests: relax timeout condition
29247         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
29248         tests can take longer than 5 seconds to complete.
29249         Reported by Dagobert Michelsen in:
29250         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
29251         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
29252         seconds to 10 seconds.
29253         * tests/unistr/test-u32-strstr.c (main): Likewise.
29255 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29257         gnulib-common.m4: change the ARFLAGS default to 'cr'
29258         In some GNU/Linux distributions people started to compile 'ar'
29259         binary with --enable-deterministic-archives (binutils project).
29260         That, however, in combination with previous autotools long time
29261         working default AR{_,}FLAGS=cru causes warnings on such
29262         installations:
29263         ar: `u' modifier ignored since `D' is the default (see `U')
29264         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29265         set already.
29267 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29269         selinux-h: avoid double free after *getfilecon()
29270         Originally reported by Ben Shelton on bug-tar:
29271         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29272         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29273         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29274         param should be freed by freecon(3) (regardless the return value).
29276 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29278         fix pty related tests issues on Windows (trivial)
29279         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29280         however it's still present in tests/ subdirectory of the final project.
29281         Therefore avoid it to pass `make check`.
29282         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29283         will just return -ENOSYS, so avoid this non applicable test allowing
29284         the build to proceed.
29286 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29288         acl: fix definition of acl_from_mode on FreeBSD
29289         This was causing basic coreutils copy operations to fail
29290         with ENOTSUP or ENOENT error messages.
29291         * lib/acl-internal.h (acl_from_mode): Only define when
29292         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29293         of acl_from_mode() defined in lib/set-permissions.c to
29294         be used on FreeBSD at least.
29295         * lib/set-permissions.c: Fix up comment spelling,
29296         and a redundant variable assignment; noticed in passing.
29298 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29300         readutmp: port to FreeBSD >= 9
29301         * lib/readutmp.h: Map utmpxname() to setutxdb().
29302         With that coreutils who(1) and pinky(1) tests pass.
29304 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29306         mgetgroups: port to strict OS X
29307         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29308         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29309         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29310         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29312 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29314         mgetgroups: port to strict OS X
29315         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29316         Document the getgrouplist problem.
29317         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29318         New macro.
29319         (mgetgroups): Use it.
29320         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29321         Check for OS X signature for getgrouplist.
29323 2015-06-29  Jim Meyering  <meyering@fb.com>
29325         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29326         It started like this when building coreutils' latest on OS X,
29327         invoking ./configure with a nonempty --cache=.cache:
29329           lib/linkat.c:46:42: error: operator '||' has no right operand
29330           lib/linkat.c: In function 'rpl_linkat':
29331           lib/linkat.c:330:27: error: #if with no expression
29333         Here's linkat.c's line 46:
29335           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29337         Here's some context:
29339           $ grep linkat_nofoll .cache
29340           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29341           $ grep LINKAT_SYM lib/config.h
29342           #define LINKAT_SYMLINK_NOTSUP
29344         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29345         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29346         but that violates a tenet of AC_CACHE_CHECK: it must
29347         have no side effect other than setting its cache variable.
29349         What happens is that when the cache is set, we'd skip the
29350         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29351         defined to whatever value it happened to have in configure's
29352         environment.  In my case, it was not defined, so this later code:
29354           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29355             [Define to 1 if linkat can create hardlinks to symlinks])
29357         would emit code with an empty RHS.
29359         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29360         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29362 2015-06-28  Jim Meyering  <meyering@fb.com>
29364         mountlist: avoid an unused-label warning on OS X
29365         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29366         Building on OS X, I saw a warning about the "free_then_fail" label
29367         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29369         error.c: correct printf-style format: %d -> %u
29370         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29371         rather than %d, to match the type of "line_number", unsigned int.
29373 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29375         fts: avoid reading beyond the heap allocation
29376         GCC 5.1.1 with -O2 and -fsanitize=address reports
29377         a read of size 4 from a heap object of size 3 is indeed invalid,
29378         though this may be due to incorrect padding assumptions by GCC, see:
29379         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29380         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29381         * modules/fts: Depend on stdalign.
29383 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29385         savedir: avoid undefined behavior in qsort call
29386         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29387         "runtime error: null pointer passed as argument 1,
29388          which is declared to never be null"
29389         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29391 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29393         userspec: avoid undefined behavior in gettext call
29394         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29395         "runtime error: null pointer passed as argument 2,
29396          which is declared to never be null"
29397         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29399 2015-06-20  Glenn Morris  <rgm@gnu.org>
29401         gitlog-to-changelog: improve gitmerge.el commits
29402         Let the Emacs ChangeLog generation process exclude "skipped"
29403         messages from merge commits (Bug#20717).
29404         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29406 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29408         wchar: fix MinGW compilation warnings
29409         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29410         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29411         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29413 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29415         uniname/uniname-tests: use pristine data files
29416         For copyright and maintenance reasons, use the data files from UCD
29417         without modification.
29418         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29419         (getfield): Remove.
29420         (aliases_count): New global variable.
29421         (fill_names): Skip comments and empty lines in the input.  Don't
29422         use getfield.
29423         (fill_aliases): Likewise.
29424         (main): Change the expected command line arguments to:
29425         NAMES... ["--" ALIASES...].
29426         * tests/uniname/test-uninames.sh: Adjust to the change in
29427         test-uninames.c.
29428         * tests/uniname/UnicodeDataNames.txt: Remove.
29429         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29430         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29431         file from Unicode 8.0.0.
29433 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29435         linked-list, linkedhash-list: avoid compiler warnings
29436         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29437         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29439 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29441         libunistring: bump minimum version to 0.9.6
29442         * all modules depending on updated Unicode data: Regenerate.
29443         The modules are listed by a script that does:
29444         - for each file listed by: git show --oneline --name-only 705f4efc
29445           - deduce the containing modules, based on "Files:"
29446         - deduce the modules which depend on the containing modules, based
29447           on "Depends-on:"
29449 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29451         uniname/uniname: update to Unicode 8.0.0
29452         * lib/uniname/uninames.h: Regenerate.
29453         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29454         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29456 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29458         libunistring: update to Unicode 8.0.0
29459         * lib/gen-uni-tables.c (SIZEOF): New macro.
29460         (output_numeric): Increase the maximum number of fractions from
29461         128 to 160.  Increase the level3 value width from 7 bits to 8
29462         bits.  Use SIZEOF instead of a hard-coded integer.
29463         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29464         0x28000.
29465         (fill_blocks): Increase the maximum number of blocks from 256 to
29466         384.  Use SIZEOF instead of a hard-coded integer.
29467         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29468         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29469         value width.
29470         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29471         a new case added to LBP22.
29472         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29473         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29474         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29475         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29476         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29477         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29478         lib/uniwidth/width.c.
29479         * all generated files under lib/uni* and tests/uni*: Regenerate.
29481 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29483         gnu-web-doc-update: add --mirror to remove stale files
29484         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29485         out of date files from the CVS server.  Since this is usually
29486         appropriate, a prompt is given when the option is not specified,
29487         along with the `cvs remove` command that would be run.
29489 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29491         acl-permissions: pacify -Wsuggest-attribute=const
29492         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29493         * lib/acl-internal.h (free_permission_context):
29494         Declare with attribute const if ! (defined USE_ACL &&
29495         (HAVE_ACL_GET_FILE || defined GETACL)).
29497         fsync: document AIX misbehavior
29498         * doc/posix-functions/fsync.texi (fsync):
29499         Document failure on AIX with read-only file descriptor.
29501 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29503         stdio: Don't redefine gets when using C++
29504         * lib/stdio.in.h (gets): Disable warning on C++.
29506 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29508         acl-permissions: port to AIX, C89 HP-UX
29509         Problems reported by Michael Felt.
29510         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29511         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29512         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29513         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29514         Add cast for AIX, whose system calls are declared to accept
29515         char * even though the arguments are really char const *.
29516         * lib/get-permissions.c (get_permissions):
29517         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29518         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29519         that broke a build.
29520         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29521         Rework types to pacify xlc.
29523 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29525         vasprintf-posix: avoid compiling vasnprintf where possible
29526         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29527         module where not required.  For example on a GNU/Linux system
29528         when gnulib-tool is run with the --conditional-dependencies option.
29530 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29532         file-has-acl: fix build on Mac OS X 10
29533         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29534         which has an incompatible 6 parameter getxattr() call.
29535         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29536         call on Mac OS X >= 10.4.
29537         * doc/glibc-functions/fgetxattr.texi: Likewise.
29538         * lib/file-has-acl.c: Revert to more complete combined check.
29539         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29540         Reported by Jack Howarth.
29542 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29544         prefix-gnulib-mk: remove no longer needed special case
29545         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29546         continued lib_SOURCES lines are no longer present,
29547         so special case handling of such entries is not required.
29549 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29551         acl: don't depend on the deprecated qacl module
29552         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29554 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29556         gnulib-tool: concatenate lib_SOURCES to a single line
29557         * gnulib-tool: Refactor the line merging sed logic,
29558         and use that to output a single lib_SOURCES line for each module.
29559         gnulib using projects often postprocess this output to prepend
29560         subdir paths to each item, and having a single line simplifies this
29561         processing allowing better decoupling from the gnulib-tool output.
29563 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29565         pthread_sigmask: discount system version if a simple macro (trivial)
29566         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29567         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29568         function to ensure it's available.
29570 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29572         readlinkat: avoid OS X 10.10 trailing slash bug
29573         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29574         has this bug.
29575         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29576         that OS X 10.10 has this function.
29577         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29578         as done for readlink().
29579         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29580         trailing slash bug, and assume readlinkat() has the same issue.
29581         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29582         rather than the correct $gl_cv_decl_readlinkat_works.
29584 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29586         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29587         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29588         module rewrite.
29590         acl-permissions: Fix build on Solaris and Cygwin
29591         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29592         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29593         ace_entries variables have moved into struct permission_context but
29594         they were still accessed as local variables here.
29596 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29598         linkat: avoid OS X 10.10 trailing slash with symlink bug
29599         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29600         causes the symlink to be dereferenced, and if it points
29601         to a non existent file, that file will be created as
29602         a hard link to "path1".
29603         This fixes a test failure in test-linkat.c.
29604         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29605         this case.  The existing workaround in linkat.c for
29606         trailing slash issues, suffices for this case.
29607         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29608         the list of platforms with trailing slash issues.
29610 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29612         unlinkat: handle ignoring of ".." on Darwin 14
29613         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29614         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29615         so handle in the same manner.
29616         * m4/unlinkat.m4: Comment on this Darwin issue.
29617         * doc/posix-functions/unlink.texi: Update the latest version
29618         where the issue was seen.
29619         * doc/posix-functions/unlinkat.texi: Mention this issue.
29620         Fixes a test failure in test-unlinkat.c.
29622 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29624         qacl: split into qcopy-acl and qset-acl
29625         Emacs needs the former, but not the latter.
29626         * modules/acl-permissions: New file, containing most of the old qacl.
29627         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29628         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29629         * modules/qcopy-acl, modules/qset-acl: New files.
29630         * MODULES.html.sh (File system functions):
29631         Mention the new modules, and mention qacl while we're at it.
29633 2015-05-27  Glenn Morris  <rgm@gnu.org>
29635         gitlog-to-changelog: new option --ignore-line
29636         (This patch is imported from the GNU Emacs master.)
29637         This option ignores individual commit lines matching a pattern.
29638         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29640 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29642         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29643         Implement get_permissions and set_permissions primitives for getting all
29644         the permissions of a file, storing them, and later setting them. (In the
29645         minimal case, the permissions consist only of a file mode.) Reimplement
29646         qset_acl and qcopy_acl based on these new primitives: this avoids code
29647         duplication and makes error handling more consistent.
29648         The Solaris and Cygwin code still uses duplicate code paths for setting
29649         a file mode while making sure that no acls exist and setting an explicit
29650         acl; this is no worse than before, but could be cleaned up.  The AIX
29651         code still doesn't read ACLs, it only makes sure that acls don't get in
29652         the way when setting a file mode.
29653         * lib/acl-internal.h (struct permission_context): New data structure.
29654         (get_permissions, set_permissions, free_permission_context): Declare.
29655         * lib/acl-internal.c (free_permission_context): New helper function.
29656         * lib/get-permissions.c (get_permissions): New helper function split off
29657         from qcopy_acl.
29658         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29659         AIX, set a file's permissions based only on a file mode.
29660         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29661         other platforms construct a temporary acl from the file mode and set
29662         that acl in the same way as setting an acl read from the source file.
29663         This should help avoid code duplication and inconsistent / buggy
29664         behavior.
29665         (set_acls): New helper function Split off from qcopy_acl.
29666         (chmod_or_fchmod): Moved here from qset-acl.c.
29667         (set_permissions): New helper function.
29668         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29669         set_permissions.
29670         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29671         * modules/qacl: Add get-permissions.c and set-permissions.c.
29673         file-has-acl: Split feature tests again (Bug#20667)
29674         * lib/file-has-acl.c: Instead of testing for
29675         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29676         define them when needed.
29677         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29678         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29680 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29682         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29683         This avoids a conflict with "FORTIFY_SOURCE" variants
29684         of the string functions when they're replaced on NetBSD-6.0.1
29685         and Darwin-14.3.0 at least.
29686         * lib/string.in.h: Avoid including our "lib/string.h" while
29687         including the system <string.h>.
29689 2015-05-26  Eric Blake  <eblake@redhat.com>
29691         stdio: limit __gnu_printf__ witness to gcc 4.4+
29692         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29693         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29695         error: use correct printf attributes on mingw
29696         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29698         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29699         * modules/inttypes (Depends-on): Require extensions, so that mingw
29700         always uses GNU style inttypes.
29701         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29703         stdio: fix probe on mingw under gcc 5.1
29704         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29705         around new gcc preprocessor rules.
29707 2015-05-07  Glenn Morris  <rgm@gnu.org>
29709         gitlog-to-changelog: parse "Tiny-change"
29710         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29711         "Copyright-paperwork-exempt".  (Bug#20324)
29713 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29715         doc: document glibc posix_fallocate() issues
29716         * doc/posix-functions/posix_fallocate.texi: Mention the
29717         glibc efficiency problems and issues with NFS.
29719 2015-05-05  Karl Berry  <karl@freefriends.org>
29721         * build-aux/gendocs.sh (usage): document new css default
29722         for HTML (--htmlarg).
29724 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29726         extern-inline: no need for workaround in GCC 5.1
29727         * doc/extern-inline.texi (extern inline):
29728         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29729         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29730         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29731         two we can remove these workarounds.
29733 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29735         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29736         Avoid [-Wunknown-attributes] warnings like:
29737         warning: unknown attribute '__alloc_size__' ignored
29738         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29739         with clang, as support has been fully removed as of clang 3.5:
29740         https://github.com/llvm-mirror/clang/commit/c047507a
29741         * lib/eealloc.h: Likewise.
29742         * lib/pagealign_alloc.h: Likewise.
29744 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29746         tests: pacify GCC 5.1's stricter printf checking
29747         * tests/test-dirname.c (main):
29748         * tests/test-getaddrinfo.c (simple):
29749         * tests/test-getlogin.c (main):
29750         * tests/test-getndelim2.c (main):
29751         * tests/test-inttostr.c (CK):
29752         * tests/test-md5.c (main):
29753         * tests/test-read-file.c (main):
29754         * tests/test-sha1.c (main):
29755         Fix mismatches between printf format and value signedness.
29756         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29757         Remove, as CAST_VAL always returned a value of type uintmax_t.
29759         fts: port to GCC 5.1 with --enable-gcc-warnings
29760         Without this fix, GCC 5.1 (correctly) warns about a subscript
29761         error on the fts_name component of FTSENT.  It's actually a
29762         flexible member, so define it that way on C99 or later hosts.
29763         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29764         structure that now has a flexible array member.
29765         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29766         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29767         * modules/fts (Depends-on): Add flexmember.
29769 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29771         file-has-acl: port to CentOS 6
29772         Problem reported by Tom G. Christensen in:
29773         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29774         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29775         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29776         HAVE_GETXATTR.
29777         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29778         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29779         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29780         file-has-acl.c actually needs.
29782 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29784         file-has-acl: always return false when ACLs aren't supported
29785         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29786         change the GNU/Linux getxattr path, to transform "not supported"
29787         errors to a false return rather than an error.  This is handled
29788         within file_has_acl() due to the platform specific tests to
29789         determine if ACLs are not supported.
29791 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29793         gettext: propagate po/Makefile.in.in too
29794         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29795         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29796         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29797         between Makefile.in.in and the gettext-runtime m4 files.
29799 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29801         file-has-acl: new module, split from acl
29802         And add a new module file-has-acl-tests to match.
29803         I ran into a problem with the recent changes to the acl module,
29804         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29805         When using the fixed version with Emacs, I discovered that
29806         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29807         had multiple libraries, but needed only one), so I fixed that too.
29808         * NEWS: Document this incompatible change.
29809         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29810         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29811         Initialize gl_need_lib_has_acl.
29812         (gl_FUNC_ACL): Require it.
29813         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29814         Move the file-has-acl.c-relevant stuff to ...
29815         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29816         use_xattrs = 0' typo, and omit some needless work.  Set
29817         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29818         when gl_FUNC_ACL is called.
29819         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29820         (Link): Remove $(LIB_HAS_ACL).
29821         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29822         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29823         modules/file-has-acl-tests.
29824         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29826         manywarnings: add GCC 5.1 warnings
29827         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29828         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29829         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29830         -Wsuggest-override, -Wuse-without-only.  Change
29831         -Wnormalized=... operands to match 5.1.
29832         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29833         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29834         -Wdiscarded-qualifiers, -Wformat-signedness,
29835         -Wincompatible-pointer-types, -Wint-conversion,
29836         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29837         -Wshift-count-negative, -Wshift-count-overflow,
29838         -Wsizeof-array-argument, -Wsuggest-final-methods,
29839         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29840         and add -Warray-bounds=2 as a special case.
29842 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29844         doc: update FDL template to match FDL examples.
29845         * doc/alloca-opt.texi:
29846         * doc/alloca.texi:
29847         * doc/c-ctype.texi:
29848         * doc/c-strcase.texi:
29849         * doc/c-strcaseeq.texi:
29850         * doc/c-strcasestr.texi:
29851         * doc/c-strstr.texi:
29852         * doc/c-strtod.texi:
29853         * doc/c-strtold.texi:
29854         * doc/ctime.texi:
29855         * doc/error.texi:
29856         * doc/gcd.texi:
29857         * doc/gnulib-tool.texi:
29858         * doc/inet_ntoa.texi:
29859         * doc/intprops.texi:
29860         * doc/lib-symbol-visibility.texi:
29861         * doc/maintain.texi:
29862         * doc/parse-datetime.texi:
29863         * doc/quote.texi:
29864         * doc/regexprops-generic.texi:
29865         * doc/standards.texi: Remove spurious 'with' in FDL license
29866         template.
29868 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29870         lstat: fix cross-compilation 'ln -s' problem
29871         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29872         Have the test program call 'symlink' rather than a separate
29873         script run 'ln -s'; this is more likely to work in
29874         cross-compilation environments.  Reported by Pavel Fedin in:
29875         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29877 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29879         gendocs.sh: default to a common CSS style sheet for HTML output
29880         * build-aux/gendocs.sh (htmlarg): Change default value.
29882 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29884         gnulib-tool: output bold attribute more portably
29885         * gnulib-tool (func_show_module_list): Change hexadecimal
29886         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29887         encoded numbers as arguments to `printf' is not portable,
29888         and is not claimed by POSIX.  This is the case with FreeBSD.
29890 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29892         qacl: Simplify HP-UX acl_nontrivial check
29893         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29894         acl_nontrivial. Check if the acl has at most three entries instead (it must
29895         have exactly three entries according to the HP-UX documentation). Ignore
29896         uids and gids as long as an entry is either for a user (i.e., the owner),
29897         a group (i.e., the owning group), or others.
29898         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29899         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29901 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29903         acl: On Linux, check for acls without libacl
29904         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29905         library function to check for the presence of acls, avoiding a library.
29906         * lib/file-has-acl.c: Include xattr headers if we have them.
29907         (file_has_acl): On Linux, use getxattr().
29908         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29909         file_has_acl(). Check for xattr headers and getxattr().
29911 2015-04-14  Ángel González  <keisial@gmail.com>
29913         tempname: avoid unused parameter warnings (trivial)
29914         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29915         (try_nocreate): Likewise.
29917 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29919         fseeko: fix build failure on NetBSD >= 6 (trivial)
29920         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29921         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29923 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29925         gitlog-to-changelog: port to MS-Windows
29926         * build-aux/gitlog-to-changelog (git_dir_option):
29927         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29928         MS-Windows Perl.  Reported by Eli Zaretskii in:
29929         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29931 2015-04-07  Karl Berry  <karl@gnu.org>
29933         gendocs: new option --tex for passing args to texi2dvi.
29934         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29935         (TEXI2DVI): cut to just command name.
29936         (usage): mention new option, and update copyright.
29937         <generate_tex>: use it.
29939 2015-04-07  Karl Berry  <karl@gnu.org>
29941         * config/srclistvars.sh (GETTEXT): new definition.
29942         * config/srclist.txt: use it for gettext .m4 files.
29943         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29944         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29945         and continuing into April.
29947 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29949         uniname/uniname-tests: fix failure due to alias
29950         Reported by Jack Howarth in:
29951         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29952         * tests/uniname/test-uninames.c (name_has_alias): New function.
29953         (test_inverse_lookup): Exclude character name with valid alias,
29954         from randomly generated character names.
29955         (main): Fill unicode_aliases before calling test functions.
29957 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29959         hash: remove deprecated hash_insert0 function
29960         * lib/hash.h (hash_insert0): Remove deprecated function.
29961         * lib/hash.c (hash_insert0): Likewise.
29963 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29965         mountlist: remove dependency on libmount
29966         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29967         directly, rather than depending on libmount, which has many
29968         dependencies due to its dependence on libselinux, as detailed at:
29969         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29970         Note we restrict this to __linux__ as that's probably where this
29971         interface will remain.  If ever porting, it would be best
29972         to first pull the makedev() wrapper from coreutils to a gnulib module.
29973         Note also we don't add a getline dependency to the mountlist module,
29974         as all Linux versions are sufficient.
29976 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29978         stddef: port to pre-C11 GCC on x86
29979         On this platform, max_align_t should have an alignment of 8 even
29980         though the storage alignments of double, long, etc. max out at 4.
29981         Inspired by a comment of Andreas Schwab's here:
29982         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29983         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29984         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29985         * tests/test-stddef.c: Test __alignof__ too, if available.
29987 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29989         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29990         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29992 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29994         yesno: make EOL optional in ENABLE_NLS case also (trival)
29995         * lib/yesno.c (yesno): Check for EOL before replacing.
29996         * tests/test-yesno.sh: Add a test case (test along with gettext).
29998 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
30000         fdopendir-tests: test it does not close its arg
30001         * tests/test-fdopendir.c (main): Test that fdopendir does not
30002         close its argument.  From a suggestion by David Grayson in:
30003         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
30005 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
30007         gitlog-to-changelog: trim trailing white space
30008         * build-aux/gitlog-to-changelog (main):
30009         Trim trailing white space from commit message lines.
30010         This is helpful for processing the GNU Emacs repository,
30011         which dates back to 1985 and contains a lot of such lines.
30013         gitlog-to-changelog: new option --ignore-matching
30014         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
30015         Support new option --ignore-matching=PAT, which ignores all
30016         commit messages whose first line matches PAT.
30018 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
30020         fdopendir: port better to MinGW
30021         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
30022         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
30023         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
30024         * modules/fdopendir (Depends-on): Add dirfd.
30026 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
30028         fdopendir: fix typo in comment
30029         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
30031 2015-03-09  Eric Blake  <eblake@redhat.com>
30033         error: document all entry points provided
30034         * doc/glibc-functions/error_print_progname.texi
30035         (error_print_progname): Mention the error module.
30036         * doc/glibc-functions/error_at_line.texi (error_at_line):
30037         Likewise.
30038         * doc/glibc-functions/error_message_count.texi
30039         (error_message_count): Likewise.
30040         * doc/glibc-functions/error_one_per_line.texi
30041         (error_one_per_line): Likewise.
30043 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
30045         vasnprintf: pacify clang 3.5.0
30046         Problem reported by Werner Lemberg in:
30047         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
30048         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
30049         The casts aren't needed, since the characters in question are ASCII.
30051 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30053         glob, etc.: port to MSVC v18 on MS-Windows 8.1
30054         * lib/dirent--.h (GNULIB_defined_opendir):
30055         * lib/dirent.in.h (GNULIB_defined_opendir)
30056         (GNULIB_defined_closedir):
30057         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
30058         #undef only if Gnulib defined it.
30060         poll: port to MSVC v18 on MS-Windows 8.1
30061         Problem reported by Gisle Vanem in:
30062         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
30063         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
30064         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
30065         Add sys_socket.
30067 2015-02-24  Pádraig Brady  <P@draigBrady.com>
30069         tests: support stderr verification with returns_()
30070         * tests/init.sh (returns_): Disable tracing for this wrapper
30071         function, so that stderr of the wrapped command is unchanged,
30072         allowing for verification of the contents.
30074 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
30076         passfd: avoid valgrind uninitalised data warning
30077         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
30078         to include just the fd we've initialized, rather than including
30079         the extra space used for alignment.
30081 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30083         uniwbrk/u32-wordbreaks-tests: fix copyright
30084         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
30086         dup2: doc and test for Android bug
30087         Reported by Kevin Cernekee in:
30088         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
30089         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30090         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
30092 2015-02-23  Kevin Cernekee  <cernekee@google.com>
30094         Replace dup2() on Android
30095         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
30096         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
30097         fails.  Using rpl_dup2() fixes this because it has an explicit test
30098         for this condition.
30100 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
30102         Android doesn't define RLIM_SAVED_*
30103         Portability problem reported by Kevin Cernekee in:
30104         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
30105         * doc/posix-headers/sys_resource.texi (sys/resource.h):
30106         Mention the portability problem.
30107         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
30108         Define if not defined.
30109         * m4/dup2.m4 (gl_FUNC_DUP2):
30110         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30111         Likewise.
30113 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
30115         vasnprintf-posix-tests: use consistent test
30116         * tests/test-vasnprintf-posix.c (test_function):
30117         Use "<" in assert instead of "<=", for consistency with other tests.
30119 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30121         printf, isinf, etc.: noncanonical != NaN
30122         Do not require that isinf, printf, etc. treat noncanonical
30123         values as NaNs.  Instead, require only that they do not crash.
30124         Problem reported by Joseph Myers in:
30125         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
30126         * doc/posix-functions/dprintf.texi (dprintf):
30127         * doc/posix-functions/fprintf.texi (fprintf):
30128         * doc/posix-functions/isfinite.texi (isfinite):
30129         * doc/posix-functions/isinf.texi (isinf):
30130         * doc/posix-functions/isnan.texi (isnan):
30131         * doc/posix-functions/printf.texi (printf):
30132         * doc/posix-functions/snprintf.texi (snprintf):
30133         * doc/posix-functions/sprintf.texi (sprintf):
30134         * doc/posix-functions/vdprintf.texi (vdprintf):
30135         * doc/posix-functions/vfprintf.texi (vfprintf):
30136         * doc/posix-functions/vprintf.texi (vprintf):
30137         * doc/posix-functions/vsnprintf.texi (vsnprintf):
30138         * doc/posix-functions/vsprintf.texi (vsprintf):
30139         Document this.
30140         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
30141         * m4/isinf.m4 (gl_ISINFL_WORKS):
30142         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
30143         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
30144         * tests/test-isfinite.c (test_isfinitel):
30145         * tests/test-isinf.c (test_isinfl):
30146         * tests/test-isnan.c (test_long_double):
30147         * tests/test-isnanl.h (main):
30148         * tests/test-snprintf-posix.h (test_function):
30149         * tests/test-sprintf-posix.h (test_function):
30150         * tests/test-vasnprintf-posix.c (test_function):
30151         * tests/test-vasprintf-posix.c (test_function):
30152         Test only that noncanonical values do not cause crashes, not that
30153         they are treated as NaNs.  In some cases this means a larger
30154         output buffer is needed.
30156 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
30158         fts: remove redundant close() (trivial)
30159         * lib/fts.c (fts_read): Remove redundant call to close().
30160         Spotted by coverity.
30162 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
30164         getdtablesize: port better for Android
30165         Problem reported by Kevin Cernekee in:
30166         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
30167         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
30168         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
30169         Instead, just use getrlimit, taking care to avoid Cygwin bug.
30171         poll: fixes for large fds
30172         * lib/poll.c (poll): Don't check directly for NFD too large.
30173         Don't rely on undefined behavior in FD_SET when an arg exceeds
30174         FD_SETSIZE.  Always set revents afterwards, even if to zero.
30175         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
30176         as that makes the test a bit stricter.
30178 2015-02-19  Kevin Cernekee  <cernekee@google.com>
30180         fcntl: Fix cross compiling
30181         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
30182         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
30184 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
30186         dup2, fcntl: cross-compile better for Android
30187         Problem reported by Kevin Cernekee in:
30188         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
30189         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
30190         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
30191         there's little need to cross-compile for older kernels nowadays.
30192         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
30193         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
30195 2015-02-18  Pádraig Brady  <P@draigBrady.com>
30197         getopt: don't crash on memory exhaustion
30198         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
30199         memory exhaustion.  In the _LIBC case we use alloca() as is
30200         already done in glibc, so we don't need to consider the separate
30201         error path in that awkward case.  Also fix a memory leak when
30202         ambiguous options are present.
30203         Reported by Tobias Stoeckmann
30205 2015-02-17  Mike Miller  <mtmiller@ieee.org>
30207         tempname: allow compilation with C++ (trivial)
30208         * lib/tempname.h [C++]: Specify extern "C" linkage.
30209         * lib/tempname.h (try_tempname):
30210         * lib/tempname.c (__try_tempname, __gen_tempname):
30211         Rename 'try' to 'tryfunc'.
30213 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
30215         dup2, fcntl: port to AIX
30216         * m4/dup2.m4 (gl_FUNC_DUP2):
30217         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30218         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
30219         The former works on AIX 7.1 but the latter does not.
30220         Also, this may work better with Android; see:
30221         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
30223 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
30225         getdtablesize, dup2, fcntl: port to Android
30226         Problem reported by Kevin Cernekee in:
30227         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
30228         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
30229         Mention that getdtablesize doesn't work on Android.
30230         * lib/getdtablesize.c: Use getrlimit substitute only if
30231         getdtablesize is declared.  This should suffice for Cygwin
30232         while not breaking Android.
30233         * m4/dup2.m4 (gl_FUNC_DUP2):
30234         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30235         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
30236         standardized but the latter is not, and sysconf works on Android.
30237         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
30238         Also check that getdtablesize is declared.
30239         This removes the need for a special case for Android.
30241 2015-02-16  Kevin Cernekee  <cernekee@google.com>
30243         localename: Implement gl_locale_name_thread_unsafe for Android
30244         * lib/localename.c: Android API level >= 21 supports two hardcoded
30245         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
30246         the internal __locale_t struct.
30248 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
30250         fts: avoid crash when a cycle is added while traversing
30251         This could be triggered by auto-mounting a recursive bind mount.
30252         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
30253         * lib/fts.c (fts_read): Avoid removing the original hash table item
30254         when leaving a directory that caused a cycle, and preserve the FTS_DC
30255         flag.
30257 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30259         uniname/uniname: support character alias
30260         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30261         Generate one-way mapping from aliases to codepoints in the
30262         generated tables.  Special case variation selectors to reduce
30263         table size.
30264         * lib/uniname/uniname.c (unicode_character_name): Special case
30265         variation selectors.
30266         (unicode_name_character): Special case variation selectors and
30267         their aliases.
30268         * lib/uniname/uninames.h: Regenerate.
30269         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30270         * modules/uniname/uniname-tests (Files): Add
30271         tests/uniname/NameAliases.txt.
30272         * tests/uniname/test-uninames.c: Mark as static.
30273         (ALIASLEN): Define.
30274         (struct unicode_alias): New struct.
30275         (unicode_aliases): New variable.
30276         (fill_aliases): New function.
30277         (test_alias_lookup): New test function.
30278         (main): Run the 'test_alias_lookup' test if the second argument is
30279         given.
30280         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30281         second argument.
30283 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30285         Fix FILE struct compatibility with Android API level >= 21
30286         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30287         __sferror.  Recent versions of Bionic's stdio.h no longer define
30288         __sferror.
30289         * lib/fbufmode.c: Likewise.
30290         * lib/fflush.c: Likewise.
30291         * lib/fpurge.c: Likewise.
30292         * lib/freadable.c: Likewise.
30293         * lib/freadahead.c: Likewise.
30294         * lib/freading.c: Likewise.
30295         * lib/freadptr.c: Likewise.
30296         * lib/freadseek.c: Likewise.
30297         * lib/fseeko.c: Likewise.
30298         * lib/fseterr.c: Likewise.
30299         * lib/fwritable.c: Likewise.
30301         Assume unbroken ungetc() on Android
30302         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30303         test case passed when running on an Android host, and the code
30304         hasn't really changed since 2009.
30306         getdtablesize: Fix Android build
30307         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30308         versions have this symbol in the .so library (at least 32-bit
30309         platforms) but are missing the declaration in the header file,
30310         causing the m4 logic to guess incorrectly.
30312         localename: Fix Android build
30313         * modules/localename (Depends-on): Add langinfo.
30315         getugroups: Fix Android build
30316         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30317         functions.
30319         euidaccess: Fix Android build
30320         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30321         AT_EACCESS gets declared.
30323         linkat_nofollow: Add fallback case for cross compiling
30324         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30326         net_if: Handle content-free <net/if.h> system headers
30327         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30328         struct if_nameindex.  If not, enable the replacement header.
30330         signal_h: Fix Android build
30331         * lib/signal.in.h: Add Android to the list of platforms that declare
30332         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30334         duplocale: Fix Android build of duplocale-tests
30335         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30336         is included by test-duplocale.c (but not by duplocale.c).
30337         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30338         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30339         * doc/posix-headers/monetary.texi: Add Android to the list of
30340         platforms missing monetary.h.
30342 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30344         tests: avoid recent -Werror=unused-variable regression in test-locale
30345         * tests/test-locale.c (main): Reference the variable to avoid the
30346         "unused variable" warning.
30348 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30350         maint: various whitespace cleanups in tempname
30351         * lib/tempname.c: Normalize spacing and line length.
30352         * lib/tempname.h: Likewise.
30353         * modules/tempname: Likewise.
30355 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30357         tests: provide returns_() to simplify exit status checking
30358         * tests/init.sh (returns_): A new function for use in tests,
30359         to allow for easier checking of return values, where you expect
30360         a command to exit with failure status.  By checking for a particular
30361         exit code, you don't hide any crashes for example.
30363 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30365         mountlist: only use libmount when specified
30366         There are currently many shared libs dependencies introduced by
30367         libmount with associated runtime and virt mem overhead.
30368         Therefore don't enable by default.
30369         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30371 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30373         uniname/unimame-tests: don't link with -lunistring
30374         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30375         $(LIBUNISTRING).  Document the rationale why we need to
30376         conditionalize the test.
30378 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30380         fstrcmp: don't assume strlen < INT_MAX
30381         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30382         (uintptr_t): Remove, as we're now assuming stdint.
30383         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30384         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30385         if the input string is long.
30386         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30387         uintptr_t to size_t when the underlying value is a pointer casted
30388         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30389         * modules/fstrcmp (Depends-on): Add stdint.
30391         diffseq: prefer ptrdiff_t to ssize_t
30392         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30393         ptrdiff_t is the natural type for signed indexes.
30394         On a few older platforms, ssize_t is narrower than size_t.
30396         xalloc: fix typo that suppressed warnings
30397         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30398         This typo, introduced a couple of years ago, mistakenly suppressed
30399         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30400         -Wmissing-declarations warnings.
30402         full-read: fix license notice typo
30403         * lib/full-read.h: Remove a stray line in the license notice.
30404         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30406         crypto/gc: fix a -Wswitch warning
30407         Reported by Bruce Korb in:
30408         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30409         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30411 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30413         gnulib-tool: fix handling of patch(1) diagnostics
30414         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30415         as otherwise gnulib-tool will reparse that output and attempt
30416         to lookup modules.
30418 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30420         bootstrap: exit immediately upon gnulib-tool failure
30421         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30422         This was noticed when gnulib-tool exited early due to failure
30423         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30424         but various confusing errors were then given as the build proceeded.
30426 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30428         symlinkat: include all required header files
30429         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30430         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30431         Reported at https://savannah.gnu.org/bugs/index.php?44151
30432         and by Jack Howarth.
30434 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30436         localename: support Solaris 12 and illumos
30437         * lib/localename.c (gl_locale_name_thread_unsafe): call
30438         getlocalename_l() on newer __sun platforms.
30439         Reported by Alexander Pyhalov.
30440         Fix suggested by Rich Burridge.
30442 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30444         locale: fix tests on illumos (trivial)
30445         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30446         so move from global scope to main().
30448 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30450         unictype: avoid undefined left-shift behavior
30451         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30452         gcc's -fsanitize=shift and running its tests triggered:
30453           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30454             places cannot be represented in type 'int'
30455         Cast LHS to 'unsigned int' after integer promotion.
30456         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30457         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30459 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30461         libunistring: bump version of unitypes dependants
30462         Due to the header file search order, all the headers which depend
30463         on unitypes.h need to be generated, when the preinstalled
30464         libunistring is older.
30465         * modules/unicase/base (configure.ac): Bump minimum version to
30466         0.9.4.
30467         * modules/uniconv/base (configure.ac): Likewise.
30468         * modules/unilbrk/base (configure.ac): Likewise.
30469         * modules/uninorm/base (configure.ac): Likewise.
30470         * modules/unistdio/base (configure.ac): Likewise.
30471         * modules/unistr/base (configure.ac): Likewise.
30472         * modules/uniwbrk/base (configure.ac): Likewise.
30473         * modules/uniwidth/base (configure.ac): Likewise.
30475 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30477         unictype/category-none: fix link with libunistring
30478         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30479         prefixed with "libstring_" when compiled as part of libunistring.
30480         To avoid undefined symbol at link time, increase the minimum
30481         version when the dependant modules are updated.
30482         * modules/unictype/category-none (configure.ac): Bump minimum
30483         version to 0.9.5.
30485 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30487         unitypes: fix build with installed libunistring
30488         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30489         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30490         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30492 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30494         time: port to MinGW32 3.21
30495         Problem reported by Eli Zaretskii in:
30496         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30497         * lib/time.in.h:
30498         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30499         * modules/time (Depends-on):
30500         Fall back on unistd.h if the other include files don't define
30501         struct timespec.
30503         update-copyright: apply to self
30504         * build-aux/update-copyright: Fix copyright date.  How ironic!
30506 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30508         libunistring: update to Unicode 7.0.0
30509         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30510         Manichaean names.
30511         * lib/unictype/joininggroup_name.h: Likewise.
30512         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30513         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30514         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30515         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30516         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30517         enum values.
30518         (is_property_alphabetic): Accept newly added characters to
30519         cuneiform numeric signs.
30520         (is_property_default_ignorable_code_point): Reject U+0605.
30521         (FIELDLEN): Increase from 120 to 160.
30522         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30523         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30524         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30525         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30526         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30527         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30528         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30529         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30530         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30531         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30532         U+1E8D0..U+1E8D6.
30533         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30534         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30535         lib/uniwidth/width.c.
30536         * all generated files under lib/uni* and tests/uni*: Regenerate.
30538 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30540         libunistring: update to Unicode 6.3.0
30541         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30542         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30543         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30544         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30545         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30546         Update WB5, WB9, WB10, WB13a, and WB13b.
30547         * tests/uniwbrk/test-uc-wordbreaks.c
30548         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30549         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30550         (UC_BIDI_PDI): New enumeration values.
30551         (bidi_category_byname): Support those enum values.
30552         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30553         dedicated property assigned.
30554         (is_property_case_ignorable): Check 0x0027.
30555         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30556         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30557         (output_wbp): Support those enum values.
30558         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30559         (UC_BIDI_PDI): New enumeration values.
30560         * lib/unictype/bidi_byname.gperf: Add those property names.
30561         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30562         U+180E, U+1A1B, and U+2066..U+2069.
30563         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30564         lib/uniwidth/width.c.
30565         * all generated files under lib/uni* and tests/uni*: Regenerate.
30567 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30569         libunistring: update to Unicode 6.2.0
30570         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30571         (unilbrk_table): Adjust table size.
30572         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30573         for LBP_RI.
30574         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30575         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30576         Normalize table index skipping ignored properties.
30577         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30578         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30579         the table.
30580         * lib/uniwbrk/wbrktable.h: Adjust table size.
30581         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30582         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30583         Support rule GB8a.
30584         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30585         * tests/unigbrk/test-uc-is-grapheme-break.c
30586         (graphemebreakproperty_to_string): Support GBP_RI.
30587         * tests/uniwbrk/test-uc-wordbreaks.c
30588         (wordbreakproperty_to_string): Support WBP_RI.
30589         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30590         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30591         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30592         LBP_AL to LBP_ID.
30593         (output_lbp): Support LBP_RI.
30594         (WBP_RI): New enumeration value.
30595         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30596         (output_wbp): Support WBP_RI.
30597         (GBP_RI): New enumeration value.
30598         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30599         * all generated files under lib/uni* and tests/uni*: Regenerate.
30601 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30603         libunistring: update to Unicode 6.1.0
30604         * lib/gen-uni-tables.c (output_joining_group): Switch to
30605         3-level table to accommodate joining groups defined with higher
30606         codepoint value.  Since there are only 88 groups defined in
30607         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30608         (get_lbp): Update for Unicode 6.1.0.
30609         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30610         3-level table.
30611         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30612         joining group name.
30613         * lib/unictype/joininggroup_name.h: Likewise.
30614         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30615         (unilbrk_table): Adjust table size.
30616         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30617         for LBP_HL.
30618         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30619         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30620         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30621         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30622         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30623         U+302E..U+302F.
30624         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30625         lib/uniwidth/width.c.
30626         * all generated files under lib/uni* and tests/uni*: Regenerate.
30627         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30629 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30631         uniwbrk/u32-wordbreaks-tests: add conformance test
30632         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30633         tests/uniwbrk/test-uc-wordbreaks.c,
30634         tests/uniwbrk/test-uc-wordbreaks.sh, and
30635         tests/uniwbrk/WordBreakTest.txt.
30636         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30637         test-uc-wordbreaks to $(check_PROGRAMS), and define
30638         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30639         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30640         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30642 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30644         uniwbrk: ignore Extended/Format characters at BOL not BOS
30645         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30646         characters if the previous character property is one of
30647         WBP_NEWLINE, WBP_CR, and WBP_LF.
30649 2015-01-11  Jim Meyering  <meyering@fb.com>
30651         test-strstr.c: avoid a trivial leak
30652         * tests/test-strstr.c (main): Free haystack.
30654         update-copyright: recognize groff's \(co marker
30655         * build-aux/update-copyright (circle_c_re): Also accept
30656         uses of \(co, as found in gzip.1.
30658 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30660         maint.mk: fix compatibility with OS X nm
30661         * top/maint.mk (_gl_tight_scope): Use the -g option to
30662         show exported items rather than the -e option which is
30663         ignored on all platforms except OS X where it gives an error.
30664         Reported by Assaf Gordon.
30666 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30668         localcharset: improve charset detection on OS/2
30669         Use system codepage when appropriate.  Map OS/2 codepages to
30670         GNU canonical charset names if possible.
30671         * lib/config.charset: Don't output aliases if "$os" is os2*.
30672         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30673         result for OS/2.
30674         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30675         from the locale name which is neither "C" nor "POSIX".
30677 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30679         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30680         This reverts the last patch but one, as it shouldn't be needed now
30681         that the typo is fixed.
30682         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30683         * lib/count-trailing-zeros.h:
30684         * lib/count-one-bits.h:
30685         Go back to using 64-bit intrinsics.
30687         count-leading-zeros: fix pragma typos
30688         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30689         Fix typos in declaration of intrinsics when _MSC_VER.
30691 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30693         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30694         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30695         intrinsics in this case.
30696         * lib/count-trailing-zeros.h: Likewise.
30697         * lib/count-one-bits.h: Likewise.
30699 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30701         uniname/uniname: update to Unicode 7.0.0
30702         To accommodate new characters added since Unicode 5.1.0, this
30703         changes the internal representation of codepoint ranges.
30704         Previously, we grouped codepoint ranges by manually assigned 4-bit
30705         tag, which only allowed 16 groups.  This removes the limitation by
30706         switching to binary search on a table.  For the detail rationale
30707         and the benchmark results, see:
30708         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30709         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30710         to INDEX, as it no longer represents a codepoint.
30711         (range): New struct.
30712         (main): Switch to intervals list from a bit-pattern based
30713         classification.
30714         * lib/uniname/uninames.h: Regenerate.
30715         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30716         * modules/uniname/base (configure.ac): Bump minimum version to
30717         0.9.5.
30718         * modules/uniname/uniname (configure.ac): Bump minimum version to
30719         0.9.5.
30721 2015-01-05  Eric Blake  <eblake@redhat.com>
30723         doc: update INSTALL from autoconf
30724         * doc/install.texi: Resync from autoconf.
30725         * doc/INSTALL: Reflect recent autoconf update.
30726         * doc/INSTALL.ISO: Likewise.
30727         * doc/INSTALL.UTF-8: Likewise.
30729         stdio: fix use of PRIdMAX on modern mingw
30730         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30731         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30732         to work with modern mingw.
30734 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30736         pthread: detect git mingw builds with only partial pollution
30737         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30738         pollution, as seen temporarily in Fedora 21.
30740 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30742         lib-symbol-versions: cache script check
30743         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30744         Cache the check for linker version scripts.
30745         From a suggestion by Christophe Curis in:
30746         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30748 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30750         maint: fix grammar nits in propername (trivial change)
30751         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30752         and use an adequate verb and tense.
30754 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30756         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30757         * module/gendocs: Add 'doc/gendocs_template_min'.
30759         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30760         from to Gnulib's.
30761         (scripturl, templateurl): Adjust accordingly.
30763 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30765         gendocs: copyright date and version fix
30766         Reported by Karl Berry in:
30767         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30768         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30769         Fix copyright date.
30770         * build-aux/gendocs.sh (scriptversion): Update.
30772 2015-01-01  Karl Berry  <karl@gnu.org>
30774         * doc/install.texi,
30775         * build-aux/mdate-sh,
30776         * build-aux/depcomp,
30777         * build-aux/config.guess,
30778         * build-aux/config.sub,
30779         * build-aux/ar-lib,
30780         * build-aux/compile: revert copyright updates (some from last
30781         year) in slaved files.
30783 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30785         version-etc: new year
30786         * doc/gnulib.texi:
30787         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30788         * all files: Run 'make update-copyright'.
30790 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30792         xstrtol: ensure errno is reset
30793         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30794         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30796         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30798 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30800         utimens: fix dependency typo
30801         * modules/utimens (Depends-on): Remove 'assure'.
30802         This bug was introduced in the recent 'assure' patch.
30804 2014-12-22  Eric Blake  <eblake@redhat.com>
30806         docs: mention why libgen.h is bad
30807         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30809 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30811         assure: new module
30812         This works better than 'assert' when compiling with -DNDEBUG,
30813         as it avoids some compiler diagnostics in that case.
30814         Reported by Norihiro Tanaka in:
30815         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30816         * MODULES.html.sh (func_all_modules): Add 'assure'.
30817         * lib/assure.h, modules/assure: New files.
30818         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30819         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30820         Prefer 'assure' to 'assert'.
30821         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30822         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30823         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30824         Depend on 'assure'.
30826 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30828         stdalign: port better to HP compilers
30829         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30830         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30832         stdalign: work around Apple GCC 4.0 bug
30833         Reported by David Fang in:
30834         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30835         * lib/stdalign.in.h (_Alignas):
30836         * m4/stdalign.m4 (gl_STDALIGN_H):
30837         Do not use aligned attribute with GCC 4.0 on Apple.
30839 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30841         getcwd: fix test failure on OS X 10.9
30842         * m4/getcwd-path-max.m4: Avoid the replacement if it
30843         won't be effective due to the PATH_MAX limitation of lstat().
30844         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30846         for this case for use in tests, and also exclude this
30847         case when setting REPLACE_GETCWD.
30848         * tests/test-getcwd.c (test_long_name): Restrict the
30849         tested path length so that lstat() will not be passed
30850         a path greater than PATH_MAX.
30851         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30852         than AT_FDCWD, since the latter is set unconditionally
30853         since Sep 2009 in commit 52c658e9.
30855 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30857         parse-datetime: avoid a compiler warning with byacc (trivial)
30858         * lib/parse-datetime.y (yylex): Use the same prototype in the
30859         function definition as the declaration, to avoid a -Wstrict-prototypes
30860         warning seen when using byacc.
30862 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30864         unicase/locale-language-tests: fix LOCALE_FR test
30865         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30866         a French locale with traditional encoding.
30867         Reported by umerqayam in:
30868         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30870 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30872         stddef: support C11's max_align_t
30873         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30874         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30875         Do not undef, as that might cause max_align_t to be defined twice.
30876         Instead, change use to check for _GL_STDDEF_WINT_T too.
30877         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30878         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30879         Check for max_align_t.
30880         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30881         * modules/stddef-tests (Depends-on): Add stdalign.
30882         * tests/test-stddef.c: Test max_align_t.
30884 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30886         unistd: fix iOS check conditional
30887         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30888         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30889         yielded true on non-iOS environment.
30890         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30891         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30892         they are defined.
30894 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30896         posixtm: avoid compiler warning in a better way
30897         * lib/posixtm.c (IF_LINT): Remove.
30898         (year, posix_time_parse):
30899         Return true (not 0) if successful.  All callers changed.
30900         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30902 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30904         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30905         started with '/' on EMX.
30907 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30909         freopen: workaround freopen() on OS/2 kLIBC
30910         * lib/freopen.c (rpl_freopen): Workaround.
30911         * m4/freopen.m4: Add os2* case.
30913         get_shared_library_fullname: port to EMX
30914         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30915         on EMX, respectively.
30916         (_DLL_InitTerm): New on EMX.
30917         (get_shared_library_fullname): Implement on EMX.
30919         find_executable: port to EMX
30920         * lib/progreloc.c (find_executable): Implement on EMX.
30922         sched: check struct sched_param in spawn.h as well
30923         * lib/sched.in.h: Include spawn.h on kLIBC.
30924         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30926 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30928         bootstrap: Allow perl modules in $buildreq
30929         * build-aux/bootstrap: Add case for perl modules.
30931 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30933         apply _GL_ATTRIBUTE_PURE to some inline functions
30934         clang 3.4.2 flagged these inline functions as pure
30935         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30936         * lib/sig-handler.h (get_handler): Likewise.
30937         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30938         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30940 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30942         vasnprintf: fix potential use after free
30943         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30944         flagged by clang-analyzer 3.4.2.
30946 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30948         filevercmp, posixtm: avoid compiler warnings with -O3
30949         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30950         * lib/posixtm.c: (IF_LINT): Define.
30951         (posix_time_parse): Use it to void a "may be used uninitialized"
30952         warning, seen only with -O3.
30954 2014-12-05  Bruno Haible  <bruno@clisp.org>
30956         Fix LDBL80_WORDS macro on big endian platforms.
30957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30958         LDBL80_WORDS macro.
30959         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30960         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30961         * tests/test-isfinite.c (test_isfinitel): Likewise.
30962         * tests/test-isinf.c (test_isinfl): Likewise.
30963         * tests/test-isnan.c (test_long_double): Likewise.
30964         * tests/test-isnanl.h (main): Likewise.
30965         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30966         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30967         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30968         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30969         Reported by Pádraig Brady.
30971 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30973         git-version-gen: do not print new line characters
30974         * build-aux/git-version-gen: Use printf instead of echo and tr.
30976         gnulib-tool: recognize x:* as an absolute path
30977         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30978         (func_relconcat): Likewise.
30980 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30982         argp: avoid extraneous translation and mem leak with empty pre doc
30983         * lib/argp-help.c (argp_doc): Never translate the empty string,
30984         when "\v" is the first or last character of the string, as that
30985         has a reserved meaning to return the header info from a po file.
30986         This also fixes a small memory leak in the !post case.
30987         The issue can be seen with this command for example:
30988         LC_MESSAGES=en_US grub2-mknetdir --help
30990 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30992         uniname/uniname-tests: skip if system's libunistring is used
30993         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30994         uniname/uniname module is not compiled.
30996 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30998         printf: fix configure check on big endian systems
30999         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
31001 2014-11-22  Daiki Ueno  <ueno@gnu.org>
31003         pipe-filter-gi, pipe-filter-ii: port to AIX
31004         On AIX 7.1, 'select' is defined as static and cannot be referred
31005         to from inline function.
31006         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
31007         the definition...
31008         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
31009         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
31011 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
31013         gitlog-to-changelog: add --until
31014         * build-aux/gitlog-to-changelog: Support new --until option.
31015         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
31017 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
31019         extern-inline: update commentary about GCC bugs
31020         * m4/extern-inline.m4: Add another GCC bug number to comments.
31022 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31024         gen-uni-tables: untabify
31025         * lib/gen-uni-tables.c: Untabify.
31027 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31029         gen-uni-tables: check out-of-range values added to 3-level tables
31030         * lib/gen-uni-tables.c (output_category, output_bidi_category)
31031         (output_joining_type, output_ident_category): Check out-of-range
31032         values added to 3-level tables.
31034 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31036         gen-uni-tables: utilize 'assert'
31037         * lib/gen-uni-tables.c: Include <assert.h>.
31038         (output_category, output_combclass, output_decimal_digit_test)
31039         (output_decimal_digit, output_digit_test, output_digit)
31040         (output_numeric, get_mirror_value, fill_properties)
31041         (fill_property30, is_property_alphabetic)
31042         (is_property_default_ignorable_code_point)
31043         (is_property_uppercase, is_property_lowercase)
31044         (is_property_cased, is_property_case_ignorable)
31045         (is_property_changes_when_lowercased, is_property_iso_control)
31046         (is_property_math, fill_arabicshaping, output_joining_group)
31047         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
31048         (output_wbp, fill_org_gbp, get_decomposition)
31049         (output_decomposition, fill_composition_exclusions)
31050         (debug_output_composition_tables, output_composition_tables)
31051         (redistribute_casefolding_rules, output_casing_rules): Use
31052         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
31053         reporting.
31055 2014-11-13  Daiki Ueno  <ueno@gnu.org>
31057         gen-uni-tables: cosmetic improvements
31058         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
31059         variables specification.
31060         (is_outdigit): Remove unused function.
31062 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
31064         fcntl-h-tests: port to PA-RISC GNU/Linux
31065         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
31067 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
31069         fts: port to C89
31070         Problem reported for MSVC 16 by Gisle Vanem in:
31071         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
31072         * lib/fts.c (fts_build): Avoid declaration before statement.
31074 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
31076         unistd: port to iOS
31077         Problem reported by André Klitzing in:
31078         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
31079         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
31081 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
31083         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
31084         Problem reported by Alan Modra in:
31085         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
31086         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
31087         Always cast the function arg, reverting this part of the previous
31088         change.
31090 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
31092         obstack: avoid potentially-nonportable function casts
31093         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
31094         Remove, replacing with ...
31095         (call_chunkfun, call_freefun): New static functions.
31096         All uses changed.  Avoid potentially-nonportable casts.
31097         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
31098         (_obstack_begin_worker): Omit last two args, since they
31099         rely on potentially-nonportable casts.  All callers changed.
31100         * lib/obstack.h (_OBSTACK_CAST): New macro.
31101         Use it everywhere the old API used a potentially-nonportable cast.
31102         The new API doesn't cast.
31103         (struct obstack): Use unions rather than requiring
31104         potentially-nonportable casts.
31105         (obstack_chunkfun, obstack_freefun): Return void.
31107 2014-11-03  Alan Modra  <amodra@gmail.com>
31109         obstack: fix macro return values
31110         * lib/obstack.h (obstack_next_free): Return void *.
31111         (obstack_1grow_fast, obstack_blank_fast): Return void.
31112         For __GNUC__ macros:
31113         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
31114         For !__GNUC__ macros:
31115         (obstack_make_room, obstack_grow, obstack_grow0)
31116         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
31118 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31120         obstack: do not assume system-supplied obstack is size_t safe
31121         * m4/obstack.m4: New file.
31122         * modules/obstack (Files): Add it.
31124         obstack: port to platforms that #define __alignof__
31125         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
31126         not if !_LIBC.  We don't know of any platforms that #define
31127         __alignof__, but it might be useful in tests.  Conversely,
31128         glibc assumes GCC.
31130 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31132         linkat: don't unconditionally replace on GNU/Linux
31133         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
31134         was redundant for a few reasons.  It was present to support compiling
31135         on new systems but running on the old narrow window of Linux 2.6.1[67].
31136         It setup and cleaned up test files which weren't actually used.
31137         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
31138         implicit in the following check.
31140 2014-11-03  Pádraig Brady  <P@draigBrady.com>
31142         linkat: wrap to handle symlinks on OS X 10.10
31143         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
31144         but not usable because it doesn't support creating hardlinks
31145         to symlinks.  Therefore add a generic test for this capability
31146         and fallback to our emulation if linkat() fails with ENOTSUP.
31148 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31150         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
31151         * doc/posix-functions/open.texi (open):
31152         * doc/posix-functions/openat.texi (openat):
31153         Document that these functions do not set errno to ELOOP when
31154         a symlink is opened with O_NOFOLLOW.
31156 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31158         obstack: add NEWS entry for recent incompatible changes
31159         * NEWS: Describe recent changes.
31161 2014-10-30  Pádraig Brady  <P@draigBrady.com>
31163         mountlist: don't use libmount to decide on dummy/remote
31164         * lib/mountlist.c (read_file_system_list): Don't use the libmount
31165         routines to determine whether a file system is dummy or remote,
31166         as they're not currently compatible.  For example the remoteness
31167         is determined on file system type (for which the list seems incomplete),
31168         rather than simply checking for a ':' in the device name.
31169         Also libmount currently determines that 'tmpfs' is a dummy file system
31170         even though it has associated storage.
31172 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
31174         obstack: prefer __alignof__ to alignof
31175         This is for portability to pre-4.7 GCC when compiling glibc.
31176         See Joseph S. Myers in:
31177         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
31178         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
31179         New macro, defined by including and using <alignof.h>.
31180         (MAX): New macro.
31181         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
31182         Do not use enums as they are not portable to some broken compilers.
31183         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
31185         obstack: prefer alignof to calculating alignments by hand
31186         * lib/obstack.c: Include <stdalign.h>.
31187         (struct fooalign): Remove.
31188         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
31189         * modules/obstack (Depends-on): Add stdalign.
31191 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
31193         obstack: use size_t alignments and check for overflow
31194         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
31195         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
31196         * lib/obstack.h (struct obstack.alignment_mask):
31197         Use _OBSTACK_SIZE_T, not int, for alignments.
31198         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
31199         overflows, e.g., when adding the alignment.
31201 2014-10-29  Alan Modra  <amodra@gmail.com>
31203         obstack: 64-bit obstack support, part 3
31204         This finally enables full 64-bit obstack support.  The glibc
31205         shared library specific code is removed from obstack.c too, and
31206         the error handling code conditionally compiled under control of
31207         another macro, _OBSTACK_NO_ERROR_HANDLER.
31208         * lib/obstack.h: Include string.h earlier.
31209         (_OBSTACK_INTERFACE_VERSION): Define.
31210         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
31211         * lib/obstack.c: Don't include shlib-compat.h.
31212         (OBSTACK_INTERFACE_VERSION): Delete.
31213         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
31214         glibc code is compatible with version 2.  Don't include stdio.h for
31215         __GNU_LIBRARY.
31216         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
31217         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
31218         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
31219         glibc shared library specific source.
31221         obstack: 64-bit obstack support, part 2
31222         This gets us 4G obstack support, without changing ABI
31223         compatibility, apart from possibly introducing some
31224         signed/unsigned comparison warnings in code that uses obstack.h.
31225         a) Replace "int" size parameters, return values, and macro local vars
31226            with _OBSTACK_SIZE_T, an "unsigned int" for now.
31227         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
31228         c) Make all obstack macros checking available room use obstack_room.
31229            "next_free + desired > chunk_limit" may wrap the lhs for chunks
31230            allocated near the top of memory.
31231         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
31232         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
31233         in place of "int" size parameters, return values and local vars.
31234         (_CHUNK_SIZE_T): Define.
31235         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
31236         union use an _OBSTACK_SIZE_T integer type.
31237         For __GNUC__ versions of the following macros...
31238         (obstack_room): Rename local var.
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 comparison when comparing aligned
31243         next_free against chunk_limit.
31244         (obstack_free): Cast OBJ to remove possible const qualifier.
31245         For !__GNUC__ versions of the following macros...
31246         (obstack_make_room): Use obstack_room.
31247         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
31248         obstack_int_grow, obstack_blank): Likewise.
31249         (obstack_finish): Use unsigned comparision when comparing aligned
31250         next_free against chunk_limit.
31251         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
31252         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
31253         _OBSTACK_SIZE_T.
31254         (_obstack_begin, _obstack_begin_1): Likewise.
31255         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31256         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31258         obstack: 64-bit obstack support, part 1
31259         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31260            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31261            and "size_t" 64 bits.
31262         b) Consolidate _obstack_begin and _obstack_begin1 code.
31263         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31264         use "size_t" rather than "long".
31265         (_obstack_begin, _obstack_begin1): Likewise.
31266         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31267         obstack_chunkfun): Update alloc function casts.
31268         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31269         (chunkfun_type, freefun_type): New typdefs.
31270         (_obstack_begin_worker): Split out from ..
31271         (_obstack_begin, _obstack_begin_1): ..here.
31273         obstack: tidy part 2
31274         a) Don't be concerned about "not polluting the namespace with stddef.h
31275            symbols" in obstack.h, since gnulib string.h includes stddef.h
31276            anyway, and it seems unlikely that anyone would care.
31277         b) Don't roll our own slow memcpy in _obstack_newchunk.
31278         c) Rename obstack_free to _obstack_free.  This makes the naming
31279            consistent with other obstack functions and obviates the need for
31280            __obstack_free.  Ancient obstack.c defined both obstack_free and
31281            _obstack_free.  We continue to do that for _LIBC via an alias.
31282         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31283            is clever, but nowadays gcc warns on undefined macros.  You'll get
31284            an undefined macro warning if simulating an old gcc with -U__GNUC__
31285            -U__GNUC_MINOR__ -D__GNUC__=1.
31286         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31287         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31288         (__obstack_free): Delete, update refs.
31289         (_obstack_free): Rename from obstack_free.
31290         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31291         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31292         * lib/obstack.c: Don't include stddef.h.
31293         (COPYING_UNIT): Delete.
31294         (_obstack_begin): Formatting fix.
31295         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31296         (_obstack_free): Rename from __obstack_free, update alias.  Move
31297         undef of obstack_free to where it is needed.
31299         obstack: tidy part 1
31300         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31301            to me, and result in overlong lines after later patches.
31302         b) Move error handling code, to avoid a forward declaration and to
31303            simplify later patches in this series.
31304         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31305         and update all uses.
31306         * lib/obstack.c: Include stdlib.h earlier.
31307         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31308         in file.
31309         (print_and_abort): Remove now redundant forward declaration.
31311 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31313         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31314         Without this change, in bleeding-edge fileutils Autoconf complains
31315         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31316         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31317         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31318         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31320 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31322         iconv: avoid false detection of non-working iconv
31323         The INBUF arguments of iconv can be either 'const char **'
31324         or 'char **'.  If CC is g++, the difference causes a compile error
31325         and thus leads to a false detection of non-working iconv.
31326         Reported by Eli Zaretskii and Werner LEMBERG in:
31327         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31328         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31329         iconv.  Bump serial number.
31331 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31333         bootstrap: print more diagnostics for missing programs
31334         * build-aux/bootstrap: only suppress stderr when checking for
31335         alternative program names.  This supports programs issuing non
31336         standard error messages.
31338 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31340         bootstrap: only update the gnulib submodule
31341         * build-aux/bootstrap: Restrict the "submodule update" command
31342         to the gnulib path.
31344 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31346         symlinkat: port to AIX 7.1
31347         * doc/posix-functions/symlinkat.texi (symlinkat):
31348         Mention AIX porting problem.
31349         * lib/symlinkat.c: Always include errno.h.
31350         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31351         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31352         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31354         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31355         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31356         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31358         readlinkat: port to AIX 7.1
31359         * doc/posix-functions/readlink.texi (readlink):
31360         * doc/posix-functions/readlinkat.texi (readlinkat):
31361         Mention AIX porting problem.
31362         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31363         New function.
31364         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31365         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31367         * modules/readlinkat (configure.ac): Also compile replacement
31368         if REPLACE_READLINKAT.
31369         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31371 2014-10-12  Karl Berry  <karl@gnu.org>
31373         * doc/posix-functions/dirname.texi: remove spurious {.
31375 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31377         basename, dirname: Improve documentation.
31378         * doc/posix-functions/basename.texi: Mention dirname module and
31379         base_name() function.
31380         * doc/posix-functions/dirname.texi: Mention dir_name() and
31381         mdir_name() functions.
31382         Suggested by Werner LEMBERG <wl@gnu.org>.
31384 2014-09-24  Jim Meyering  <meyering@fb.com>
31386         exclude: declare exclude_patopts static
31387         * lib/exclude.c (exclude_patopts): Declare static,
31388         to avoid triggering a -Wmissing-prototypes warning.
31389         The alternative (declaring it in the .h file) would
31390         require publicizing the private "struct patopts".
31392 2014-09-21  Werner Lemberg  <wl@gnu.org>
31394         dirname: support compilation with C++
31395         * lib/dirname.h: Add necessary C linkage declarations.
31397 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31399         qsort_r: include <config.h>
31400         Problem reported by Tom G. Christensen in:
31401         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31402         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31404 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31406         avltree-list: avoid compiler warnings (trivial)
31407         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31408         -Werror=suggest-attribute=pure.
31409         * lib/gl_array_list.c: Likewise.
31410         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31411         declaration to avoid -Werror=missing-prototypes.  This is not added
31412         to a header as only exported for tests.  Add (void) to the
31413         check_invariants() call to indicate we're discarding the result
31414         in this context which avoids -Werror=unused-value.  Note we don't
31415         use ignore_value here to avoid a dependency as we know we'll not
31416         be adding __attribute__((warn_unused_result)) to check_invariants().
31417         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31419 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31421         qsort_r: new module, for GNU-style qsort_r
31422         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31424 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31426         strerror_r-posix: support compilation with C++
31427         * lib/strerror_r.c: Add necessary C linkage declarations.
31429 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31431         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31432         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31434 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31436         mountlist: use /proc/self/mountinfo when available
31437         Use libmount to propagate device IDs provided by Linux in
31438         /proc/self/mountinfo.  This will give more accurate output when
31439         using df in chroot'ed environments as the device IDs are not
31440         determined by stat() which may be inaccurate within the chroot.
31441         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31442         from util-linux to parse "/proc/self/mountinfo" or fall back to
31443         standard getmntent() processing.
31444         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31445         getmntent() is used, as is the case on GNU/Linux.
31447 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31449         users.txt: add cmogstored
31450         cmogstored has used gnulib since the beginning in 2012 to support
31451         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31453 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31455         Trivial change.
31456         * gnulib-tool: Use same options as build-aux/bootstrap to download
31457         PO files.
31459 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31461         Trivial change.
31462         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31464 2014-09-04  Eric Blake  <eblake@redhat.com>
31466         maintainer-makefile: add syntax check for useless ';;'
31467         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31469 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31471         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31472         Problem reported by Assaf Gordon in:
31473         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31474         Apparently Ubuntu is doing some fancy link-time optimization
31475         that doesn't work with -lpthread but does work with -pthread.
31476         Work around the bug by preferring -pthread to -lpthread.
31477         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31478         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31479         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31480         Treat -pthread like -lpthread.
31482 2014-09-04  Eric Blake  <eblake@redhat.com>
31484         error: drop spurious semicolon
31485         * lib/error.c (__error_at_line): Fix ';;'.
31487 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31489         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31490         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31491         Override AC_C_RESTRICT unconditionally.
31492         Update from autoconf, incorporating:
31493         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31494         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31496 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31498         manywarnings: add GCC 4.9 warnings
31499         Also, make it easier to maintain this in the future.
31500         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31501         -Wconditionally-supported, -Wdelete-incomplete,
31502         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31503         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31504         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31505         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31506         only for older GCC versions that need them.  Handle
31507         -Wnormalized=nfc specially, so that the 'comm' command used
31508         for maintenance doesn't get confused.
31510 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31512         vasnprintf: fix bugs in width computation
31513         * lib/vasnprintf.c (VASNPRINTF):
31514         Rework previous change, which introduced a bug,
31515         to avoid the warning in a different way.
31516         Avoid undefined behavior if the width arg is less than -INT_MAX.
31517         Avoid unnecessary use of HAS_WIDTH local.
31519 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31521         vasnprintf: Avoid signed/unsigned comparison warning.
31522         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31523         compare end addr of generated string w/ maximum end addr.
31525 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31527         parse-datetime: Avoid pointer difference.
31528         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31529         instead of calculating difference of pointers.  This removes an
31530         annoying warning, devoid of any use.
31532 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31534         qsort_r: new module, for GNU-style qsort_r
31535         This works even on FreeBSD, which has an incompatible qsort_r API.
31536         * MODULES.html.sh: Add it.
31537         * doc/glibc-functions/qsort_r.texi: It's now supported.
31538         * lib/qsort.c: New file, taken from glibc with minor changes
31539         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31540         removed.
31541         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31542         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31544         * modules/qsort_r, modules/qsort_r-tests: New files.
31545         * modules/stdlib (Makefile): Set up its defaults.
31546         * tests/test-qsort_r.c: New file.
31548 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31550         vla: new module
31551         GNU RCS can use this, mostly for documentation I expect.  See:
31552         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31553         * MODULES.html.sh: Add vla.
31554         * lib/vla.h, modules/vla: New files.
31556 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31558         localename: make gl_locale_name_thread really thread-safe on Windows
31559         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31560         "glthread/lock.h".
31561         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31562         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31564 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31566         getpass: don't assume struct termios
31567         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31568         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31569         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31571         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31572         Problem reported by Jonas 'Sortie' Termansen in:
31573         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31574         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31575         Implement via sysconf for platforms that lack getdtablesize.
31577         vararrays: modernize AC_C_VARARRAYS for C11
31578         This backports a change I recently made to Autoconf.
31579         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31580         VLAs are not supported, as this is what C11 does.  The old macro
31581         HAVE_C_VARARRAYS is still defined if they are supported, but is
31582         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31584 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31586         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31587         * build-aux/install-reloc (func_create_wrapper): Also wrap
31588         strerror-override, stat, stat.
31590 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31592         sys_select: fix FD_ZERO problem on Solaris 10
31593         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31594         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31595         to expand to an expression that invoked memset without necessarily
31596         including <string.h>.  The problem was that the first include
31597         defined _SYS_TIME_H, causing the second include to short-circuit.
31598         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31599         Also, fix what appears to be a cut-and-paste typo, by replacing
31600         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31601         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31603         accept: document Solaris 10 type glitch
31604         * doc/posix-functions/accept.texi (accept): Mention that
31605         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31607 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31609         extern-inline: port to FreeBSD, DragonFly
31610         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31611         is present if either __DragonFly__ or __FreeBSD__ is defined.
31612         FreeBSD problem reported by Andrey Borzenkov in:
31613         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31614         Also, worry about __APPLE__ only if __MACH__ is also defined,
31615         as this is more consistent with the rest of gnulib.
31616         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31617         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31619 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31621         regex: Make #if/#ifdef usage consistent for DEBUG
31622         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31623         of the inconsistent usage of #if and #ifdef as that works with
31624         both Glibc and Gnulib's style.
31626 2014-07-31  Eric Blake  <eblake@redhat.com>
31628         openat-die: use _Noreturn markup
31629         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31630         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31631         _Noreturn.
31633 2014-07-30  Eric Blake  <eblake@redhat.com>
31635         test-open: port to cygwin, which lacks Fortify
31636         * tests/test-open.h (ALWAYS_INLINE): New macro.
31637         (__always_inline): Don't abuse internal symbol on non-glibc.
31639 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31641         localename: Enforce declarations before statements.
31642         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31643         first statement.
31645 2014-07-18  Jim Meyering  <meyering@fb.com>
31647         test-userspec: don't look up numeric user names
31648         * tests/test-userspec.c: I found a system for which getpwnam("0")
31649         returned a pointer to a non-root user's entry, and that made the
31650         test fail.
31651         (T): Prefix each numeric input with "+", to inhibit lookup.
31653 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31655         localcharset, localename: MS-Windows support for non-default locales
31656         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31657         falling back on the default system codepage, try extracting
31658         the codepage from what 'setlocale' returns.  This allows to
31659         take into account changes of the codeset due to non-default
31660         locale set by a previous call to 'setlocale'.
31661         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31662         Define if not already defined.
31663         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31664         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31665         current locale by calling 'setlocale', then converting the
31666         locale name into LCID by calling 'get_lcid'.  This allows to
31667         take into account changes in the current locale from the
31668         default one, in contrast to GetThreadLocale.
31670 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31672         announce-gen: avoid failure when Digest::SHA is installed
31673         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31674         Digest::SHA1->new in print_checksums fails.
31675         * build-aux/announce-gen (digest_classes): New associative array
31676         for available message digest implementations.
31677         (print_locations): Use it.
31679 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31681         gettext: revert "update macros to version 0.19"
31682         This reverts commit 9b9370ca, as it currently requires that
31683         developers of any project that explicitly uses the gettext module
31684         or implicitly uses it through the utimens-tests or
31685         futimens-tests modules, use gettext >= 0.19.
31686         However there are some stability and availablity issues with
31687         that version at present.  We can reinstate this soon, when stability
31688         is addressed and packages are more readily available.
31690 2014-07-12  Jim Meyering  <meyering@fb.com>
31692         regex: don't deref NULL upon heap allocation failure
31693         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31694         failure in one more place.
31695         To trigger the segfault, configure grep -with-included-regex,
31696         build it, and run these commands:
31697         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31698         I discovered this while replying to a private report from
31699         Jens Schleusener about excessive memory consumption by grep
31700         when using a regular expression like the one above.
31702 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31704         regex: fix memory leak in compiler
31705         Fix by Andreas Schwab in:
31706         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31707         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31708         constructed tree before returning error.
31710 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31712         announce-gen: avoid perl warnings
31713         * build-aux/announce-gen: add two minor checks to avoid
31714         "use of uninitialized value" warnings when command-line parameters are
31715         missing.
31717 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31719         localename: avoid -Wsuggest-attribute={const,pure} warnings
31720         * lib/localename.c (string_has): Tag internal function as pure.
31721         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31722         as const when appropriate.
31724 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31726         nl_langinfo: Fix last change.
31727         * lib/nl_langinfo.c (includes): Drop redundant include.
31729 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31731         error: Fix -Wundef warnings in glibc
31732         * lib/error.c [_LIBC]: Define default macros for
31733         glibc.
31734         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31735         Check _LIBC before STRERROR_R_CHAR_P.
31737         error: Sync from glibc master
31738         * lib/error.c [_LIBC]: Remove INTUSE usage.
31739         (error_tail): Remove unused macro ALLOCA_LIMIT.
31740         Fix potential buffer overflow.  Fix potential NULL dereference
31741         in strcmp.
31743 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31745         nl_langinfo: fix build under mingw
31746         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31748 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31750         mountlist: do not classify a bind-mounted dir entry as "dummy"
31751         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31752         1-argument getmntent() (instead of assuming absence).
31754 2014-07-08  Eric Blake  <eblake@redhat.com>
31756         maint.mk: less syntax-check noise when SIGPIPE is ignored
31757         * top/maint.mk (_sc_header_without_use)
31758         (sc_require_config_h_first): Parse full list.
31760 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31761             Paul Eggert  <eggert@cs.ucla.edu>
31763         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31764         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31765         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31766         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31767         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31768         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31769         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31770         Include <stdio.h> if Microsoft Windows.
31771         Include <time.h> if !REPLACE_NL_LANGINFO.
31772         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31773         and with improvements for Microsoft Windows.
31774         (rpl_nl_langinfo): Use it.
31775         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31776         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31777         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31778         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31779         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31780         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31781         corresponding values returned by 'localeconv'.  Compute the values
31782         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31783         'strftime' with a suitable struct tm value.
31785 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31787         Bruno Haible has stepped down as maintainer.
31788         See Karl Berry in:
31789         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31790         Daiki Ueno has volunteered to maintain libunistring; see:
31791         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31792         * modules/gen-uni-tables, modules/libunistring:
31793         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31794         * modules/unicase/base, modules/unicase/cased:
31795         * modules/unicase/empty-prefix-context:
31796         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31797         * modules/unicase/locale-language, modules/unicase/special-casing:
31798         * modules/unicase/tocasefold, modules/unicase/tolower:
31799         * modules/unicase/totitle, modules/unicase/toupper:
31800         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31801         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31802         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31803         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31804         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31805         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31806         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31807         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31808         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31809         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31810         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31811         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31812         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31813         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31814         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31815         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31816         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31817         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31818         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31819         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31820         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31821         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31822         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31823         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31824         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31825         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31826         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31827         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31828         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31829         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31830         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31831         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31832         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31833         * modules/uniconv/u16-conv-to-enc:
31834         * modules/uniconv/u16-strconv-from-enc:
31835         * modules/uniconv/u16-strconv-from-locale:
31836         * modules/uniconv/u16-strconv-to-enc:
31837         * modules/uniconv/u16-strconv-to-locale:
31838         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31839         * modules/uniconv/u32-strconv-from-enc:
31840         * modules/uniconv/u32-strconv-from-locale:
31841         * modules/uniconv/u32-strconv-to-enc:
31842         * modules/uniconv/u32-strconv-to-locale:
31843         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31844         * modules/uniconv/u8-strconv-from-enc:
31845         * modules/uniconv/u8-strconv-from-locale:
31846         * modules/uniconv/u8-strconv-to-enc:
31847         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31848         * modules/unictype/bidicategory-all:
31849         * modules/unictype/bidicategory-byname:
31850         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31851         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31852         * modules/unictype/bidiclass-byname:
31853         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31854         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31855         * modules/unictype/block-all, modules/unictype/block-list:
31856         * modules/unictype/block-of, modules/unictype/block-test:
31857         * modules/unictype/category-C, modules/unictype/category-Cc:
31858         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31859         * modules/unictype/category-Co, modules/unictype/category-Cs:
31860         * modules/unictype/category-L, modules/unictype/category-LC:
31861         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31862         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31863         * modules/unictype/category-Lu, modules/unictype/category-M:
31864         * modules/unictype/category-Mc, modules/unictype/category-Me:
31865         * modules/unictype/category-Mn, modules/unictype/category-N:
31866         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31867         * modules/unictype/category-No, modules/unictype/category-P:
31868         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31869         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31870         * modules/unictype/category-Pi, modules/unictype/category-Po:
31871         * modules/unictype/category-Ps, modules/unictype/category-S:
31872         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31873         * modules/unictype/category-Sm, modules/unictype/category-So:
31874         * modules/unictype/category-Z, modules/unictype/category-Zl:
31875         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31876         * modules/unictype/category-all, modules/unictype/category-and:
31877         * modules/unictype/category-and-not, modules/unictype/category-byname:
31878         * modules/unictype/category-longname, modules/unictype/category-name:
31879         * modules/unictype/category-none, modules/unictype/category-of:
31880         * modules/unictype/category-or, modules/unictype/category-test:
31881         * modules/unictype/category-test-withtable:
31882         * modules/unictype/combining-class:
31883         * modules/unictype/combining-class-all:
31884         * modules/unictype/combining-class-byname:
31885         * modules/unictype/combining-class-longname:
31886         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31887         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31888         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31889         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31890         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31891         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31892         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31893         * modules/unictype/digit, modules/unictype/joininggroup-all:
31894         * modules/unictype/joininggroup-byname:
31895         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31896         * modules/unictype/joiningtype-all:
31897         * modules/unictype/joiningtype-byname:
31898         * modules/unictype/joiningtype-longname:
31899         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31900         * modules/unictype/mirror, modules/unictype/numeric:
31901         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31902         * modules/unictype/property-ascii-hex-digit:
31903         * modules/unictype/property-bidi-arabic-digit:
31904         * modules/unictype/property-bidi-arabic-right-to-left:
31905         * modules/unictype/property-bidi-block-separator:
31906         * modules/unictype/property-bidi-boundary-neutral:
31907         * modules/unictype/property-bidi-common-separator:
31908         * modules/unictype/property-bidi-control:
31909         * modules/unictype/property-bidi-embedding-or-override:
31910         * modules/unictype/property-bidi-eur-num-separator:
31911         * modules/unictype/property-bidi-eur-num-terminator:
31912         * modules/unictype/property-bidi-european-digit:
31913         * modules/unictype/property-bidi-hebrew-right-to-left:
31914         * modules/unictype/property-bidi-left-to-right:
31915         * modules/unictype/property-bidi-non-spacing-mark:
31916         * modules/unictype/property-bidi-other-neutral:
31917         * modules/unictype/property-bidi-pdf:
31918         * modules/unictype/property-bidi-segment-separator:
31919         * modules/unictype/property-bidi-whitespace:
31920         * modules/unictype/property-byname:
31921         * modules/unictype/property-case-ignorable:
31922         * modules/unictype/property-cased:
31923         * modules/unictype/property-changes-when-casefolded:
31924         * modules/unictype/property-changes-when-casemapped:
31925         * modules/unictype/property-changes-when-lowercased:
31926         * modules/unictype/property-changes-when-titlecased:
31927         * modules/unictype/property-changes-when-uppercased:
31928         * modules/unictype/property-combining:
31929         * modules/unictype/property-composite:
31930         * modules/unictype/property-currency-symbol:
31931         * modules/unictype/property-dash:
31932         * modules/unictype/property-decimal-digit:
31933         * modules/unictype/property-default-ignorable-code-point:
31934         * modules/unictype/property-deprecated:
31935         * modules/unictype/property-diacritic:
31936         * modules/unictype/property-extender:
31937         * modules/unictype/property-format-control:
31938         * modules/unictype/property-grapheme-base:
31939         * modules/unictype/property-grapheme-extend:
31940         * modules/unictype/property-grapheme-link:
31941         * modules/unictype/property-hex-digit:
31942         * modules/unictype/property-hyphen:
31943         * modules/unictype/property-id-continue:
31944         * modules/unictype/property-id-start:
31945         * modules/unictype/property-ideographic:
31946         * modules/unictype/property-ids-binary-operator:
31947         * modules/unictype/property-ids-trinary-operator:
31948         * modules/unictype/property-ignorable-control:
31949         * modules/unictype/property-iso-control:
31950         * modules/unictype/property-join-control:
31951         * modules/unictype/property-left-of-pair:
31952         * modules/unictype/property-line-separator:
31953         * modules/unictype/property-logical-order-exception:
31954         * modules/unictype/property-lowercase, modules/unictype/property-math:
31955         * modules/unictype/property-non-break:
31956         * modules/unictype/property-not-a-character:
31957         * modules/unictype/property-numeric:
31958         * modules/unictype/property-other-alphabetic:
31959         * modules/unictype/property-other-default-ignorable-code-point:
31960         * modules/unictype/property-other-grapheme-extend:
31961         * modules/unictype/property-other-id-continue:
31962         * modules/unictype/property-other-id-start:
31963         * modules/unictype/property-other-lowercase:
31964         * modules/unictype/property-other-math:
31965         * modules/unictype/property-other-uppercase:
31966         * modules/unictype/property-paired-punctuation:
31967         * modules/unictype/property-paragraph-separator:
31968         * modules/unictype/property-pattern-syntax:
31969         * modules/unictype/property-pattern-white-space:
31970         * modules/unictype/property-private-use:
31971         * modules/unictype/property-punctuation:
31972         * modules/unictype/property-quotation-mark:
31973         * modules/unictype/property-radical:
31974         * modules/unictype/property-sentence-terminal:
31975         * modules/unictype/property-soft-dotted:
31976         * modules/unictype/property-space:
31977         * modules/unictype/property-terminal-punctuation:
31978         * modules/unictype/property-test, modules/unictype/property-titlecase:
31979         * modules/unictype/property-unassigned-code-value:
31980         * modules/unictype/property-unified-ideograph:
31981         * modules/unictype/property-uppercase:
31982         * modules/unictype/property-variation-selector:
31983         * modules/unictype/property-white-space:
31984         * modules/unictype/property-xid-continue:
31985         * modules/unictype/property-xid-start:
31986         * modules/unictype/property-zero-width, modules/unictype/scripts:
31987         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31988         * modules/unictype/syntax-c-whitespace:
31989         * modules/unictype/syntax-java-ident:
31990         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31991         * modules/unigbrk/u16-grapheme-breaks:
31992         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31993         * modules/unigbrk/u32-grapheme-breaks:
31994         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31995         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31996         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31997         * modules/unigbrk/uc-is-grapheme-break:
31998         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31999         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
32000         * modules/unilbrk/u16-width-linebreaks:
32001         * modules/unilbrk/u32-possible-linebreaks:
32002         * modules/unilbrk/u32-width-linebreaks:
32003         * modules/unilbrk/u8-possible-linebreaks:
32004         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
32005         * modules/unilbrk/ulc-possible-linebreaks:
32006         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
32007         * modules/uniname/uniname, modules/uninorm/base:
32008         * modules/uninorm/canonical-decomposition:
32009         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
32010         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
32011         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
32012         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
32013         * modules/uninorm/nfkc, modules/uninorm/nfkd:
32014         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
32015         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
32016         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
32017         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
32018         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
32019         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
32020         * modules/unistdio/base, modules/unistdio/u-printf-args:
32021         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
32022         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
32023         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
32024         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
32025         * modules/unistdio/u16-u16-sprintf:
32026         * modules/unistdio/u16-u16-vasnprintf:
32027         * modules/unistdio/u16-u16-vasprintf:
32028         * modules/unistdio/u16-u16-vsnprintf:
32029         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
32030         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
32031         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
32032         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
32033         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
32034         * modules/unistdio/u32-u32-asnprintf:
32035         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
32036         * modules/unistdio/u32-u32-sprintf:
32037         * modules/unistdio/u32-u32-vasnprintf:
32038         * modules/unistdio/u32-u32-vasprintf:
32039         * modules/unistdio/u32-u32-vsnprintf:
32040         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
32041         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
32042         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
32043         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
32044         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
32045         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
32046         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
32047         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
32048         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
32049         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
32050         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
32051         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
32052         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
32053         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
32054         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
32055         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
32056         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
32057         * modules/unistr/u16-check, modules/unistr/u16-chr:
32058         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
32059         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
32060         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
32061         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
32062         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
32063         * modules/unistr/u16-move, modules/unistr/u16-next:
32064         * modules/unistr/u16-prev, modules/unistr/u16-set:
32065         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
32066         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
32067         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
32068         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
32069         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
32070         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
32071         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
32072         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
32073         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
32074         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
32075         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
32076         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
32077         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
32078         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
32079         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
32080         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
32081         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
32082         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
32083         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
32084         * modules/unistr/u32-next, modules/unistr/u32-prev:
32085         * modules/unistr/u32-set, modules/unistr/u32-startswith:
32086         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
32087         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
32088         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
32089         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
32090         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
32091         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
32092         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
32093         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
32094         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
32095         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
32096         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
32097         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
32098         * modules/unistr/u8-check, modules/unistr/u8-chr:
32099         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
32100         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
32101         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
32102         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
32103         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
32104         * modules/unistr/u8-next, modules/unistr/u8-prev:
32105         * modules/unistr/u8-set, modules/unistr/u8-startswith:
32106         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
32107         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
32108         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
32109         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
32110         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
32111         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
32112         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
32113         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
32114         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
32115         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
32116         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
32117         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
32118         * modules/uniwbrk/base, modules/uniwbrk/table:
32119         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
32120         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
32121         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
32122         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
32123         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
32124         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
32125         * modules/uniwidth/width, modules/utf16-ucs4:
32126         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
32127         * modules/utf8-ucs4-unsafe:
32128         Change maintainer from Bruno Haible to Daiki Ueno.
32129         This is my guess at the libunistring modules; please feel free
32130         to fix if I guessed incorrectly.
32131         * modules/accept4, modules/acl, modules/acos, modules/acosf:
32132         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
32133         * modules/areadlink, modules/array-list, modules/array-mergesort:
32134         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
32135         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
32136         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
32137         * modules/binary-io, modules/bison-i18n, modules/btowc:
32138         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
32139         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
32140         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
32141         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
32142         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
32143         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
32144         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
32145         * modules/closedir, modules/concat-filename, modules/copy-file:
32146         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
32147         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
32148         * modules/csharpcomp-script, modules/csharpexec:
32149         * modules/csharpexec-script, modules/ctype, modules/diffseq:
32150         * modules/dprintf, modules/dprintf-posix, modules/dup:
32151         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
32152         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
32153         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
32154         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
32155         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
32156         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
32157         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
32158         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
32159         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
32160         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
32161         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
32162         * modules/findprog, modules/findprog-lgpl, modules/floor:
32163         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
32164         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
32165         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
32166         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
32167         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
32168         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
32169         * modules/freadable, modules/freadahead, modules/freadptr:
32170         * modules/freadseek, modules/freopen, modules/frexp:
32171         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
32172         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
32173         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
32174         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
32175         * modules/ftello, modules/full-read, modules/full-write:
32176         * modules/fwritable, modules/fwriteerror, modules/gcd:
32177         * modules/get-rusage-as, modules/get-rusage-data:
32178         * modules/getdtablesize, modules/getrusage, modules/gettext:
32179         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
32180         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
32181         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
32182         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
32183         * modules/iconv, modules/iconv-h, modules/iconv_open:
32184         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
32185         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
32186         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
32187         * modules/integer_length_ll, modules/ioctl, modules/isatty:
32188         * modules/isblank, modules/isnand, modules/isnand-nolibm:
32189         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
32190         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
32191         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
32192         * modules/javaexec, modules/javaexec-script, modules/javaversion:
32193         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
32194         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
32195         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
32196         * modules/lib-symbol-visibility, modules/libsigsegv:
32197         * modules/linked-list, modules/linkedhash-list, modules/list:
32198         * modules/localcharset, modules/locale, modules/localeconv:
32199         * modules/localename, modules/lock, modules/log, modules/log-ieee:
32200         * modules/log10, modules/log10-ieee, modules/log10f:
32201         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
32202         * modules/log1p, modules/log1p-ieee, modules/log1pf:
32203         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
32204         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
32205         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
32206         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
32207         * modules/logf, modules/logf-ieee, modules/login_tty:
32208         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
32209         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
32210         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
32211         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
32212         * modules/mbscspn, modules/mbsinit, modules/mbslen:
32213         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
32214         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
32215         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
32216         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
32217         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
32218         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
32219         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
32220         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
32221         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
32222         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
32223         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
32224         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
32225         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
32226         * modules/posix_spawn, modules/posix_spawn-internal:
32227         * modules/posix_spawn_file_actions_addclose:
32228         * modules/posix_spawn_file_actions_adddup2:
32229         * modules/posix_spawn_file_actions_addopen:
32230         * modules/posix_spawn_file_actions_destroy:
32231         * modules/posix_spawn_file_actions_init:
32232         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
32233         * modules/posix_spawnattr_getpgroup:
32234         * modules/posix_spawnattr_getschedparam:
32235         * modules/posix_spawnattr_getschedpolicy:
32236         * modules/posix_spawnattr_getsigdefault:
32237         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
32238         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
32239         * modules/posix_spawnattr_setschedparam:
32240         * modules/posix_spawnattr_setschedpolicy:
32241         * modules/posix_spawnattr_setsigdefault:
32242         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
32243         * modules/pow, modules/powf, modules/printf-frexp:
32244         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
32245         * modules/progname, modules/propername, modules/pselect:
32246         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
32247         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
32248         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
32249         * modules/read, modules/readdir, modules/readlink:
32250         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
32251         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
32252         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
32253         * modules/relocatable-script, modules/remainder:
32254         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32255         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32256         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32257         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32258         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32259         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32260         * modules/setlocale, modules/sh-quote, modules/shutdown:
32261         * modules/signal, modules/signbit, modules/sigpipe:
32262         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32263         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32264         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32265         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32266         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32267         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32268         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32269         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32270         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32271         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32272         * modules/streq, modules/strerror_r-posix, modules/striconv:
32273         * modules/striconveh, modules/striconveha, modules/strncat:
32274         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32275         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32276         * modules/sys_wait, modules/system-posix, modules/system-quote:
32277         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32278         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32279         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32280         * modules/truncf, modules/truncf-ieee, modules/truncl:
32281         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32282         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32283         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32284         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32285         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32286         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32287         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32288         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32289         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32290         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32291         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32292         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32293         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32294         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32295         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32296         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32297         * modules/write, modules/xconcat-filename, modules/xlist:
32298         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32299         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32300         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32301         * modules/y0, modules/y1, modules/yn:
32302         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32303         change the maintainer to 'all'.  Let's hope someone volunteers.
32305 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32307         mktime: merge #if/#ifdef usage from glibc
32308         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32309         as that works with both Glibc's and Gnulib's style.
32310         See thread starting at Siddhesh Poyarekar's bug report at:
32311         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32313 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32315         git-version-gen: improve option descriptions
32316         * build-aux/git-version-gen: Mention that --prefix and --fallback
32317         have a mandatory argument.
32319 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32321         regex: fix memory leak in compiler
32322         Fix by Andreas Schwab in:
32323         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32324         * lib/regcomp.c (parse_expression): Deallocate partially
32325         constructed tree before returning error.
32327         regex: merge patch from libc
32328         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32329         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32330         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32332 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32334         acl: port to gcc -Wredundant-decls
32335         From a request by Dmitry Antipov in:
32336         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32337         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32338         "#ifndef _GL_ACL_H".
32340 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32341         Jim Meyering  <meyering@fb.com>
32343         parse-duration: eliminate 68-year duration limit
32344         * lib/parse-duration.c: Include "intprops.h".
32345         (TIME_MAX): Rename to MAX_DURATION and define to
32346         TYPE_MAXIMUM(time_t).
32347         * modules/parse-duration (Depends-on): Add intprops.
32348         Reported by Jonas 'Sortie' Termansen.
32350 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32352         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32353         * modules/pthread (Depends-on): Add 'extensions', as it defines
32354         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32355         (configure.ac-early): New section.
32356         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32357         it is no longer needed.
32359 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32361         pthread: define thread-safe macros on some platforms
32362         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32363         for thread-safe operation on some platforms.
32365 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32367         regex: don't be multithreaded if USE_UNLOCKED_IO.
32368         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32369         * lib/regex_internal.h: Do not use multithreaded version if
32370         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32371         around a porting bug with coreutils 8.22 on AIX 7.1.
32373 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32375         gettext: update macros to version 0.19
32376         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32377         depend on gl_EXTERN_INLINE and drop support for older Bison
32378         versions.
32380 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32382         select,poll: fix console handle check on windows 8
32383         lib/poll.c (IsConsoleHandle): Change from testing the lower
32384         2 bits of the handle to the more expensive but accurate syscall.
32385         lib/select.c: Likewise.
32387 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32389         select: fix waiting on anonymous pipes on MS-Windows
32390         * lib/select.c (rpl_select): Fall back to polling when select()
32391         indicates there is nothing to check, while due to the timeout not
32392         expiring, activity is indicated on one of the handles.
32393         Also clear the TIMEOUT argument if the timer does expire.
32395 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32397         times: fix to return non constant value on MS-Windows
32398         * lib/times.c (times): Don't use the process creation time,
32399         rather clock() which on windows returns the number of
32400         clock ticks since the process started.
32402 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32404         isatty: fix to work on windows 8
32405         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32406         2 bits of the handle to the more expensive but accurate syscall.
32408 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32410         maint: fix typo in fdl.texi
32411         * doc/fdl.texi: Fix typo (missing '@').
32412         Somehow this was in fdl.texi but not fdl-1.3.texi.
32414 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32416         mountlist: avoid hasmntopt const type warning on solaris
32417         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32418         with char * instead of const char *.  Passing the constant string
32419         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32420         to avoid the warning.
32422 2014-06-04  Eric Blake  <eblake@redhat.com>
32424         maintainer-makefile: delete obsolete code
32425         * top/maint.mk (build_aux): Drop old code, as threatened.
32427         maintainer-makefile: avoid spurious error messages
32428         * top/maint.mk (syntax-check): Guard definition and use of
32429         $(shell) by whether Makefile is present.
32431 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32433         rename: avoid unused-but-set-variable compiler warning
32434         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32435         it is possible that dst_exists may be set but not used.  Mark it with
32436         the unused attribute to avoid compiler warnings.
32438 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32440         rename: mark a label as potentially unused
32441         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32442         by marking the out label as potentially unused.
32443         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32445 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32447         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32448         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32450 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32452         acl: apply pure attribute to two functions
32453         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32454         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32456 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32458         gnulib-common.m4: add _GL_UNUSED_LABEL
32459         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32460         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32462 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32464         dup2, fcntl, fcntl-h: port to AIX 7.1
32465         This fixes some porting problems discovered when testing the latest
32466         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32467         in grep but it could be important for other applications.
32468         * doc/posix-functions/dup2.texi:
32469         * doc/posix-functions/fcntl.texi:
32470         * doc/posix-headers/fcntl.texi:
32471         Document AIX bugs.
32472         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32473         Define to 0 if outside 'int' range.
32474         * m4/dup2.m4 (gl_FUNC_DUP2):
32475         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32476         Check for getdtablesize.  If it's available, test a value just
32477         outside its range instead of testing 1000000.  When cross-compiling,
32478         guess that AIX will fail this improved test.
32480 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32482         printf, config.rpath: Port to FreeBSD 10.
32483         Problem reported by Tijl Coosemans in:
32484         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32485         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32486         (hardcode_direct): Simplify FreeBSD configuration.
32487         (library_names_spec): Don't mishandle FreeBSD 10+.
32488         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32489         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32490         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32491         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32492         Don't mishandle FreeBSD 10+ when cross-compiling.
32494         ftoastr: work around compiler bug in IBM xlc 12.1
32495         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32496         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32497         around a compiler bug in IBM xlc 12.1.0.0: it complains
32498         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32499         _GL_FLT_PREC_BOUND.'
32501 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32503         valgrind-tests: fixed misleading help message
32504         * m4/valgrind-tests.m4: The help message generated by configure
32505         implied that valgrind was disabled by default, which it wasn't.
32506         Adjusted the help message using s/enable/disable/ to clarify.
32508 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32510         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32511         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32512         first double of a PowerPC "double double" pair.
32513         * tests/test-isinf.c (test_isinfl): Likewise.
32514         * tests/test-isnan.c (test_long_double): Likewise.
32515         * tests/test-isnanl.h (main): Likewise.
32516         * tests/test-signbit.c (test_signbitl): Likewise.
32518 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32520         exclude-tests: port to AIX 7.1
32521         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32522         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32523         the regex code uses locks.
32525 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32527         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32528         Without this fix, Emacs would sometimes call sigprocmask instead
32529         of pthread_sigmask, which is a no-no in multithreaded applications.
32530         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32531         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32532         Suppress check for pthread_sigmask working without -lpthread if
32533         the application always links with -lpthread.  Do not link with
32534         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32535         * m4/timer_time.m4 (gl_TIMER_TIME):
32536         Require gl_THREADLIB only if it is defined.  Do not append
32537         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32539 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32541         gnulib-tool: wget translations using --no-verbose rather than --quiet
32542         This allows the user to see error messages if any (--quiet hides them)
32543         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32545 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32547         gnulib-tool: adjust translation wget to avoid a https redirection
32548         Context: http://translationproject.org/latest/gnulib redirects to
32549            https://translationproject.org/latest/gnulib/
32550         Rationale: if the user falls back to wget, she doesn't have rsync and
32551         is probably in a minimal build environment, where packages such as
32552         'ca-certificates' are missing as well, resulting in a failed (and
32553         difficult to detect since ignored) translation initial fetch.
32554         Consequently let's avoid https if possible, and add the missing
32555         trailing slash.  This also avoids an unnecessary 302 redirection.
32556         * gnulib-tool: Add trailing slash to gnulib URL.
32558 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32560         getlogin_r-tests: check return value rather than errno
32561         * tests/test-getlogin_r.c (main): As per POSIX we should be
32562         verifying the return value from getlogin_r() rather than errno.
32564 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32566         getlogin_r-tests: fix various issues in recent change
32567         * tests/test-getlogin_r.c: Include required headers that were
32568         missed in recent commit eec20b4e.
32569         Also consistently check the errno rather than the return value from
32570         getlogin_r as POSIX only specifies that non zero is returned on error.
32571         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32573 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32575         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32576         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32577         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32578         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32579         * lib/spawn-pipe.c:
32580         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32581         and then 'int open64(const char *, int, ...);', which means the
32582         declaration for 'open' gets lost if we later '#undef open'.
32583         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32584         where the compilation reported the non-fatal error "In function
32585         'openat_proc_name' ... warning: implicit declaration of function
32586         'open'".  In this case the error is relatively harmless, but in
32587         other cases it might not be so minor.
32589 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32591         xalloc: don't potentially generate invalid code for xmemdup calls
32592         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32593         this function can initialize the newly-allocated storage with new
32594         pointers, which means this function is not malloc-like.  See:
32595         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32597 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32599         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32600         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32601         changes from commit 97249cf29 to not depend on environment variables.
32603 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32605         getlogin-tests: avoid false failure under cron
32606         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32607         since that's not what's under test.  Centos 6 was seen to return
32608         EINVAL for ttyname() when run from cron.
32610 2014-05-16  Jim Meyering  <meyering@fb.com>
32612         mbrtowc.m4: fix a comment typo
32613         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32614         emitted documentation string.
32616 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32618         mbrlen, mbrtowc: fix bug with empty input
32619         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32620         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32621         so this is mainly for documentation.
32622         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32623         (gl_FUNC_MBRTOWC): Use it.
32624         * tests/test-mbrtowc.c (main): Test for the bug.
32626 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32628         doc: document mbrtowc and mbrlen problem with empty input
32629         * doc/posix-functions/mbrlen.texi (mbrlen):
32630         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32631         Document portability problem when the input string is empty.  See:
32632         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32634         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32635         Problem reported by Eli Zaretskii in:
32636         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32637         * doc/posix-functions/execl.texi (execl):
32638         * doc/posix-functions/execle.texi (execle):
32639         * doc/posix-functions/execlp.texi (execlp):
32640         * doc/posix-functions/execv.texi (execv):
32641         * doc/posix-functions/execve.texi (execve):
32642         * doc/posix-functions/execvp.texi (execvp):
32643         Mention spawn+exit problem on non-Cygwin Windows platforms.
32645 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32647         getlogin-tests: avoid false failure under sudo/ssh etc.
32648         * modules/getlogin-tests (configure.ac): Check for ttyname().
32649         * tests/test-getlogin.c (main): Don't depend on environment variables
32650         to correlate with getlogin(), since sudo and ssh etc. can tamper
32651         with the LOGNAME and USER env vars.  Instead lookup the name from
32652         the uid associated with the stdin tty.
32654 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32656         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32657         These were found when building the latest grep snapshot on IRIX 6.5.
32658         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32659         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32660         never used later.
32661         * lib/quotearg.c (quoting_options_from_style):
32662         * lib/xstrtol.c (__xstrtol):
32663         Use enum instead of 0, to pacify IRIX 6.5 cc.
32665 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32667         gitlog-to-changelog: revert inclusion of git-log-fix file
32668         * build-aux/git-log-fix: Delete dummy file.
32669         * modules/gitlog-to-changelog: Don't reference (overwrite)
32670         the project specific git-log-fix file.
32672 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32674         maint.mk: Relax the copyright check to cater for non FSF projects
32675         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32676         to not require the "Free" suffix after the copyright years.
32678 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32680         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32681         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32682         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32683         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32684         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32686 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32688         exclude: port to strict C99
32689         Strict C does not allow converting a function pointer to void *
32690         and vice versa.  Pass a pointer to a function pointer instead.
32691         * lib/exclude.c (add_exclude_file):
32692         Pass the address of the function pointer.
32693         (call_addfn): And deference the address here, to match.
32695 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32697         regex: do not depend on malloc-gnu
32698         * modules/regex (Depends-on): Remove malloc-gnu.
32699         It's no longer needed, because of the 2012-12-29 patch
32700         "regex: port to hosts where malloc (0) == NULL".
32701         Reported by Nathan Kennedy in:
32702         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32704 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32706         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32707         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32708         * doc/posix-functions/expl.texi: Mention the workaround.
32710 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32712         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32713         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32714         size to be zero even when the pointer is nonnull.  This
32715         accommodates the use case where P is malloc (0) and *PN is 0 on a
32716         host where malloc (0) yields nonnull.
32718 2014-04-09  Eric Blake  <eblake@redhat.com>
32720         fts: avoid unnecessary strlen calls
32721         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32723 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32725         fts: avoid unnecessary strlen calls
32726         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32727         when that can be faster than strlen.
32729 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32731         fts: avoid unnecessary strlen calls
32732         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32733         (fts_build): Store the length of the dp->d_name entry in a local variable
32734         instead of calling strlen() several times via the above, removed macro.
32735         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32736         run by ~4%, yet this reduces the execution time by about a third if run
32737         via "ltrace -c rm -rf some-dir".
32739 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32741         obstack: Remove ancient NeXTSTEP gcc support conditional
32742         This change will ease merging with glibc.  The "#if ... __NEXT__"
32743         causes a warning with -Wundef which glibc now enables by default.
32744         Problem reported by Will Newton in
32745         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32746         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32747         so go with that.
32748         * lib/obstack.h (__extension__):
32750 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32752         obstack: merge with glibc changes
32753         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32754         This is mostly indenting and commentary changes.
32755         Instances of 'register' have been removed.
32757 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32759         strftime: wrap macros in "do {...} while(0)"
32760         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32761         this macro in "do {...} while(0)" to prevent false use as a
32762         single statement, e.g., in an un-braced "{}" else-block.
32763         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32764         (strftime_case_): Remove 'else' after 'goto' - which was the
32765         only non-fatal, un-braced use of one of the above macros.
32766         Spotted by coverity (NESTING_INDENT_MISMATCH).
32768 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32770         modechange: avoid memory leaks for invalid octal modes
32771         * lib/modechange.c (mode_compile): During the parsing of
32772         notations like +40, free the 'mc' buffer for invalid mode
32773         strings like +17777 (greater than the maximum octal mode),
32774         =18 (bad octal mode characters) or u=1 ('affected' with
32775         octal modes).
32776         Reproducer, e.g.:
32777             $ valgrind --leak-check=full chmod +17777 file
32778         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32779         add notations +40, 00440, etc.".
32780         Spotted by coverity (RESOURCE_LEAK).
32782 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32784         gitlog-to-changelog: include a dummy git-log-fix file
32785         Problem reported by Nathan Stratton Treadway in:
32786         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32787         * build-aux/git-log-fix: New file.
32789 2014-03-13  Jim Meyering  <meyering@fb.com>
32791         gitlog-to-changelog: also include the file, git-log-fix
32792         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32793         Reported by Assaf Gordon.
32795 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32797         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32798         This fixes a bug when ignoring case and when comparing the
32799         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32800         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32801         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32802         titlecase letter is neither lowercase nor uppercase, but
32803         uppercasing the titlecase letter (via towupper) yields the
32804         uppercase letter, so the two letters should match when ignoring case.
32805         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32806         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32807         Don't test whether a character is lowercase before uppercasing it.
32809 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32811         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32812         This is basically one of the options Bruno Haible proposed in:
32813         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32814         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32815         * lib/stdint.in.h: Use it.
32816         * modules/stdint (Depends-on): Add sys_types.
32818 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32820         parse-datetime: fix crash or infloop in TZ="" parsing
32821         * lib/parse-datetime.y (parse_datetime): Break out of the
32822         TZ="" parsing loop once the second significant " is found.
32823         Also skip over any subsequent whitespace to be consistent
32824         with the non TZ= case.
32825         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32827 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32829         savedir: new symbol for fast-read version
32830         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32831         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32832         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32833         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32835 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32837         unistd: port readlink to Mac OS X 10.3.9
32838         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32839         around self-include problem in Mac OS X 10.3.9 when combined with
32840         readlink module.  Problem reported by Klaus Zietler in
32841         <http://bugs.gnu.org/16825>.
32843 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32845         diffseq: remove TOO_EXPENSIVE heuristic
32846         Problem with diffutils reported by Vincent Lefevre in
32847         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32848         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32849         Although appropriate for circa-1993 hardware, these days the heuristic
32850         seems to be more trouble than it's worth.
32851         * lib/diffseq.h: Modernize citations.
32852         (struct context): Remove member too_expensive.
32853         All uses changed.
32854         (struct partition): Remove members lo_minimal, hi_minimal.
32855         All uses changed.
32856         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32857         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32858         1993 to make 'diff' run faster (but not as well) on large inputs.
32859         These days, computers are fast enough that it's typically better
32860         to run slower but more accurately.
32861         * lib/fstrcmp.c: Remove duplicate comment.
32862         * lib/fstrcmp.c (strcmp_bounded):
32863         * lib/git-merge-changelog.c (compute_differences):
32864         Adjust to diffseq.h changes.
32865         * NEWS: Document the change.
32867         savedir: simplify by using stpcpy
32868         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32869         (streamsavedir): Use stpcpy instead.
32870         * modules/savedir (Depends-on): Add stpcpy.
32872 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32874         spawn: fix link error on uclibc
32875         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32876         to incorporate -lrt if needed (on uclibc for example).
32877         * modules/posix_spawn: Reference the substituted LIB.
32879 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32880         timer: fix uClibc detection of threading
32881         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32882         enabled in uClibc.
32884 2014-02-21  Eric Blake  <eblake@redhat.com>
32886         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32887         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32889 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32891         exclude: add support for posix regexps
32893         This commit adds support for POSIX extended regular expressions
32894         and fixes a long-standing memory leak (pattern buffer was never
32895         freed).  It also implements a new interface function to read
32896         exclude patterns from a FILE, which passes an additional parameter
32897         to its callback function, thereby allowing to preserve its state
32898         between invocations.
32900         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32901         (pattern_buffer): New struct.
32902         (exclude): New member patbuf.
32903         (exclude_add_pattern_buffer): New function.
32904         (free_exclude_segment): Free regexps.
32905         (free_exclude): Free allocated pattern buffers.
32906         (exclude_patopts): New function.
32907         (file_pattern_matches): Use exclude_patopts.
32908         (add_exclude): support regexps.
32909         (add_exclude_fp): New function.
32910         (add_exclude_file): Rewrite using add_exclude_fp.
32911         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32912         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32913         (add_exclude_fp)
32914         (add_exclude_file): Rewrite using add_exclude_fp.
32915         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32916         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32917         (add_exclude_fp)
32918         (exclude_add_pattern_buffer): New prototypes.
32919         * modules/exclude: Depends on regex and filename.
32921 2014-02-20  Eric Blake  <eblake@redhat.com>
32923         maintainer-makefiles: use $(SED) for syntax check
32924         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32925         * top/maint.mk: Change sed to $(SED).
32927 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32928             Paul Eggert  <eggert@cs.ucla.edu>
32930         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32931         Patch based on an idea by Dick Streefland in
32932         <https://savannah.gnu.org/patch/?7892>.
32933         * NEWS: Document this.
32934         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32935         (direntry_t, comparison_function): New types.
32936         (direntry_cmp_name): New function.
32937         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32938         (streamsavedir, savedir): New arg OPTION.
32939         (streamsavedir): Simplify memory allocation.
32940         (fdsavedir): Remove.
32941         * lib/savedir.h (enum savedir_option): New type.
32942         (streamsavedir, savedir): New arg OPTION.
32943         (fdsavedir): Remove.
32945 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32947         file-type: add support for doors and other less-common file types
32948         Problem with S_ISDOOR reported by Rich Burridge.
32949         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32950         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32951         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32953 2014-01-23  Eric Blake  <eblake@redhat.com>
32955         pthread: work around winpthread header pollution on mingw
32956         * lib/time.in.h: Move pthread workarounds...
32957         * lib/pthread.in.h: ...here.
32958         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32959         detect macro pollution on mingw.
32960         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32962 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32964         qacl: check for fchmod
32965         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32966         and qset-acl.c both use HAVE_FCHMOD.
32968 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32970         fdopen-tests: port to Tru64
32971         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32972         descriptor that is not open, as POSIX doesn't specify the
32973         resulting behavior and the test does not work on Tru64.
32974         Problem reported by Steven M. Schweda in:
32975         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32977         stdalign: port to HP-UX compilers
32978         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32979         if __HP_cc or __HP_aCC are nonzero.
32981 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32983         strtoimax: port to platforms lacking 'long long'
32984         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32985         check whether strtoll is declared, which causes the C file to
32986         wrongly report an error.  Problem reported by Steven M. Schweda in:
32987         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32988         * lib/strtoimax.c (strtoull):
32989         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32990         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32992 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32994         relocatable-perl: fix texi syntax
32995         * doc/relocatable-maint.texi: Escape braces.
32997 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32999         relocatable-perl: like relocatable-script, but for Perl scripts
33000         * build-aux/relocatable.pl.in: Add.
33001         * doc/relocatable-maint.texi: Add documentation.
33002         * modules/relocatable-perl: Add.
33004 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
33006         tests: fix export bug in previous patch
33007         Problem reported by Jim Meyering.
33008         * tests/init.sh (re_shell): New var, which is exported instead of
33009         re_shell_.
33011         tests: simplify porting to Solaris 10 /bin/sh
33012         Some test cases in 'grep' need a shell that groks '$(';
33013         export re_shell_ for their benefit.  Problem reported for 'grep'
33014         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
33015         * tests/init.sh (re_shell_): Export if it's used.
33017 2014-01-06  Eric Blake  <eblake@redhat.com>
33019         md5, sha1, sha256, sha512: support older autoconf
33020         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
33021         for autoconf < 2.63b.
33023         include_next: port to autoconf 2.63
33024         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
33026 2014-01-04  Jim Meyering  <meyering@fb.com>
33028         maint: add a gnulib-local rule to keep non-ascii out of .texi files
33029         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
33030         so that "make sc_maint" will ding anyone who puts non-ascii
33031         in any of gnulib's .texi files.
33033 2014-01-03  Jim Meyering  <meyering@fb.com>
33035         freadable, fwritable, fwriting: declare with the "pure" attribute
33036         * lib/freadable.h (freadable): Declare with the "pure" attribute.
33037         * lib/fwritable.h (fwritable): Likewise.
33038         * lib/fwriting.h (fwriting): Likewise.
33039         Suggested by Bruno Haible.
33041         maint.mk: adapt openat.h-include-without-use test
33042         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
33043         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
33044         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
33045         With this change, running "make sc_maint" in gnulib's top-level
33046         directory now passes for me.
33048 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33050         doc: use ASCII in .texi files where UTF-8 isn't needed
33051         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
33052         * doc/posix-functions/setkey.texi, doc/regex.texi:
33053         Use ASCII input, not UTF-8.
33055 2014-01-02  Jim Meyering  <meyering@fb.com>
33057         freading: declare with the "pure" attribute
33058         * lib/freading.h (freading): Declare with the "pure" attribute.
33060         manywarnings: remove -Wmudflap
33061         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
33062         it is no longer supported in gcc-4.9-to-be.
33064 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33066         relocatable-script: remove unused code
33067         Problem reported by Reuben Thomas in:
33068         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
33069         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
33071 2014-01-01  Jim Meyering  <meyering@fb.com>
33073         maint: fix public-submodule-commit to work with newer git
33074         * top/maint.mk (public-submodule-commit): Remove excess quoting.
33075         We were over-quoting the test arguments, and somewhere prior to
33076         version 1.8.5.2.229, git stopped removing those excess quotes,
33077         which made the test fail, since the unexpanded strings would
33078         always differ; using GIT_TRACE=1 confirmed that the git merge-base
33079         command wasn't even being run.
33081 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33083         doc: update main copyright year
33084         * doc/gnulib.texi: Update copyright date.
33086 2014-01-01  Eric Blake  <eblake@redhat.com>
33088         version-etc: new year
33089         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
33090         * all files: run 'make update-copyright'
33092 2013-12-24  Eric Blake  <eblake@redhat.com>
33094         passfd: give nicer error for recvfd at eof
33095         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
33096         * tests/test-passfd.c (main): Enhance test to cover this.
33098 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33100         gettimeofday: port recent C++ fix to Emacs
33101         Without this further patch, Emacs won't build due to
33102         the portcheck failing.  Also, this simplifies the patch a bit.
33103         * lib/time.in.h (localtime, gmtime): Don't replace unless
33104         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
33105         * lib/time.in.h (localtime, gmtime):
33106         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
33107         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33108         * modules/time (time.h):
33109         Don't worry about the possibility of localtime and gmtime
33110         being absent; they're present in all C libraries we know about.
33111         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
33112         Don't assume sys_time is present and has been initialized.
33113         Instead, use a hack that should work even if it hasn't been.
33114         Don't use a portcheck for gmtime or localtime; this supports
33115         the hack.
33116         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
33118 2013-12-17  John W. Eaton  <jwe@gnu.org>
33120         gettimeofday: fix C++ crosscompilation
33122         Never replace gmtime and localtime by macros when compiling with
33123         C++, this prevents <ctime> from being included.
33125         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
33126         define gmtime and localtime as preprocessor macros.  Instead
33127         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
33128         REPLACE_LOCALTIME substitutions.
33129         * lib/time.in.h: Declare gmtime and localtime when needed.
33130         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
33131         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
33132         * modules/time: Depend on gettimeofday, and substitute the above
33133         variables in time.h.
33135 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33137         qacl: port to Windows better
33138         See Eli Zaretskii in
33139         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
33140         * lib/file-has-acl.c (acl_access_nontrivial):
33141         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
33142         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
33144 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
33146         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
33147         * lib/gl_openssl.h: Cast void pointers to a specific type.
33149 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33151         open-tests: fix build failure with -Werror=old-style-declaration
33152         * tests/test-open.h: Reorder the inline to avoid the issue.
33154 2013-12-07  Pádraig Brady  <P@draigBrady.com>
33156         md5, sha1, sha256, sha512: fix link error with partial libcrypto
33157         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
33158         init time, so that if early checks find crypto routines,
33159         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
33160         avoiding link failures.
33162 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33164         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
33165         This provides a new way to specify the default for
33166         gl_CRYPTO_CHECK, one that is reflected in the --help message.
33167         Emacs uses this, as well as the old way.
33168         This attempts to implement a suggestion by Pádraig Brady in
33169         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
33170         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
33171         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
33173         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
33174         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
33175         Add support for a new option, --with-openssl=auto, which causes
33176         the library to be used if available and silently ignored if not.
33177         Add support to allow configure.ac to specify its own
33178         default, by setting with_openssl_default before invoking gl_INIT.
33180 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33182         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
33183         Problem reported by Daiki Ueno in:
33184         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
33185         * tests/test-open.h (__always_inline):
33186         New macro, if not already defined.
33187         (test_open): Use it.
33189 2013-12-04  Eric Blake  <eblake@redhat.com>
33191         include_next: minimize code duplication
33192         * modules/include_next (Depends-on): Add absolute-header.
33193         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
33194         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
33196 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33198         getcwd: fix compile error in configure check
33199         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
33201 2013-12-04  Pádraig Brady  <P@draigBrady.com>
33203         regex: suppress core dumps from detection code
33204         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
33205         to suppress core dumps that may well occur on glibc systems.
33206         These core dumps might not be cleaned up automatically, or could
33207         trigger some system core dump handling logic.
33209 2013-12-03  Pádraig Brady  <P@draigBrady.com>
33211         md5, sha1, sha256, sha512: support mandating use of openssl
33212         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
33213         description, to list the now 3 separate options.  also don't
33214         mention the default=no, since this is implicit given the option
33215         is described as --with-openssl rather than --without-openssl.
33216         If projects change the default they're free to document that.
33217         with --with-openssl[=yes] we now error out when the specified
33218         hash algorithm is not available in libcrypto.
33220 2013-12-03  Ivailo  <xakepa10@gmail.com>
33222         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
33223         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
33224         -Wformat-nonliteral checks, as these edge cases are part of the test.
33226 2013-12-03  Eric Blake  <eblake@redhat.com>
33228         regex: avoid glibc deadlock during configure
33229         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
33230         glibc bug 15078 in turn triggers bug 16159.
33231         Reported by Michal Privoznik.
33233 2013-12-02  Pádraig Brady  <P@draigBrady.com>
33235         md5, sha1, sha256, sha512: use openssl routines if available.
33236         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
33237         routines will be used if available, requiring apps to link @LIB_CRYPTO@
33238         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
33239         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
33240         in the standard system location.
33241         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
33242         * m4/sha256.m4: Likewise with SHA256.
33243         * m4/sha512.m4: Likewise with SHA512.
33244         * m4/md5.m4: Likewise with MD5.
33245         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
33246         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
33247         * lib/sha256.h: Likewise with SHA256.
33248         * lib/sha512.h: Likewise with SHA512.
33249         * lib/md5.h: Likewise with MD5.
33250         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
33251         * lib/sha256.c: Likewise with SHA256.
33252         * lib/sha512.c: Likewise with SHA512.
33253         * lib/md5.c: Likewise with MD5.
33254         * modules/crypto/sha1 (Link:): Add the new optional lib.
33255         (Depends-on:): Add dependency on extern-inline.
33256         * modules/crypto/sha256: Likewise.
33257         * modules/crypto/sha512: Likewise.
33258         * modules/crypto/md5: Likewise.
33259         * modules/crypto/sha1-tests: Reference the lib here too.
33260         * modules/crypto/md5-tests: Likewise.
33261         * modules/crypto/gc-des-tests: Likewise.
33262         * modules/crypto/gc-hmac-md5-tests: Likewise.
33263         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33264         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33265         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33266         * modules/crypto/gc-md5-tests: Likewise.
33267         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33268         * modules/crypto/gc-sha1-tests: Likewise.
33269         * modules/crypto/gc-tests: Likewise.
33270         * modules/crypto/hmac-md5-tests: Likewise.
33271         * modules/crypto/hmac-sha1-tests: Likewise.
33272         * modules/crypto/hmac-sha256-tests: Likewise.
33273         * modules/crypto/hmac-sha512-tests: Likewise.
33275 2013-11-29  RV1971  <rv1971@web.de>
33277         base64: (trivial) fix compilation regression on some compilers
33278         * lib/base64.c: Don't return the void function,
33279         instead split to a separate return statement.
33281 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33283         ignore-value: revert previous code change
33284         * lib/ignore-value.h (ignore_value): Use __extension__ and
33285         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33286         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33287         Change the comment to try to explain this better.
33289 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33291         selinux-h: improve stub types and add more stub functions
33293         * lib/se-selinux.in.h: Change security_context_t to a typedef
33294         rather than a define, as it's a pointer type and so is better
33295         as a typedef to avoid issues declaring multiple variables
33296         with the comma operator.  Also add stub for string_to_security_class().
33297         * lib/se-context.in.h: Add stub functions for
33298         context_{type,range,role,user}_get().
33300 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33302         ignore-value: prefer GCC version back through 2.0
33303         The code didn't match the comments, so I did a bit of software
33304         archaeology.  GCC 2.0 seems to support __extension__ and
33305         __typeof__, so fix both code and comments to use 2.0.
33306         * lib/ignore-value.h (ignore_value): Use __extension__ and
33307         __typeof__ for GCC 2.0 through 3.3, too.
33309 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33311         pty: Activate the signature wrapper of forkpty.
33312         The intended preprocessor macro HAVE_FORKPTY is
33313         never defined, yet `lib/forkpty.c' depends on it.
33315         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33316         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33317         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33319 2013-11-18  Jim Meyering  <meyering@fb.com>
33320         and Paul Eggert  <eggert@cs.ucla.edu>
33322         quotearg: don't attempt to store 1 << 31 into an "int"
33323         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33324         gcc's new -fsanitize=undefined and running its tests triggered some
33325         new test failures due to undefined behavior, all with this diagnostic:
33326           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33327             cannot be represented in type int
33328         Rather than shifting "1" left to form a mask, shift the bits right and
33329         simply use "1" as the mask.
33331 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33333         error: depend on stdio
33334         Problem reported by Nikos Mavrogiannopoulos in
33335         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33336         * modules/error (Depends-on): Add stdio.
33338 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33340         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33341         wording.
33342         Reported by Reuben Thomas <rrt@sc3d.org>.
33344 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33346         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33347         New function and macro, to work around _DARWIN_C_SOURCE problem.
33348         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33350 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33352         base64: provide a fast path for encoding well sized buffers
33353         Avoid conditionals in the base64 encoding loop,
33354         which was seen to give 60% better throughput.
33355         * lib/base64.c (base64_encode_fast): A new function to be called
33356         when we don't want to NUL terminate, and we have enough space
33357         in the output to encode the given input.
33358         (base64_encode): Call the _fast() version when appropriate.
33359         Also remove a redundant mask with 0x3F on the first encoded byte.
33361 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33363         extern-inline: port better to OS X 10.9
33364         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33365         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33366         OS X 10.9, except for g++ where the bug is still present.
33367         See <http://trac.macports.org/ticket/41033>.
33369 2013-11-08  Eric Blake  <eblake@redhat.com>
33371         fpending: fix regression on DragonFly BSD
33372         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33373         * lib/fpending.h (__fpending): Don't declare twice.
33374         Reported by GW in
33375         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33377 2013-11-05  Jim Meyering  <meyering@fb.com>
33379         hash: relax license to LGPLv2+, for libguestfs
33380         * modules/hash (License): Change from GPL to LGPLv2+.
33382 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33384         intprops: port to Oracle Studio c99
33385         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33386         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33388 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33390         obstack: pacify HP C
33391         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33392         warning "conversion from pointer to smaller integer" from HP
33393         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33394         C89 or later nowadays, so cast to void instead of int.  Privately
33395         reported by H.Merijn Brand.  Also, change header to match glibc's,
33396         to make checking against glibc easier.
33398 2013-10-29  Jim Meyering  <meyering@fb.com>
33400         maint.mk: prefer gpgv2 over gpgv
33401         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33402         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33403         Reported by Gary Vaughan.
33405 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33407         isnan: port to VAX
33408         Reported by John Klos for NetBSD-5/VAX in
33409         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33410         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33411         (FUNC): Use it.
33413 2013-10-28  Jim Meyering  <meyering@fb.com>
33415         gnulib-tool: protect against CDPATH
33416         * gnulib-tool: Many "cd" built-in functions print a directory name
33417         to stdout when CDPATH is set, e.g.,
33418           $ bash -c 'CDPATH=/; cd tmp'
33419           /tmp
33420         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33422         maint.mk: restore functionality removed by recent change...
33423         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33424         the context of a shallow-cloned gnulib repository: "git describe"
33425         would fail in such a directory.  However, that change made it so
33426         the reported gnulib revision no longer includes the version number
33427         or a commit count, even when run from a full clone.
33428         * top/maint.mk (gnulib-version): Use the full "git describe"
33429         output when possible, e.g., the form above, rather than the
33430         abbreviated, no-tag, no-commit-count string, and fall back to
33431         using a 10-byte hash, rather than the default minimal-length
33432         hash prefix, since while the minimal-length one may be fine today,
33433         it is likely not to be unique for very long.
33435 2013-10-26  Jim Meyering  <meyering@fb.com>
33437         maint.mk: fix "release" target to build _version
33438         This fixes a bug in README-release whereby following the outlined
33439         steps, one would publish a tarball whose programs would report
33440         --version output not consistent with the package version number.
33441         This bug caused grep-2.15 to produce a grep program whose
33442         --version option made it print 2.14.56-1e3d rather than 2.15.
33443         * top/maint.mk (release): Making this target build "_version"
33444         ensures that the new version number is reflected in configure.
33446 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33448         install-reloc: Support multi-binary installation.
33449         * build-aux/install-reloc: Support installing multiple programs in
33450         one invocation, as done by Automake starting with commit
33451         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33452         Haible <bruno@clisp.org>, archived at
33453         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33454         Reported by Sylvain <beuc@gnu.org>.
33456 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33458         selinux-h: Really build without selinux when library is missing.
33459         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33460         continue without selinux, as already told in the warning message.
33462 2013-10-21  Jim Meyering  <meyering@fb.com>
33464         regex: also remove dependency on HAVE_WCSCOLL
33465         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33467 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33469         xfreopen: Fix typo. s/frepoen/freopen/
33470         * lib/xfreopen.c: Fix description.
33471         * modules/xfreopen: Likewise.
33473 2013-10-21  Jim Meyering  <meyering@fb.com>
33475         regex: don't depend on wcscoll
33476         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33477         It is no longer used.
33479 2013-10-20  Jim Meyering  <meyering@fb.com>
33481         error: add the printf attribute to a static function
33482         * lib/error.c (error_tail): Add the printf attribute, to placate
33483         gcc's -Werror=suggest-attribute=format option.
33485 2013-09-30  Jim Meyering  <meyering@fb.com>
33487         fpending, obstack, strerror-override: use pure+const function attrs
33488         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33489         * lib/obstack.c (_obstack_allocated_p): Likewise.
33490         * lib/obstack.h (_obstack_memory_used): Likewise.
33491         (_obstack_memory_used): Likewise.
33492         * lib/strerror-override.h (strerror_override): Declare with
33493         the "const" attribute.
33495 2013-10-18  Eric Blake  <eblake@redhat.com>
33497         extern-inline: make safe for -Wundef usage
33498         Reported by Vladimir 'phcoder' Serbinenko in
33499         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33500         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33502 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33504         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33505         Problem reported by Daniel Richard G. in
33506         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33507         * doc/posix-functions/mkfifo.texi (mkfifo):
33508         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33509         * doc/posix-functions/mknod.texi (mknod):
33510         * doc/posix-functions/mknodat.texi (mknodat):
33511         Document the HP-UX 11.11 bug.
33512         * tests/test-mkfifo.h (test_mkfifo):
33513         Allow the HP-UX 11.11 bug.
33515 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33517         acl: allow cross-compilation to Gentoo
33518         Problem reported by Gabriel Marcano in
33519         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33520         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33521         test only whether it links.
33523 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33525         mgetgroups: remove dependency on realloc-gnu
33526         The dependency violates the comment in realloc-gnu, which
33527         says that tests can't depend on realloc-gnu; some tests depend
33528         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33529         Problem reported by Daniel Richard G. in
33530         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33531         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33532         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33533         not realloc-gnu.
33535 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33537         regex-tests: port to HP-UX 11.11
33538         Problem reported by Daniel Richard G. in
33539         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33540         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33542 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33544         verify: document some 'assume' pitfalls
33545         * doc/verify.texi (Compile-time Assertions):
33546         Mention that 'assume (E)' can sometimes slow things down.
33547         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33549 2013-10-10  Eric Blake  <eblake@redhat.com>
33551         strtoumax: fix typo in previous commit.
33552         * modules/strtoumax (Depends-on): Fix typo.
33553         * modules/strtoimax (Depends-on): Likewise.
33555 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33557         strtoumax: port to Solaris 8
33558         This problem was introduced in the recent HP-UX patch.
33559         Reported by Tom G. Christensen in
33560         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33561         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33562         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33564 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33566         strtoimax, strtoumax: port to HP-UX 11.11
33567         Problem reported by Daniel Richard G. in
33568         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33569         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33570         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33571         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33572         REPLACE_STRTOUMAX.
33573         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33574         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33575         Replace the function if defined as a macro but not as a function.
33576         * modules/inttypes-incomplete (inttypes.h): Substitute
33577         REPLACE_STRTOUMAX.
33578         * modules/strtoumax (configure.ac): Replace strtoumax if
33579         REPLACE_STRTOUMAX.
33581 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33583         strtoimax: port to HP-UX 11.11
33584         Problem reported by Daniel Richard G.
33585         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33586         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33587         they might clash with inttypes.h.
33589 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33591         New module 'count-trailing-zeros'.
33592         * MODULES.html.sh: Mention it.
33593         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33594         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33595         * modules/count-trailing-zeros-tests:
33596         * tests/test-count-trailing-zeros.c:
33597         New files.
33599         count-leading-zeros: port to MSC; support types wider than 64 bits
33600         The ideas behind the MSC port are stolen from Emacs.
33601         * lib/count-leading-zeros.h:
33602         Don't include verify.h: it's no longer needed, as types wider than
33603         64 bits are now supported.
33604         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33605         performance with MSC.  All uses changed.  Do not assume that TYPE
33606         has at most 64 bits.
33607         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33608         All uses changed.  Fold the subtraction from 31 into the table.
33610         count-one-bits: port to MSC; support types wider than 64 bits
33611         The ideas behind the MSC port are stolen from Emacs.
33612         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33613         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33614         Don't include verify.h: it's no longer needed, as types wider than
33615         64 bits are now supported.
33616         (COUNT_ONE_BITS_GENERIC): New macro.
33617         (popcount_supported) [_MSC_VER]: New inline function.
33618         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33619         performance with MSC.  All uses changed.  Do not assume that TYPE
33620         has at most 64 bits.
33621         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33623 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33625         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33626         * lib/mountlist.c (read_file_system_list): fix leak of directory
33627         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33629 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33631         tests: improve diagnostic when an assertion fails
33632         * tests/macros.h (ASSERT): Report the assertion that failed.
33634 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33636         verify: new macro 'assume'
33637         This is taken from Emacs, and should be generally useful.
33638         * doc/verify.texi (assume): Document it.
33639         * lib/verify.h (assume): New macro.
33640         (__has_builtin): Expand to 0 if not defined.
33642 2013-09-26  Eric Blake  <eblake@redhat.com>
33644         dup2, dup3: work around another cygwin crasher
33645         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33646         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33647         * tests/test-dup2.c (main): Likewise.
33648         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33649         * lib/dup3.c (dup3): Likewise.
33650         * doc/posix-functions/dup2.texi (dup2): Document it.
33651         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33653         getdtablesize: work around cygwin issue
33654         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33655         * modules/getdtablesize (configure.ac): Build replacement.
33656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33657         * modules/unistd (Makefile.am): Expose the witness.
33658         * lib/unistd.in.h (getdtablesize): Declare replacement.
33659         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33660         * tests/test-getdtablesize.c (main): Test it.
33661         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33663 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33665         pmccabe2html: escaping of special characters
33666         Escape all '<', '>', and '&' in HTML output.
33667         * build-aux/pmccabe2html (html_fnc): Call gsub()
33668         instead of sub() to capture all '<', '>', and '&'.
33669         Neither of '<' and '>' is special in a regexp,
33670         so first arguments to gsub() are corrected. Also,
33671         in replacement strings, ampersand must be escaped.
33672         Finally, '&' must be handled first, then '<' and '>'.
33674 2013-09-24  Eric Blake  <eblake@redhat.com>
33676         manywarnings: enable nicer gcc warning messages
33677         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33678         some -f options for optimal warnings.
33680 2013-09-21  Jim Meyering  <meyering@fb.com>
33682         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33683         * lib/timespec-add.c (timespec_add): Also replace 999999999
33684         with TIMESPEC_RESOLUTION - 1.
33685         * lib/timespec-sub.c (timespec_sub): Likewise.
33687 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33689         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33690         Problem reported by Dagobert Michelsen via Eric Blake in
33691         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33692         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33693         not AC_COMPILE_IFELSE.
33695 2013-09-23  Eric Blake  <eblake@redhat.com>
33697         configmake: support new --runstatedir option
33698         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33699         even if autoconf was too old to provide the command line option.
33700         * modules/configmake (Makefile.am): Propagate it to .h file.
33702 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33704         ctype, string: depend on extern-inline
33705         This is needed to complete the recent OS X fixes.
33706         Also, fix related documentation as suggested by Eric Blake.
33707         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33708         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33709         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33710         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33711         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33712         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33713         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33714         * doc/posix-functions/toupper.texi:
33715         List the 'ctype' gnulib module.
33716         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33717         * doc/posix-functions/strncpy.texi:
33718         List the 'string' gnulib module.
33719         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33720         Add string.
33721         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33723 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33725         userspec: support optional parameters to parse_user_spec()
33726         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33727         then avoid group processing and treat the full spec as a user.
33728         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33729         be optional params (NULL), in which case they're ignored.
33731 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33733         timespec: new function make_timespec, and new constants
33734         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33735         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33736         (make_timespec): New function.
33737         * lib/dtotimespec.c (dtotimespec):
33738         * lib/timespec-add.c (timespec_add):
33739         * lib/timespec-sub.c (timespec_sub):
33740         * lib/utimens.c (validate_timespec):
33741         * lib/utimensat.c (rpl_utimensat):
33742         Use these new constants and functions.
33744         stdio: OS X port of putc_unlocked + extern inline
33745         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33746         * doc/posix-functions/putc_unlocked.texi:
33747         * doc/posix-functions/putchar_unlocked.texi:
33748         Document this portability problem.
33750         signal: OS X port of sigaddset etc. + extern inline
33751         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33752         (sigismember): #undef on problematic Apple platforms.
33753         * doc/posix-functions/sigaddset.texi:
33754         * doc/posix-functions/sigdelset.texi:
33755         * doc/posix-functions/sigemptyset.texi:
33756         * doc/posix-functions/sigfillset.texi:
33757         * doc/posix-functions/sigismember.texi:
33758         Document this portability problem.
33760         extern-inline: do not always suppress extern inline on OS X
33761         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33762         extern inline on Apple only if the particular compile-time
33763         configuration is known to have the problem.
33764         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33765         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33766         other Gnulib modules.
33768         extern-inline: document fixes for ctype and wctype macros
33769         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33770         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33771         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33772         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33773         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33774         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33775         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33776         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33777         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33778         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33779         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33780         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33781         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33782         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33783         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33784         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33785         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33786         * doc/posix-functions/strncpy.texi:
33787         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33788         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33789         Document that Gnulib fixes portability problems with these
33790         functions on OS X 10.8 and earlier when called from plain inline
33791         or extern inline functions.
33793 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33795         fflush, freadahead, fseeko: Fix for Android
33796         Suggested by Bruno Haible in:
33797         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33798         * lib/stdio-impl.h: Use local __sfileext definition.
33800 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33802         pmccabe2html: Portability to other awk versions.
33803         The functions systime() and strftime() are available
33804         in Gawk only.  Properly close two HTML-tags 'style'
33805         and 'span'.
33806         * build-aux/pmccabe2html (BEGIN): Store timing
33807         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33808         systime() in HTML_COMMENT.
33809         (html_header): Correctly close tag 'style'.
33810         (END): Replace strftime() by CHRONOS_TIME.  Close
33811         tag 'span' correctly, not as 'div'.
33813 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33815         getgroups: statement without effect
33816         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33817         Change equality conditional to expected assignment.
33819 2013-09-09  Eric Blake  <eblake@redhat.com>
33821         glob: fix compilation
33822         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33824 2013-09-07  Eric Blake  <eblake@redhat.com>
33826         glob: fix build for platforms without __THROW
33827         * lib/glob.in.h (__THROW): Add definition again.
33829 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33831         regex-quote: fix buffer access out of bounds
33832         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33833         * lib/regex-quote.c (regex_quote_spec_pcre):
33834         Fix typo that resulted in an out-of-bounds read.
33836 2013-09-04  Eric Blake  <eblake@redhat.com>
33838         glob: avoid -Wattribute warnings on glibc
33839         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33840         __THROWNL, not __THROW, on static functions.
33841         * lib/glob.in.h (__THROW): Adjust...
33842         (__THROWNL): ...accordingly.
33844 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33846         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33847         Suggested by Bruce Korb in:
33848         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33849         * doc/extern-inline.texi (extern inline):
33850         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33851         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33852         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33853         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33854         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33855         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33856         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33857         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33858         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33859         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33860         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33861         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33862         * lib/xtime.h:
33863         Check that _GL_INLINE_HEADER_BEGIN is defined.
33865 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33867         bootstrap: remove the --version requirement from ancillary tools
33868         * build-aux/bootstrap (check_exists): A new refactored function to
33869         determine if a command exists.
33870         (find_tool): Use the new function which does not require the
33871         --version option to be supported.
33872         (check_versions): Use the new function.
33874 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33876         gc: support HMAC-SHA256 and HMAC-SHA512.
33877         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33878         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33879         functions.
33880         (gc_hmac_md5): Use symbolic constant.
33881         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33882         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33883         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33884         * m4/sha256.m4: Protect against empty expansion.
33885         * m4/sha512.m4: Likewise.
33886         * lib/hmac-sha256.c: New file.
33887         * lib/hmac-sha512.c: Likewise.
33888         * m4/gc-hmac-sha256.m4: Likewise.
33889         * m4/gc-hmac-sha512.m4: Likewise.
33890         * m4/gc-sha256.m4: Likewise.
33891         * m4/gc-sha512.m4: Likewise.
33892         * modules/crypto/gc-hmac-sha256: Likewise.
33893         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33894         * modules/crypto/gc-hmac-sha512: Likewise.
33895         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33896         * modules/crypto/hmac-sha256: Likewise.
33897         * modules/crypto/hmac-sha256-tests: Likewise.
33898         * modules/crypto/hmac-sha512: Likewise.
33899         * modules/crypto/hmac-sha512-tests: Likewise.
33900         * tests/test-gc-hmac-sha256.c: Likewise.
33901         * tests/test-gc-hmac-sha512.c: Likewise
33902         * tests/test-hmac-sha256.c: Likewise.
33903         * tests/test-hmac-sha512.c: Likewise
33905 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33907         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33908         of AC_CHECK_DECLS.
33910 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33912         selinux-at: omit unnecessary include
33913         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33914         this source file doesn't use its macros, and subsidiary files that
33915         use the macros already include it.
33917 2013-08-21  Eric Blake  <eblake@redhat.com>
33919         d-ino: avoid false negative on symlink
33920         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33921         Reported by Stephane Chazelas.
33923 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33925         bootstrap: port to OpenBSD sed
33926         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33927         does not interpret `-' as a file argument to mean stdin.
33929 2013-08-15  Eric Blake  <eblake@redhat.com>
33931         warnings: minor optimization
33932         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33934         warnings: check -Wfoo rather than -Wno-foo
33935         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33936         -Wno-, test if the compiler recognizes the positive form instead.
33938 2013-08-15  Karl Berry  <karl@gnu.org>
33940         * config/srclist-update: add option "doclicense" to placate
33941         pulling *.texi files from Emacs.  Write terse usage
33942         documentation at the top.
33944 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33946         xvasprintf-tests: port to GCC with hardening flags
33947         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33948         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33949         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33951 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33953         fpending: port to recent Cygwin change to stdio_ext.h
33954         Reported by LRN in
33955         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33956         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33957         just declare __fpending unless it's a macro.
33958         A duplicate decl shouldn't hurt.
33959         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33960         call compiles and links, instead of separately checking for
33961         decl and lib function.
33962         * modules/fpending (configure-ac):
33963         Adjust to fpending.m4's renaming of shell variable.
33965 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33967         sys_time: port to OpenBSD
33968         * lib/sys_time.in.h: Simply delegate to the system's header
33969         in the BSDish cases as well.  Problem reported by Mike Miller in
33970         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33971         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33972         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33973         wider than time_t.
33975 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33977         bootstrap: support checksum utils having -c but not --status
33978         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33979         Add sha1 to the list of supported checksum utils since it's now
33980         supported through adjustments below.
33981         (update_po_files): Remove the use of --status
33982         in a way that will suppress all error messages, but since this is
33983         only used to minimize updates, it shouldn't cause an issue.
33984         Exit early if there is a problem updating the po file checksums.
33985         (find_tool): Remove the check for --version support as this
33986         is optional as per commit 86186b17.  Don't even check for the
33987         presence of the command as if that is needed, it's supported
33988         through configuring prerequisites in bootstrap.conf.
33989         Prompt that when a tool isn't found, one can define an environment
33990         variable to add to the hardcoded search list.
33992 2013-08-05  Jim Meyering  <meyering@fb.com>
33994         regex: port to non-glibc/lock-using systems
33995         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33996         system with GNULIB_LOCK would fail due to absence of the
33997         included "glthread/lock.h".  This would affect any package
33998         for which the "lock" module is used only by the regex module,
33999         and not explicitly used.
34000         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
34001         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
34002         Add a dependency on the "lock" module.
34004 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34006         localecharset: make locale_charset thread-safe on Mac OS X
34007         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
34008         instead of MB_CUR_MAX.
34010 2013-07-20  Daiki Ueno  <ueno@gnu.org>
34012         gettext: update to version 0.18.3
34013         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
34014         require AC_PROG_SED to allow user to specify custom sed command when
34015         generating en@quot PO file.
34017 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
34019         bootstrap: use correct source when copying build-aux files
34020         * build-aux/bootstrap (gnulib_extra_files): This variable is
34021         relative to upstream gnulib layout, not downstream.
34023 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
34025         tmpdir: fix bug in VMS port
34026         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
34027         See Steven M. Schweda in
34028         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
34030 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34032         tmpdir: port to VMS, to // != /, and to long dirs
34033         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
34034         __secure_getenv, so that we're more like the glibc version.
34035         All uses changed.
34036         (path_search): Don't put slash after directory if __VMS.
34037         Problem reported by Steven M. Schweda in
34038         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
34039         Simplify code to add slash; no need for a loop.
34040         Do not remove trailing slash from "//".
34041         Do not assume dlen <= INT_MAX.
34043 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34045         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
34046         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
34047         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
34048         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
34050         accept4, dup3, pipe2: port to Cygwin
34051         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
34052         * lib/accept4.c (accept4) [O_BINARY]:
34053         * lib/dup3.c (dup3) [O_BINARY]:
34054         * lib/pipe2.c (pipe2) [O_BINARY]:
34055         Use set_binary_mode, not setmode.
34056         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
34057         * modules/binary-io (Depends-on): Remove module indicator.
34058         These last two bits undo the previous change to pipe2 and binary-io.
34060 2013-07-09  Pádraig Brady  <P@draigBrady.com>
34062         mountlist: add support for deallocating returned list entries
34063         * lib/mountlist.c (free_mount_entry): A new exported function
34064         to deallocate a mount list entry.
34065         (read_file_system_list): Refactor to use the new deallocation function.
34066         Suggested by Anton Ovchinnikov.
34068 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
34070         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
34071         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
34072         * lib/stdalign.in.h (_Alignas, _Alignof):
34073         Port to FreeBSD 9.1, and to C11 and C++11.
34074         (_Alignas): Also support ICC.
34075         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
34076         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
34078 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34080         fnmatch: don't goto over declaration
34081         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
34082         undefined behavior for goto over a declaration.
34083         Problem reported by Charlie Brown in
34084         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
34086         pipe2: decouple from binary-io a bit
34087         This is for Emacs, which needs pipe2 but not binary-io.
34088         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
34089         * modules/binary-io (Depends-on): Add module indicator.
34091 2013-07-03  Eric Blake  <eblake@redhat.com>
34093         mgetgroups: relax license to LGPLv2+
34094         * modules/getugroups (License): Change from GPLv3+.
34095         * modules/mgetgroups (License): Likewise.
34096         * modules/getgroups (License): Change from LGPLv3+.
34098         xalloc-oversized: relax license to LGPLv2+
34099         * modules/xalloc-oversized (License): Change from GPLv3+.
34101         nproc: relax license to LGPLv2+
34102         * modules/nproc (License): Change from LGPLv3+.
34104         bootstrap: honor --no-git
34105         * build-aux/bootstrap: Don't even try to use git when user is
34106         pointing to a static checkout.
34108 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34110         ignore-value: port to gcc -pedantic
34111         * lib/ignore-value.h (ignore_value):
34112         Port to gcc -pedantic, by using __extension__.
34113         Reindent as per usual gnulib style nowadays.
34114         Simplify GCC version check.
34116 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34118         extern-inline: port to gcc -std=c89
34119         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
34120         Do not use __gnu_inline__ if pedantic and pre-C99.
34122 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34124         doc: document extern-inline
34125         * doc/extern-inline.texi: New file.
34126         * doc/gnulib.texi (alloca-opt): Include it.
34127         * m4/extern-inline.m4: Move some comments to documentation,
34128         and others closer to what they describe.
34130         doc: chatter less
34131         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
34132         (updated-stamp): Use it.  This causes 'make' to output just
34133         one file name rather than zillions.
34135         fflush, fseeko: port to musl cross-compiles
34136         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
34137         on some implementation that (1) is not known to be buggy,
34138         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
34139         cross-compiled to so we can't easily check for lack of
34140         conformance.  This is for cross-compiling to musl.
34141         Reported by Rich Felker in
34142         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
34143         * m4/fclose.m4 (gl_FUNC_FCLOSE):
34144         * m4/fflush.m4 (gl_FUNC_FFLUSH):
34145         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
34146         Adjust to above change.
34147         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
34148         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
34149         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
34150         known not to work, or unknown.
34152 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34154         msvc-inval: port to mingw-w64
34155         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
34156         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
34157         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
34159 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
34161         getcwd-lgpl: port to Tru64
34162         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
34163         Problem reported by Steven M. Schweda in
34164         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
34166         tests: port large-fd POSIX spawn tests to OS X
34167         Problem reported by Daiki Ueno in
34168         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
34169         * tests/test-posix_spawn_file_actions_addclose.c:
34170         * tests/test-posix_spawn_file_actions_adddup2.c:
34171         * tests/test-posix_spawn_file_actions_addopen.c:
34172         Include <limits.h>, for OPEN_MAX, if available.
34173         (big_fd): New static function.
34174         (main): Use it.
34176 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
34178         tests/nap.h: use an adaptive delay to avoid ctime update issues
34179         The recent change in nap.h (5191133e) decreased the probability of lost
34180         races to about a third, however such problems could still be observed
34181         in virtual machines and openSUSE's OBS.
34182         Before, nap() detected the needed time once empirically and then used
34183         that delay (together with a small correction multiplier) in further
34184         calls.  This problem has been reported and discussed several times,
34185         including guesses about possible kernel issues:
34186         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
34187         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
34188         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
34189         http://bugs.gnu.org/12820
34190         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
34191         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
34192         Now, nap() avoids the race alltogether by verifying on a reference
34193         file whether a timestamp difference has happened.
34194         * tests/nap.h (nap_fd): Define file descriptor variable for the
34195         witness file.
34196         (nap_works): Change return value to bool.  Change passing
34197         the old file's status by value instead of by reference as this function
34198         does no longer update that timestamp; rename the function argument from
34199         st to old_st.  Remove the local variables cdiff and mdiff because that
34200         function now returns true/false instead of the precise delay.
34201         (guess_delay): Remove function.
34202         (clear_tmp_file): Add new function to close and unlink the witness file.
34203         (nap): Instead of re-using the delay which has been calculated during
34204         the first call, avoid the race by actually verifying that a timestamp
34205         difference can be observed on the current file system.  Use an adaptive
34206         approach for the delay to minimize execution time.  Assert that the
34207         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
34208         = 2^31 - 1 = 2.1s.
34209         Use atexit to call clear_tmp_file when the process terminates.
34211 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34213         sig2str: port to C++
34214         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
34215         Reported by Daniel J Sebald in
34216         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
34218 2013-05-30  Eric Blake  <eblake@redhat.com>
34220         docs: mention cygwin shortcoming in <sys/un.h>
34221         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
34223         vasnprintf: silence mingw compiler warning
34224         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
34226 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34228         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
34229         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
34230         This fixes a porting bug I recently reintroduced in regex, and
34231         some other instances that I discovered while testing the fix.
34232         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
34233         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
34234         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
34235         with an empty argument if this is a pedantic pre-C99 GCC.
34236         * lib/verify.h: Do not use _Static_assert if this is a pedantic
34237         pre-C11 GCC.
34239         regex: adapt to locking regime instead of depending on pthread
34240         Instead of depending on pthread, adapt to whatever thread
34241         modules are in use.  Problem reported by Ludovic Courtès in
34242         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
34243         and by Mats Erik Andersson in
34244         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
34245         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34246         Support either the 'lock' module, or the 'pthread' module, or
34247         no module.
34248         (lock_lock, lock_unlock): New macros.
34249         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
34250         * modules/lock, modules/pthread (configure.ac): Add module indicator.
34251         * modules/regex (Depends-on): Remove pthread.
34253 2013-05-22  Eric Blake  <eblake@redhat.com>
34255         getgroups: document portability issues
34256         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34257         multithread safety.
34258         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34259         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34260         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34261         getugroups.
34262         * doc/posix-functions/getgroups.texi (getgroups): Mention
34263         multithread safety and mgetgroups.
34265 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34267         test-lchown, test-chown: also skip test if chown fails with EPERM
34268         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34269         skip this test, to handle FAT file systems.
34270         * tests/test-chown.h (test_chown): Likewise.
34272 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34274         regex: fix dfa race in multithreaded uses
34275         Problem reported by Ludovic Courtès in
34276         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34277         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34278         New macros.  All uses of __libc_lock_define, __libc_lock_init
34279         changed to use the first two of these.
34280         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34281         non-glibc platforms.
34282         (struct re_dfa_t): Define the lock unconditionally.
34283         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34284         '#ifdef _LIBC"s.
34285         * modules/regex (Depends-on): Add pthread, if we use the
34286         included regex.
34288         * lib/regcomp.c: Do actions that are not needed for glibc,
34289         but may be needed elsewhere.
34290         (regfree, re_compile_internal): Destroy the lock.
34291         (re_compile_internal): Check for lock-initialization failure.
34293         malloca: port to compilers that reject size-zero arrays
34294         This fixes a bug introduced in my previous patch.
34295         * lib/malloca.c (struct preliminary_header): Use an int
34296         rather than a character array of size int; that's simpler.
34297         (struct header): Remove, replacing with ...
34298         (union header): New type.  This avoids the need for declaring a
34299         character array of size zero, which is not allowed on some platforms.
34300         All uses changed.
34302 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34304         parse-datetime, tests: don't use "string" + int
34305         Recent versions of 'clang' complain about C source code that
34306         uses expressions of the form '"string literal" + integer',
34307         I guess on the theory that it's confusing for readers who are
34308         used to C++.  On those grounds I suppose it's OK to make this
34309         minor style change.
34310         * lib/parse-datetime.y (parse_datetime):
34311         * tests/test-fchdir.c (main):
34312         * tests/test-snprintf-posix.h (test_function):
34313         * tests/test-snprintf.c (main):
34314         * tests/test-vasnprintf-posix.c (test_function):
34315         * tests/test-vasnprintf.c (test_function):
34316         * tests/test-vsnprintf.c (main):
34317         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34318         Rewrite '"str" + E' to '&"str"[E]'.
34320 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34322         argmatch: port to C++
34323         * lib/argmatch.h [__cplusplus]: Add extern "C".
34325         argp: typo fix
34326         * lib/argp-help.c: Typo in comment.
34328 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34330         manywarnings: update for GCC 4.8.0
34331         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34332         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34333         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34334         -Wmissing-noreturn, as they are duplicates of other warnings.
34335         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34336         was documented to be flaky in earlier versions of GCC.
34338         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34339         * tests/test-spawn.c (main):
34340         * tests/test-sys_socket.c (main):
34341         * tests/test-sys_wait.c (main):
34342         Don't have a switch value that isn't covered by a case.
34344         getaddrinfo-tests: port --enable-gcc-warnings to clang
34345         * tests/test-getaddrinfo.c (simple):
34346         Avoid casts from looser to stricter-aligned pointers.
34348         thread: port --enable-gcc-warnings to clang
34349         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34350         Include <signal.h>, to pacify a warning about pthread_sigmask.
34352         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34353         * lib/stdio.in.h (fwrite):
34354         When working around bug 11959, use __REDIRECT rather than '#define
34355         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34356         fix the -Wunused-value issue with clang, and it works with GCC too.
34357         Problem with targeting reported by Eric Blake in
34358         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34359         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34360         debugging the fwrite issue.
34362         stdio: port --enable-gcc-warnings to clang
34363         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34364         since the GCC workaround for fwrite does not pacify clang.
34366         sig2str: port --enable-gcc-warnings to clang
34367         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34369         obstack: port --enable-gcc-warnings to clang
34370         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34371         Avoid casts from looser to stricter-aligned pointers.
34373         memchr2: port --enable-gcc-warnings to clang
34374         * lib/memchr2.c (memchr2):
34375         Avoid casts from looser to stricter-aligned pointers.
34377         mbsstr: port --enable-gcc-warnings to clang
34378         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34379         Avoid casts from looser to stricter-aligned pointers.
34381         malloca: port --enable-gcc-warnings to clang
34382         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34383         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34385         inttostr: port --enable-gcc-warnings to clang
34386         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34388         warnings: port to clang
34389         Problem reported by Daniel P. Berrange via Eric Blake in
34390         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34391         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34392         (gl_WARN_ADD): Use it.
34394 2013-05-11  Jim Meyering  <meyering@fb.com>
34396         quotearg: do not read beyond end of buffer
34397         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34398         end of an ARG for which no length was specified.  With an N-byte
34399         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34400         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34401         via coreutils' misc/sort-debug-keys.sh test and detected by running
34402         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34403         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34404         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34405         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34406         characters correctly."
34408 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34410         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34411         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34412         compilation target is Mac OS X 10.6.
34413         Problem reported by parafin and Andoni Morales in
34414         <http://savannah.gnu.org/bugs/?37844> and
34415         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34417 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34419         mkdir-p: remove assumptions about umask and mode
34420         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34421         umask is 0, or that MODE is a subset of MODE_BITS.
34423 2013-05-10  Eric Blake  <eblake@redhat.com>
34425         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34426         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34428 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34430         deps: require Automake >= 1.9.6 in generated Makefile fragments
34432         That is the same minimal version required in the DEPENDENCIES file.
34433         Moreover, the old code generated a requirement of Automake >= 1.5,
34434         and that is an insanely outdated version.
34436         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34437         * tests/havelib/rpathlx/Makefile.am: Likewise.
34438         * tests/havelib/rpathly/Makefile.am: Likewise.
34439         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34440         * tests/havelib/rpathlz/Makefile.am: Likewise.
34441         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34442         * tests/havelib/rpathx/Makefile.am: Likewise.
34443         * tests/havelib/rpathy/Makefile.am: Likewise.
34444         * tests/havelib/rpathz/Makefile.am: Likewise.
34446 2013-05-08  Eric Blake  <eblake@redhat.com>
34448         bootstrap: AC_INIT may have more than four parameters
34449         * build-aux/bootstrap (extract_package_name): Correctly extract
34450         non-empty tarname field.  Avoid range in regex.
34451         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34453 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34455         qacl: port to MS-Windows port of GNU Emacs
34456         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34457         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34458         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34459         <http://bugs.gnu.org/14295#14>.
34461 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34463         acl: include quote.h
34464         * lib/copy-acl.c: Include quote.h.
34465         * lib/set-acl.c: Likewise.
34467 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34469         fchownat, renameat, unlinkat: update statat dependencies
34470         These modules use statat and lstatat, not fstatat; so depend on
34471         the statat module, which was split out recently from fstatat.
34472         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34473         * modules/renameat: Likewise.  Also delete fstat.
34474         URL: http://bugs.gentoo.org/468790
34476 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34478         Assume gnulib is checked out from Git, not CVS
34480         In fact, access to the gnulib repository through CVS has been
34481         disabled, or more precisely, got broken and was never restored; see:
34482         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34484         Note that support for CVS is not removed completely and unthinkingly
34485         by this change: only support for CVS checkouts of gnulib itself is
34486         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34487         files and CVS directories, for the benefit of those poor gnulib clients
34488         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34490         * gnulib-tool: Simplify accordingly.
34491         * posix-modules: Likewise.
34492         * MODULES.html.sh: Likewise.
34493         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34494         repository.
34495         * doc/gnulib-intro.texi: Likewise.
34496         * doc/gnulib-readme.texi: Likewise.
34497         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34498         sample '.gitignore' file rather than a sample '.cvsignore'.
34499         * NEWS: Update.
34500         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34501         to "CVS Autoconf" rather than "git Autoconf".
34503 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34505         utimensat-tests, etc.: try to fix some races
34506         Problem reported by Bernhard Voelker in
34507         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34508         I don't know whether this patch fixes that race condition, but it
34509         fixes *some* race conditions, so it should be a win.
34510         * modules/chown-tests (Depends-on):
34511         * modules/fchownat-tests (Depends-on):
34512         * modules/fdutimensat-tests (Depends-on):
34513         * modules/futimens-tests (Depends-on):
34514         * modules/lchown-tests (Depends-on):
34515         * modules/stat-time-tests (Depends-on):
34516         * modules/utimens-tests (Depends-on):
34517         * modules/utimensat-tests (Depends-on):
34518         Depend on nanosleep, not usleep.
34519         * modules/chown-tests (test_chown_LDADD):
34520         * modules/lchown-tests (test_lchown_LDADD):
34521         * modules/stat-time-tests (test_stat_time_LDADD):
34522         New macro.
34523         * modules/fchownat-tests (test_fchownat_LDADD):
34524         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34525         * modules/futimens-tests (test_futimens_LDADD):
34526         * modules/utimens-tests (test_utimens_LDADD):
34527         * modules/utimensat-tests (test_utimensat_LDADD):
34528         Add $(LIB_NANOSLEEP).
34529         * modules/stat-time-tests (Files): Add tests/nap.h.
34530         * tests/nap.h: Include <limits.h>, for INT_MAX.
34531         (lt_mtime): Remove.
34532         (diff_timespec): New function.
34533         (get_stat): Rename from get_mtime.  All callers changed.
34534         (nap_works): Determine the needed delay by inspecting the
34535         file system's timestamp jumps; this should be more reliable.
34536         Look at both mtime and ctime, and take the maximum of the two jumps.
34537         (nap_works, guess_delay):
34538         Return a nanosecond count, not a microsecond count.
34539         All callers changed.
34540         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34541         failure.
34542         (nap): Multiply the guess by 1.125, to accommodate the case where
34543         the file system's clock is a bit slower than nanosleep's clock.
34544         * tests/test-stat-time.c (BASE): New macro.
34545         Include nap.h.
34546         (nap): Remove; nap.h now defines this.  This removes a duplicate
34547         implementation of 'nap'.
34549         utimens, utimensat: work around Solaris UTIME_OMIT bug
34550         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34551         Linux kernel 2.6.32 does.  Work around it in the same way.
34552         * doc/posix-functions/futimens.texi (futimens):
34553         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34554         * lib/utimens.c (fdutimens, lutimens):
34555         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34557         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34558         Formerly, it was your responsibility to do this for all Makefile.ams
34559         other than Gnulib's.  Now it's your responsibility to do it for
34560         Gnulib's Makefile.am, too.
34561         * NEWS: Document this.
34562         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34564         acl: include errno.h to get errno
34565         Reported by Daiki Ueno in
34566         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34567         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34569 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34571         tests: don't assume getdtablesize () <= 10000000
34572         * modules/cloexec-tests:
34573         * modules/dup2-tests:
34574         * modules/dup3-tests:
34575         * modules/nonblocking-tests:
34576         * modules/posix_spawn_file_actions_addclose-tests:
34577         * modules/posix_spawn_file_actions_adddup2-tests:
34578         * modules/posix_spawn_file_actions_addopen-tests:
34579         * modules/unistd-safer-tests:
34580         Depend on the getdtablesize module.
34581         * tests/test-cloexec.c:
34582         * tests/test-dup-safer.c:
34583         * tests/test-dup2.c:
34584         * tests/test-dup3.c:
34585         * tests/test-fcntl.c:
34586         * tests/test-nonblocking.c:
34587         * tests/test-posix_spawn_file_actions_addclose.c:
34588         * tests/test-posix_spawn_file_actions_adddup2.c:
34589         * tests/test-posix_spawn_file_actions_addopen.c:
34590         Don't assume getdtablesize () <= 10000000.
34592 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34594         extern-inline: work around bug in Sun c99
34595         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34596         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34598 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34600         qacl: new module, broken out from the acl module
34601         This is for GNU Emacs, which wants the acl functions but does
34602         not want 'error' invoked when they fail.
34603         * lib/acl-internal.h: Do not include error.h, quote.h.
34604         (ENOSYS, ENOTSUP): Remove; no longer needed.
34605         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34606         * lib/acl.h: Include <stdbool.h>.
34607         (acl_errno_valid): New function.
34608         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34609         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34610         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34611         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34612         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34613         * lib/file-has-acl.c (file_has_acl):
34614         * lib/qcopy-acl.c (qcopy_acl):
34615         * lib/qset-acl.c (qset_acl):
34616         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34617         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34618         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34619         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34620         Add lib/set-acl.c.
34621         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34622         Add qacl.
34623         (configure.ac): Move gl_FUNC_ACL to qacl module.
34624         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34625         Rename set-mode-acl.c to set-acl.c.
34626         * lib/acl-errno-valid.c: New file.
34627         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34628         copy_acl function remains in copy-acl.c.
34629         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34630         (_): Remove; not needed.
34631         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34632         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34633         * modules/qacl: New file, moved from the old modules/acl.
34634         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34635         Remove set-mode-acl.c, copy-acl.c.
34636         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34638         alignof, intprops, malloca: port better to IBM's C compiler
34639         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34640         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34641         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34643 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34645         wctype-h: fix gettext link error on mingw
34646         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34647         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34648         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34649         rpl_towupper and rpl_towupper.
34651 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34653         regex-tests, regex: allow glibc re_search behavior
34654         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34655         re_search input data to make the multi-character collating element
34656         in it clearly visible, and treat re_search return code 0 as valid.
34657         * m4/regex.m4 (gl_REGEX): Likewise.
34659 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34661         stdalign: doc fix
34662         * doc/posix-headers/stdalign.texi (stdalign.h):
34663         Gnulib doesn't support '_Alignof expr'.
34665 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34667         stdalign: port to stricter ISO C11
34668         ISO C11 says that _Alignof's operand must be a parenthesized type.
34669         Problem reported by Eli Zaretskii in
34670         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34671         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34672         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34674 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34676         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34677         Problem reported by Marco Atzeri in
34678         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34679         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34680         Simply delegate to the system <sys/select.h> in this case too.
34681         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34682         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34683         be needed on Solaris either.
34684         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34685         Simply delegate to the system <sys/time.h> in this case.
34687 2013-03-19  Karl Berry  <karl@gnu.org>
34689         * build-aux/gnupload: check for erroneous (with gnupload) use of
34690         ftp-upload.gnu.org, tweak help.
34692 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34694         copy-file, rpmatch: fix problems found by cppcheck
34695         Reported by Arno Onken in
34696         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34697         * lib/rpmatch.c (try): Fix memory leak.
34698         * lib/copy-file.c: Include "ignore-value.h".
34699         (qcopy_file_preserving): Ignore chown value.
34700         * modules/copy-file (Depends-on): Add ignore-value.
34702 2013-01-27  Jim Meyering  <jim@meyering.net>
34704         prefix-gnulib-mk: give better diagnostics
34705         * build-aux/prefix-gnulib-mk: Don't just "die".
34706         Give better diagnostics upon failure.
34708 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34710         putenv: port to Solaris 10
34711         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34712         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34713         is not what is wanted here.
34714         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34715         declaration, not for its existence.
34717 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34719         mktime: fix configure typo
34720         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34722 2013-03-12  Eric Blake  <eblake@redhat.com>
34724         regex-tests: skip UTF-8 test on mingw
34725         * modules/regex-tests (Depends-on): Add localcharset.
34726         * tests/test-regex.c (main): Use it to skip test on mingw.
34728 2013-03-11  Eric Blake  <eblake@redhat.com>
34730         tests: make it easier to bypass alarm time in debugger
34731         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34732         * tests/test-memmem.c (main): Likewise.
34733         * tests/test-passfd.c (main): Likewise.
34734         * tests/test-ptsname.c (main): Likewise.
34735         * tests/test-ptsname_r.c (main): Likewise.
34736         * tests/test-strcasestr.c (main): Likewise.
34737         * tests/test-strstr.c (main): Likewise.
34739         regex: port to mingw's recent addition of undeclared alarm
34740         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34741         exists but still doesn't work in newer mingw.
34742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34743         not existence.  Ensure SIGALRM is not trapped.
34744         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34745         * m4/regex.m4 (gl_REGEX): Likewise.
34746         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34747         * tests/test-regex.c (main): Use correct probe for alarm.
34749         putenv: avoid compilation warning on mingw
34750         * lib/putenv.c (_unsetenv): Protect variable declaration.
34751         (putenv): Fix indentation.
34753 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34755         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34756         * lib/unistd.in.h: be careful not to include un-needed system
34757         stdlib.h from here, because that prevents gnulib stdlib.h from
34758         defining rpl_strtod correctly.
34760 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34762         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34763         changesets, but for the 'precision 0' test.
34764         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34765         round-to-even, since POSIX says rounding is implementation-defined
34766         and OS X 10.8.2 rounds 1.51 to 1 here.
34768         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34769         changeset.
34770         * tests/test-vasprintf-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.
34774 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34776         vasnprintf-posix-tests: allow rounding 1.5 to 1
34777         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34778         round-to-even, since POSIX says rounding is implementation-defined
34779         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34780         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34782         bootstrap: port to FreeBSD
34783         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34784         that treat '--' differently.  Reported by Mats Erik Andersson in
34785         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34787 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34789         regex: rename remaining __attribute calls to __attribute__.
34790         2012-02-25 changed definition of __attribute, but left some uses
34791         unchanged, preventing compilation of regex module on most non-gcc
34792         environments.
34793         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34794         (lookup_collation_sequence_value, build_range_exp)
34795         (build_collating_symbol): Set attributes with newly renamed
34796         __attribute__ decorator.
34797         * lib/regex_internal.c (re_string_peek_byte_case)
34798         (re_node_set_compare, re_node_set_contains): Likewise.
34799         * lib/regexec.c (acquire_init_state_context): Likewise.
34801 2013-03-06  Bruno Haible  <bruno@clisp.org>
34803         execute: Revert last change, but use a different condition.
34804         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34805         on Windows.
34807 2013-03-05  Eric Blake  <eblake@redhat.com>
34809         execute: drop dead code
34810         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34812 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34814         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34815         * m4/non-recursive-gnulib-prefix-hack.m4
34816         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34817         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34818         <http://bugs.gnu.org/10305#237>.
34820 2013-03-04  Eric Blake  <eblake@redhat.com>
34822         test-getsockopt: avoid compiler warning
34823         * tests/test-getsockopt.c (includes): Ensure close is declared.
34825 2013-03-02  Bruno Haible  <bruno@clisp.org>
34827         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34828         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34830 2013-03-02  Bruno Haible  <bruno@clisp.org>
34832         gettext: Update to version 0.18.2.
34833         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34834         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34835                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34837 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34839         regex: merge patches from libc
34841         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34842         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34843         All uses changed.
34844         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34845         (re_string_wchar_at, re_string_elem_size_at):
34846         Mark function as possibly unused.
34848         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34849         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34850         elements compare against the byte sequence of it, not its name.
34852 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34854         putenv: port better to native Windows
34855         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34856         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34857         (_unsetenv): Use _putenv if available.
34858         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34859         a bit less likely to cause damage.
34860         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34861         Fix the wrong value with SetEnvironmentVariable.
34862         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34863         code better.
34865 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34867         regex: ignore old-style-definition warnings
34868         * lib/regex.c: Add pragma to ignore these warnings.
34869         Problem reported for GNU tar by Pavel Raiskup.
34871 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34873         getcwd: support coreutils better
34874         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34875         but this might not be correct in coreutils, which disables
34876         the raw decl checks.  Problem reported by Nagendra in
34877         <http://bugs.gnu.org/10305#192>.
34878         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34879         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34880         Test the getcwd function, not any macro, since getcwd.c wants the
34881         function.
34882         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34883         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34884         compile, as might happen if there's a macro but no function.
34886         strtod: support coreutils better
34887         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34888         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34889         disables the raw decl checks.  This assumes there is an underlying
34890         strtod, but that's a safe assumption these days.
34891         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34893         mountlist: port to HP NonStop
34894         Reported by Joachim Schmitz in
34895         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34896         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34897         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34899 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34901         extern-inline: avoid compilation error with HP-UX cc
34902         Reported by Richard Lloyd in
34903         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34904         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34905         Suppress extern inline with HP-UX cc.  This should be safe,
34906         though it may hurt performance.  Perhaps someone with some HP-UX
34907         experience can come up with a higher-performance fix.
34909 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34911         putenv: fix heap corruption with mixed putenv/_putenv
34912         Problem reported by Michael Goffioul in
34913         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34914         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34915         Rely on _putenv to allocate the new environment.
34916         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34917         * modules/putenv (configure.ac): Use it.
34919 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34921         unsetenv etc.: port to Solaris 11 + GNU Emacs
34922         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34923         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34924         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34925         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34926         idea but is too painful to fix right now), and without this gnulib
34927         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34928         compiling unsetenv.c on Solaris 11.  Fix the problem for
34929         unsetenv.c, and fix other similar occurrences.
34931 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34933         secure_getenv: fix C++ declaration typo
34934         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34935         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34936         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34938 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34940         careadlinkat: stop exporting careadlinkatcwd
34941         Only Emacs used it directly, and Emacs no longer needs it.
34942         * NEWS: Document this simplification.
34943         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34944         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34945         for readlink.
34946         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34947         Don't include stdlib.h; no longer needed.
34948         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34949         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34950         * modules/areadlink (Depends-on): Add readlink.
34951         (Maintainer): Add self.
34952         * modules/careadlinkat (Depends-on): Remove readlink.
34954         extensions: port better to HP-UX
34955         This is merged from git Autoconf.
34956         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34957         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34958         so that it's compatible with the value used when compiling.
34960         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34961         Problem reported by Mats Erik Andersson in
34962         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34963         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34964         openpty function exists, not merely when we intend to replace it.
34965         This corrects the 2013-01-31 patch, which mistakenly defined
34966         HAVE_OPENPTY even on hosts that lacked it.
34968 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34970         secure_getenv: fix include typo
34971         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34973         secure_getenv: port better to FreeBSD and Solaris
34974         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34975         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34976         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34977         This works better on BSDish platforms.
34978         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34979         Test for issetugid if __secure_getenv is missing.
34981 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34983         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34984         Some of these changes are merged in from git Autoconf.
34985         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34986         When deciding whether to define _XOPEN_SOURCE, inspect the
34987         preprocessor macro __hpux instead of the more-heavyweight
34988         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34989         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34990         as the key for __EXTENSIONS__.
34992         unistd: avoid namespace pollution on non-glibc systems
34993         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34994         This avoids namespace pollution on non-glibc systems, by causing
34995         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34996         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34997         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34999 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35001         tmpdir: use secure_getenv
35002         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
35003         Define to secure_getenv, not getenv.
35004         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
35005         as that's now secure_getenv's job.
35006         * modules/tmpdir (Depends-on): Add secure_getenv.
35008         tempname: use secure_getenv
35009         * lib/tempname.c (__secure_getenv) [!_LIBC]:
35010         Define to secure_getenv, not getenv.
35011         * modules/tempname (Depends-on):
35012         Add secure_getenv.
35014         secure_getenv: new module
35015         * MODULES.html.sh (Extra functions based on ANSI C 89):
35016         Add secure_getenv.
35017         * doc/glibc-functions/secure_getenv.texi: New file.
35018         * doc/gnulib.texi: Include it.
35019         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
35020         New files.
35021         * lib/stdlib.in.h (secure_getenv): New decl.
35022         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
35023         * modules/stdlib (stdlib.h):
35024         Add secure_getenv checks.
35026 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35028         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
35029         Reported for OS X 10.8.2 by Assaf Gordon in
35030         <http://bugs.gnu.org/13516>.
35031         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
35032         !HAVE_OPENAT && !HAVE_FDOPENDIR.
35033         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
35034         so that they can be kept in sync more easily.  Avoid PATH_MAX
35035         test on the Hurd.  Sync from test-getcwd.c for errno tests after
35036         mkdir or chdir failure.
35037         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
35038         lib/getcwd.c.
35039         (test_abort_bug): Do not test for the deep directory bug unless we
35040         have openat support.  Avoid PATH_MAX test on the Hurd.
35042         regex-tests, regex: fix bug: memset undeclared
35043         * tests/test-regex.c: Don't include regex.h twice.  Include
35044         string.h, to declare memset.  Christensen's report also mentioned
35045         this issue.
35046         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
35047         test-regex.c, to avoid future problems like this.  Remove
35048         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
35049         twice.
35051         regex-tests: fix link errors on older Solaris
35052         These need to link with @LIBINTL@ to get libintl_gettext.
35053         Problem reported by Tom G. Christensen in
35054         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
35055         * modules/regex-tests (test_regex_LDADD): New macro.
35057 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35059         regex-tests: new module
35060         * modules/regex-tests, tests/test-regex.c: New files.
35062         regex: fix off-by-one error in configure test
35063         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
35065 2013-01-31  Eric Blake  <eblake@redhat.com>
35067         regex: avoid infinite configure test
35068         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
35070 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
35072         openpty: fix bug where HAVE_OPENPTY wasn't defined
35073         See the thread starting at:
35074         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
35075         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35076         openpty function exists, not merely when we intend to replace it.
35078 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
35080         sys_time: port to Solaris 2.6
35081         There is a circularity problem on Solaris 2.6, where <time.h> includes
35082         <sys/time.h> for struct timespec.  The include nesting is gnulib
35083         <time.h>, system <time.h>, gnulib <sys/time.h>, system
35084         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
35085         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
35086         <sys/siginfo.h>; the last, innermost file needs struct
35087         timestruc_t, which is defined in <sys/time.h>, which has not been
35088         fully parsed.  Problem reported by Tom G. Christensen in
35089         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
35090         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
35091         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
35092         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
35093         uses split double-inclusion guards.
35095 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35097         regex: test for buffer overrun
35098         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
35099         for the just-fixed regex bug.
35101 2013-01-29  Andreas Schwab  <schwab@suse.de>
35103         regex: fix buffer overrun in regexp matcher [BZ #15078]
35104         * lib/regexec.c (extend_buffers): Add parameter min_len.
35105         (check_matching): Pass minimum needed length.
35106         (clean_state_log_if_needed): Likewise.
35107         (get_subexp): Likewise.
35109 2013-01-28  Pádraig Brady  <P@draigBrady.com>
35111         mountlist: don't consider "devtmpfs" as dummy
35112         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
35113         as there is storage associcated with it.
35115 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
35117         futimens-tests, utimens-tests: Depend on gettext.
35118         This works around a problem introduced in my 2013-01-12 patch,
35119         which added @LIBINTL@ to these modules.
35120         * modules/futimens-tests (Depends-on):
35121         * modules/utimens-tests (Depends-on): Add gettext.
35123 2013-01-26  Eric Blake  <eblake@redhat.com>
35125         test-getpeername: fix typo
35126         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
35128 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
35130         bootstrap: remove the need for a sorted .gitignore file
35131         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
35132         rename to insert_if_absent(), so that we don't need or generate
35133         a sorted .gitignore file.  We do require a .gitignore with no
35134         existing duplicate entries and enforce that.
35135         (sort_patterns): Remove this function as we now use the simpler
35136         technigue of inserting blacklist entries at the top of the file,
35137         assuming gnulib won't be inserting !whitelist entries.
35139 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35141         readlinkat: don't depend on gl_FUNC_OPENAT
35142         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
35143         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
35144         renameat.m4, symlinkat.m4; but one thing at a time.
35146         statat: new module, split out from fstatat
35147         GNU Emacs needs the POSIX-specified fstatat, but not the
35148         gnulib-specified statat and lstat.  Split the latter two into a
35149         new module 'statat'.
35150         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
35151         * lib/openat.h, lib/statat.c (STATAT_INLINE):
35152         Rename from FSTATAT_INLINE. All uses changed.
35153         * modules/fstatat (Files): Remove lib/statat.c.
35154         (gl_MODULE_INDICATOR([fstatat])): Remove.
35155         (lib_SOURCES): Remove.
35156         (Maintainer): Add self.
35157         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
35158         * tests/test-fstatat.c (BASE): Don't define if already defined.
35159         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
35161 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35163         tests: don't assume fd 99 is closed
35164         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
35165         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
35166         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
35167         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
35168         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
35169         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
35170         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
35171         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
35172         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
35173         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
35174         * tests/test-fwrite.c, tests/test-getpeername.c:
35175         * tests/test-getsockname.c, tests/test-getsockopt.c:
35176         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
35177         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
35178         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
35179         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
35180         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
35181         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
35182         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
35183         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
35184         * tests/test-unlinkat.c, tests/test-unlockpt.c:
35185         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
35186         Close file descriptor 99, instead of assuming it's already closed.
35188 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
35190         stpncpy: port to OS X 10.8
35191         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
35192         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
35194 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
35196         unistd: port to recent mingw
35197         * lib/unistd.in.h: Remove special invocation convention for mingw,
35198         which breaks for the latest mingw version.  See John W. Eaton in
35199         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
35201         largefile: port better to Mac OS X 10.5
35202         This patch is backported from Autoconf git.
35203         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
35204         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
35205         with ino_t size being different for configuration time versus
35206         build/run time.  Problem reported by PHO in
35207         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
35209 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35211         doc: clarify -Werror
35212         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
35213         clarify that it's intended for developers, not for ordinary builds,
35214         and mention --enable-gcc-warnings as one possible use.
35216 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
35218         stdint: fix build with Android's Bionic fox x86
35219         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
35220         was already included as _SSIZE_T_DEFINED_ might also be defined
35221         in include/machine/_types.h, which is included by stdio.h
35223 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
35225         net_if-tests: port to Solaris 7 + GCC 3.4.6
35226         Problem reported by Tom G. Christensen in
35227         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
35228         * tests/test-net_if.c (ni): Move to next the code that uses it,
35229         so that it's declared only if needed.
35231 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35233         net_if-tests: port to older Solaris
35234         Problem reported by Tom G. Christensen in
35235         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35236         * modules/net_if-tests (NET_IF_LIB): New substitution.
35237         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
35238         (HAVE_IF_NAMEINDEX): New C macro.
35239         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
35241         system-quote-tests: port to older Solaris
35242         Problem reported by Tom G. Christensen in
35243         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35244         * tests/test-system-quote-child.c (fopen, fread): Undef.
35246         c-xvasprintf etc.: fix link errors on older Solaris
35247         These need to link with @LIBINTL@ to get libintl_gettext.
35248         Problem reported by Tom G. Christensen in
35249         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
35250         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
35251         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
35252         * modules/futimens-tests (test_futimens_LDADD):
35253         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35255 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35257         locale: port to Solaris 2.6 and 7 + GNU gettext
35258         * lib/locale.in.h: Just include_next <locale.h> when
35259         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35260         when combining the localename module with GNU gettext 0.18.2.
35261         Problem reported by Tom G. Christensen in
35262         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35264 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35266         stdlib: port to Solaris 2.6
35267         Also, the code worked on Solaris 7 through 9 only by accident.
35268         Problem reported by Tom G. Christensen in
35269         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35270         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35271         simply include the system stdlib.h.
35272         * lib/getopt.in.h (__need_system_stdlib_h):
35273         * lib/pthread.in.h (__need_system_stdlib_h):
35274         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35275         Define when including <stdlib.h>, to avoid problems at least for
35276         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35277         with the system stdlib.h.
35279 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35281         doc: update main copyright year
35282         * doc/gnulib.texi: Update copyright date.
35284         doc: improve ISO 8601 discussion
35285         * doc/parse-datetime.texi (Combined date and time of day items):
35286         Specify more carefully what formats are supported and what is
35287         done with excess precision.
35289 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35291         doc: avoid small caps
35292         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35293         they're more trouble than they're worth.  Suggested by Karl Berry
35294         in <http://bugs.gnu.org/13360>.
35296         regex: conform to strict C
35297         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35298         From Aharon Robbins.
35300         gnulib-tool: fix incompatibility with autopoint 0.18.2
35301         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35302         Problem reported by Tom G. Christensen in
35303         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35305 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35307         fprintftime: bring back and reword fwrite comment
35308         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35310         stdio: remove now-unnecessary stdio.c
35311         Since stdio.in.h no longer uses inline functions, we no longer
35312         need to compile the extern versions.
35313         * lib/stdio.c: Remove.
35314         * modules/stdio (Files): Remove lib/stdio.c.
35315         (lib_SOURCES): Remove.
35317         unicodeio: depend on stdio, not ignore-value
35318         * lib/unicodeio.c: Do not include ignore-value.h.
35319         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35320         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35322         fprintftime: depend on stdio, not ignore-value
35323         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35324         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35325         since the stdio module arranges to silence that warning now.
35326         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35328 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35330         stdint-tests: Fix expanded-before-required-warning.
35331         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35333 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35335         fwrite: silence __wur only for older glibc versions
35336         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35337         This will help us remove this workaround some time in the far future.
35339 2013-01-03  Eric Blake  <eblake@redhat.com>
35341         fwrite: silence __wur without using inline
35342         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35343         just gcc, and in a way that avoids inline issues.
35344         * modules/stdio (Depends-on): Drop extern-inline.
35346 2013-01-03  Jim Meyering  <jim@meyering.net>
35348         update-copyright: avoid copyright notice date corruption
35349         Given a sequence of copyright year numbers in which the final
35350         one was a two-digit number that happened to be a substring of
35351         a preceding four-digit year number, we would mistakenly update
35352         the substring (from two- to four-digit) rather than the two-digit
35353         number at the end, which, combined with the addition of the current
35354         4-digit year number would yield two 5-digit year numbers, e.g.,
35355         here, it would convert the first "99" to "1999, 2013" rather than
35356         the final one:
35357           1991, 99
35358           11999, 20131, 1999
35359         * build-aux/update-copyright: Tighten a regexp.
35360         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35361         Reported by Joseph Myers in
35362         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35364 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35366         regex: omit needless signed-pointer casts
35367         * lib/regcomp.c (build_charclass, build_charclass_op):
35368         Use char *, not unsigned char *, for class name and extra.
35369         The char values are always nonnegative so there's no need to
35370         insist on unsigned char * here, and using char * removes the need
35371         for casts.  Reported by Aharon Robbins in
35372         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35374         regex: support Gawk, which never uses alloca
35375         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35376         Do not include in this case.  Gawk doesn't supply a substitute
35377         alloca.h and doesn't need one.
35379         regex: port __libc_lock_define usage to C89
35380         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35381         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35382         does not conform to C89, as it has an empty macro argument.
35383         Reported by Aharon Robbins in
35384         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35386 2013-01-01  Eric Blake  <eblake@redhat.com>
35388         maint: update all copyright year number ranges
35389         Run "make update-copyright".
35391         version-etc: bump copyright year reported in --version
35392         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35394 2012-12-31  Eric Blake  <eblake@redhat.com>
35396         sigprocmask-tests: skip test if pid is unexpectedly large
35397         * tests/test-sigprocmask.c (main): Add range check.
35399         git-version-gen: avoid test -z portability glitch
35400         * build-aux/git-version-gen: Prefer portable test spelling, since
35401         git-version-gen is run on more than just developer machines.
35403 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35405         git-version-gen: add --fallback option to use if git is not present
35406         * build-aux/git-version-gen: Add support for the new option --fallback,
35407         which comes into play when there is no $tarball_version_file and
35408         git is not working.
35409         (scriptversion): Update.
35411         maint.mk: handle missing git with more grace
35412         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35413         Quietly proceed if git is not present.
35415 2012-12-31  Eric Blake  <eblake@redhat.com>
35417         dup2: work around cygwin bug
35418         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35419         * lib/dup2.c (rpl_dup2): Work around it.
35420         * doc/posix-functions/dup2.texi (dup2): Document it.
35422 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35424         regex: remove unnecessary dependency on localcharset.h
35425         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35426         hasn't been needed for years.
35427         * modules/regex (Depends-on): Remove localcharset.
35429         regex: revert single-byte change
35430         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35431         to this function.  This was alredy fixed in a different way, at
35432         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35433         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35434         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35436         regex: simplify based on Gawk version
35437         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35438         Reported by Aharon Robbins in
35439         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35441 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35443         regex: check that pattern char is single-byte
35444         Reported by Aharon Robbins in
35445         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35446         * lib/regexec.c (check_node_accept_bytes):
35447         Return 0 if the pattern string has a multibyte character here.
35449         regex: implement rational ranges
35450         Reported by Aharon Robbins in
35451         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35452         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35453         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35454         Implement rational ranges.
35456         regex: avoid redefining __wctype
35457         Reported by Aharon Robbins in
35458         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35459         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35460         #undef before defining.
35462         regex: port to hosts where malloc (0) == NULL
35463         Reported by Aharon Robbins in
35464         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35465         * lib/regex_internal.c (re_node_set_alloc):
35466         Don't assume that malloc (0) yields nonnull.
35467         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35468         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35469         * modules/regex (Files): Add m4/eealloc.m4.
35471         regex: port to C89
35472         Reported by Aharon Robbins in
35473         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35474         * lib/regcomp.c (init_word_char): Declaration before statement.
35476         regex: merge glibc changes
35477         Also, copy the license wording from glibc.  This simplifies
35478         merging changes.  gnulib-tool will change the wording to GPL as
35479         appropriate, when importing it to other packages.  The only
35480         glibc change made since the last merge, which needs merging, is:
35481         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35482         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35484         * users.txt: Add Emacs.
35486         doc: omit mention of version when not needed
35487         * doc/gnulib-intro.texi (Portability and Application Code):
35488         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35489         Don't mention particular dates or versions when not necessary, so
35490         that the documentation won't go out of date so quickly.
35492         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35494 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35496         bootstrap: pass --force to autoreconf.
35497         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35498         Add "--force" so that Automake's ylwrap and other such tools
35499         be updated at each bootstrap invocation.
35500         Use it.
35502 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35504         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35505         The earlier patch forgot to update one of the #if conditions, causing
35506         a problem on Debian testing i386 reported by Mats Erik Andersson
35507         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35508         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35509         (__argp_fmtstream_puts, argp_fmtstream_puts)
35510         (__argp_fmtstream_write, argp_fmtstream_write)
35511         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35513         * doc/gnulib-readme.texi: Minor fixups.
35514         (Portability guidelines): Modernize URLs.  Remove some repetition.
35515         (Indent with spaces not TABs): Reword to avoid too-long lines.
35516         Remove some '@ifset standalone' stuff that isn't used.
35518         * doc/gnulib-readme.texi (Portability guidelines):
35519         ctype.h, not ctime.h.
35521         Correct name of POSIX.1-2001.
35522         * doc/posix-functions/fgetc.texi (fgetc):
35523         * doc/posix-functions/fgets.texi (fgets):
35524         * doc/posix-functions/fread.texi (fread):
35525         * doc/posix-functions/fscanf.texi (fscanf):
35526         * doc/posix-functions/getc.texi (getc):
35527         * doc/posix-functions/getchar.texi (getchar):
35528         * doc/posix-functions/scanf.texi (scanf):
35529         POSIX.1-2001, not POSIX-2001.
35531         doc: move README into manual
35532         * README: Move contents to new file doc/gnulib-readme.texi.
35533         Replace with a one-line summary.
35534         * doc/gnulib.texi (Brief Overview): New section,
35535         with old intro preface.  Include gnulib-readme.texi for contents.
35536         (Philosophy): Rename from "Introduction", since this
35537         section no longer introduces the rest.  Write a new preface.
35538         * doc/gnulib-readme.texi: New file, with the old contents of
35539         README texinfo-ized.  This way, the README info appears
35540         in the online and printed manual.
35542 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35544         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35545         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35546         c_vasprintf() prototype.
35548 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35550         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35551         * lib/c-vasprintf.h: Remove stray semicolon.
35553 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35555         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35556         It is obsolete and is planned to be removed from Automake 1.14; see
35557         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35558         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35559         (installdirs-data, installdirs-data-yes):
35560         Use $(MKDIR_P), not $(mkdir_p).
35561         * m4/intl.m4 (AM_INTL_SUBDIR):
35562         * m4/po.m4 (AM_PO_SUBDIRS):
35563         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35565 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35567         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35568         On this platform, we are not optimizing but we are using
35569         the substitute for extern inlines, so compile as if
35570         C99-style extern inline, or a substitute, is available.
35571         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35572         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35573         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35574         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35575         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35576         Declare as ARGP_FS_EI, not as extern.
35577         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35578         (__option_is_short, _option_is_end, __option_is_end)
35579         [!_LIBC && __USE_EXTERN_INLINES]:
35580         Declare as ARGP_EI, not as extern.
35582 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35584         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35585         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35586         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35587         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35588         ...), as the latter is fatal with older Autoconfs.
35589         Problem reported and fix suggested by Eric Blake in thread starting at
35590         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35592 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35594         AC_PROG_MKDIR_P: don't workaround if not buggy
35595         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35596         Define only for Autoconf versions before 2.62.
35597         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35598         undocumented m4_PACKAGE_VERSION, for consistency with the
35599         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35600         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35601         was introduced in 2.62.
35603 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35605         New 'c-*printf' modules for formatted output in C locale.
35607         New module 'c-vasnprintf'.
35608         * modules/c-vasnprintf: New file.
35609         * lib/c-vasnprintf.c: New file.
35610         * lib/c-vasnprintf.h: New file.
35612         New module 'c-snprintf'.
35613         * modules/c-snprintf: New file.
35614         * modules/c-snprintf-tests: New file.
35615         * lib/c-snprintf.c: New file.
35616         * lib/c-snprintf.h: New file.
35617         * tests/test-c-snprintf.c: New file.
35618         * tests/test-c-snprintf.sh: New file.
35620         New module 'c-vsnprintf'.
35621         * modules/c-vsnprintf: New file.
35622         * modules/c-vsnprintf-tests: New file.
35623         * lib/c-vsnprintf.c: New file.
35624         * lib/c-vsnprintf.h: New file.
35625         * tests/test-c-vsnprintf.c: New file.
35626         * tests/test-c-vsnprintf.sh: New file.
35628         New module 'c-vasprintf'.
35629         * modules/c-vasprintf: New file.
35630         * modules/c-vasprintf-tests: New file.
35631         * lib/c-asprintf.c: New file.
35632         * lib/c-vasprintf.c: New file.
35633         * lib/c-vasprintf.h: New file.
35634         * tests/test-c-vasprintf.c  +: New file.
35635         * tests/test-c-vasprintf.sh: New file.
35637         New module 'c-xvasprintf'.
35638         * modules/c-xvasprintf: New file.
35639         * modules/c-xvasprintf-tests: New file.
35640         * lib/c-xasprintf.c: New file.
35641         * lib/c-xvasprintf.c: New file.
35642         * lib/c-xvasprintf.h: New file.
35643         * tests/test-c-xvasprintf.c: New file.
35644         * tests/test-c-xvasprintf.sh: New file.
35646 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35648         argp: better 'inline'
35649         Use extern-inline module to declare extern inline functions.
35650         This avoids some bogus warning diagnostics.  Problem discovered
35651         when modifying GNU tar to use the manywarnings module.
35652         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35653         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35654         Define based on extern-inline.
35655         * modules/argp (Depends-on): Add extern-inline.
35657 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35659         filemode, sys_stat: Handle MPX files a la AIX.
35660         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35661         * lib/sys_stat.in.h (S_ISMPX): New macro.
35662         * tests/test-sys_stat.c: Add tests for MPX files.
35664 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35666         x-to-1: honor $PERL
35667         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35668         a chance to use his preferred version of Perl.  This is typically
35669         required by Darwin users whose default /usr/bin/perl does not have all
35670         the libraries required by help2man, and who need to use their MacPorts
35671         installation of Perl instead.
35673 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35675         gnu-web-doc-update: add all the new files, even in new directories
35676         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35677         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35678         Use it.
35679         (main): Don't use cvsutils to get the list of unknown files,
35680         just add all the existing files and directories.
35682 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35684         gnu-web-doc-update: improve --help
35685         * build-aux/gnu-web-doc-update: Move comments into --help.
35687 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35689         mountlist: recognize more "dummy" file systems
35690         * lib/mountlist.c (ME_DUMMY_0):
35691         Add these dummy FS names to the list:
35692         - "debugfs" virtual filesystem for kernel debugging
35693         - "devpts" PTY slave filesystem
35694         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35695         - "fusectl" control filesystem for FUSE
35696         - "mqueue" enumerates POSIX message queues
35697         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35698         - "sysfs" is for exporting kernel objects
35699         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35701 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35703         extern-inline: avoid incompatibility with Darwin Libc
35704         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35705         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35706         Problem reported by Akim Demaille in
35707         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35709 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35711         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35712         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35713         let it handle password prompting.
35715 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35717         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35718         * lib/canonicalize.c (canonicalize_filename_mode):
35719         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35720         fetching the current directory.  Don't overrun the beginning of
35721         rpath if there's no slashes after the MS-Windows drive letter.
35723 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35725         maint.mk: avoid extra forks
35726         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35727         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35728         So use that instead of "$(shell test -f FILE && echo FILE)".
35730 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35732         vasnprintf: fix ASCII_ONLY typo
35733         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35734         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35735         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35736         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35737         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35739 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35741         list, oset, xlist, xoset: fix extern inline issue with C99
35742         This was introduced by my recent changes for 'inline'.
35743         Problem reported for gettext by Daiki Ueno in
35744         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35745         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35746         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35747         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35748         (gl_list_previous_node, gl_list_get_at)
35749         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35750         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35751         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35752         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35753         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35754         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35755         (gl_list_iterator_free, gl_sortedlist_search)
35756         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35757         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35758         (gl_sortedlist_remove):
35759         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35760         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35761         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35762         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35763         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35764         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35765         (gl_list_add_at, gl_sortedlist_add):
35766         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35767         Wrap these extern decls inside "#if 0", because they are implemented
35768         as inline functions, and extern inline is not what's wanted here.
35769         It would simplify these .h files to remove the extern decls entirely,
35770         although a downside would be less-clear separation between
35771         specification and implementation.
35773 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35775         sys_stat: no 'static inline'
35776         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35777         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35779         extern-inline: no 'static inline'
35780         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35781         Do not require AC_C_INLINE.
35782         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35783         'static inline', for older compilers.
35785         snippet/warn-on-use: no 'static inline'
35786         * build-aux/snippet/warn-on-use.h:
35787         Remove unnecessary 'inline' in comment.
35789         rbtree-list, rbtreehash-list: no 'static inline'
35790         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35791         * lib/gl_anytree_list2.h (node_at):
35792         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35793         (gl_oset_first, add_nodes_to_buckets):
35794         Now static, not static inline.
35796         regex: no 'static inline'
35797         * lib/regex_internal.c (calc_state_hash):
35798         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35799         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35800         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35801         Now static, not static inline.
35802         (inline) [__GNUC__ < 3 && _LIBC]:
35803         Remove macro; no longer needed.
35805         xvasprintf: no 'static inline'
35806         * lib/xvasprintf.c (xstrcat):
35807         Now static, not static inline.
35808         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35809         Do not require AC_C_INLINE.
35811         parse-datetime, parse-duration: no 'static inline'
35812         * lib/parse-datetime.y (to_uchar):
35813         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35814         (scale_n_add):
35815         Now static, not static inline.
35816         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35817         * modules/parse-duration (configure.ac):
35818         Do not require AC_C_INLINE.
35820         getaddrinfo: no 'static inline'
35821         * lib/getaddrinfo.c (validate_family):
35822         Now static, not static inline.
35823         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35824         Do not require AC_C_INLINE.
35826         ftruncate, fts, lstat, openat, raise: no 'static inline'
35827         * lib/ftruncate.c (chsize_nothrow):
35828         * lib/fts.c (opendirat, diropen):
35829         * lib/lstat.c (orig_lstat):
35830         * lib/openat.c (orig_openat):
35831         * lib/raise.c (raise_nothrow):
35832         Now static, not static inline.
35833         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35834         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35835         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35836         * m4/openat.m4 (gl_PREREQ_OPENAT):
35837         * m4/raise.m4 (gl_PREREQ_RAISE):
35838         Do not require AC_C_INLINE.
35840         fflush, stat: no 'static inline'
35841         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35842         (clear_ungetc_buffer, disable_seek_optimization)
35843         (restore_seek_optimization, update_fpos_cache):
35844         * lib/stat.c (orig_stat):
35845         Now static, not static inline.
35846         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35847         (update_fpos_cache):
35848         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35849         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35850         * m4/stat.m4 (gl_PREREQ_STAT):
35851         Do not require AC_C_INLINE.
35853         error, filevercmp: no 'static inline'
35854         * lib/error.c (is_open, flush_stdout):
35855         * lib/filevercmp.c (order):
35856         Now static, not static inline.
35857         * m4/error.m4 (gl_PREREQ_ERROR):
35858         * modules/filevercmp (configure.ac):
35859         Do not require AC_C_INLINE.
35861         dup, execute, fatal-signal, etc.: no 'static inline'
35862         * lib/dup.c (dup_nothrow):
35863         * lib/execute.c (nonintr_close, nonintr_open):
35864         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35865         * lib/fopen.c (orig_fopen):
35866         * lib/freadseek.c (freadptrinc):
35867         * lib/freopen.c (orig_freopen):
35868         * lib/fstat.c (orig_fstat, fstat_nothrow):
35869         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35870         (get_rusage_as_via_iterator):
35871         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35872         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35873         * lib/isatty.c (_isatty_nothrow):
35874         * lib/open.c (orig_open):
35875         * lib/read.c (read_nothrow):
35876         * lib/sigprocmask.c (signal_nothrow):
35877         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35878         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35879         * lib/wait-process.c (unregister_slave_subprocess):
35880         * lib/write.c (write_nothrow):
35881         Now static, not static inline.
35882         * lib/spawn-pipe.c (nonintr_open): Define only if
35883         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35884         * m4/dup.m4 (gl_PREREQ_DUP):
35885         * m4/execute.m4 (gl_EXECUTE):
35886         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35887         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35888         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35889         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35890         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35891         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35892         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35893         * m4/open.m4 (gl_PREREQ_OPEN):
35894         * m4/read.m4 (gl_PREREQ_READ):
35895         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35896         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35898         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35899         * m4/write.m4 (gl_PREREQ_WRITE):
35900         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35901         Do not require AC_C_INLINE.
35903         c-strtod, memcoll, readutmp: no 'static inline'
35904         * lib/c-strtod.c (c_locale):
35905         * lib/memcoll.c (strcoll_loop):
35906         * lib/readutmp.c (desirable_utmp_entry):
35907         Now static, not static inline.
35908         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35909         * m4/memcoll.m4 (gl_MEMCOLL):
35910         * m4/readutmp.m4 (gl_READUTMP):
35911         Do not require AC_C_INLINE.
35913         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35914         * lib/arctwo.c (to_uchar):
35915         * lib/md4.c (set_uint32):
35916         * lib/md5.c (set_uint32):
35917         * lib/sha1.c (set_uint32):
35918         * lib/sha256.c (set_uint32):
35919         * lib/sha512.c (set_uint64):
35920         Now static, not static inline.  This is a bit simpler, and doesn't
35921         affect performance with GCC and default optimization.
35922         * m4/arctwo.m4 (gl_ARCTWO):
35923         * m4/md4.m4 (gl_MD4):
35924         * m4/md5.m4 (gl_MD5):
35925         * m4/sha1.m4 (gl_SHA1):
35926         * m4/sha256.m4 (gl_SHA256):
35927         * m4/sha512.m4 (gl_SHA512):
35928         Do not require AC_C_INLINE.
35930         cond, lock, thread: better 'inline'
35931         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35932         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35933         New macros.  Use them instead of static inline, for header functions.
35934         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35935         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35936         * lib/glthread/lock.c (gl_waitqueue_init)
35937         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35938         * lib/glthread/thread.c (get_current_thread_handle):
35939         Change 'static inline' to 'inline'.
35940         * lib/glthread/cond.h, lib/glthread/thread.h:
35941         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35942         * m4/cond.m4 (gl_COND):
35943         * m4/lock.m4 (gl_PREREQ_LOCK):
35944         * m4/thread.m4 (gl_THREAD):
35945         Do not require AC_C_INLINE.
35946         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35948         chdir-long, cycle-check, savewd: better 'inline'
35949         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35950         (find_non_slash):
35951         * lib/cycle-check.c (is_zero_or_power_of_two):
35952         * lib/savewd.c (savewd_delegating):
35953         Change 'static inline' to 'inline'.
35954         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35955         Replace all remaining uses of 'static inline' with it.
35956         * lib/savewd.h:
35957         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35958         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35959         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35960         * m4/savewd.m4 (gl_SAVEWD):
35961         Do not require AC_C_INLINE.
35962         * modules/savewd (Depends-on): Add extern-inline.
35964         base32, base64: no need for 'inline'
35965         * lib/base32.c (to_uchar, get_8, decode_8):
35966         * lib/base64.c (to_uchar, get_4, decode_4):
35967         Change 'static inline' to 'inline'.
35968         * m4/base32.m4 (gl_PREREQ_BASE32):
35969         * m4/base64.m4 (gl_PREREQ_BASE64):
35970         Do not require AC_C_INLINE.
35972         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35973         * lib/gl_array_oset.c (gl_array_nx_add_at):
35974         (gl_array_remove_at):
35975         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35976         (add_to_bucket, remove_from_bucket):
35977         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35978         Change 'static inline' to 'static', as it's simpler to omit
35979         'inline' unless there's a significant performance advantage.
35981         list, oset, xlist, xoset, xsublist: simplify via extern inline
35982         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35983         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35984         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35985         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35986         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35987         New macro.  Replace all uses of 'static inline' with it.
35988         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35989         instead of as macros FOO that are defined to static inline
35990         functions FOO_inline.
35991         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35992         * lib/gl_xsublist.c:
35993         Reimplement from scratch, by defining the corresponding *_INLINE
35994         macro and including the corresponding .h file.  This is simpler.
35995         * modules/list, modules/oset, modules/xlist, modules/xoset:
35996         (Files): Remove m4/gl_list.m4.
35997         (configure.ac): Remove gl_LIST.
35998         * m4/gl_list.m4: Remove.
35999         * modules/list, modules/oset, modules/xlist, modules/xoset:
36000         * modules/xsublist:
36001         (Depends-on): Depend on extern-inline, not inline.
36003         xalloc: better 'inline'
36004         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
36005         New macro.  Replace all uses of 'static inline' with it.
36006         (static_inline): Remove.
36007         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36008         Let 'extern inline' do the work automatically, instead of doing
36009         it by hand.
36010         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
36011         Remove.  All uses removed.
36012         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
36014         gethrxtime: better 'inline'
36015         * lib/xtime.c: New file.
36016         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
36017         * lib/xtime.h (XTIME_INCLUDE):
36018         New macros.  Replace all uses of 'static inline' with them.
36019         * lib/gethrxtime.c (gethrxtime): Define only if
36020         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
36021         this source file is now always compiled, because of the extern inline.
36022         * lib/gethrxtime.h, lib/xtime.h:
36023         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36024         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
36025         if gethrtime works, as they're not needed in that case.
36026         (gl_XTIME): Do not require AC_C_INLINE.
36027         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
36028         compiled now.  Move the check into gl_GETHRXTIME.
36029         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
36030         (Depends-on): Add extern-inline.
36031         (configure.ac): gethrxtime is always compiled now.
36032         (lib_SOURCES): Add gethrxtime.c.
36034         wctype-h: better 'inline'
36035         * lib/wctype-h.c: New file.
36036         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
36037         New macro.  Replace all uses of 'static inline' with it.
36038         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36039         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
36040         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
36041         (Depends-on): Add extern-inline.
36043         unistd: better 'inline'
36044         * lib/unistd.c: New file.
36045         * lib/unistd.in.h (_GL_UNISTD_INLINE):
36046         New macro.  Replace all uses of 'static inline' with it.
36047         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36048         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
36049         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
36050         (Depends-on): Add extern-inline.
36052         sys_socket: better 'inline'
36053         * lib/sys_socket.c: New file.
36054         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
36055         New macro.  Replace all uses of 'static inline' with it.
36056         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36057         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
36058         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
36059         (Depends-on): Add extern-inline.
36061         stdio: better 'inline'
36062         * lib/stdio.c: New file.
36063         * lib/stdio.in.h (_GL_STDIO_INLINE):
36064         New macro.  Replace all uses of 'static inline' with it.
36065         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36066         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
36067         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
36068         (Depends-on): Add extern-inline.
36070         sigaction: better 'inline'
36071         * lib/sig-handler.c: New file.
36072         * lib/sig-handler.h (SIG_HANDLER_INLINE):
36073         New macro.  Replace all uses of 'static inline' with it.
36074         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36075         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36076         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
36077         (Depends-on): Add extern-inline.
36079         selinux-h: better 'inline'
36080         * lib/se-context.c, lib/se-selinux.c: New files.
36081         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
36082         * lib/se-context.in.h (SE_CONTEXT_INLINE):
36083         New macro.  Replace all uses of 'static inline' with it.
36084         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36085         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
36086         New macro.  Replace all uses of 'static inline' with it.
36087         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36088         * modules/selinux-h (Files, lib_SOURCES):
36089         Add lib/se-context.c, lib/se-selinux.c.
36090         (Depends-on): Add extern-inline.
36091         (configure.ac): Do not require AC_C_INLINE.
36093         pthread: better 'inline'
36094         * lib/pthread.c: New file.
36095         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
36096         New macro.  Replace all uses of 'static inline' with it.
36097         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36098         * m4/pthread.m4 (gl_PTHREAD_CHECK):
36099         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
36100         * modules/pthread (Files): Add lib/pthread.c.
36101         (Depends-on): Add extern-inline.
36103         math: better 'inline'
36104         * lib/math.c: New file.
36105         * lib/math.in.h (_GL_MATH_INLINE):
36106         New macro.  Replace all uses of 'static inline' with it.
36107         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36108         * m4/math_h.m4 (gl_MATH_H):
36109         Do not require AC_C_INLINE.
36110         * modules/math (Files, lib_SOURCES):
36111         Add lib/math.c.
36112         (Depends-on): Add extern-inline.
36114         count-one-bits: better 'inline'
36115         * lib/count-one-bits.c: New file.
36116         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
36117         New macro.  Replace all uses of 'static inline' with it.
36118         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36119         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
36120         Do not require AC_C_INLINE.
36121         * modules/count-one-bits (Files, lib_SOURCES):
36122         Add lib/count-one-bits.c.
36123         (Depends-on): Add extern-inline.
36125         count-leading-zeros: better 'inline'
36126         * lib/count-leading-zeros.c: New file.
36127         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
36128         New macro.  Replace all uses of 'static inline' with it.
36129         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36130         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
36131         Do not require AC_C_INLINE.
36132         * modules/count-leading-zeros (Files, lib_SOURCES):
36133         Add lib/count-leading-zeros.c.
36134         (Depends-on): Add extern-inline.
36136         bitrotate: better 'inline'
36137         * lib/bitrotate.c: New file.
36138         * lib/bitrotate.h (BITROTATE_INLINE):
36139         New macros.
36140         Replace all uses of 'static inline' with them.
36141         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36142         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
36143         (Depends-on): Add extern-inline.
36144         (configure.ac): Do not require AC_C_INLINE.
36146 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
36148         maint.mk: avoid gratuitous failure
36149         Reported by Stefano Lattarini in
36150         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
36151         * top/maint.mk (public-submodule-commit): Quote more safely.
36153 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
36155         canonicalize, canonicalize-lgpl: support MS-Windows file names
36156         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
36157         for test cases, which it'd be nice to add at some point.
36158         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
36159         * lib/canonicalize.c (canonicalize_filename_mode):
36160         * lib/canonicalize-lgpl.c (__realpath):
36161         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
36162         slash is at the beginning of the file name.  Use ISSLASH, instead
36163         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
36164         the first character with '/'.  Test for
36165         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
36166         with a drive letter.
36167         * lib/canonicalize.c (SLASHES): New macro.
36168         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
36170 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
36172         fts: introduce FTS_VERBATIM
36173         * lib/fts_.h (FTS_VERBATIM): New bit flag.
36174         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
36175         * lib/fts.c (fts_open): Honor it.
36177 2012-11-09  Pádraig Brady  <P@draigBrady.com>
36179         getlogin-tests: allow errno == ENXIO
36180         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36181         with errno == ENXIO (No controlling tty).
36182         getlogin_r-tests: Likewise. Also allow errno == ENOENT
36183         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
36184         with errno == ENOENT.  This was reported to happen in various
36185         situations on GNU/Linux.
36187 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36189         getlogin-tests: allow errno == ENOENT
36190         * tests/test-getlogin.c (main): Skip tests if getlogin fails
36191         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
36192         when running a test in an Emacs shell buffer.
36194 2012-11-08  Jim Meyering  <jim@meyering.net>
36196         tests/nap.h: avoid warning about unused variable
36197         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
36199         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
36200         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
36201         white space before each of the special-cased file names, to avoid
36202         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
36203         in http://bugs.gnu.org/12830.
36205 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36207         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
36208         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
36209         fails with errno == EBADF when fd is opened with O_PATH.
36210         Reported by Jim Meyering in
36211         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
36212         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36213         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
36215 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36217         test-utimens: speed up by taking shorter naps
36218         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
36219         New functions.
36220         (nap): Use them, to do a better job of guessing the delay.
36221         On Fedora 17 with ext4 atop md atop hard disks, this made
36222         test-utimens run 10x faster, because the test napped for
36223         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
36224         <http://bugs.gnu.org/12820#11>.
36226 2012-11-07  Jim Meyering  <jim@meyering.net>
36228         mountlist.c: fix a compilation failure
36229         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
36230         I introduced while transforming commit v0.0-7683-g613bcb6
36232 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36234         errno: port to LynxOS 178 2.2.2
36235         Problem reported by Joel Brobecker in
36236         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
36237         * doc/posix-headers/errno.texi (errno.h): Document this.
36238         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
36239         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
36240         Supply a string for EILSEQ.
36241         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
36243 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
36245         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
36246         Linux kernel 2.6.39 introduced O_PATH (see
36247         <http://lwn.net/Articles/433854/>) and this is a better fallback
36248         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
36249         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
36250         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
36251         * lib/fcntl.in.h (O_ACCMODE):
36252         * tests/test-fcntl-h.c (main):
36253         Do not reject O_ACCMODE merely because it has more than the
36254         minimal number of bits, as POSIX allows extensions here.
36256 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36258         mountlist: do not classify a bind-mounted dir entry as "dummy"
36259         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36260         the "none"-testing clause.
36261         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36262         exception for bind-mounted directories.
36264 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36266         quote: provide a means to escape strings with nul characters
36267         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36268         (quote, quote_n): Rename formal arguments for consistency with
36269         quotearg.
36271 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36273         test-raise: don't assume 199 is an invalid signal
36274         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36276         sh-quote-tests: port to Solaris 9
36277         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36278         Problem reported by Dagobert Michelsen in
36279         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36281 2012-10-28  Jim Meyering  <jim@meyering.net>
36283         maint.mk: rename a new configurable variable
36284         * top/maint.mk (_gl_translatable_string_re): Rename from
36285         translation-markers: _gl_ prefix to insulate from user Makefile code,
36286         and the _re suffix to inform that it's a regular expression.
36288 2012-10-26  Eric Blake  <eblake@redhat.com>
36290         maint.mk: let packages tweak sc_po_check pattern
36291         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36292         finding files with other translation markers.
36294 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36296         euidaccess: speed up 'configure' on GNU hosts
36297         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36298         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36299         it's needed only in this case.  Use AC_CHECK_DECLS, not
36300         AC_CHECK_DECLS_ONCE.
36301         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36302         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36304         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36306 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36308         fchmodat, fchownat, fstatat: port to non-inlining compilers
36309         Problem reported for FreeBSD 9 by Jim Meyering in
36310         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36311         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36312         New files, which define FCHMODAT_INLINE etc.
36313         * lib/fchmodat.c (FCHMODAT_INLINE):
36314         * lib/fchownat.c (FCHOWNAT_INLINE):
36315         * lib/fstatat.c (FSTATAT_INLINE):
36316         Remove, as chmodat.c etc. now do this.
36317         * modules/fchmodat (Files): Add lib/chmodat.c.
36318         * modules/fchownat (Files): Add lib/chownat.c.
36319         * modules/fstatat (Files): Add lib/statat.c.
36321 2012-10-15  Jim Meyering  <jim@meyering.net>
36323         fchmodat.c, fchownat.c: compile-impeding typos
36324         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36325         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36326         Introduced in commit v0.0-7636-gd202279.
36328 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36330         fcntl-h: support GNU flags like O_IGNORE_CTTY
36331         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36332         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36333         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36334         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36335         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36336         Define to 0 if not already defined.
36337         * tests/test-fcntl-h.c: Test these new flags.
36339 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36341         faccessat, etc.: support AT_FDCWD-only use
36342         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36343         this function only if its first argument is AT_FDCWD.
36344         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36345         values other than AT_FDCWD, so it doesn't want all the openat
36346         machinery with fchdir etc.
36347         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36348         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36349         * modules/unlinkat (Files):
36350         Remove lib/openat-priv.h, as at-internal supplies this file.
36351         Removing this file here allows us to support programs like Emacs
36352         that avoid at-internal.
36354         faccessat: speed up 'configure' on mainstream hosts
36355         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36356         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36357         since it's only on unusual platforms that we need to check for
36358         'access', and it's better not to slow 'configure' down on all
36359         platforms.
36361         faccessat: port to Solaris 10
36362         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36363         Needed on Solaris 10, which doesn't have AT_EACCESS,
36364         so we need the Gnulib fcntl.h, which defines it.
36366 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36367         canonicalize: fix C89 compilation
36368         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36369         declarations so C89 is supported.  Also remove the comment
36370         referencing memorty allocation as the suggested feature could
36371         not be implemented as suggested.
36372         Reported by Michael Goffioul.
36374 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36376         group-member: omit unnecessary dependencies
36377         This is for Emacs, which has its own allocator and where we
36378         don't want to use xalloc.
36379         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36380         since we no longer use xmalloc.  Do not include stdbool.h, since
36381         the changes below happen to remove the only use of bool.
36382         (GROUPBUF_SIZE): New constant.
36383         (struct group_info): Remove n_groups member.  Add groupbuf member.
36384         This lets us get the groups without using malloc, usually.
36385         (free_group_info, get_group_info): Adjust to this.
36386         (get_group_info): Return the number of groups found, or -1 on error.
36387         Use plain malloc not xmalloc, and treat its failure as if there
36388         are no groups, as the user already loses in case of error.
36389         (group_member): Simplify, based on changes to get_group_info.
36390         * modules/group-member (Depends-on): Remove dependencies on
36391         xalloc and stdbool.  Add dependency on xalloc-oversized.
36393 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36395         gethrxtime: port to C++
36396         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36398 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36400         ptsname: fix macro-name typo
36401         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36403 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36405         inttostr: Relax license.
36406         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36408 2012-10-03  Eric Blake  <eblake@redhat.com>
36410         ptsname_r: support ptys returned by FreeBSD posix_openpt
36411         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36412         lives in /dev/pts/.
36414 2012-10-02  Eric Blake  <eblake@redhat.com>
36416         pselect: reject invalid file descriptors
36417         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36418         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36419         * modules/pselect (Depends-on): Add dup2.
36420         * doc/posix-functions/pselect.texi (pselect): Document this.
36422         select: reject invalid file descriptors
36423         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36424         * lib/select.c (rpl_select) [!win32]: Work around it.
36425         * modules/select (Depends-on): Add dup2.
36426         * doc/posix-functions/select.texi (select): Document this.
36428         select: enhance test
36429         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36430         New functions.
36431         (test_function): Enhance test.
36432         (do_select_bad_fd): Avoid any stale errno values.
36434         ptsname: reject invalid file descriptors
36435         http://www.austingroupbugs.net/view.php?id=503
36436         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36437         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36438         * modules/stdlib (Makefile.am): Replace witness.
36439         * lib/stdlib.in.h (ptsname): Allow for replacement.
36440         * modules/ptsname (configure.ac): Trigger replacement.
36441         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36443 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36445         hash-pjw-bare: new module
36446         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36447         * lib/hash-pjw-bare.h: Likewise.
36448         * modules/hash-pjw-bare: New file.
36449         * MODULES.html.sh (Misc): Add it.
36451 2012-10-02  Eric Blake  <eblake@redhat.com>
36453         manywarnings: cater to more gcc infelicities
36454         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36455         -Wuninitialized without -O.
36457 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36459         select, poll tests: Make setsockopt invocation effective.
36460         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36461         the bind() call.
36462         * tests/test-select.h (open_server_socket): Likewise.
36464 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36466         sockets, sys_stat: restore AC_C_INLINE
36467         This undoes the 2012-09-22 patch.
36468         * m4/sockets.m4 (gl_SOCKETS):
36469         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36470         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36471         and does not support plain 'inline'.  Reported by Bruno Haible in
36472         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36474 2012-09-30  Bruno Haible  <bruno@clisp.org>
36476         localeconv tests: Avoid test failure on OpenIndiana.
36477         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36478         skip the 'grouping' and 'mon_grouping' tests.
36479         Reported by Jim Meyering.
36481 2012-09-30  Bruno Haible  <bruno@clisp.org>
36483         havelib: Follow libtool developments.
36484         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36485         Suggested by Simon Josefsson.
36487 2012-09-29  Jim Meyering  <meyering@redhat.com>
36489         fstatat.c: fix a compile-impeding typo
36490         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36491         Introduced in commit v0.0-7636-gd202279.
36492         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36494 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36496         extern-inline: provide a -Wundef safe config.h
36497         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36498         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36499         to produce a -Wundef warning free config.h.
36501 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36503         hash-pjw: relax license to LGPLv2+
36504         * modules/hash-pjw (License): Relax, with consent of author.
36506 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36508         maint.mk: fix strict vs. lazy variable issues with RELEASE
36509         * top/maint.mk (_equal): New function.
36510         (member_check): Strip the result to avoid spurious spaces.
36511         (url_dir_list): Do not use ifeq, which is strict, as it will
36512         require RELEASE_TYPE to be defined.
36513         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36514         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36515         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36516         (announcement_Cc_beta,announcement_mail_headers_beta)
36517         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36518         (release): Do not depend on $(release-type), as it forces its
36519         evaluation.  Bounce to it.
36521 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36523         maint.mk: formatting changes
36524         * top/maint.mk: Indent bodies of if's.
36526 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36528         maint.mk: factor the validation of RELEASE_TYPE
36529         With help from Jim Meyering.
36530         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36531         * top/maint.mk (_empty, _sp): Move their definition earlier.
36532         (member-check, release-type): New.
36533         Use the latter instead of $(RELEASE_TYPE).
36534         Remove now useless local checks.
36536 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36538         maint.mk: provide "make upload" to ease uploading
36539         See
36540         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36541         Do not depend simply on the current $(VERSION), as there may have been
36542         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36543         as "make release-commit" already does.
36545         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36546         "make TYPE".
36548         * top/maint.mk (upload_command, upload, release): New.
36549         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36550         (VERSION): first word of $(RELEASE) is always right.
36551         (emit_upload_commands): Adjust.
36552         * top/README-release: Update.
36554 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36556         maint.mk: silent rules
36557         With help from Stefano Lattarini.
36558         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36559         (announcement): Use $(AM_V_at).
36561 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36563         localename: port gl_locale_name_thread_unsafe to FreeBSD
36564         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36565         and use the simpler FreeBSD implementation on Mac OS X as well.
36566         Original idea suggested by Ed Maste in
36567         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36569 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36571         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36572         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36573         * lib/mbuiter.c, lib/xsize.c: New files.
36574         * lib/binary-io.h (BINARY_IO_INLINE):
36575         * lib/eealloc.h (EEALLOC_INLINE):
36576         * lib/mbfile.h (MBFILE_INLINE):
36577         * lib/mbiter.h (MBITER_INLINE):
36578         * lib/mbuiter.h (MBUITER_INLINE):
36579         * lib/xsize.h (XSIZE_INLINE):
36580         New macros.
36581         Replace all uses of 'static inline' with them.
36582         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36583         * m4/eealloc.m4 (gl_EEALLOC):
36584         * m4/mbfile.m4 (gl_MBFILE):
36585         * m4/mbiter.m4 (gl_MBITER):
36586         * m4/xsize.m4 (gl_XSIZE):
36587         Do not require AC_C_INLINE.
36588         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36589         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36590         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36591         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36592         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36593         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36594         * modules/binary-io, modules/eealloc, modules/mbfile:
36595         * modules/mbiter, modules/mbuiter:
36596         (Depends-on): Add extern-inline.
36598         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36599         * lib/pipe-filter-aux.c: New file.
36600         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36601         Replace all uses of 'static inline' with it.
36602         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36603         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36604         (filter_retcode): No real need for inline here.
36605         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36606         (Files): Add lib/pipe-filter-aux.c.
36607         (Depends-on): Add extern-inline.
36608         (configure.ac): Do not require AC_C_INLINE.
36609         (lib_SOURCES): Add pipe-filter-aux.c.
36611         fdutimensat: omit unnecessary AC_C_INLINE
36612         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36614         fchmodat, fchownat, fstatat: use extern-inline
36615         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36616         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36617         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36618         New macros.
36619         * lib/openat.h:
36620         Replace all uses of 'static inline' with them.
36621         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36622         * modules/fchmodat, modules/fchownat, modules/fstatat:
36623         * modules/openat-h:
36624         (Depends-on):
36625         Add extern-inline.
36626         (configure.ac): Remove AC_C_INLINE.
36628         acl, mbchar, priv-set: use extern-inline
36629         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36630         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36631         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36632         New macros.
36633         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36634         Replace all uses of 'static inline' with it.
36635         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36636         * m4/acl.m4 (gl_FUNC_ACL):
36637         * m4/mbchar.m4 (gl_MBCHAR):
36638         * m4/priv-set.m4 (gl_PRIV_SET):
36639         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36640         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36641         Add extern-inline.
36643         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36644         * m4/sockets.m4 (gl_SOCKETS):
36645         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36646         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36647         environments where it's already guaranteed to work, so we needn't
36648         check for it at 'configure'-time.
36650         tls-tests: omit unnecessary 'inline'
36651         * tests/test-tls.c (perhaps_yield): No longer inline.
36652         Simplicity and portability trump efficiency in test cases.
36654         utimens-tests: avoid unnecessary 'inline'
36655         * modules/fdutimensat-tests (configure.ac):
36656         * modules/futimens-tests (configure.ac):
36657         * modules/utimens-tests (configure.ac):
36658         * modules/utimensat-tests (configure.ac):
36659         Remove AC_C_INLINE.
36660         * tests/test-utimens-common.h (ctime_compare):
36661         No longer inline.  Simplicity and portability trump efficiency here.
36663         misc: don't limit commentary to inline functions
36664         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36665         * lib/xalloc-oversized.h, lib/xsize.h:
36666         Contrast macros to functions in general, not just to inline functions,
36667         when the commentary does not apply only to inline functions.
36669 2012-09-20  Jim Meyering  <meyering@redhat.com>
36671         non-recursive-gnulib-prefix-hack: new module
36672         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36673         the file that originated in Bison.
36674         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36675         largely copied from a snippet that resided in bison's configure.ac.
36676         * modules/non-recursive-gnulib-prefix-hack: New file.
36677         * MODULES.html.sh (Support for maintaining and releasing projects):
36678         Add it.
36680 2012-09-18  Jim Meyering  <meyering@redhat.com>
36682         maint.mk: generalize _gl_tight_scope for non-recursive make
36683         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36684         that *.h would describe additional .h files in the directory
36685         specified by $(_gl_TS_dir).  I.e., add this...
36686         (_gl_TS_other_headers): New variable.
36688         maint.mk: exempt trailing blanks found in "binary" files
36689         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36690         "binary" files, as reported by grep.  Suggested 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: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36696         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36697         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36698         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36700 2012-09-17  Jim Meyering  <meyering@redhat.com>
36702         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36703         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36704         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36705         It is not in the same category as "exit (0)" or "exit (1)", and
36706         besides, I know of no symbolic name for that 77.  Reported by
36707         Richard W.M. Jones in
36708         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36710 2012-09-17  Jim Meyering  <meyering@redhat.com>
36712         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36713         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36714         all uses of #define, not just those that start in column 1.
36715         Richard W.M. Jones reported a false positive in
36716         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36718 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36720         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36721         * lib/localcharset.c (locale_charset) [DARWIN7]:
36722         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36723         as these two values are incompatible.  Problem reported by Max Horn.
36724         For more discussion, please see
36725         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36727         doc: document sticky-EOF issue
36728         * doc/posix-functions/fgetc.texi (fgetc):
36729         * doc/posix-functions/fgets.texi (fgets):
36730         * doc/posix-functions/fread.texi (fread):
36731         * doc/posix-functions/fscanf.texi (fscanf):
36732         * doc/posix-functions/getc.texi (getc):
36733         * doc/posix-functions/getchar.texi (getchar):
36734         * doc/posix-functions/scanf.texi (scanf):
36735         Mention that glibc and default Solaris do not conform to
36736         C99 and POSIX-2001 or later, with respect to how getchar
36737         etc. behave when feof reports nonzero.
36739 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36741         poll: fix poll(0, NULL, msec)
36742         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36743         but nfd is 0.  In that case poll should behave like select.
36745 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36746             Paolo Bonzini  <bonzini@gnu.org>
36748         poll: fix for systems that can't recv() on a non-socket
36749         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36750         is readable.  In this case POLLHUP will not be supported.
36751         * doc/posix-functions/poll.texi: Document this.
36753 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36755         poll/select: document portability problems not fixed by Gnulib.
36756         * doc/posix-functions/poll.texi: poll does not work well on
36757         pipes under Windows.  It has the same limitations as select on
36758         BeOS.
36759         * doc/posix-functions/select.texi: select does not work well
36760         on pipes under Windows.
36762 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36764         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36765         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36766         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36767         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36769 2012-09-06  Eric Blake  <eblake@redhat.com>
36771         net_if: give more details about the bug being fixed
36772         * doc/posix-headers/net_if.texi: Add clarification.
36774 2012-09-05  Eric Blake  <eblake@redhat.com>
36776         net_if: new module
36777         * modules/net_if: New module, borrowing ideas from netinet_in.
36778         * m4/net_if_h.m4: New file.
36779         * lib/net_if.in.h: Likewise.
36780         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36781         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36782         * tests/test-net_if.c: Make function checks conditional.
36783         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36785 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36787         readutmp: fix non-portable UT_PID use
36788         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36789         Use `UT_PID (u) > 0' as absolute condition.
36791 2012-09-04  Jim Meyering  <meyering@redhat.com>
36793         fts: reduce two or more trailing spaces to just one, usually
36794         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36795         or more slashes, trim all but the final one.  But if a name consists
36796         solely of two slashes, don't modify it.  If it consists solely of
36797         three or more slashes, strip all but one.
36799         This is part of the solution to a minor problem with rm:
36800         it would print a bogus ELOOP diagnostic when failing to remove
36801         the slash-decorated name of a symlink-to-directory:
36803             $ mkdir d && ln -s d s && env rm -r s/
36804             rm: cannot remove 's': Too many levels of symbolic links
36806         With the change below and a trivial don't-trim-trailing-slashes
36807         adjustment to remove.c, it does this:
36809             $ env rm -r s/
36810             rm: cannot remove 's/': Not a directory
36812         Improved by: Eric Blake
36814         fts: when there is no risk of overlap, use memcpy, not memmove
36815         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36817 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36819         stdbool: be more compatible with mixed C/C++ compiles
36820         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36821         Define to bool, true, false, respectively, as GCC's builtin
36822         stdbool.h does.  Problem reported by Michael Goffioul in
36823         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36825 2012-08-28  Jim Meyering  <meyering@redhat.com>
36827         revert last change: it was not needed
36828         * tests/test-vc-list-files-git.sh: There's already a test for
36829         a working git, just below.
36831 2012-08-28  Jim Meyering  <meyering@redhat.com>
36833         tests: test-vc-list-files-git.sh: skip if git is not available
36834         * tests/test-vc-list-files-git.sh: Skip this test when git is
36835         not available.
36837 2012-08-26  Bruno Haible  <bruno@clisp.org>
36839         gnulib-tool: Remove no-op option --no-changelog.
36840         * gnulib-tool (func_usage): Don't mention --no-changelog.
36841         (do_changelog): Remove variable.
36842         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36844 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36846         doc: remove fdl-1.2.texi
36847         It is no longer used or maintained, and its use of @acronym
36848         is problematic.  See the thread containing
36849         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36850         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36851         * doc/old-licenses/fdl-1.2.texi: Remove.
36853         execinfo: port to FreeBSD
36854         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36855         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36856         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36857         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36859 2012-08-23  Jim Meyering  <meyering@redhat.com>
36861         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36862         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36863         to placate gcc's -Wold-style-declaration.
36865 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36867         doc: do not use @acronym
36868         * doc/inet_ntoa.texi (inet_ntoa):
36869         * doc/parse-datetime.texi (Seconds since the Epoch)
36870         (Specifying time zone rules):
36871         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36872         Don't use @acronym.  Problem reported by John Darlington in
36873         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36875 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36877         stdnoreturn: port to newer GCCs
36878         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36879         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36880         Problem reported by Jim Meyering in
36881         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36882         Also, rename the 'test' function to a void a clash with the
36883         already-supplied 'main' function; this fixes a bug that incorrectly
36884         rejected GCC 4.7.1's <stdnoreturn.h>.
36885         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36886         Document GCC problem.
36888 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36890         pipe-filter: fix comment typo
36891         * lib/pipe-filter.h: Mention correct function.
36893 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36895         execinfo: new module
36896         This is for Emacs.  Currently, it provides a no-effect stub
36897         on all platforms where it does not already work.
36898         It already works on glibc-based systems, and on Solaris 11.
36899         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36900         New files.
36901         * doc/glibc-headers/execinfo.texi (execinfo.h):
36902         * MODULES.html.sh (Misc): Document it.
36904 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36906         extern-inline: support old GCC 'inline'
36907         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36908         if available.  This applies to GCC versions 2.7 through 4.2, or
36909         when newer GCC is using -fgnu89-inline.  The goal is to address
36910         some of the performance issues mentioned by Bruno Haible in
36911         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36913 2012-08-20  Eric Blake  <eblake@redhat.com>
36915         maint.mk: avoid redundant file name in message
36916         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36917         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36918         (sc_makefile_path_separator_check): Remove bogus $(ME).
36920 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36922         timer-time: fix link order when static linking on glibc
36923         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36924         _after_ -lrt so that it's significant.
36926 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36928         timespec: omit unnecessary AC_C_INLINE
36929         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36931         stat-time: omit unnecessary AC_C_INLINE
36932         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36933         Do not require AC_C_INLINE.
36935         ignore-value: omit unnecessary AC_C_INLINE
36936         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36938         sys_select: avoid 'static inline'
36939         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36941         mktime: avoid 'static inline'
36942         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36943         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36945 2012-08-19  Bruno Haible  <bruno@clisp.org>
36947         gnulib-tool: Improve coding style.
36948         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36949         func_emit_lib_Makefile_am.
36950         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36952 2012-08-19  Bruno Haible  <bruno@clisp.org>
36954         gnulib-tool: Fix indentation.
36955         * gnulib-tool (func_import): Fix indentation.
36957 2012-08-19  Bruno Haible  <bruno@clisp.org>
36959         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36960         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36961         on the list of removed files.
36963 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36965         test-parse-datetime: avoid glibc leap-second glitch
36966         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36967         with the 2012 rules.  Problem reported by Bruce Dubbs in
36968         <http://bugs.gnu.org/12206>.
36970 2012-08-14  Bruno Haible  <bruno@clisp.org>
36972         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36973         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36974         from argument.
36975         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36977 2012-08-14  Eric Blake  <eblake@redhat.com>
36979         ldexp: relax license
36980         * modules/ldexp (License): Trivial relax, since the module only
36981         provides a permissively licensed m4 file.
36983 2012-08-13  Bruno Haible  <bruno@clisp.org>
36985         gnulib-tool: Fix persistence of --witness-c-macro option.
36986         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36987         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36989 2012-08-11  Eric Blake  <eblake@redhat.com>
36991         count-leading-zeros: use a lookup table on non-gcc compilers
36992         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36993         alternate implementation, suggested by Jim Meyering.
36995 2012-08-10  Eric Blake  <eblake@redhat.com>
36997         count-leading-zeros: new module
36998         * modules/count-leading-zeros: New module.
36999         * m4/count-leading-zeros.m4: New file.
37000         * lib/count-leading-zeros.h: Likewise.
37001         * modules/count-leading-zeros-tests: New test.
37002         * tests/test-count-leading-zeros.c: New file.
37003         * MODULES.html.sh (Integer arithmetic functions): Document it.
37005 2012-08-07  Simon Josefsson  <simon@josefsson.org>
37006             Jim Meyering  <meyering@redhat.com>
37008         maintainer-makefile: Fix syntax error with dash.
37009         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
37010         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
37012 2012-08-05  Jim Meyering  <meyering@redhat.com>
37014         extern-inline: also ignore -Wmissing-declarations
37015         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
37016         required with gcc-4.8.0-to-be.
37018         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
37019         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
37020         for /error ?([^,]*)/.  This avoids false-positives for strings like
37021         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
37023 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
37025         gnumakefile: better interaction with Automake-NG
37026         * modules/gnumakefile [Makefile.am]: The makefiles generated by
37027         Automake-NG always contain a definition of VPATH, even in non-VPATH
37028         builds (its value being simply '.' in that case).  So, in the
37029         'clean-GNUmakefile' rule, to determine whether running under a
37030         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
37031         '$(VPATH)' expands to the empty string.
37033 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
37035         base64: Use extern C scope in header file, for C++.
37036         * lib/base64.h: Add C++ namespace protection.
37038 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
37040         stat-time, timespec, u64: support naive out-of-dir builds
37041         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
37042         Use '#include "foo.h"', not '#include <foo.h>', when including
37043         one's own interface.  This works better when configuring with
37044         out-of-directory builds, since packages need not add an
37045         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
37047 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
37049         utimens: use extern-inline
37050         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
37051         * lib/utimens.h: Add copyright notice, since this is now large enough
37052         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37053         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
37054         * modules/utimens (Depends-on): Add extern-inline.
37056         u64: use extern-inline
37057         * lib/u64.c: New file.
37058         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37059         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
37060         * modules/u64 (Files): Add lib/u64.c.
37061         (Depends-on): Add extern-inline.
37062         (configure.ac): No need to require AC_C_INLINE, since extern-inline
37063         does that now.
37064         (lib_SOURCES): Add u64.c.
37066         timespec: use extern-inline
37067         * lib/timespec.c: New file.
37068         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37069         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
37070         * modules/timespec (Files): Add lib/timespec.c.
37071         (Depends-on): Add extern-inline.
37072         (lib_SOURCES): Add timespec.c.
37074         stat-time: use extern-inline
37075         * lib/stat-time.c: New file.
37076         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37077         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
37078         * modules/stat-time (Files): Add lib/stat-time.c.
37079         (Depends-on): Add extern-inline.
37080         (lib_SOURCES): Add stat-time.c.
37082         extern-inline: new module
37083         * modules/extern-inline, m4/extern-inline.m4: New files.
37084         This is for better support of 'extern inline' a la ISO C99,
37085         with a portable alternative on compilers that do not support
37086         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
37087         of the Emacs executable, when compiled with debugging disabled,
37088         which is a typical way that Emacs is built while developing.
37090 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
37092         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
37093         * build-aux/do-release-commit-and-tag: Move variable definitions
37094         together.
37095         ($branch): Instead of defaulting to "master", default to the current
37096         branch (as gnu-web-doc-update does).
37097         (help): Display the current values of the option arguments.
37098         * top/maint.mk (release-commit): New.
37099         * top/README-release: Simplify the corresponding step.
37101 2012-07-30  Eric Blake  <eblake@redhat.com>
37103         passfd: fix comment on recvfd
37104         * lib/passfd.c (recvfd): Fix comment.
37105         Reported by Jann Horn <jannhorn@googlemail.com>.
37107 2012-07-30  Jim Meyering  <meyering@redhat.com>
37109         maint.mk: avoid a sub-shell
37110         * top/maint.mk (release-prep): Remove unneeded sub-shell.
37112 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37114         maint.mk: use silent-rules support from Automake
37115         * top/maint.mk (news-check, vc-diff-check, announcement)
37116         (no-submodule-changes, alpha beta stable, release-prep)
37117         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
37119 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37121         maint.mk: provide a web-manual-update target
37122         * top/maint.mk: here.
37123         * top/README-release: Use it to simplify the web manual update step.
37125 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37127         README-release: shorten the circuit to post a news
37128         * top/README-release: Point directly to the news submission form.
37130 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37132         gnu-web-doc-update: fix --help
37133         * build-aux/gnu-web-doc-update: The information "top level" was written
37134         twice.
37136 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
37138         maint.mk: absolute VPATH issue
37139         * top/maint.mk (release-prep): Help Git find .git/.
37140         From Jim Meyering.
37142 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37144         gitlog-to-changelog: fix previous change
37145         * build-aux/gitlog-to-changelog: Fix condition.
37146         Add missing ";".
37148 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37150         gitlog-to-changelog: don't expect .git to be in $srcdir
37151         Reported by Bruno Haible.
37152         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
37153         * build-aux/gitlog-to-changelog (&git_dir_option): New.
37154         Use it.
37156 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
37158         maint.mk: absolute VPATH build fix
37159         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
37160         $(srcdir) is not a parent of $(builddir).
37162 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
37164         clean-temp: Fix memory leak.
37165         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
37166         'files' members of tmpdir.
37168 2012-07-27  Jim Meyering  <meyering@redhat.com>
37170         maint.mk: new rule: refresh-gnulib-patches
37171         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
37172         Use this rule to refresh them.
37173         * top/maint.mk (refresh-gnulib-patches): New rule.
37175 2012-07-24  Bruno Haible  <bruno@clisp.org>
37177         gnulib-tool: Fix handling of inctests variable.
37178         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
37179         Reported by Nick Bowler <nbowler@elliptictech.com>.
37181 2012-07-22  Bruno Haible  <bruno@clisp.org>
37183         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
37184         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
37185         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37186         Remove exemption for getpass.h.
37187         Suggested by Eric Blake.
37189 2012-07-20  Eric Blake  <eblake@redhat.com>
37191         verify: document conflict with -Wnested-externs
37192         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
37194         maint.mk: forbid exit(-1)
37195         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
37197 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
37199         fsusage: port back to Solaris
37200         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
37201         error (fsd not declared) on Solaris 10.  Reported privately by
37202         Andrew Borodin.
37204 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
37206         gnu-web-doc-update: fix error messages
37207         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
37209         gnu-web-doc-update: check the requirements.
37210         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
37211         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
37212         * build-aux/bootstrap (find_tool): Comment change.
37214 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
37216         maint.mk: minor simplication.
37217         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
37218         for default values.
37220 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
37222         gitlog-to-changelog: VPATH build issues
37223         If builddir is not a subdirectory of srcdir, running git from it will
37224         fail.
37225         * build-aux/gitlog-to-changelog (--srcdir): New option.
37227 2012-07-15  Bruno Haible  <bruno@clisp.org>
37229         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
37230         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
37231         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
37232         Remove exemption for fpending.h.
37233         Suggested by Eric Blake.
37235 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37237         pthread_sigmask: fix bug on FreeBSD 9
37238         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
37239         Include string.h.
37240         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
37241         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
37242         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
37243         but pthread_sigmask (1729, NULL, NULL) returns zero.
37244         See <http://bugs.gnu.org/11884>.
37245         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
37246         by inspecting whether the main call changed the old mask.
37248 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
37250         README-release: make it more legible
37251         * top/README-release: Improve typography slightly.
37253 2012-07-15  Jim Meyering  <meyering@redhat.com>
37255         maint: require that each sc_... command start with "@"
37256         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37257         "make sc_maint" helps us avoid this nit.
37259 2012-07-15  Jim Meyering  <meyering@redhat.com>
37261         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37262         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37264 2012-07-13  Eric Blake  <eblake@redhat.com>
37266         maint.mk: new syntax check for HAVE_DECL checks
37267         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37268         * cfg.mk
37269         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37270         Exempt some false positives.
37271         Based on a report by Karel Zak.
37273         argp: make HAVE_DECL usage consistent
37274         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37275         macros, not whether they are defined.
37276         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37277         convention with other declaration checks.
37278         Reported by Karel Zak, with suggestions from Paul Eggert.
37280         stat-time: relax license to LGPLv2+
37281         * modules/stat-time (License): Relax, with consent of all authors.
37283         strndup: fix m4 usage error
37284         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37285         defined, to either 0 or 1.
37286         Reported by Karel Zak.
37288 2012-07-11  Jim Meyering  <meyering@redhat.com>
37290         maint: enable the sc_avoid_if_before_free syntax-check rule
37291         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37292         (if_before_free_offenders_): Define.
37293         (if_before_free_basename_re_): Define.
37294         Exempt current files with useless if-before-free.
37296 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37298         gettext: do not assume '#define ... defined ...' behavior
37299         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37300         Do not use '#define FOO ... defined BAR ...', as the C standard says
37301         it's not portable to expect that this works after macro expansion.
37302         Problem reported for gzip by Steven M. Schweda in
37303         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37305 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37307         getloadavg: clean out old Emacs and Autoconf cruft
37308         See Glenn Morris in <http://bugs.gnu.org/11905>.
37309         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37310         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37311         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37312         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37314 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37316         bootstrap: let warn be like tests/init.sh's warn_
37317         Reported by Jim Meyering.
37318         * build-aux/bootstrap (warn): Remove, replaced by...
37319         (warnf_, warn_): these.
37320         Adjust callers.
37321         Shorten messages that no longer fit in 80 columns.
37323 2012-07-09  Bruno Haible  <bruno@clisp.org>
37325         getopt: Simplify after Emacs changed.
37326         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37327         (gl_GETOPT_IFELSE): Remove macro.
37329 2012-07-09  Jim Meyering  <meyering@redhat.com>
37331         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37332         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37334         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37335         Bugs in both of those conspired to make the
37336         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37337         _sc_search_regexp's handling of non-empty $in_files would filter
37338         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37339         choice of in_files value meant there would be no match in most
37340         projects, due to the presence of two or more Makefile.in files.
37341         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37342         Fix a bug in how a non-empty $$in_files was processed:
37343         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37344         in spite of the name, it's a regexp, not a list of file names.
37346 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37348         getloadavg, getopt: fix commentary re configure.in
37349         Autoconf is deprecating the name 'configure.in', so change it to
37350         to the new name 'configure.ac' in a couple of places.
37351         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37352         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37353         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37354         Emacs has renamed it to configure.ac, and it no longer refers
37355         to these macros anyway.
37357         timespec: mark functions with const attributes
37358         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37359         Mark with _GL_ATTRIBUTE_CONST.
37361 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37363         canonicalize[-lgpl]: handle "guessing" values when cross-building
37364         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37365         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37366         matches "*yes" instead of just "yes".  Regression introduced in commit
37367         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37369 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37370             Bruno Haible  <bruno@clisp.org>
37372         canonicalize: make the right guess when cross-compiling to GNU
37373         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37374         determine whether cross-compiling to glibc systems, so as to
37375         include GNU/Hurd.
37377 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37379         timespec-sub: avoid duplicate include
37380         * lib/timespec-sub.c: Do not include <config.h> twice.
37381         Reported by Juanma Barranquero.
37383 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37385         bootstrap: use a more consistent error reporting scheme
37386         * build-aux/bootstrap (warn, die): New.
37387         Use them.
37389 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37391         sys_time: allow too-wide tv_sec
37392         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37393         timeval even if tv_sec is wider than time_t.  This allows
37394         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37395         as without this patch gnulib replaces struct timeval
37396         and OpenBSD futimes therefore has a type mismatch.
37397         * doc/posix-headers/sys_time.texi: Mention this.
37399         pthread: check for both pthread_create and pthread_join
37400         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37401         alter the check so that it tests for both pthread_create and
37402         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37403         Suggested by Bruno Haible and Richard Yao in
37404         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37406         parse-datetime: doc tuneup
37407         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37408         spacing issues.
37410 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37412         do-release-commit-and-tag: fix the previous commit
37413         * build-aux/do-release-commit-and-tag: Actually the test was right,
37414         but the comment and the error message were misleading.
37415         Fix comment, and improve error message.
37416         Perform check first, so that NEWS is not modified uselessly.
37418         do-release-commit-and-tag: fix typo
37419         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37420         _not_ start with a stub.
37422 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37424         pthread: check for pthread_create, not pthread_join
37425         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37426         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37427         pthread_join in libc.  I hope this removes the need for all the
37428         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37429         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37431 2012-07-04  Jim Meyering  <meyering@redhat.com>
37433         parse-datetime: fix failure to diagnose invalid input
37434         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37435         rather than diagnosing the invalid input.  Now it reports this:
37436         date: invalid date '\260'
37437         * lib/parse-datetime.y (to_uchar): Define.
37438         (yylex): Don't sign-extend "other" bytes.
37439         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37440         Thanks to Bruno Haible for the patch to this file.
37441         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37442         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37444 2012-07-03  Jim Meyering  <meyering@redhat.com>
37446         bootstrap: do not require now-removed build-aux/missing
37447         Now that build-aux/missing is, er, missing, bootstrap would
37448         silently fail.
37449         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37450         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37451         no longer part of gnulib.
37452         Diagnose the failure.
37454 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37456         alloca: add support for HP NonStop TNS/E native
37457         * lib/alloca.in.h (alloca): Support the new host.
37458         From a suggestion by Joachim Schmitz in
37459         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37461 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37463         fsusage: remove code not needed on non GNU/Linux systems.
37465         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37466         Don't include headers no longer needed in this case.
37467         * lib/fsusage.c [STAT_STATVFS &&
37468         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37469         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37471 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37473         fsusage: include files needed for glibc 2.6 fallback
37474         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37475         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37476         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37477         Problem reported by Ludovic Courtès in
37478         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37480         fsusage: avoid needless check on GNU/Linux
37481         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37482         on GNU/Linux systems, since it can't possibly work.
37484 2012-07-01  Bruno Haible  <bruno@clisp.org>
37486         log: Fix an autoconf >= 2.64 warning.
37487         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37488         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37490 2012-06-28  Bruno Haible  <bruno@clisp.org>
37492         log10f: Fix possible configuration problem.
37493         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37494         $LOGF_LIBM.
37495         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37497 2012-06-28  Bruno Haible  <bruno@clisp.org>
37499         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37500         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37501         not gl_cv_func_unlink_works.
37502         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37504 2012-06-27  Eric Blake  <eblake@redhat.com>
37506         config: drop scripts that automake says are not independent
37507         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37508         * build-aux/elisp-comp: Delete.
37509         * build-aux/missing: Likewise.
37510         * build-aux/ylwrap: Likewise.
37511         * modules/elisp-comp: Likewise.
37512         * MODULES.html.sh: Drop mention of elisp-comp.
37513         * NEWS: Mention this.
37515 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37517         root-uid: new module
37518         This is for portability to Tandem's NonStop Kernel.
37519         * lib/root-uid.h, modules/root-uid: New files.
37520         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37521         * lib/write-any-file.c, tests/test-sethostname2.c:
37522         Include "root-uid.h".
37523         * lib/euidaccess.c (euidaccess):
37524         * lib/pt_chown.c (main):
37525         * lib/unlinkdir.c (cannot_unlink_dir):
37526         * lib/write-any-file.c (can_write_any_file):
37527         * m4/mknod.m4 (gl_FUNC_MKNOD):
37528         * tests/test-sethostname2.c (geteuid, main):
37529         Don't assume ROOT_UID == 0.
37530         * modules/euidaccess (Depends-on):
37531         * modules/pt_chown (Depends-on):
37532         * modules/sethostname-tests (Depends-on):
37533         * modules/unlinkdir (Depends-on):
37534         * modules/write-any-file (Depends-on):
37535         Add root-uid.
37537         regex: use locale-independent comparison for codeset name
37538         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37539         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37540         for codeset name.
37541         * lib/regex_internal.h: Do not include <strings.h>, since we
37542         no longer use strcasecmp.
37543         * modules/regex (Depends-on): Remove strcase.
37545 2012-06-23  Bruno Haible  <bruno@clisp.org>
37547         getopt-posix: No longer guarantee that option processing is resettable.
37548         * doc/posix-functions/getopt.texi: Drop description of problem with
37549         internal state. Fix info about mingw and msvc9.
37550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37551         option processing by getopt(). Run three test programs instead of one.
37552         Simplify cross-compilation guess.
37553         * NEWS: Mention the change.
37554         Reported by Rich Felker <dalias@aerifal.cx>.
37556 2012-06-26  Bruno Haible  <bruno@clisp.org>
37558         argp, regex: Ensure strcasecmp gets declared.
37559         * lib/argp-help.c: Include <strings.h>.
37560         * lib/regex_internal.h: Likewise.
37561         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37563 2012-06-24  Bruno Haible  <bruno@clisp.org>
37565         ptsname_r: Make it consistent with ptsname on AIX.
37566         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37567         implementation as for OSF/1.
37568         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37569         a pty master.
37571         ptsname_r: Make it consistent with ptsname on OSF/1.
37572         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37573         OSF/1.
37575 2012-06-24  Bruno Haible  <bruno@clisp.org>
37577         ttyname_r: Fix result on OSF/1, Solaris.
37578         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37580 2012-06-24  Bruno Haible  <bruno@clisp.org>
37582         ptsname_r: Add support for Solaris.
37583         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37584         Solaris.
37586         ptsname_r: Fix test failure on native Windows.
37587         * modules/ptsname_r (Depends-on): Add isatty.
37589         ptsname_r: Fix test failures on IRIX, Solaris.
37590         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37591         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37592         accordingly.
37593         * lib/ptsname_r.c: Include <fcntl.h>.
37594         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37595         set errno if fd is invalid.
37596         * tests/test-isatty.c (main): Update comments.
37598 2012-06-24  Bruno Haible  <bruno@clisp.org>
37600         ptsname test: Extend test.
37601         * tests/test-ptsname.c: Include <errno.h>.
37602         (main): Test behaviour with invalid file descriptor.
37604 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37606         time: fix obsolete comment
37607         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37608         reference to HAVE_STRUCT_TIMESPEC in comment.
37610 2012-06-23  Bruno Haible  <bruno@clisp.org>
37612         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37614         does not handle abbreviated long options with equivalent
37615         disambiguations, set gl_replace_getopt to yes.
37616         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37618 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37620         time_r: fix typo that always overrode localtime_r decl
37621         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37622         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37623         not in a standard include.
37625 2012-06-22  Bruno Haible  <bruno@clisp.org>
37627         Write "Mac OS X" instead of "MacOS X".
37628         * README: Write "Mac OS X" instead of "MacOS X".
37629         * build-aux/bootstrap: Likewise.
37630         * build-aux/install-reloc: Likewise.
37631         * lib/acl-internal.h: Likewise.
37632         * lib/acl_entries.c: Likewise.
37633         * lib/argp-ba.c: Likewise.
37634         * lib/argp-pv.c: Likewise.
37635         * lib/config.charset: Likewise.
37636         * lib/copy-acl.c: Likewise.
37637         * lib/csharpexec.c: Likewise.
37638         * lib/euidaccess.c: Likewise.
37639         * lib/fbufmode.c: Likewise.
37640         * lib/fflush.c: Likewise.
37641         * lib/file-has-acl.c: Likewise.
37642         * lib/filemode.h: Likewise.
37643         * lib/fpurge.c: Likewise.
37644         * lib/freadable.c: Likewise.
37645         * lib/freadahead.c: Likewise.
37646         * lib/freading.c: Likewise.
37647         * lib/freadptr.c: Likewise.
37648         * lib/freadseek.c: Likewise.
37649         * lib/fseeko.c: Likewise.
37650         * lib/fseterr.c: Likewise.
37651         * lib/fsusage.c: Likewise.
37652         * lib/fwritable.c: Likewise.
37653         * lib/fwriting.c: Likewise.
37654         * lib/get-rusage-as.c: Likewise.
37655         * lib/get-rusage-data.c: Likewise.
37656         * lib/getdomainname.c: Likewise.
37657         * lib/idpriv-drop.c: Likewise.
37658         * lib/idpriv-droptemp.c: Likewise.
37659         * lib/localcharset.c: Likewise.
37660         * lib/locale.in.h: Likewise.
37661         * lib/localename.c: Likewise.
37662         * lib/mbsrtowcs-state.c: Likewise.
37663         * lib/nproc.c: Likewise.
37664         * lib/passfd.c: Likewise.
37665         * lib/posix_openpt.c: Likewise.
37666         * lib/printf-parse.c: Likewise.
37667         * lib/progreloc.c: Likewise.
37668         * lib/safe-read.h: Likewise.
37669         * lib/safe-write.h: Likewise.
37670         * lib/sched.in.h: Likewise.
37671         * lib/set-mode-acl.c: Likewise.
37672         * lib/signal.in.h: Likewise.
37673         * lib/stdint.in.h: Likewise.
37674         * lib/stdio-impl.h: Likewise.
37675         * lib/stdlib.in.h: Likewise.
37676         * lib/strtod.c: Likewise.
37677         * lib/sys_select.in.h: Likewise.
37678         * lib/tcgetsid.c: Likewise.
37679         * lib/unistd.in.h: Likewise.
37680         * lib/unlockpt.c: Likewise.
37681         * lib/vasnprintf.c: Likewise.
37682         * lib/vma-iter.c: Likewise.
37683         * lib/wcsrtombs-state.c: Likewise.
37684         * m4/acl.m4: Likewise.
37685         * m4/acosl.m4: Likewise.
37686         * m4/asinl.m4: Likewise.
37687         * m4/atanl.m4: Likewise.
37688         * m4/c-stack.m4: Likewise.
37689         * m4/cosl.m4: Likewise.
37690         * m4/expl.m4: Likewise.
37691         * m4/extensions.m4: Likewise.
37692         * m4/fdatasync.m4: Likewise.
37693         * m4/fmal.m4: Likewise.
37694         * m4/frexp.m4: Likewise.
37695         * m4/frexpf.m4: Likewise.
37696         * m4/frexpl.m4: Likewise.
37697         * m4/fsusage.m4: Likewise.
37698         * m4/getdomainname.m4: Likewise.
37699         * m4/getloadavg.m4: Likewise.
37700         * m4/getopt.m4: Likewise.
37701         * m4/gettext.m4: Likewise.
37702         * m4/gnulib-common.m4: Likewise.
37703         * m4/intdiv0.m4: Likewise.
37704         * m4/intlmacosx.m4: Likewise.
37705         * m4/largefile.m4: Likewise.
37706         * m4/ldexpl.m4: Likewise.
37707         * m4/link-follow.m4: Likewise.
37708         * m4/locale-ar.m4: Likewise.
37709         * m4/locale-fr.m4: Likewise.
37710         * m4/locale-ja.m4: Likewise.
37711         * m4/locale-tr.m4: Likewise.
37712         * m4/locale-zh.m4: Likewise.
37713         * m4/locale_h.m4: Likewise.
37714         * m4/lock.m4: Likewise.
37715         * m4/logl.m4: Likewise.
37716         * m4/mathfunc.m4: Likewise.
37717         * m4/minus-zero.m4: Likewise.
37718         * m4/mktime.m4: Likewise.
37719         * m4/mmap-anon.m4: Likewise.
37720         * m4/multiarch.m4: Likewise.
37721         * m4/nanosleep.m4: Likewise.
37722         * m4/nocrash.m4: Likewise.
37723         * m4/poll.m4: Likewise.
37724         * m4/printf-frexpl.m4: Likewise.
37725         * m4/printf.m4: Likewise.
37726         * m4/signbit.m4: Likewise.
37727         * m4/sinl.m4: Likewise.
37728         * m4/sqrtl.m4: Likewise.
37729         * m4/strerror_r.m4: Likewise.
37730         * m4/tanl.m4: Likewise.
37731         * m4/threadlib.m4: Likewise.
37732         * m4/ttyname_r.m4: Likewise.
37733         * m4/unlink.m4: Likewise.
37734         * m4/visibility.m4: Likewise.
37735         * m4/wcwidth.m4: Likewise.
37736         * tests/minus-zero.h: Likewise.
37737         * tests/test-alloca-opt.c: Likewise.
37738         * tests/test-copy-acl.sh: Likewise.
37739         * tests/test-copy-file.sh: Likewise.
37740         * tests/test-fdatasync.c: Likewise.
37741         * tests/test-file-has-acl.sh: Likewise.
37742         * tests/test-flock.c: Likewise.
37743         * tests/test-fsync.c: Likewise.
37744         * tests/test-localename.c: Likewise.
37745         * tests/test-malloca.c: Likewise.
37746         * tests/test-nonblocking-pipe.h: Likewise.
37747         * tests/test-nonblocking-socket.h: Likewise.
37748         * tests/test-openpty.c: Likewise.
37749         * tests/test-posix_openpt.c: Likewise.
37750         * tests/test-ptsname.c: Likewise.
37751         * tests/test-ptsname_r.c: Likewise.
37752         * tests/test-sameacls.c: Likewise.
37753         * tests/test-select.h: Likewise.
37754         * tests/test-set-mode-acl.sh: Likewise.
37755         * tests/test-snprintf-posix.h: Likewise.
37756         * tests/test-sprintf-posix.h: Likewise.
37757         * tests/test-strtod.c: Likewise.
37758         * tests/test-time.c: Likewise.
37759         * tests/test-vasnprintf-posix.c: Likewise.
37760         * tests/test-vasprintf-posix.c: Likewise.
37761         * doc/acl-resources.txt: Likewise.
37762         * doc/**/*.texi: Likewise.
37763         Reported by Max Horn <max@quendi.de>.
37765 2012-06-22  Bruno Haible  <bruno@clisp.org>
37767         grantpt: Relax requirement regarding invalid file descriptors.
37768         * lib/grantpt.c: Don't include <fcntl.h>.
37769         (grantpt): Don't verify the validity of the file descriptor.
37770         * modules/grantpt (Depends-on): Remove fcntl-h.
37771         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37772         file descriptors.
37773         * doc/posix-functions/grantpt.texi: Document more platforms on which
37774         grantpt succeeds for invalid file descriptors.
37775         Reported by Rich Felker <dalias@aerifal.cx>.
37777 2012-06-22  Bruno Haible  <bruno@clisp.org>
37779         fbufmode test: Don't test unportable behaviour.
37780         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37781         (main): Invoke it three times.
37782         Reported by Szabolcs Nagy <nsz@port70.net>
37783         and Rich Felker <dalias@aerifal.cx>.
37785 2012-06-21  Bruno Haible  <bruno@clisp.org>
37787         gnulib-tool: Refactor inctests variable.
37788         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37789         (func_modules_transitive_closure,
37790         func_modules_transitive_closure_separately,
37791         func_import, func_create_testdir): Update.
37793         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37794         * gnulib-tool: Accept option --without-tests.
37795         (func_usage): Document --without-tests option. Rearrange.
37796         (inctests): Normalize according to the mode.
37797         * NEWS: Mention the change.
37798         Suggested by Simon Josefsson.
37800 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37802         parse-duration test: Avoid spurious output.
37803         * tests/test-parse-duration.sh: Reindent with leading tabs.
37805 2012-06-21  Jim Meyering  <meyering@redhat.com>
37807         maint: disable the strncpy prohibition
37808         * cfg.mk: Do not prohibit strncpy here.
37810 2012-06-21  Bruno Haible  <bruno@clisp.org>
37812         nonblocking: Avoid compilation error on mingw64.
37813         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37814         fscanf.
37815         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37816         * modules/vfscanf (configure.ac): Likewise.
37817         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37818         definition only if stdio.h has prepared it.
37819         Reported by Daniel P. Berrange <berrange@redhat.com>.
37821 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37823         gnulib-tool: Use readlink if it is available.
37824         * gnulib-tool (func_readlink): Choose function more appropriately.
37826 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37828         posixtm-tests: port to buggy compiler
37829         Problem reported by Simon Josefsson in
37830         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37831         * modules/posixtm-tests (Depends-on): Add stdint.
37832         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37833         Now of type int_least64_t, not int64_t, both because that's
37834         what INT64_C returns and because int_least64_t works even
37835         on 72-bit hosts.
37836         (T): Use INT64_C on constants outside the traditional int range,
37837         to work around compiler bug noted by Simon.
37839         mktime: fix integer overflow in 'configure'-time test
37840         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37841         after integer overflow.  Problem reported by Rich Felker in
37842         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37843         Also, don't look for further instances of a bug if we've already
37844         found one instance; this helps 'configure' run faster.
37846 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37848         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37849         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37850         GetVersionEx correctly.
37851         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37853 2012-06-20  Bruno Haible  <bruno@clisp.org>
37855         fdopen: Allow implementations that don't reject invalid fd arguments.
37856         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37857         succeeds.
37858         Reported by Rich Felker <dalias@aerifal.cx>.
37860 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37862         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37863         bring in LIBINTL.
37865 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37867         init.sh: do not rely on autoupated PWD
37868         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37869         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37870         Although Nelson's bug was not necessarily fixed by this patch,
37871         it seems wise to make the change for safety.
37872         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37873         automagically after 'cd'; this is not reliable on older shells.
37874         (setup_): Fail if we cannot cd to temporary directory.
37876 2012-06-19  Bruno Haible  <bruno@clisp.org>
37878         stat, fstat: Avoid warnings on mingw64.
37879         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37880         redefining.
37881         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37882         Reported by Daniel P. Berrange <berrange@redhat.com>.
37884 2012-06-19  Bruno Haible  <bruno@clisp.org>
37886         stdioext: Add support for musl libc.
37888         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37889         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37891         * m4/fseterr.m4: New file.
37892         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37893         function exists.
37894         * modules/fseterr (Files): Add m4/fseterr.m4.
37895         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37896         __fseterr does not exist.
37897         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37899         * lib/freadable.h: Update comment.
37901         * lib/fwritable.h: Update comment.
37903         * lib/freading.h: Update comment.
37905         * lib/fwriting.h: Update comment.
37907         * m4/freadahead.m4: New file.
37908         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37909         that function exists.
37910         * modules/freadahead (Files): Add m4/freadahead.m4.
37911         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37912         __freadahead does not exist.
37913         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37915         * m4/freadptr.m4: New file.
37916         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37917         function exists.
37918         * modules/freadptr (Files): Add m4/freadptr.m4.
37919         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37920         __freadptr does not exist.
37921         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37923         * m4/freadseek.m4: New file.
37924         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37925         exists.
37926         * modules/freadseek (Files): Add m4/freadseek.m4.
37927         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37929         * lib/fpurge.c (fpurge): Update comment.
37931         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37933 2012-06-19  Bruno Haible  <bruno@clisp.org>
37935         *printf-posix: Put more info into config.log.
37936         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37937         exit code into config.log.
37939 2012-06-19  Bruno Haible  <bruno@clisp.org>
37941         getopt-gnu: Fix exit code overflow in autoconf test.
37942         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37943         to keep them below < 128.
37945 2012-06-17  Jim Meyering  <meyering@redhat.com>
37947         maint.mk: fix typo in code to derive GPG key at release time
37948         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37950 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37952         regex: avoid warning when pointers are not long
37953         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37954         and uintptr_t, not long, for portability to hosts where pointers and
37955         long have different sizes.  Issue noted by Daniel P. Berrange in
37956         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37957         and fix suggested by Bruno Haible in
37958         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37960 2012-06-17  Bruno Haible  <bruno@clisp.org>
37962         dummy: Relicense into the public domain.
37963         * modules/dummy (License): Set to "public domain".
37964         Suggested by Reuben Thomas.
37966 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37968         announce-gen: VPATH issues
37969         * build-aux/announce-gen (--srcdir): New option, used to trim the
37970         $srcdir part of the path from $builddir to NEWS.
37971         * top/maint.mk (announcement): Adjust.
37973 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37975         gnu-web-doc-update: VPATH builds
37976         * build-aux/gnu-web-doc-update (--builddir): New option.
37977         Revamp the handling of options.
37978         Prefer $(...) to `...`.
37979         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37980         the template, and it is GNU mktemp specific.
37981         Prefer set -e to long series of &&.
37982         Restore the initial git branch, not "master".
37983         Properly initialize submodules (don't rely only on bootstrap).
37984         Do not reconfigure blindly, use config.status.
37985         * top/README-release: Update instructions for gnu-web-doc-update.
37987 2012-06-11  Jim Meyering  <meyering@redhat.com>
37989         maint.mk: revert most of the previous change re "all these"
37990         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37991         For rationale, see the discussion at
37992         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37994 2012-06-10  Karl Berry  <karl@gnu.org>
37996         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37998         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
38000 2012-06-10  Bruce Korb  <bkorb@gnu.org>
38002         parse-duration: Relicense under LGPLv2+.
38003         * modules/parse-duration (License): Change to LGPLv2+.
38005 2012-06-10  Jim Meyering  <meyering@redhat.com>
38007         maint.mk: prohibit common grammar error: "all these"
38008         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
38009         the list of prohibited word sequences.  It should be "all of these".
38010         * lib/tempname.c (__gen_tempname): Fix one of them.
38012 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38014         do-release-commit-and-tag: support VPATH builds
38015         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
38016         (noteworthy): Defined earlier to factor its value.
38017         (noteworthy_stub): New.
38018         Use it to factor.
38019         (help_version): Split into...
38020         (help, version): these.
38021         Adjust the option processing part.
38022         Support "--option=value" in addition to "--option value".
38023         (builddir): New.
38024         (--builddir): New option.
38025         * top/README-release: Document this.
38026         Reword slightly so that the reader cannot understand that he
38027         has to do these steps before calling do-release-commit-and-tag.
38029 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38031         readme-release: also require announce-gen and maintainer-makefile
38032         * modules/readme-release (Depends-on): here.
38033         * modules/announce-gen, modules/do-release-commit-and-tag,
38034         modules/gnu-web-doc-update, modules/maintainer-makefile
38035         (Description): Point to readme-release.
38037 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
38039         maint.mk: fix VPATH issues.
38040         * top/maint.mk (news-check): GNU Make understand $< very well.
38041         (release-prep): NEWS is in $(srcdir).
38043 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
38045         readme-release: require the promoted modules.
38046         * modules/readme-release (Depends-on): Add
38047         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
38048         in this text.
38050 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38051             Bruno Haible  <bruno@clisp.org>
38053         error, strerror-override: Support mingw64 from Fedora 17.
38054         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
38055         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
38056         EINPROGRESS.
38057         * lib/strerror-override.h (strerror_override): Test it.
38058         * lib/strerror-override.c (strerror_override): Likewise.
38059         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
38061 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38062             Bruno Haible  <bruno@clisp.org>
38064         error, strerror-override: Support mingw64 from Fedora 17.
38065         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
38066         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
38067         * lib/strerror-override.h (strerror_override): Test it.
38068         * lib/strerror-override.c (strerror_override): Likewise.
38070 2012-06-03  Bruno Haible  <bruno@clisp.org>
38072         error, strerror-override: Support new errno values from POSIX:2008.
38073         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
38074         ENOTRECOVERABLE.
38075         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
38076         platforms.
38077         * lib/strerror-override.c (strerror_override): Conditionalize the
38078         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
38079         * lib/strerror-override.h (strerror_override): Declare also if
38080         GNULIB_defined_EOWNERDEAD is defined.
38081         * tests/test-errno.c (e130, e131): New variables.
38082         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
38083         ENOTRECOVERABLE.
38084         Reported by Paolo Bonzini.
38086 2012-05-31  Jim Meyering  <meyering@redhat.com>
38088         savewd: add missing dependency on sys_wait module
38089         * modules/savewd (Depends-on): Add sys_wait, needed at least
38090         for MSVC.  Report and suggested change by Michael Goffioul.
38092 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
38094         system-quote-tests: port to CentOS 5
38095         Problem reported by Tom G. Christensen in
38096         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
38097         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
38099 2012-05-29  Jim Meyering  <meyering@redhat.com>
38101         maint: fix typos in comments and ChangeLog
38102         Culprits identified and fixed mostly automatically using these commands:
38103         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
38104         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
38105         using http://github.com/lyda/misspell-check
38106         * ChangeLog: Fix typos.
38107         * doc/solaris-versions: Likewise.
38108         * lib/regexec.c (re_search_stub): Likewise.
38109         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38111 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
38113         manywarnings: remove duplicate -Wmultichar entry
38114         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
38115         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
38116         so keep the entry marked as documented.
38118 2012-05-27  Karl Berry  <karl@gnu.org>
38120         * config/srclist.txt (mktime.c): remove last libc sync,
38121         perhaps just temporarily.
38123 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
38125         regex: don't assume uint64_t or uint32_t
38126         * lib/regcomp.c (init_word_char): Don't assume that the types
38127         uint64_t and uint32_t exist.  The C standard doesn't guarantee
38128         them, and on some 32-bit compilers there is no uint64_t.
38129         Problem reported by Gianluigi Tiesi in
38130         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
38132 2012-05-25  Jim Meyering  <meyering@redhat.com>
38134         maint.mk: add strncpy-prohibiting syntax-check rule
38135         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
38137 2012-05-24  Jim Meyering  <meyering@redhat.com>
38139         maint.mk: compute $(gpg_key_ID) more portably
38140         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
38141         That use of sed is not portable to some fringe systems.
38142         Reported by Paul Eggert in
38143         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
38145 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38147         mktime: sync from glibc
38148         * config/srclist.txt: Uncomment mktime.c.
38149         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
38150         First, indent with tabs, since glibc uses tabs and doesn't want to
38151         change and we'd rather be identical to glibc.  Also, two small
38152         coding changes:
38153         (isdst_differ): Use &&, not &, as && is the usual style.
38154         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
38155         for clarity.
38157 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38159         announce-gen: du -h is more portable than du --human
38160         * build-aux/announce-gen (sizes): Invoke du with -h instead
38161         of --human.  Accept leading white space in its output.
38163 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38165         announce-gen: Improve diagnostics.
38166         * build-aux/announce-gen: When parsing command line options,
38167         prefer "announce-gen: option --release-type requires an argument"
38168         to "Option release-type requires an argument".
38170 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
38172         maint.mk: gpg_key_ID: use sed more portably
38173         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
38174         the closing brace.
38175         (refresh-po): Fuse two sed invocations into one.
38177 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
38179         gitlog-to-changelog: support the log message format used in Bison.
38180         * build-aux/gitlog-to-changelog: Support --strip-tab and
38181         --strip-cherry-picked.
38183 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
38185         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
38186         the rest of the current time slice to another thread in the current
38187         process. So if the thread that feeds the file decscriptor we're
38188         polling is not in the current process, we get busy-waiting.
38189         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
38190         Patch from Theodore Leblond.
38191         * lib/select.c: Split polling out of the loop that sets the output
38192         fd_sets.  Check for zero result and loop if the wait timeout is
38193         infinite.
38195 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38197         select: Fix build error on IRIX 6.5.
38198         * lib/select.c: Include stddef.h for NULL.
38200 2012-05-21  Simon Josefsson  <simon@josefsson.org>
38202         gc: fix libgcrypt detection on older machines.
38203         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
38204         copyright years because the file has been distributed every year
38205         since it was created.
38207 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
38209         crypto: fix bug in large buffer handling
38210         Problem reported by Serge Belyshev for glibc in
38211         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
38212         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
38213         * lib/md4.c (md4_process_block):
38214         * lib/md5.c (md5_process_block):
38215         * lib/sha1.c (sha1_process_block):
38216         * lib/sha256.c (sha256_process_block):
38217         Don't assume the buffer length is less than 2**32.
38218         * lib/sha512.c (sha512_process_block): Likewise.
38219         Here, the bug is present only in the rare case where the host does
38220         not support uint64_t or where size_t is wider than 64 bits.
38221         Use u64size to work around the problems.
38222         * lib/u64.h (u64size): New macro.
38224 2012-05-15  Pádraig Brady  <P@draigBrady.com>
38226         fsusage: fix block size returned on older Linux 2.6
38228         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
38229         which is available since Linux 2.6.
38230         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
38231         when the member is available so it can be used as a fallback.
38232         * doc/posix-functions/statvfs.texi: Mention the hang issue
38233         on Linux < 2.6.36.
38235 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38237         bootstrap: suppress stderr chatter
38238         * build-aux/bootstrap (insert_sorted_if_absent, main program):
38239         Omit unnecessary chatter to stderr.  The main program chatter
38240         was there only inadvertantly.
38242         bootstrap: .gitignore files created by autopoint, libtool
38243         I ran into this problem when bootstrapping the latest diffutils.
38244         After './bootstrap', 'git status' reported lots of untracked files
38245         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
38246         autopoint and do not need to be version-controlled.
38247         * build-aux/bootstrap: Put into .gitignore the files that
38248         autopoint and libtool create, by keeping track of files that exist
38249         after but not before these programs are run.
38250         (version_controlled_file): Move up.  2nd arg is now full file
38251         name, not base name; this is more convenient.  Put CVS at the end,
38252         as it's now somewhat deprecated.
38254 2012-05-14  Jim Meyering  <meyering@redhat.com>
38256         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38257         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38258         definition.  Reported by Bruno Haible.
38260 2012-05-13  Bruno Haible  <bruno@clisp.org>
38261             Paul Eggert  <eggert@cs.ucla.edu>
38263         binary-io: Define set_binary_mode function.
38264         * lib/binary-io.h (set_binary_mode): New function.
38265         (SET_BINARY): Define in terms of set_binary_mode.
38266         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38267         * tests/test-binary-io.c (main): Accept an argument, and test either
38268         set_binary_mode or SET_BINARY depending on the argument.
38269         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38270         argument. Clean up also t-bin-out0.tmp.
38272 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38274         bootstrap: take advantage of POSIX shell features
38276         The 'bootstrap' script offered by Gnulib script already uses POSIX
38277         shell features (like $((...)) arithmetic expansions) that are not
38278         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38279         means that bootstrap must already be run using a proper POSIX shell,
38280         which will thus provide more features, like ${var#pattern} parameter
38281         expansion or inversion of a command exit status with '!'.  We can
38282         thus use these features to improve the clarity and the performances
38283         of the bootstrap script.
38285         Suggested by Eric Blake.
38287         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38288         of sed/expr plus command substitutions, to save some forks.  While
38289         we are at it, prefer the POSIX $(...) form of command substitution,
38290         rather than the legacy form `...` (since the former is visually
38291         clearer and interacts better with quoting), and prefer the idiom:
38292           "if ! CMD; then ACTION ..."
38293         over the idiom:
38294           "if CMD; then :; else ACTION ..."
38295         which was required by legacy Bourne shells not supporting '!'.
38297 2012-05-12  Bruno Haible  <bruno@clisp.org>
38299         system-quote: Add more comments.
38300         * lib/system-quote.h: Add more comments about wilcards and limitations.
38301         Suggested by Eli Zaretskii <eliz@gnu.org>.
38303         sh-quote, system-quote: Add comments about wildcards.
38304         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38305         * lib/system-quote.h: Likewise.
38306         Reported by Eli Zaretskii <eliz@gnu.org>.
38308 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38310         fsusage: check for GNU/Linux statvfs problem dynamically
38311         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38312         Define STAT_STATFS2_BSIZE too, since in this case the code now
38313         checks dynamically whether statvfs is reliable, falling back on
38314         Linux-style statfs otherwise.
38315         (statvfs_works): New function, for dynamically testing statvfs.
38316         (get_fs_usage) [STAT_STATVFS]: Use it.
38317         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38318         statvfs on GNU/Linux hosts, since it's now done dynamically.
38320 2012-05-10  Bruno Haible  <bruno@clisp.org>
38322         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38323         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38324         '?' character.
38325         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38326         * tests/test-system-quote-main.c (check_all): Check also strings like
38327         "??????????".
38328         Reported by Eli Zaretskii <eliz@gnu.org>.
38330 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38332         _Noreturn: port config.h to gcc -Wundef
38333         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38334         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38335         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38337 2012-05-10  Bruno Haible  <bruno@clisp.org>
38339         system-quote: Refactor.
38340         * lib/system-quote.h (system_quote_copy): Fix comment.
38341         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38342         New functions, extracted from system_quote_copy.
38343         (system_quote_length, system_quote_copy): Use these functions.
38344         Reported by Paul Eggert.
38346 2012-05-08  Bruno Haible  <bruno@clisp.org>
38348         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38349         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38351 2012-05-08  Bruno Haible  <bruno@clisp.org>
38353         Tests for module 'system-quote'.
38354         * modules/system-quote-tests: New file.
38355         * tests/test-system-quote.sh: New file.
38356         * tests/test-system-quote-main.c: New file.
38357         * tests/test-system-quote-child.c: New file.
38359         New module 'system-quote'.
38360         * lib/system-quote.h: New file.
38361         * lib/system-quote.c: New file.
38362         * modules/system-quote: New file.
38364 2012-05-08  Bruno Haible  <bruno@clisp.org>
38366         sh-quote: Make C++ safe and allow multiple inclusion.
38367         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38368         declarations in extern "C".
38370 2012-05-08  Bruno Haible  <bruno@clisp.org>
38372         sh-quote tests: Make tests stricter.
38373         * tests/test-sh-quote.c (check_one): Check the return value of
38374         shell_quote_copy.
38375         (main): Check a string with a CR character. Check a string that
38376         contains UCHAR_MAX.
38378 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38380         warnings.m4: provide a means to specify the program to compile.
38381         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38382         (gl_WARN_ADD): here.
38383         Use gl_AS_VAR_APPEND.
38384         Support an argument to specify the program to compile.
38385         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38386         AC_SUBST the WARN_CFLAGS when they are used.
38387         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38388         leave this to gl_WARN_ADD.
38390 2012-05-08  Eric Blake  <eblake@redhat.com>
38392         doc: recommendations on gettext version
38393         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38394         choice between versions.
38395         * DEPENDENCIES (gettext): Cover both approaches.
38397 2012-05-08  Jim Meyering  <meyering@redhat.com>
38399         init.sh: explain why EXEEXT support uses aliases rather than functions
38400         * tests/init.sh: Add a comment.
38402         init.sh: don't let bash aliases interfere with tests
38403         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38404         is bash.  This avoids problems for those who alias standard commands to
38405         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38406         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38408 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38410         stdint: be more consistent with glibc, SunOS libc
38411         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38412         (gl_int_fast16_t, gl_uint_fast16_t)
38413         (gl_int_fast32_t, gl_uint_fast32_t)
38414         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38415         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38416         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38417         Be consistent with glibc by default, and with SunOS 5.10 and later
38418         if __sun is defined.  This lessens the likelihood of clashes if
38419         code compiled for older hosts is combined with code compiled for
38420         newer ones.  Problem reported by Niels Möller in
38421         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38423 2012-05-07  Eric Blake  <eblake@redhat.com>
38425         isatty: relax license to LGPLv2+
38426         * modules/isatty (License): Relax license.
38428 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38430         stat-size: comment fix
38431         * lib/stat-size.h: Remove obsolete comment about indenting.
38433 2012-05-06  Bruno Haible  <bruno@clisp.org>
38435         Tests for module 'sh-quote'.
38436         * modules/sh-quote-tests: New file.
38437         * tests/test-sh-quote.c: New file.
38439 2012-05-06  Bruno Haible  <bruno@clisp.org>
38441         sh-quote: Improve shell_quote_argv's signature.
38442         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38443         * lib/sh-quote.c (shell_quote_argv): Likewise.
38445 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38447         stdint: document issues with int_fast8_t etc.
38448         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38449         stdint.h substitutes may define these types differently.  See
38450         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38452 2012-05-05  Bruno Haible  <bruno@clisp.org>
38454         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38456         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38457         or 'guessing no (mishandles large arguments)'.
38459 2012-05-05  Bruno Haible  <bruno@clisp.org>
38461         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38462         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38463         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38464         set gl_cv_func_link_follows_symlink to "guessing no".
38466 2012-05-05  Bruno Haible  <bruno@clisp.org>
38468         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38469         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38470         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38471         "guessing no".
38472         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38474 2012-05-05  Bruno Haible  <bruno@clisp.org>
38476         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38477         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38478         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38479         set gl_cv_struct_dirent_d_ino to "guessing yes".
38481 2012-05-05  Bruno Haible  <bruno@clisp.org>
38483         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38484         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38485         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38486         "guessing yes".
38488 2012-05-05  Bruno Haible  <bruno@clisp.org>
38490         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38491         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38492         compiling to a glibc system, set gl_cv_func_signbit and
38493         gl_cv_func_signbit_gcc to "guessing yes".
38495 2012-05-05  Bruno Haible  <bruno@clisp.org>
38497         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38498         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38499         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38500         to "guessing yes".
38501         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38502         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38504 2012-05-05  Bruno Haible  <bruno@clisp.org>
38506         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38507         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38508         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38509         gl_cv_func_realpath_works to "guessing yes".
38511 2012-05-05  Bruno Haible  <bruno@clisp.org>
38513         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38514         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38515         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38517 2012-05-04  Bruno Haible  <bruno@clisp.org>
38519         Tweak last commit.
38520         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38521         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38523 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38525         unistd_h: make it easier to avoid sys_types_h
38526         This is useful for Emacs, which has its own method of porting to
38527         Windows, and which therefore does not need the sys_types_h module.
38528         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38529         code moved here from gl_SYS_TYPES_H.
38530         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38531         using the code directly.
38532         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38533         gl_SYS_TYPES_H.
38534         * modules/sys_types (Files):
38535         * modules/unistd (Files): Add m4/off_t.m4.
38537 2012-05-03  Bruno Haible  <bruno@clisp.org>
38539         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38540         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38541         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38542         "guessing yes" or "guessing no".
38543         (gl_FUNC_LSTAT): Update.
38544         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38545         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38546         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38548 2012-05-03  Bruno Haible  <bruno@clisp.org>
38550         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38551         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38552         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38553         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38554         cross-compiling, choose the first alternative on glibc systems.
38555         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38557 2012-05-03  Bruno Haible  <bruno@clisp.org>
38559         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38560         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38561         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38563 2012-05-03  Bruno Haible  <bruno@clisp.org>
38565         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38566         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38568 2012-05-03  Bruno Haible  <bruno@clisp.org>
38570         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38571         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38572         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38573         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38574         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38575         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38576         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38577         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38578         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38579         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38580         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38581         gl_cv_func_chown_ctime_works to "guessing yes".
38582         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38583         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38584         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38585         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38586         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38588         compiling to glibc systems, set gl_cv_func_open_directory_works to
38589         "guessing yes".
38590         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38591         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38592         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38593         "guessing yes".
38594         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38595         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38596         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38597         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38598         "guessing yes".
38599         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38600         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38601         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38602         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38603         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38604         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38605         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38606         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38607         "guessing yes".
38608         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38609         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38610         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38611         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38612         "guessing yes".
38613         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38614         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38615         "guessing yes".
38616         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38617         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38618         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38619         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38620         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38621         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38622         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38623         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38624         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38625         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38626         "guessing yes".
38627         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38628         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38629         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38630         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38631         "guessing yes".
38632         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38633         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38634         "guessing yes".
38635         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38636         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38637         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38638         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38639         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38640         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38641         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38642         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38643         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38644         "guessing yes".
38645         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38646         compiling to glibc systems, set gl_cv_func_mknod_works to
38647         "guessing yes".
38648         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38649         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38650         "guessing yes".
38651         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38652         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38653         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38654         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38655         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38656         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38657         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38658         compiling to glibc systems, set gl_cv_func_svid_putenv to
38659         "guessing yes".
38660         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38661         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38662         "guessing yes".
38663         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38664         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38665         "guessing yes".
38666         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38667         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38668         to "guessing yes".
38669         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38670         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38671         to "guessing yes".
38672         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38673         compiling to glibc systems, set gl_cv_func_rmdir_works to
38674         "guessing yes".
38675         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38676         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38677         gl_cv_func_unlink_parent_fails to "guessing yes".
38678         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38679         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38680         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38681         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38682         gl_cv_func_rename_dest_works to "guessing yes".
38683         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38684         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38686         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38687         "guessing yes".
38688         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38689         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38690         "guessing yes".
38691         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38692         compiling to glibc systems, set gl_cv_func_setenv_works to
38693         "guessing yes".
38694         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38695         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38696         "guessing yes".
38697         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38698         compiling to glibc systems, set gl_cv_func_sleep_works to
38699         "guessing yes".
38700         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38701         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38702         "guessing yes".
38703         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38704         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38705         "guessing yes".
38706         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38707         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38708         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38709         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38710         "guessing yes".
38711         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38712         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38713         "guessing yes".
38714         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38715         compiling to glibc systems, set gl_cv_func_usleep_works to
38716         "guessing yes".
38717         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38718         compiling to glibc systems, set gl_cv_func_futimesat_works to
38719         "guessing yes".
38721 2012-05-03  Bruno Haible  <bruno@clisp.org>
38723         Say "guessing yes" or "guessing no" when cross-compiling.
38724         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38725         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38726         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38727         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38728         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38729         am_cv_func_working_getline to "guessing yes" or "guessing no".
38730         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38731         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38732         (gl_FUNC_MEMMEM): When cross-compiling, set
38733         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38735         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38736         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38737         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38738         "guessing no".
38739         (gl_FUNC_STRCASESTR): When cross-compiling, set
38740         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38741         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38742         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38743         (gl_FUNC_STRSTR): When cross-compiling, set
38744         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38745         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38746         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38747         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38748         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38750 2012-05-01  Bruno Haible  <bruno@clisp.org>
38752         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38753         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38754         * build-aux/reloc-ldflags: Likewise.
38755         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38757 2012-05-01  Bruno Haible  <bruno@clisp.org>
38759         gnulib-tool: Remove transitional code.
38760         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38761         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38763 2012-05-01  Bruno Haible  <bruno@clisp.org>
38765         getcwd: Fix misindentation.
38766         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38768 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38770         exclude: process exclude and include directives in order
38771         This restores the pre-2009 behavior, and is part of a fix of a
38772         grep bug reported by Quentin Arce in
38773         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38774         * lib/exclude.c (struct exclude): Remove 'tail' member.
38775         (new_exclude_segment): Prepend the new segment instead of appending.
38776         Return void, since that's now more convenient.
38777         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38778         (file_name_matches): Renamed from excluded_file_name_p.
38779         (file_pattern_matches, file_name_matches):
38780         Return true if the pattern matches, not if it excludes.
38781         All callers changed.
38782         (excluded_file_name): Process the list in reverse order;
38783         since the list is now reversed this restores the pre-2009 behavior.
38784         (add_exclude): Adjust to new reversed-order list.  Use local var
38785         rather than macro, for clarity.
38786         * tests/test-exclude7.sh: Adjust to corrected behavior.
38788         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38789         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38790         it's not possible here.  Handle the case of \ at end of pattern
38791         without dumping core.
38792         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38794         _Noreturn: future-proof non-GNU and non-MSVC compilers
38795         * build-aux/snippet/_Noreturn.h (_Noreturn):
38796         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38797         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38798         C11 or later.  This is more likely to work with random future C
38799         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38800         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38802         exclude: handle wildcards with FNM_EXTMATCH
38803         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38804         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38805         comment that "has wildcards" really means "has or may have
38806         wildcards".  Simplify by avoiding the need to call strcspn.
38808 2012-04-29  Bruno Haible  <bruno@clisp.org>
38810         gnulib-tool: Fix list of authors.
38811         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38813 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38815         bootstrap: support Automake-NG in $buildreq
38816         * bootstrap (check_versions): Handle automake and aclocal from
38817         Automake-NG specially.  They can be specified as respectively
38818         the "automake-ng" and "aclocal-ng" requirements.
38820 2012-04-25  Eric Blake  <eblake@redhat.com>
38822         bootstrap: only force latest Makefile.in.in for gettext module
38823         * build-aux/bootstrap (with_gettext): Only install latest
38824         Makefile.in.in for projects requesting bleeding edge gettext.
38826 2012-04-22  Bruno Haible  <bruno@clisp.org>
38828         doc: Mention reason for replacement on glibc/Linux systems.
38829         * doc/posix-functions/dprintf.texi: Mention the problem with special
38830         'long double' values.
38831         * doc/posix-functions/fprintf.texi: Likewise.
38832         * doc/posix-functions/printf.texi: Likewise.
38833         * doc/posix-functions/snprintf.texi: Likewise.
38834         * doc/posix-functions/sprintf.texi: Likewise.
38835         * doc/posix-functions/vdprintf.texi: Likewise.
38836         * doc/posix-functions/vfprintf.texi: Likewise.
38837         * doc/posix-functions/vprintf.texi: Likewise.
38838         * doc/posix-functions/vsnprintf.texi: Likewise.
38839         * doc/posix-functions/vsprintf.texi: Likewise.
38840         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38841         platforms with F_DUPFD_CLOEXEC problems.
38842         * doc/posix-functions/glob.texi: Mention which platforms are affected
38843         by the problem with symbolic links.
38844         * doc/posix-functions/linkat.texi: Mention the problem with
38845         AT_SYMLINK_FOLLOW on Linux.
38847 2012-04-22  Bruno Haible  <bruno@clisp.org>
38849         pwrite: Don't replace on all platforms.
38850         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38852 2012-04-22  Bruno Haible  <bruno@clisp.org>
38854         rint* tests: Avoid gcc warnings.
38855         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38856         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38857         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38859 2012-04-21  Bruno Haible  <bruno@clisp.org>
38861         users.txt: Update.
38862         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38863         switched from CVS to git, bzr, or svn.
38865 2012-04-21  Bruno Haible  <bruno@clisp.org>
38867         Large File Support for native Windows platforms.
38869         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38870         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38872         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38873         type.
38874         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38875         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38876         * doc/posix-headers/sys_types.texi: Mention the effect of the
38877         'largefile' module.
38879         * lib/fcntl.in.h: Add comments about off_t.
38880         * modules/fcntl-h (Depends-on): Add sys_types.
38882         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38883         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38884         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38885         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38886         * modules/unistd (Depends-on): Add sys_types.
38887         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38889         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38890         instead of lseek.
38891         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38892         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38893         * modules/lseek (Depends-on): Add sys_types.
38895         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38896         msvc-nothrow.h.
38897         (SetFileSize): New function.
38898         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38899         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38900         if Large File Support is requested.
38901         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38902         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38904         * lib/stdio.in.h: Add comments about off_t.
38905         * modules/stdio (Depends-on): Add sys_types.
38907         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38908         instead of ftello.
38909         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38910         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38911         (gl_PREREQ_FTELLO): New macro.
38912         * modules/ftello (Depends-on): Add sys_types.
38913         (configure.ac): Incoke gl_PREREQ_FTELLO.
38915         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38916         instead of fseeko.
38917         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38918         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38919         (gl_PREREQ_FSEEKO): New macro.
38920         * modules/fseeko (Depends-on): Add sys_types.
38921         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38923         * lib/sys_stat.in.h: Add comments about off_t.
38924         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38925         64-bit integer for st_size in 'struct stat'.
38926         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38927         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38928         * modules/sys_stat (Depends-on): Add sys_types.
38929         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38931         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38932         instead of stat or _stat.
38934         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38935         'struct _stati64' instead of fstat and 'struct stat'.
38936         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38937         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38939         Reported by Ray Satiro <raysatiro@yahoo.com>.
38941 2012-04-19  Eric Blake  <eblake@redhat.com>
38943         bootstrap: accommodate older libtool
38944         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38945         Reported by Daniel P. Berrange.
38947 2012-04-19  Jim Meyering  <meyering@redhat.com>
38949         announce-gen: avoid failure due to lack of Digest::SHA1
38950         Even with the preferred Digest::SHA available, this script
38951         would fail when the backup module, Digest::SHA1, was not installed.
38952         * build-aux/announce-gen: Quote the conditional use of "use".
38953         Reported by Reuben Thomas in:
38954         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38956         bootstrap: don't let a user's CDPATH setting affect this script
38957         When CDPATH is set, cd will sometimes generate output.
38958         When "cd" is run in a subshell whose output matters, that
38959         surprising-to-some output can cause malfunction.
38960         Unsetting CDPATH turns off this shell "feature."
38961         * build-aux/bootstrap (CDPATH): Unset.
38962         Reported by Reuben Thomas in:
38963         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38964         and inspired by his patch here:
38965         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38967 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38968         and Jim Meyering  <meyering@redhat.com>
38970         maint.mk: catch "see @xref{}" and similar
38971         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38972         prohibit "See also @xref{", "Also see @pxref{", and similar.
38974 2012-04-16  Jim Meyering  <meyering@redhat.com>
38976         bootstrap: really use gnulib's po/Makefile.in.in
38977         * build-aux/bootstrap: Correct the source file name in previous change.
38978         Reported by Akim Demaille.
38980         configmake: correct minor inconsistency in Makefile rule
38981         * modules/configmake (Makefile.am): All other rules like this one
38982         run the final "mv -f ..." in the same backslash-continued command
38983         as the one that does everything else.  This one put the mv -f ...
38984         command on a separate, non-backslash-continued line.
38985         Make it like the others.
38987         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38988         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38989         the one from gettext.  Reported by Akim Demaille.
38991 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38993         Fix recursion of install-* into po directories.
38994         Bison's install-pdf bug reported by Hans Aberg at
38995         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38996         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38997         (install-info, install-pdf, install-ps): New targets.
38999 2012-04-16  Jim Meyering  <meyering@redhat.com>
39001         maint: avoid spurious "make sc_maint" failure
39002         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
39003         exempt all *.class file names, for lib/javaversion.class.
39005 2012-04-15  Bruno Haible  <bruno@clisp.org>
39007         lseek: Make configure test independent of environment.
39008         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
39009         Windows, we know that lseek() on pipes is broken; skip the runtime
39010         test.
39012 2012-04-14  Bruno Haible  <bruno@clisp.org>
39014         stat: Bypass buggy override in mingw64.
39015         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
39016         * lib/stat.c (stat) [mingw64]: Define to _stat.
39017         * doc/posix-functions/stat.texi: Mention mingw64 bug.
39019 2012-04-14  Bruno Haible  <bruno@clisp.org>
39021         pathmax: Fix compilation error on MSVC 9.
39022         * modules/pathmax (Depends-on): Add unistd.
39024 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
39026         README: document pointer comparison assumption
39027         * README (Portability guidelines): Document assumption about
39028         pointer comparisons, in response to a recent bug-gnulib comment by
39029         Jeffrey Kegler.
39031 2012-04-12  Bruno Haible  <bruno@clisp.org>
39033         Tests for module 'getrusage'.
39034         * modules/getrusage-tests: New file.
39035         * tests/test-getrusage.c: New file.
39037         New module 'getrusage'.
39038         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
39039         warn-on-use.h.
39040         (getrusage): New declaration.
39041         * lib/getrusage.c: New file.
39042         * m4/getrusage.m4: New file.
39043         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
39044         is declared.
39045         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
39046         HAVE_GETRUSAGE.
39047         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
39048         snippet/c++defs, snippet/warn-on-use.
39049         (Makefile.am): Update generation of sys/resource.h. Substitute
39050         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
39051         * modules/getrusage: New file.
39052         * doc/posix-functions/getrusage.texi: Mention the new module.
39054 2012-04-12  Bruno Haible  <bruno@clisp.org>
39056         Tests for module 'sys_resource'.
39057         * modules/sys_resource-tests: New file.
39058         * tests/test-sys_resource.c: New file.
39060         New module 'sys_resource'.
39061         * lib/sys_resource.in.h: New file.
39062         * m4/sys_resource_h.m4: New file.
39063         * modules/sys_resource: New file.
39064         * doc/posix-headers/sys_resource.texi: Mention the new module.
39066 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
39068         ioctl: Fix compilation error on mingw.
39069         * lib/ioctl.c: Include <windows.h>.
39070         Also reported by Ray Satiro <raysatiro@yahoo.com>.
39072 2012-04-04  Jim Meyering  <meyering@redhat.com>
39074         regex: correct #pragma guard expression
39075         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
39076         not 4.3.  Correct its cpp guard expression.
39078 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39080         regex: remove unnecessary type punning
39081         Problem reported by Vladimir Serbinenko in
39082         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
39083         * lib/regex.h (struct re_pattern_buffer): Change the type of
39084         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
39085         Fix comment to match code.
39086         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
39087         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
39088         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39089         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
39090         (set_regs):
39091         Omit no-longer-necessary casts.
39093 2012-04-03  Bruno Haible  <bruno@clisp.org>
39095         Tests for module 'ilogbl'.
39096         * modules/ilogbl-tests: New file.
39097         * tests/test-ilogbl.c: New file.
39099         New module 'ilogbl'.
39100         * lib/math.in.h (ilogbl): New declaration.
39101         * lib/ilogbl.c: New file.
39102         * m4/ilogbl.m4: New file.
39103         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
39104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
39105         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
39106         Split sed invocation, to avoid the limit of 100 substitutions of
39107         HP-UX 'sed'.
39108         * modules/ilogbl: New file.
39109         * tests/test-math-c++.cc: Check the declaration of ilogbl.
39110         * doc/posix-functions/ilogbl.texi: Mention the new module.
39112 2012-04-03  Bruno Haible  <bruno@clisp.org>
39114         Tests for module 'ilogbf'.
39115         * modules/ilogbf-tests: New file.
39116         * tests/test-ilogbf.c: New file.
39118         New module 'ilogbf'.
39119         * lib/math.in.h (ilogbf): New declaration.
39120         * lib/ilogbf.c: New file.
39121         * m4/ilogbf.m4: New file.
39122         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
39123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
39124         REPLACE_ILOGBF.
39125         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
39126         REPLACE_ILOGBF.
39127         * modules/ilogbf: New file.
39128         * tests/test-math-c++.cc: Check the declaration of ilogbf.
39129         * doc/posix-functions/ilogbf.texi: Mention the new module.
39131 2012-04-03  Bruno Haible  <bruno@clisp.org>
39133         Tests for module 'ilogb'.
39134         * modules/ilogb-tests: New file.
39135         * tests/test-ilogb.c: New file.
39136         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
39137         tests/test-logb-ieee.h.
39139         New module 'ilogb'.
39140         * lib/math.in.h (ilogb): New declaration.
39141         * lib/ilogb.c: New file.
39142         * m4/ilogb.m4: New file.
39143         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
39144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
39145         REPLACE_ILOGB.
39146         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
39147         REPLACE_ILOGB.
39148         * modules/ilogb: New file.
39149         * tests/test-math-c++.cc: Check the declaration of ilogb.
39150         * doc/posix-functions/ilogb.texi: Mention the new module.
39152 2012-04-03  Bruno Haible  <bruno@clisp.org>
39154         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
39155         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
39156         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
39157         (main): Check their values.
39158         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
39159         problem.
39161 2012-04-03  Bruno Haible  <bruno@clisp.org>
39163         Tests for module 'logbl-ieee'.
39164         * modules/logbl-ieee-tests: New file.
39165         * tests/test-logbl-ieee.c: New file.
39167         New module 'logbl-ieee'.
39168         * modules/logbl-ieee: New file.
39170         Tests for module 'logb-ieee'.
39171         * modules/logb-ieee-tests: New file.
39172         * tests/test-logb-ieee.c: New file.
39174         New module 'logb-ieee'.
39175         * modules/logb-ieee: New file.
39177         Tests for module 'logbf-ieee'.
39178         * modules/logbf-ieee-tests: New file.
39179         * tests/test-logbf-ieee.c: New file.
39180         * tests/test-logb-ieee.h: New file.
39182         New module 'logbf-ieee'.
39183         * modules/logbf-ieee: New file.
39185 2012-04-03  Bruno Haible  <bruno@clisp.org>
39187         Tests for module 'logbl'.
39188         * modules/logbl-tests: New file.
39189         * tests/test-logbl.c: New file.
39191         New module 'logbl'.
39192         * lib/math.in.h (logbl): New declaration.
39193         * lib/logbl.c: New file.
39194         * m4/logbl.m4: New file.
39195         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
39196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
39197         REPLACE_LOGBL.
39198         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
39199         REPLACE_LOGBL.
39200         * modules/logbl: New file.
39201         * tests/test-math-c++.cc: Check the declaration of logbl.
39202         * doc/posix-functions/logbl.texi: Mention the new module.
39204 2012-04-02  Bruno Haible  <bruno@clisp.org>
39206         Tests for module 'logbf'.
39207         * modules/logbf-tests: New file.
39208         * tests/test-logbf.c: New file.
39210         New module 'logbf'.
39211         * lib/math.in.h (logbf): New declaration.
39212         * lib/logbf.c: New file.
39213         * m4/logbf.m4: New file.
39214         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
39215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
39216         REPLACE_LOGBF.
39217         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
39218         REPLACE_LOGBF.
39219         * modules/logbf: New file.
39220         * tests/test-math-c++.cc: Check the declaration of logbf.
39221         * doc/posix-functions/logbf.texi: Mention the new module.
39223 2012-04-02  Bruno Haible  <bruno@clisp.org>
39225         logb tests: More tests.
39226         * tests/test-logb.h: New file, based on tests/test-logb.c and
39227         tests/test-frexp.h.
39228         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
39229         (main): Just invoke test_function.
39230         * modules/logb-tests (Files): Add tests/test-logb.h,
39231         tests/minus-zero.h, tests/randomd.c.
39232         (Makefile.am): Add randomd.c to test_logb_SOURCES.
39234         logb: Provide replacement and workarounds.
39235         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
39236         is 1.
39237         * lib/logb.c: New file.
39238         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
39239         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
39240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
39241         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
39242         * modules/logb (Files): Add lib/logb.c.
39243         (Depends-on): Add isfinite, frexp, isnand.
39244         (configure.ac): Compile the replacement code logb.c if needed.
39245         * tests/test-math-c++.cc: Check the declaration of logb.
39246         * doc/posix-functions/logb.texi: Mention the replacement and the bug
39247         with subnormal numbers.
39249 2012-04-02  Bruno Haible  <bruno@clisp.org>
39251         log10* tests: Speed up.
39252         * tests/test-log10.h (test_function): Reduce amount of random numbers
39253         to test.
39255 2012-04-01  Bruno Haible  <bruno@clisp.org>
39257         logf-ieee: Fix test whether logf works.
39258         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39260 2012-04-01  Bruno Haible  <bruno@clisp.org>
39262         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39263         * lib/log10l.c: Include <float.h>
39264         (log10l): On IRIX, normalize the +Infinity value.
39265         * modules/log10l (Depends-on): Add 'float'.
39266         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39267         +Infinity.
39269         log10f-ieee: Work around test failure on NetBSD 5.1.
39270         * m4/log10f-ieee.m4: New file.
39271         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39272         test whether log10f works with a negative argument. Replace it if not.
39273         * lib/log10f.c (log10f): For negative arguments, return NaN.
39274         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39275         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39276         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39278         log10f-ieee: Work around test failure on Solaris 9.
39279         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39280         (configure.ac): Require gl_FUNC_LOG10F.
39282         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39283         * m4/log10-ieee.m4: New file.
39284         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39285         whether log10 works with a negative argument. Replace it if not.
39286         * lib/log10.c (log10): For negative arguments, return NaN.
39287         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39288         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39289         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39291         Tests for module 'log10l-ieee'.
39292         * modules/log10l-ieee-tests: New file.
39293         * tests/test-log10l-ieee.c: New file.
39295         New module 'log10l-ieee'.
39296         * modules/log10l-ieee: New file.
39298         Tests for module 'log10-ieee'.
39299         * modules/log10-ieee-tests: New file.
39300         * tests/test-log10-ieee.c: New file.
39302         New module 'log10-ieee'.
39303         * modules/log10-ieee: New file.
39305         Tests for module 'log10f-ieee'.
39306         * modules/log10f-ieee-tests: New file.
39307         * tests/test-log10f-ieee.c: New file.
39308         * tests/test-log10-ieee.h: New file.
39310         New module 'log10f-ieee'.
39311         * modules/log10f-ieee: New file.
39313 2012-04-01  Bruno Haible  <bruno@clisp.org>
39315         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39316         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39317         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39318         workaround.
39319         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39320         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39322         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39323         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39324         (Depends-on): Update conditions.
39325         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39326         IRIX 6.5, OSF/1 5.1 problems.
39328 2012-04-01  Bruno Haible  <bruno@clisp.org>
39330         log10f: Work around OSF/1 5.1 bug.
39331         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39332         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39333         workaround.
39334         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39335         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39337         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39338         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39339         (Depends-on): Update conditions.
39340         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39342 2012-04-01  Bruno Haible  <bruno@clisp.org>
39344         log10: Work around OSF/1 5.1 bug.
39345         * lib/math.in.h (log10): New declaration.
39346         * lib/log10.c: New file.
39347         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39348         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39349         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39351         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39352         * modules/log10 (Files): Add lib/log10.c.
39353         (Depends-on): Add math.
39354         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39355         * tests/test-math-c++.cc: Check the declaration of log10.
39356         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39358 2012-03-31  Bruno Haible  <bruno@clisp.org>
39360         log10l tests: More tests.
39361         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39362         tests/minus-zero.h, tests/randoml.c.
39363         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39364         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39365         (main): Invoke test_function.
39367         log10f tests: More tests.
39368         * modules/log10f-tests (Files): Add tests/test-log10.h,
39369         tests/minus-zero.h, tests/randomf.c.
39370         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39371         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39372         (main): Invoke test_function.
39374         log10 tests: More tests.
39375         * tests/test-log10.h: New file.
39376         * modules/log10-tests (Files): Add tests/test-log10.h,
39377         tests/minus-zero.h, tests/randomd.c.
39378         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39379         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39380         (main): Invoke test_function.
39382 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39384         fflush: Fix syntax error.
39385         * lib/fflush.c: Include unused-parameter.h, needed for
39386         _GL_UNUSED_PARAMETER.
39387         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39389 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39391         regex: pacify GCC when compiling GRUB
39392         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39393         a diagnostic.  Reported by Vladimir Serbinenko in
39394         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39396 2012-03-29  Eric Blake  <eblake@redhat.com>
39398         stdio: don't assume gets any more
39399         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39400         support.
39401         * modules/stdio (Makefile.am): Likewise.
39402         * lib/stdio-read.c (gets): Likewise.
39403         * tests/test-stdio-c++.cc: Likewise.
39404         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39405         * lib/stdio.in.h (gets): Make warning occur in more places.
39406         * doc/posix-functions/gets.texi (gets): Update documentation.
39407         Reported by Christer Solskogen.
39409         maint.mk: fix syntax checks without exclusions
39410         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39411         Reported by Daniel P. Berrange.
39413         strerror_r: avoid compiler warning
39414         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39415         level.
39417         fflush: avoid compiler warning
39418         * lib/fflush.c (update_fpos_cache): Mark variables that are
39419         potentially unused.
39421 2012-03-25  Bruno Haible  <bruno@clisp.org>
39423         Tests for module 'localeconv'.
39424         * modules/localeconv-tests: New file.
39425         * tests/test-localeconv.c: New file.
39427         New module 'localeconv'.
39428         * lib/locale.in.h (localeconv): New declaration.
39429         * lib/localeconv.c: New file.
39430         * m4/localeconv.m4: New file.
39431         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39432         REPLACE_LOCALECONV.
39433         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39434         REPLACE_LOCALECONV.
39435         * modules/localeconv: New file.
39436         * modules/nl_langinfo (Depends-on): Add localeconv.
39437         * modules/human (Depends-on): Likewise.
39438         * doc/posix-functions/localeconv.texi: Mention the new module.
39440 2012-03-25  Bruno Haible  <bruno@clisp.org>
39442         locale: Provide a complete 'struct lconv'.
39443         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39444         'struct lconv' does not contain int_p_cs_precedes.
39445         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39446         * doc/posix-headers/locale.texi: Update.
39448         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39449         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39450         * doc/posix-headers/locale.texi: Update.
39452         locale: Provide a working 'struct lconv'.
39453         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39454         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39455         'struct lconv' does not even contain decimal_point.
39456         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39457         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39458         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39459         * doc/posix-headers/locale.texi: Mention the problems with
39460         'struct lconv'.
39461         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39463 2012-03-24  Bruno Haible  <bruno@clisp.org>
39465         Enable common subexpression optimization in GCC.
39466         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39467         macros.
39468         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39469         GCC attribute 'const'.
39470         (uc_locale_language): Declare with GCC attribute 'pure'.
39471         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39472         with GCC attribute 'const'.
39473         * lib/unictype.in.h (uc_is_general_category_withtable,
39474         uc_combining_class, uc_combining_class_name,
39475         uc_combining_class_long_name, uc_bidi_class_name,
39476         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39477         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39478         uc_decimal_value, uc_digit_value, uc_numeric_value,
39479         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39480         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39481         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39482         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39483         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39484         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39485         Declare with GCC attribute 'const'.
39486         (uc_general_category_name, uc_general_category_long_name,
39487         uc_general_category_byname, uc_general_category,
39488         uc_is_general_category, uc_combining_class_byname,
39489         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39490         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39491         Declare with GCC attribute 'pure'.
39492         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39493         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39494         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39495         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39496         with GCC attribute 'pure'.
39497         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39498         'const'.
39499         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39500         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39501         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39502         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39503         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39504         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39505         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39506         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39507         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39508         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39509         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39510         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39511         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39512         GCC attribute 'pure'.
39513         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39514         'const'.
39515         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39516         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39517         u32_strwidth): Declare with GCC attribute 'pure'.
39519         Enable common subexpression optimization in GCC.
39520         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39521         (alphasort): Declare with GCC attribute 'pure'.
39522         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39523         (atoll): Declare with GCC attribute 'pure'.
39524         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39525         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39526         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39527         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39528         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39529         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39530         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39532 2012-03-24  Bruno Haible  <bruno@clisp.org>
39534         gnulib-tool: Avoid unintended error output from 'cmp'.
39535         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39536         "cmp -s", not "cmp > /dev/null".
39538 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39540         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39542         It's not just Automake versions < 1.9b that creates an empty
39543         pkgdatadir at installation time if pkgdata_DATA is specified
39544         to empty; modern automake versions do this as well, at least
39545         until automake 1.11.4 (not yet released at the moment of writing,
39546         but soon to appear).  That behaviour was generally considered a
39547         feature rather than a bug, at least until this discussion:
39548         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39550         See also automake bugs #10997 and #11030.
39552         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39553         reference to relevant automake bug numbers.
39554         (func_emit_tests_Makefile_am): Likewise.
39556 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39558         announce-gen: use Digest::SHA when possible
39559         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39560         back to Digest::SHA1 if necessary.
39562 2012-03-20  Jim Meyering  <meyering@redhat.com>
39564         tests: avoid gcc warnings about argv vs. const initializers
39565         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39566         warnings about discarding 'const' qualifier from pointer target type.
39567         * tests/test-posix_spawn2.c (main): Likewise.
39569 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39571         README-release: simplify slightly
39572         * top/README-release: Run "git checkout master" only once.
39574 2012-03-15  Mark Wielaard  <mark@klomp.org>
39576         git-merge-changelog: add specific example on how to use with hg.
39577         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39579 2012-03-18  Mark Wielaard  <mark@klomp.org>
39581         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39583 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39585         git-version-gen: don't let "prefix" envvar cause trouble
39586         * build-aux/git-version-gen (prefix): Initialize properly,
39587         so as not to use a value specified via the environment.
39588         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39590 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39592         regex: diagnose too-large repeat counts in EREs
39593         Previously, the code did not diagnose the too-large repeat count
39594         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39595         as if it were 'b\{1000000000}', which is unexpected.
39596         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39597         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39598         is a reasonable one for this problem.  Another option would be to
39599         create a new REG_OVERFLOW error for repeat counts that are too large.
39600         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39601         count is too large, so that the caller can distinguish the two cases.
39602         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39603         "Too large" return code, and that repeat counts are one example of this.
39605 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39607         doc: some glibc x32 integer width issues
39608         * doc/posix-headers/sys_types.texi (sys/types.h):
39609         * doc/posix-headers/time.texi (time.h):
39610         Mention that glibc x32 does not conform to POSIX in a couple of
39611         areas related to integer widths.
39613 2012-03-15  Bruno Haible  <bruno@clisp.org>
39615         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39616         * lib/fma.c (VOLATILE): New macro.
39617         (FUNC): Use it to work around a GCC compiler bug.
39619 2012-03-13  Bruno Haible  <bruno@clisp.org>
39621         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39622         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39623         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39624         REPLACE_HYPOTL to 1.
39625         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39627 2012-03-13  Bruno Haible  <bruno@clisp.org>
39629         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39630         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39631         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39632         REPLACE_REMAINDERL to 1.
39633         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39634         bug.
39636 2012-03-13  Bruno Haible  <bruno@clisp.org>
39638         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39639         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39640         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39641         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39642         too big rounding errors.
39643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39644         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39645         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39646         (Depends-on): Update conditions.
39647         * tests/test-sqrtl.c (my_ldexpl): New function.
39648         (main): Add test of a particular value.
39649         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39651 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39653         doc: Update timer_* platform portability notes.
39654         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39655         that always return ENOSYS.
39656         * doc/posix-functions/timer_delete.texi: Likewise.
39657         * doc/posix-functions/timer_gettime.texi: Likewise.
39658         * doc/posix-functions/timer_settime.texi: Likewise.
39660 2012-03-13  Bruno Haible  <bruno@clisp.org>
39662         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39663         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39664         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39665         REPLACE_CBRTL to 1.
39666         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39668 2012-03-13  Bruno Haible  <bruno@clisp.org>
39670         remainderl: Avoid compilation error on AIX >= 5.2.
39671         * lib/math.in.h (remainderl): Undefine macro from the system header.
39673 2012-03-13  Bruno Haible  <bruno@clisp.org>
39675         Avoid compilation errors with MSVC option -fp:strict.
39676         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39677         * lib/cbrtf.c: Likewise.
39678         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39680 2012-03-12  Bruno Haible  <bruno@clisp.org>
39682         uninorm: Don't crash in out-of-memory conditions.
39683         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39684         gracefully.
39685         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39686         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39688 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39690         quote: fix syntax-check
39691         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39692         also exports quote_quoting_options.
39694 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39696         Collapse list of copyright years to ranges.  See
39697         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39698         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39699         build-aux/csharpexec.sh.in, build-aux/gnupload,
39700         build-aux/install-reloc, build-aux/javacomp.sh.in,
39701         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39702         build-aux/move-if-change, build-aux/reloc-ldflags,
39703         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39705 2012-03-11  Bruno Haible  <bruno@clisp.org>
39707         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39708         * m4/log2f-ieee.m4: New file.
39709         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39710         whether log2f works with a minus zero argument. Replace it if not.
39711         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39712         (Depends-on): Add log2-ieee.
39713         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39714         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39716         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39717         * m4/log2-ieee.m4: New file.
39718         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39719         whether log2 works with a minus zero argument. Replace it if not.
39720         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39721         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39722         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39724         Tests for module 'log2l-ieee'.
39725         * modules/log2l-ieee-tests: New file.
39726         * tests/test-log2l-ieee.c: New file.
39728         New module 'log2l-ieee'.
39729         * modules/log2l-ieee: New file.
39731         Tests for module 'log2-ieee'.
39732         * modules/log2-ieee-tests: New file.
39733         * tests/test-log2-ieee.c: New file.
39735         New module 'log2-ieee'.
39736         * modules/log2-ieee: New file.
39738         Tests for module 'log2f-ieee'.
39739         * modules/log2f-ieee-tests: New file.
39740         * tests/test-log2f-ieee.c: New file.
39741         * tests/test-log2-ieee.h: New file.
39743         New module 'log2f-ieee'.
39744         * modules/log2f-ieee: New file.
39746 2012-03-11  Bruno Haible  <bruno@clisp.org>
39748         Tests for module 'log2l'.
39749         * modules/log2l-tests: New file.
39750         * tests/test-log2l.c: New file.
39752         New module 'log2l'.
39753         * lib/math.in.h (log2l): New declaration.
39754         * lib/log2l.c: New file.
39755         * m4/log2l.m4: New file.
39756         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39758         REPLACE_LOG2L.
39759         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39760         REPLACE_LOG2L.
39761         * modules/log2l: New file.
39762         * tests/test-math-c++.cc: Check the declaration of log2l.
39763         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39764         and OSF/1 problems.
39766 2012-03-11  Bruno Haible  <bruno@clisp.org>
39768         Tests for module 'log2f'.
39769         * modules/log2f-tests: New file.
39770         * tests/test-log2f.c: New file.
39772         New module 'log2f'.
39773         * lib/math.in.h (log2f): New declaration.
39774         * lib/log2f.c: New file.
39775         * m4/log2f.m4: New file.
39776         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39778         REPLACE_LOG2F.
39779         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39780         REPLACE_LOG2F.
39781         * modules/log2f: New file.
39782         * tests/test-math-c++.cc: Check the declaration of log2f.
39783         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39784         and OSF/1 and Cygwin problems.
39786 2012-03-11  Bruno Haible  <bruno@clisp.org>
39788         Tests for module 'log2'.
39789         * modules/log2-tests: New file.
39790         * tests/test-log2.c: New file.
39791         * tests/test-log2.h: New file.
39793         New module 'log2'.
39794         * lib/math.in.h (log2): New declaration.
39795         * lib/log2.c: New file.
39796         * m4/log2.m4: New file.
39797         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39799         REPLACE_LOG2.
39800         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39801         REPLACE_LOG2.
39802         * modules/log2: New file.
39803         * tests/test-math-c++.cc: Check the declaration of log2.
39804         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39805         and OSF/1 and Cygwin problems.
39807 2012-03-11  Bruno Haible  <bruno@clisp.org>
39809         exp2* tests: More tests.
39810         * tests/test-exp2.h (test_function): Test all integral arguments that
39811         don't need to overflow or denormalized numbers.
39812         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39813         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39814         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39816 2012-03-10  Bruno Haible  <bruno@clisp.org>
39818         log1pl-ieee: Work around test failure on AIX 7.1.
39819         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39821         log1pl-ieee: Work around test failure on IRIX 6.5.
39822         * m4/log1pl-ieee.m4: New file.
39823         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39824         test whether log1pl works with a minus zero argument. Replace it if
39825         not.
39826         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39828         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39829         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39830         (Depends-on): Update conditions.
39831         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39832         m4/signbit.m4.
39833         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39834         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39836         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39837         * m4/log1pf-ieee.m4: New file.
39838         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39839         test whether log1pf works with a minus zero argument. Replace it if
39840         not.
39841         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39842         m4/signbit.m4.
39843         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39844         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39846         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39847         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39848         (configure.ac): Require gl_FUNC_LOG1PF.
39850         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39851         * m4/log1p-ieee.m4: New file.
39852         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39853         whether log1p works with a minus zero argument. Replace it if not.
39854         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39856         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39857         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39858         (Depends-on): Update conditions.
39859         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39860         m4/signbit.m4.
39861         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39862         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39864         Tests for module 'log1pl-ieee'.
39865         * modules/log1pl-ieee-tests: New file.
39866         * tests/test-log1pl-ieee.c: New file.
39868         New module 'log1pl-ieee'.
39869         * modules/log1pl-ieee: New file.
39871         Tests for module 'log1p-ieee'.
39872         * modules/log1p-ieee-tests: New file.
39873         * tests/test-log1p-ieee.c: New file.
39875         New module 'log1p-ieee'.
39876         * modules/log1p-ieee: New file.
39878         Tests for module 'log1pf-ieee'.
39879         * modules/log1pf-ieee-tests: New file.
39880         * tests/test-log1pf-ieee.c: New file.
39881         * tests/test-log1p-ieee.h: New file.
39883         New module 'log1pf-ieee'.
39884         * modules/log1pf-ieee: New file.
39886 2012-03-10  Bruno Haible  <bruno@clisp.org>
39888         Tests for module 'log1pl'.
39889         * modules/log1pl-tests: New file.
39890         * tests/test-log1pl.c: New file.
39892         New module 'log1pl'.
39893         * lib/math.in.h (log1pl): New declaration.
39894         * lib/log1pl.c: New file.
39895         * m4/log1pl.m4: New file.
39896         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39898         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39899         * modules/log1pl: New file.
39900         * tests/test-math-c++.cc: Check the declaration of log1pl.
39901         * doc/posix-functions/log1pl.texi: Mention the new module.
39903 2012-03-10  Bruno Haible  <bruno@clisp.org>
39905         Tests for module 'log1pf'.
39906         * modules/log1pf-tests: New file.
39907         * tests/test-log1pf.c: New file.
39909         New module 'log1pf'.
39910         * lib/math.in.h (log1pf): New declaration.
39911         * lib/log1pf.c: New file.
39912         * m4/log1pf.m4: New file.
39913         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39915         REPLACE_LOG1PF.
39916         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39917         REPLACE_LOG1PF.
39918         * modules/log1pf: New file.
39919         * tests/test-math-c++.cc: Check the declaration of log1pf.
39920         * doc/posix-functions/log1pf.texi: Mention the new module.
39922 2012-03-10  Bruno Haible  <bruno@clisp.org>
39924         log1p tests: More tests.
39925         * tests/test-log1p.h: New file.
39926         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39927         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39928         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39929         (main): Invoke test_function.
39931         log1p: Provide replacement for Minix and MSVC.
39932         * lib/math.in.h (log1p): New declaration.
39933         * lib/log1p.c: New file.
39934         * m4/log1p.m4: New file.
39935         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39936         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39937         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39938         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39939         (Depends-on): Add math, isnand, log, round.
39940         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39941         HAVE_LOG1P is 0.
39942         * tests/test-math-c++.cc: Check the declaration of log1p.
39943         * doc/posix-functions/log1p.texi: Mention the replacement.
39945 2012-03-10  Bruno Haible  <bruno@clisp.org>
39947         math tests: Small simplification.
39948         * tests/test-exp.h (test_function): Use the same err_bound for
39949         'double' on platforms with sizeof (long double) == sizeof (double)
39950         than on platforms with sizeof (long double) > sizeof (double).
39951         * tests/test-exp2.h (test_function): Likewise.
39952         * tests/test-expm1.h (test_function): Likewise.
39953         * tests/test-log.h (test_function): Likewise.
39955 2012-03-10  Bruno Haible  <bruno@clisp.org>
39957         Fix some comments.
39958         * lib/expl.c: Fix an ambiguous comment.
39959         * lib/expm1.c: Likewise.
39960         * lib/expm1l.c: Likewise.
39961         * lib/exp2.c: Likewise.
39962         * lib/exp2l.c: Likewise.
39964 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39966         regex: allow inclusion of <regex.h> before <limits.h>
39967         Without this patch, portable programs had to include <limits.h> before
39968         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39969         I ran into this problem with a test version of GNU grep on Solaris 8.
39970         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39971         This is done conditionally so that this change can be merged
39972         back to glibc.
39973         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39974         using the included regex.
39976         fts: depend on fdopendir
39977         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39978         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39979         problem was introduced when fdopendir was split out.
39981 2012-03-10  Bruno Haible  <bruno@clisp.org>
39983         Remove unused variables.
39984         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39985         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39987 2012-03-10  Bruno Haible  <bruno@clisp.org>
39989         isnanf-nolibm: Fix last commit.
39990         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39992         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39993         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39995 2012-03-10  Bruno Haible  <bruno@clisp.org>
39997         logf-ieee: Work around test failure on NetBSD 5.1.
39998         * m4/logf-ieee.m4: New file.
39999         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
40000         whether logf works with a negative argument. Replace it if not.
40001         * lib/logf.c (logf): For negative arguments, return NaN.
40002         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
40003         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
40004         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
40006         logf-ieee: Work around test failure on Solaris 9.
40007         * modules/logf-ieee (Depends-on): Add log-ieee.
40008         (configure.ac): Require gl_FUNC_LOGF.
40010         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40011         * m4/log-ieee.m4: New file.
40012         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
40013         log works with a negative argument. Replace it if not.
40014         * lib/log.c (log): For negative arguments, return NaN.
40015         * modules/log-ieee (Files): Add m4/log-ieee.m4.
40016         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
40017         * doc/posix-functions/log.texi: Mention the log-ieee module.
40019         Tests for module 'logl-ieee'.
40020         * modules/logl-ieee-tests: New file.
40021         * tests/test-logl-ieee.c: New file.
40023         New module 'logl-ieee'.
40024         * modules/logl-ieee: New file.
40026         Tests for module 'log-ieee'.
40027         * modules/log-ieee-tests: New file.
40028         * tests/test-log-ieee.c: New file.
40030         New module 'log-ieee'.
40031         * modules/log-ieee: New file.
40033         Tests for module 'logf-ieee'.
40034         * modules/logf-ieee-tests: New file.
40035         * tests/test-logf-ieee.c: New file.
40036         * tests/test-log-ieee.h: New file.
40038         New module 'logf-ieee'.
40039         * modules/logf-ieee: New file.
40041 2012-03-10  Bruno Haible  <bruno@clisp.org>
40043         log: Fix bug introduced on 2012-03-09.
40044         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
40046 2012-03-10  Pádraig Brady  <P@draigBrady.com>
40048         timer-time: link explicitly with pthreads on glibc
40049         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
40050         to support static linking, when newer glibc is
40051         detected, as that contains pthread emulation of
40052         POSIX timer functions where required.
40053         * modules/timer-time: Depend on threadlib to
40054         pull in the appropriate library to link.
40056 2012-03-10  Bruno Haible  <bruno@clisp.org>
40058         log* tests: More tests.
40059         * tests/test-log.h: New file.
40060         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
40061         (main): Invoke test_function.
40062         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
40063         (main): Invoke test_function.
40064         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
40065         (main): Invoke test_function.
40066         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40067         tests/randomd.c.
40068         (Makefile.am): Add randomd.c to test_log_SOURCES.
40069         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40070         tests/randomf.c.
40071         (Makefile.am): Add randomf.c to test_logf_SOURCES.
40072         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
40073         tests/randoml.c.
40074         (Depends-on): Add 'float'.
40075         (Makefile.am): Add randoml.c to test_logl_SOURCES.
40077 2012-03-09  Bruno Haible  <bruno@clisp.org>
40079         logl: Work around OSF/1 5.1 bug.
40080         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
40081         * lib/logl.c (logl): If logl exists, use it and provide just the
40082         workaround.
40083         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
40084         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
40085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
40086         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
40087         * modules/logl (configure.ac): Consider REPLACE_LOGL.
40088         (Depends-on): Update conditions.
40089         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
40091 2012-03-09  Bruno Haible  <bruno@clisp.org>
40093         logf: Work around OSF/1 5.1 bug.
40094         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
40095         * lib/logf.c (logf): If logf exists, use it and provide just the
40096         workaround.
40097         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
40098         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
40099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
40100         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
40101         * modules/logf (configure.ac): Consider REPLACE_LOGF.
40102         (Depends-on): Update conditions.
40103         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
40105 2012-03-09  Bruno Haible  <bruno@clisp.org>
40107         log: Work around OSF/1 5.1 bug.
40108         * lib/math.in.h (log): New declaration.
40109         * lib/log.c: New file.
40110         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
40111         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
40112         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
40113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
40114         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
40115         * modules/log (Files): Add lib/log.c.
40116         (Depends-on): Add math.
40117         (configure.ac): If REPLACE_LOG is 1, compile an override.
40118         * tests/test-math-c++.cc: Check the declaration of log.
40119         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
40121 2012-03-09  Jim Meyering  <meyering@redhat.com>
40123         readtokens.c: adjust wording in a comment
40124         * lib/readtokens.c: Insert omitted "that" in a comment.
40126 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40128         modechange: add notations +40, 00440, etc.
40129         * lib/modechange.c (mode_compile): Support new notations
40130         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
40132 2012-03-08  Bruno Haible  <bruno@clisp.org>
40134         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
40135         * m4/exp2l-ieee.m4: New file.
40136         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
40137         test whether exp2l works with a NaN argument and with a negative
40138         infinity argument. Replace it if not.
40139         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
40140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
40141         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
40142         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
40143         (Depends-on): Update conditions.
40144         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
40145         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
40146         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
40148         Tests for module 'exp2l-ieee'.
40149         * modules/exp2l-ieee-tests: New file.
40150         * tests/test-exp2l-ieee.c: New file.
40152         New module 'exp2l-ieee'.
40153         * modules/exp2l-ieee: New file.
40155         Tests for module 'exp2-ieee'.
40156         * modules/exp2-ieee-tests: New file.
40157         * tests/test-exp2-ieee.c: New file.
40159         New module 'exp2-ieee'.
40160         * modules/exp2-ieee: New file.
40162         Tests for module 'exp2f-ieee'.
40163         * modules/exp2f-ieee-tests: New file.
40164         * tests/test-exp2f-ieee.c: New file.
40165         * tests/test-exp2-ieee.h: New file.
40167         New module 'exp2f-ieee'.
40168         * modules/exp2f-ieee: New file.
40170 2012-03-08  Bruno Haible  <bruno@clisp.org>
40172         Tests for module 'exp2l'.
40173         * modules/exp2l-tests: New file.
40174         * tests/test-exp2l.c: New file.
40176         New module 'exp2l'.
40177         * lib/math.in.h (exp2l): New declaration.
40178         * lib/exp2l.c: New file.
40179         * lib/expl-table.c: New file, extracted from lib/expl.c.
40180         * lib/expl.c (gl_expl_table): New declaration.
40181         (expl): Remove expl_table. Update reference.
40182         * m4/exp2l.m4: New file.
40183         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
40184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
40185         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
40186         * modules/exp2l: New file.
40187         * modules/expl (Files): Add lib/expl-table.c.
40188         (configure.ac): Compile also expl-table.c.
40189         * tests/test-math-c++.cc: Check the declaration of exp2l.
40190         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
40191         problem.
40193 2012-03-08  Bruno Haible  <bruno@clisp.org>
40195         Tests for module 'exp2f'.
40196         * modules/exp2f-tests: New file.
40197         * tests/test-exp2f.c: New file.
40199         New module 'exp2f'.
40200         * lib/math.in.h (exp2f): New declaration.
40201         * lib/exp2f.c: New file.
40202         * m4/exp2f.m4: New file.
40203         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
40204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
40205         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
40206         * modules/exp2f: New file.
40207         * tests/test-math-c++.cc: Check the declaration of exp2f.
40208         * doc/posix-functions/exp2f.texi: Mention the new module and the
40209         IRIX problem.
40211 2012-03-08  Bruno Haible  <bruno@clisp.org>
40213         Tests for module 'exp2'.
40214         * modules/exp2-tests: New file.
40215         * tests/test-exp2.c: New file.
40216         * tests/test-exp2.h: New file.
40218         New module 'exp2'.
40219         * lib/math.in.h (exp2): New declaration.
40220         * lib/exp2.c: New file.
40221         * m4/exp2.m4: New file.
40222         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
40223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
40224         REPLACE_EXP2.
40225         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
40226         REPLACE_EXP2.
40227         * modules/exp2: New file.
40228         * tests/test-math-c++.cc: Check the declaration of exp2.
40229         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
40230         and OpenBSD problems.
40232 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
40234         savedir: fix comment typo
40235         * lib/savedir.c (savedirstream): Fix typo in comment.
40237 2012-03-08  Bruno Haible  <bruno@clisp.org>
40239         test-readtokens.c: use const; remove unwarranted cast
40240         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
40242 2012-03-08  Bruno Haible  <bruno@clisp.org>
40244         fmal: Avoid compilation error on AIX.
40245         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
40246         AIX 5.2..7.1.
40248 2012-03-08  Bruno Haible  <bruno@clisp.org>
40250         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
40251         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
40252         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
40253         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40254         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40255         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40256         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40258 2012-03-08  Bruno Haible  <bruno@clisp.org>
40260         remainderf: Override buggy system function on IRIX 6.5.
40261         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40262         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40263         when it exists.
40264         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40266 2012-03-08  Jim Meyering  <meyering@redhat.com>
40268         test-readtokens.c: avoid const-related compilation warnings
40269         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40271 2012-03-07  Jim Meyering  <meyering@redhat.com>
40272             Bruno Haible  <bruno@clisp.org>
40274         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40275         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40276         tests/randomd.c.
40277         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40278         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40279         tests/randoml.c.
40280         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40282 2012-03-07  Bruno Haible  <bruno@clisp.org>
40284         expm1l: Avoid compilation error on AIX.
40285         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40286         AIX 5.2..7.1.
40288 2012-03-07  Bruno Haible  <bruno@clisp.org>
40290         expm1l: Don't override undeclared system function on IRIX 6.5.
40291         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40292         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40293         it exists. Set HAVE_DECL_EXPM1L.
40294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40295         HAVE_EXPM1L.
40296         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40297         HAVE_EXPM1L.
40298         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40300 2012-03-07  Bruno Haible  <bruno@clisp.org>
40302         remainderl: Don't override undeclared system function on IRIX 6.5.
40303         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40304         HAVE_REMAINDERL.
40305         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40306         declared when it exists. Set HAVE_DECL_REMAINDERL.
40307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40308         not HAVE_REMAINDERL.
40309         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40310         HAVE_REMAINDERL.
40311         * doc/posix-functions/remainderl.texi: Mention missing declaration
40312         problem.
40314 2012-03-07  Bruno Haible  <bruno@clisp.org>
40316         rintf: Don't override undeclared system function on IRIX 6.5.
40317         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40318         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40319         exists. Set HAVE_DECL_RINTF.
40320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40321         HAVE_RINTF.
40322         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40323         HAVE_RINTF.
40324         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40326 2012-03-07  Bruno Haible  <bruno@clisp.org>
40328         roundl: Avoid compilation error on AIX.
40329         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40330         AIX 5.2..7.1.
40332 2012-03-07  Bruno Haible  <bruno@clisp.org>
40334         roundl: Don't override undeclared system function on IRIX 6.5.
40335         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40336         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40337         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40338         * modules/roundl (configure.ac): For replacement code, test
40339         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40340         (Depends-on): Update conditions.
40341         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40343 2012-03-07  Bruno Haible  <bruno@clisp.org>
40345         roundf: Don't override undeclared system function on IRIX 6.5.
40346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40347         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40348         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40349         * modules/roundf (configure.ac): For replacement code, test
40350         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40351         (Depends-on): Update conditions.
40352         * modules/roundf-ieee (Depends-on): Update conditions.
40353         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40355 2012-03-07  Bruno Haible  <bruno@clisp.org>
40357         round: Don't override undeclared system function on IRIX 6.5.
40358         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40359         argument.
40360         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40361         also when it is not declared. Set HAVE_ROUND. For replacement code,
40362         test HAVE_ROUND, not HAVE_DECL_ROUND.
40363         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40364         not HAVE_DECL_ROUND.
40365         (Depends-on): Update conditions.
40366         * modules/round-ieee (Depends-on): Update conditions.
40367         * doc/posix-functions/round.texi: Mention the IRIX problem.
40369 2012-03-07  Bruno Haible  <bruno@clisp.org>
40371         copysignf: Don't override undeclared system function on IRIX 6.5.
40372         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40373         HAVE_COPYSIGNF.
40374         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40375         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40377         not HAVE_COPYSIGNF.
40378         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40379         HAVE_COPYSIGNF.
40380         * doc/posix-functions/copysignf.texi: Mention missing declaration
40381         problem.
40383 2012-03-07  Jim Meyering  <meyering@redhat.com>
40385         readtokens: add tests
40386         * modules/readtokens-tests: New file.
40387         * tests/test-readtokens.c: New file.
40389 2012-03-07  Jim Meyering  <meyering@redhat.com>
40391         quotearg: the module must now include quote.h
40392         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40393         So must the module.
40394         * modules/quotearg (Files): Add quote.h.
40396 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40398         readtokens: avoid core dumps with unusual calling patterns
40399         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40400         * lib/readtokens.c: Include limits.h.
40401         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40402         (readtoken): Don't cache the delimiters; the cache code was buggy
40403         if !delim && saved_delim, or if the new n_delim differs from the old.
40404         Also, it wasn't thread-safe.
40406 2012-03-07  Bruno Haible  <bruno@clisp.org>
40408         quote: Adhere to common module description layout.
40409         * modules/quote (Makefile.am): Add back empty section.
40411 2012-03-06  Akim Demaille  <demaille@gostai.com>
40413         quote: fuse into quotearg
40414         This patch is made for the benefit of Bison.
40415         quote does not leave the choice of the quoting style to the user.
40416         quoting_style provides poor customizability, yet quoting_options,
40417         which is very rich, is hidden inside quotearg.c.  So in order to
40418         allow quote customization, move its implementation to quotearg.c.
40419         * lib/quote.c: Remove.
40420         * modules/quote: Adjust.
40421         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40422         warning: provide all the members of literal structs.
40423         (quote_quoting_options): New.
40424         (quote, quote_n): Import implementation from quote.c.
40425         * lib/quote.h: Import the comments from quote.c.
40426         (quote_quoting_options): New.
40428 2012-03-06  Bruno Haible  <bruno@clisp.org>
40430         Tests for module 'expm1l-ieee'.
40431         * modules/expm1l-ieee-tests: New file.
40432         * tests/test-expm1l-ieee.c: New file.
40434         New module 'expm1l-ieee'.
40435         * modules/expm1l-ieee: New file.
40437         Tests for module 'expm1f-ieee'.
40438         * modules/expm1f-ieee-tests: New file.
40439         * tests/test-expm1f-ieee.c: New file.
40441         New module 'expm1f-ieee'.
40442         * modules/expm1f-ieee: New file.
40444         Tests for module 'expm1-ieee'.
40445         * modules/expm1-ieee-tests: New file.
40446         * tests/test-expm1-ieee.c: New file.
40447         * tests/test-expm1-ieee.h: New file.
40449         New module 'expm1-ieee'.
40450         * modules/expm1-ieee: New file.
40451         * m4/expm1-ieee.m4: New file.
40452         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40453         whether expm1 works with a minus zero argument. Replace it if not.
40454         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40456         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40457         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40458         (Depends-on): Update conditions.
40459         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40460         AIX problem.
40462 2012-03-06  Bruno Haible  <bruno@clisp.org>
40464         Work around expm1f bug on IRIX 6.5.
40465         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40466         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40467         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40468         not work.
40469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40470         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40471         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40472         (Depends-on): Update conditions.
40473         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40475 2012-03-06  Bruno Haible  <bruno@clisp.org>
40477         Tests for module 'expm1l'.
40478         * modules/expm1l-tests: New file.
40479         * tests/test-expm1l.c: New file.
40481         New module 'expm1l'.
40482         * lib/math.in.h (expm1l): New declaration.
40483         * lib/expm1l.c: New file.
40484         * m4/expm1l.m4: New file.
40485         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40487         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40488         * modules/expm1l: New file.
40489         * tests/test-math-c++.cc: Check the declaration of expm1l.
40490         * doc/posix-functions/expm1l.texi: Mention the new module.
40492 2012-03-06  Bruno Haible  <bruno@clisp.org>
40494         Tests for module 'expm1f'.
40495         * modules/expm1f-tests: New file.
40496         * tests/test-expm1f.c: New file.
40498         New module 'expm1f'.
40499         * lib/math.in.h (expm1f): New declaration.
40500         * lib/expm1f.c: New file.
40501         * m4/expm1f.m4: New file.
40502         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40504         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40505         * modules/expm1f: New file.
40506         * tests/test-math-c++.cc: Check the declaration of expm1f.
40507         * doc/posix-functions/expm1f.texi: Mention the new module.
40509 2012-03-06  Bruno Haible  <bruno@clisp.org>
40511         Tests for module 'expm1'.
40512         * modules/expm1-tests: New file.
40513         * tests/test-expm1.c: New file.
40514         * tests/test-expm1.h: New file.
40516         New module 'expm1'.
40517         * lib/math.in.h (expm1): New declaration.
40518         * lib/expm1.c: New file.
40519         * m4/expm1.m4: New file.
40520         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40522         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40523         * modules/expm1: New file.
40524         * tests/test-math-c++.cc: Check the declaration of expm1.
40525         * doc/posix-functions/expm1.texi: Mention the new module.
40527 2012-03-06  Bruno Haible  <bruno@clisp.org>
40529         math: Ensure declarations of math functions.
40530         * modules/acosf (Depends-on): Add 'extensions'.
40531         * modules/asinf (Depends-on): Likewise.
40532         * modules/atan2f (Depends-on): Likewise.
40533         * modules/atanf (Depends-on): Likewise.
40534         * modules/cbrt (Depends-on): Likewise.
40535         * modules/cbrtf (Depends-on): Likewise.
40536         * modules/cbrtl (Depends-on): Likewise.
40537         * modules/copysignf (Depends-on): Likewise.
40538         * modules/copysignl (Depends-on): Likewise.
40539         * modules/cosf (Depends-on): Likewise.
40540         * modules/coshf (Depends-on): Likewise.
40541         * modules/expf (Depends-on): Likewise.
40542         * modules/fabsf (Depends-on): Likewise.
40543         * modules/fabsl (Depends-on): Likewise.
40544         * modules/fmaf (Depends-on): Likewise.
40545         * modules/fmal (Depends-on): Likewise.
40546         * modules/fmodf (Depends-on): Likewise.
40547         * modules/fmodl (Depends-on): Likewise.
40548         * modules/frexpf (Depends-on): Likewise.
40549         * modules/frexpl (Depends-on): Likewise.
40550         * modules/hypot (Depends-on): Likewise.
40551         * modules/hypotf (Depends-on): Likewise.
40552         * modules/hypotl (Depends-on): Likewise.
40553         * modules/ldexpf (Depends-on): Likewise.
40554         * modules/ldexpl (Depends-on): Likewise.
40555         * modules/log10f (Depends-on): Likewise.
40556         * modules/log10l (Depends-on): Likewise.
40557         * modules/log1p (Depends-on): Likewise.
40558         * modules/logb (Depends-on): Likewise.
40559         * modules/logf (Depends-on): Likewise.
40560         * modules/modff (Depends-on): Likewise.
40561         * modules/modfl (Depends-on): Likewise.
40562         * modules/powf (Depends-on): Likewise.
40563         * modules/remainderf (Depends-on): Likewise.
40564         * modules/remainderl (Depends-on): Likewise.
40565         * modules/rintf (Depends-on): Likewise.
40566         * modules/rintl (Depends-on): Likewise.
40567         * modules/sinf (Depends-on): Likewise.
40568         * modules/sinhf (Depends-on): Likewise.
40569         * modules/sqrtf (Depends-on): Likewise.
40570         * modules/tanf (Depends-on): Likewise.
40571         * modules/tanhf (Depends-on): Likewise.
40572         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40573         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40574         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40575         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40576         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40577         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40578         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40579         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40580         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40581         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40582         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40583         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40584         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40585         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40586         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40587         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40588         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40589         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40590         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40591         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40592         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40593         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40594         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40595         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40597         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40598         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40599         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40600         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40601         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40602         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40603         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40604         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40605         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40606         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40607         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40608         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40609         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40610         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40611         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40612         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40614 2012-03-06  Bruno Haible  <bruno@clisp.org>
40616         math: Update module names in warnings.
40617         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40618         tanl): Use specific module name in warn-on-use warning.
40620 2012-03-06  Bruno Haible  <bruno@clisp.org>
40622         expl: Simplify computation.
40623         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40625 2012-03-05  Bruno Haible  <bruno@clisp.org>
40627         exp* tests: More tests.
40628         * tests/test-exp.h: New file.
40629         * tests/test-exp.c: Include <float.h> and test-exp.h.
40630         (main): Invoke test_function.
40631         * tests/test-expf.c: Include <float.h> and test-exp.h.
40632         (main): Invoke test_function.
40633         * tests/test-expl.c: Include <float.h> and test-exp.h.
40634         (main): Invoke test_function.
40635         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40636         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40637         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40638         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40639         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40640         (Depends-on): Add 'float'.
40641         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40643         expl: Fix precision of computed result.
40644         * lib/expl.c: Completely rewritten.
40645         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40646         (Maintainer): Add me.
40647         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40649 2012-03-05  Bruno Haible  <bruno@clisp.org>
40651         cbrt* tests: More tests.
40652         * tests/test-cbrt.h: New file.
40653         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40654         (main): Invoke test_function.
40655         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40656         (main): Invoke test_function.
40657         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40658         (main): Invoke test_function.
40659         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40660         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40661         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40662         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40663         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40664         (Depends-on): Add 'float'.
40665         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40667 2012-03-05  Bruno Haible  <bruno@clisp.org>
40669         hypot* tests: More tests.
40670         * tests/test-hypot.h: New file, partially extracted from
40671         tests/test-hypotl.c.
40672         * tests/test-hypot.c: Include test-hypot.h.
40673         (main): Invoke test_function.
40674         * tests/test-hypotf.c: Include test-hypot.h.
40675         (main): Invoke test_function.
40676         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40677         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40678         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40679         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40680         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40681         tests/randomf.c.
40682         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40683         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40684         tests/randoml.c.
40685         (Depends-on): Add 'fpucw', 'float'.
40686         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40688 2012-03-05  Bruno Haible  <bruno@clisp.org>
40690         fpucw: Doc about FreeBSD.
40691         * lib/fpucw.h: Mention FreeBSD in comments.
40693 2012-03-04  Bruno Haible  <bruno@clisp.org>
40695         sqrt* tests: More tests.
40696         * tests/test-sqrt.h: New file.
40697         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40698         (main): Invoke test_function.
40699         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40700         (main): Invoke test_function.
40701         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40702         (main): Invoke test_function.
40703         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40704         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40705         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40706         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40707         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40708         (Depends-on): Add 'float'.
40709         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40711 2012-03-04  Bruno Haible  <bruno@clisp.org>
40713         remainder* tests: More tests.
40714         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40715         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40716         (main): Invoke test_function.
40717         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40718         (main): Invoke test_function.
40719         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40720         (main): Invoke test_function.
40721         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40722         tests/randomd.c.
40723         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40724         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40725         tests/randomf.c.
40726         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40727         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40728         tests/randoml.c.
40729         (Depends-on): Add 'float'.
40730         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40732 2012-03-04  Bruno Haible  <bruno@clisp.org>
40734         remainder, remainderf, remainderl: Fix computation for large quotients.
40735         * lib/remainder.c: Completely rewritten.
40736         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40737         USE_FLOAT.
40738         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40739         USE_LONG_DOUBLE.
40740         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40741         isnand, isinf. Remove round, fma.
40742         * modules/remainderf (Files): Add lib/remainder.c.
40743         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40744         Remove roundf, fmaf.
40745         * modules/remainderl (Files): Add lib/remainder.c.
40746         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40747         isinf. Remove roundl, fmal.
40748         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40749         REMAINDER_LIBM.
40750         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40751         REMAINDERF_LIBM.
40752         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40753         REMAINDERL_LIBM.
40755 2012-03-04  Bruno Haible  <bruno@clisp.org>
40757         fmod* tests: More tests.
40758         * tests/test-fmod.h (my_ldexp): New function.
40759         (test_function): Reduce amount of random numbers to test. Add tests
40760         of very large quotients x / y.
40761         * tests/test-fmod.c (MAX_EXP): New macro.
40762         * tests/test-fmodf.c (MAX_EXP): Likewise.
40763         * tests/test-fmodl.c (MAX_EXP): Likewise.
40765 2012-03-04  Bruno Haible  <bruno@clisp.org>
40767         fmod, fmodl: Fix computation for large quotients x / y.
40768         * lib/fmod.c: Completely rewritten.
40769         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40770         USE_LONG_DOUBLE.
40771         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40772         isnand. Remove fma.
40773         * modules/fmodl (Files): Add lib/fmod.c.
40774         (Depends-on): Add float, isfinite, signbit, fabsl,
40775         frexpl, ldexpl, isnanl. Remove fma.
40776         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40777         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40779 2012-03-03  Bruno Haible  <bruno@clisp.org>
40781         fmod* tests: More tests.
40782         * tests/test-fmod.h: New file.
40783         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40784         (main): Invoke test_function.
40785         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40786         (main): Invoke test_function.
40787         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40788         (main): Invoke test_function.
40789         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40790         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40791         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40792         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40793         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40794         (Depends-on): Add 'float'.
40795         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40797 2012-03-03  Bruno Haible  <bruno@clisp.org>
40799         rint* tests: More tests.
40800         * tests/test-rint.h: New file, partially extracted from
40801         tests/test-rintl.c.
40802         * tests/test-rint.c: Include test-rint.h.
40803         (main): Invoke test_function.
40804         * tests/test-rintf.c: Include test-rint.h.
40805         (main): Invoke test_function.
40806         * tests/test-rintl.c: Include test-rint.h.
40807         (main): Invoke test_function.
40808         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40809         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40810         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40811         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40812         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40813         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40815 2012-03-03  Bruno Haible  <bruno@clisp.org>
40817         modf* tests: More tests.
40818         * tests/test-modf.h: New file.
40819         * tests/test-modf.c: Include <float.h> and test-modf.h.
40820         (main): Invoke test_function.
40821         * tests/test-modff.c: Include <float.h> and test-modf.h.
40822         (main): Invoke test_function.
40823         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40824         (main): Invoke test_function.
40825         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40826         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40827         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40828         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40829         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40830         (Depends-on): Add 'float'.
40831         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40833 2012-03-03  Bruno Haible  <bruno@clisp.org>
40835         fabs* tests: More tests.
40836         * tests/test-fabs.h: New file, partially extracted from
40837         tests/test-fabsl.c.
40838         * tests/test-fabs.c (RANDOM): New macro.
40839         * tests/test-fabsf.c (RANDOM): New macro.
40840         * tests/test-fabsl.c (RANDOM): New macro.
40841         * modules/fabs-tests (Files): Add tests/randomd.c.
40842         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40843         * modules/fabsf-tests (Files): Add tests/randomf.c.
40844         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40845         * modules/fabsl-tests (Files): Add tests/randoml.c.
40846         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40848 2012-03-03  Bruno Haible  <bruno@clisp.org>
40850         ldexp* tests: More tests.
40851         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40852         * tests/test-ldexp.c (RANDOM): New macro.
40853         * tests/test-ldexpf.c (RANDOM): New macro.
40854         * tests/test-ldexpl.c (RANDOM): New macro.
40855         * modules/ldexp-tests (Files): Add tests/randomd.c.
40856         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40857         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40858         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40859         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40860         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40862 2012-03-03  Bruno Haible  <bruno@clisp.org>
40864         frexp* tests: More tests.
40865         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40866         * tests/test-frexp.c (RANDOM): New macro.
40867         * tests/test-frexpf.c (RANDOM): New macro.
40868         * tests/test-frexpl.c (RANDOM): New macro.
40869         * modules/frexp-tests (Files): Add tests/randomd.c.
40870         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40871         * modules/frexpf-tests (Files): Add tests/randomf.c.
40872         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40873         * modules/frexpl-tests (Files): Add tests/randoml.c.
40874         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40876 2012-03-03  Bruno Haible  <bruno@clisp.org>
40878         Support for pseudo-random numbers in tests.
40879         * tests/randomf.c: New file.
40880         * tests/randomd.c: New file.
40881         * tests/randoml.c: New file.
40882         * tests/macros.h (randomf, randomd, randoml): New declarations.
40884 2012-03-03  Bruno Haible  <bruno@clisp.org>
40886         frexp* tests: Refactor.
40887         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40888         * tests/test-frexp.c: Include and use it.
40889         * tests/test-frexpf.c: Likewise.
40890         * tests/test-frexpl.c: Likewise.
40891         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40892         * modules/frexpf-tests (Files): Likewise.
40893         * modules/frexpl-tests (Files): Likewise.
40895 2012-03-02  Jim Meyering  <meyering@redhat.com>
40897         maint: don't specify XZ_OPT=-9ev in dist-related rule
40898         Using xz's -9 option is warranted only if you have a very large
40899         tarball (see xz's documentation for the sizes vs. presets), and
40900         requires 64MiB of memory at decompression time.
40901         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40902         Automake's default of just "-e" is fine.  Override on a
40903         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40905 2012-03-01  Eric Blake  <eblake@redhat.com>
40907         maint.mk: allow announcement for non-gnulib project
40908         * maint.mk (announcement): Skip gnulib version if not used.
40910 2012-03-01  Jim Meyering  <meyering@redhat.com>
40912         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40913         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40914         envvar settings cannot interfere.  Otherwise, setting envvars like
40915         prohibit=foo require=bar, etc. would cause spurious test failures.
40917 2012-03-01  Eric Blake  <eblake@redhat.com>
40919         maint.mk: add per-line exclusions to prohibitions
40920         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40921         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40922         (sc_const_long_option): Use it.
40924 2012-03-01  Bruno Haible  <bruno@clisp.org>
40926         Tests for module 'expl-ieee'.
40927         * modules/expl-ieee-tests: New file.
40928         * tests/test-expl-ieee.c: New file.
40930         New module 'expl-ieee'.
40931         * modules/expl-ieee: New file.
40933         Tests for module 'exp-ieee'.
40934         * modules/exp-ieee-tests: New file.
40935         * tests/test-exp-ieee.c: New file.
40937         New module 'exp-ieee'.
40938         * modules/exp-ieee: New file.
40940         Tests for module 'expf-ieee'.
40941         * modules/expf-ieee-tests: New file.
40942         * tests/test-expf-ieee.c: New file.
40943         * tests/test-exp-ieee.h: New file.
40945         New module 'expf-ieee'.
40946         * modules/expf-ieee: New file.
40948 2012-02-29  Bruno Haible  <bruno@clisp.org>
40950         cbrtl-ieee: Work around test failure on IRIX 6.5.
40951         * m4/cbrtl-ieee.m4: New file.
40952         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40953         test whether cbrtl works with a minus zero argument. Replace it if not.
40954         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40956         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40957         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40958         (Depends-on): Update conditions.
40959         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40960         m4/signbit.m4.
40961         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40962         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40963         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40965         Tests for module 'cbrtl-ieee'.
40966         * modules/cbrtl-ieee-tests: New file.
40967         * tests/test-cbrtl-ieee.c: New file.
40969         New module 'cbrtl-ieee'.
40970         * modules/cbrtl-ieee: New file.
40972         Tests for module 'cbrt-ieee'.
40973         * modules/cbrt-ieee-tests: New file.
40974         * tests/test-cbrt-ieee.c: New file.
40976         New module 'cbrt-ieee'.
40977         * modules/cbrt-ieee: New file.
40979         Tests for module 'cbrtf-ieee'.
40980         * modules/cbrtf-ieee-tests: New file.
40981         * tests/test-cbrtf-ieee.c: New file.
40982         * tests/test-cbrt-ieee.h: New file.
40984         New module 'cbrtf-ieee'.
40985         * modules/cbrtf-ieee: New file.
40987 2012-02-29  Bruno Haible  <bruno@clisp.org>
40989         cbrtf: Work around bug in IRIX 6.5 system function.
40990         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40991         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40992         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40993         work.
40994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40995         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40996         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40997         (Depends-on): Update conditions.
40998         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
41000 2012-02-29  Bruno Haible  <bruno@clisp.org>
41002         Tests for module 'cbrtl'.
41003         * modules/cbrtl-tests: New file.
41004         * tests/test-cbrtl.c: New file.
41006         New module 'cbrtl'.
41007         * lib/math.in.h (cbrtl): New declaration.
41008         * lib/cbrtl.c: New file.
41009         * m4/cbrtl.m4: New file.
41010         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
41011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
41012         HAVE_DECL_CBRTL.
41013         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
41014         HAVE_DECL_CBRTL.
41015         * modules/cbrtl: New file.
41016         * tests/test-math-c++.cc: Check the declaration of cbrtl.
41017         * doc/posix-functions/cbrtl.texi: Mention the new module.
41019 2012-02-29  Bruno Haible  <bruno@clisp.org>
41021         Tests for module 'cbrtf'.
41022         * modules/cbrtf-tests: New file.
41023         * tests/test-cbrtf.c: New file.
41025         New module 'cbrtf'.
41026         * lib/math.in.h (cbrtf): New declaration.
41027         * lib/cbrtf.c: New file.
41028         * m4/cbrtf.m4: New file.
41029         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
41030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
41031         HAVE_DECL_CBRTF.
41032         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
41033         HAVE_DECL_CBRTF.
41034         * modules/cbrtf: New file.
41035         * tests/test-math-c++.cc: Check the declaration of cbrtf.
41036         * doc/posix-functions/cbrtf.texi: Mention the new module.
41038 2012-02-29  Bruno Haible  <bruno@clisp.org>
41040         cbrt: Provide replacement on MSVC and Minix.
41041         * lib/math.in.h (cbrt): New declaration.
41042         * lib/cbrt.c: New file.
41043         * m4/cbrt.m4: New file.
41044         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
41045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
41046         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
41047         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
41048         (Depends-on): Add dependencies.
41049         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
41050         * tests/test-math-c++.cc: Check the declaration of cbrt.
41051         * doc/posix-functions/cbrt.texi: Mention that the module provides a
41052         replacement.
41054 2012-02-29  Bruno Haible  <bruno@clisp.org>
41056         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
41057         * m4/hypotl-ieee.m4: New file.
41058         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
41059         test whether hypotl works with mixed NaN and Infinity arguments.
41060         Replace it if not.
41061         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
41062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
41063         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
41064         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
41065         (Depends-on): Update conditions.
41066         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
41067         (Depends-on): Add hypot-ieee.
41068         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
41069         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
41071         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
41072         * m4/hypotf-ieee.m4: New file.
41073         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
41074         test whether hypotf works with mixed NaN and Infinity arguments.
41075         Replace it if not.
41076         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
41077         (Depends-on): Add hypot-ieee.
41078         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
41079         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
41081         hypot-ieee: Work around test failure on OSF/1 and native Windows.
41082         * lib/math.in.h (hypot): New declaration.
41083         * lib/hypot.c: New file.
41084         * m4/hypot-ieee.m4: New file.
41085         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
41086         whether hypot works with mixed NaN and Infinity arguments. Replace it
41087         if not.
41088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
41089         REPLACE_HYPOT.
41090         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
41091         * modules/hypot (Files): Add lib/hypot.c.
41092         (Depends-on): Add dependencies.
41093         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
41094         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
41095         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
41096         * tests/test-math-c++.cc: Check the declaration of hypot.
41097         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
41099         Tests for module 'hypotl-ieee'.
41100         * modules/hypotl-ieee-tests: New file.
41101         * tests/test-hypotl-ieee.c: New file.
41103         New module 'hypotl-ieee'.
41104         * modules/hypotl-ieee: New file.
41106         Tests for module 'hypot-ieee'.
41107         * modules/hypot-ieee-tests: New file.
41108         * tests/test-hypot-ieee.c: New file.
41110         New module 'hypot-ieee'.
41111         * modules/hypot-ieee: New file.
41113         Tests for module 'hypotf-ieee'.
41114         * modules/hypotf-ieee-tests: New file.
41115         * tests/test-hypotf-ieee.c: New file.
41116         * tests/test-hypot-ieee.h: New file.
41118         New module 'hypotf-ieee'.
41119         * modules/hypotf-ieee: New file.
41121 2012-02-29  Bruno Haible  <bruno@clisp.org>
41123         Remove unused variables.
41124         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
41125         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41126         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
41127         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41129 2012-02-29  Eric Blake  <eblake@redhat.com>
41131         termios: fix pid_t always, not just for tcgetsid
41132         * doc/posix-headers/termios.texi (termios.h): Mention problem.
41133         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
41134         just when building tcgetsid.
41136 2012-02-29  Bruno Haible  <bruno@clisp.org>
41138         Tests for module 'hypotl'.
41139         * modules/hypotl-tests: New file.
41140         * tests/test-hypotl.c: New file.
41142         New module 'hypotl'.
41143         * lib/math.in.h (hypotl): New declaration.
41144         * lib/hypotl.c: New file.
41145         * m4/hypotl.m4: New file.
41146         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
41148         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
41149         * modules/hypotl: New file.
41150         * tests/test-math-c++.cc: Check the hypotl declaration.
41151         * doc/posix-functions/hypotl.texi: Mention the new module.
41153 2012-02-29  Eric Blake  <eblake@redhat.com>
41155         tcgetsid: fix cygwin header bug
41156         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
41158         docs: update cygwin progress
41159         * doc/posix-functions/llround.texi (llround): Added in cygwin
41160         1.7.8.
41161         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
41162         * doc/glibc-functions/program_invocation_name.texi
41163         (program_invocation_name): Likewise.
41164         * doc/glibc-functions/program_invocation_short_name.texi
41165         (program_invocation_short_name): Likewise.
41166         * doc/glibc-functions/madvise.texi (madvise): Likewise.
41167         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
41168         Likewise.
41169         * doc/posix-functions/pthread_spin_destroy.texi
41170         (pthread_spin_destroy): Added in cygwin 1.7.10.
41171         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
41172         Likewise.
41173         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
41174         Likewise.
41175         * doc/posix-functions/pthread_spin_trylock.texi
41176         (pthread_spin_trylock): Likewise.
41177         * doc/posix-functions/pthread_spin_unlock.texi
41178         (pthread_spin_unlock): Likewise.
41179         * doc/posix-functions/pthread_setschedprio.texi
41180         (pthread_setschedprio): Likewise.
41181         * doc/posix-functions/pthread_attr_getstack.texi
41182         (pthread_attr_getstack): Likewise.
41183         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
41184         (pthread_attr_getstackaddr): Likewise.
41185         * doc/glibc-functions/pthread_getattr_np.texi
41186         (pthread_getattr_np): Likewise.
41187         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
41188         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
41189         * doc/posix-functions/clock_settime.texi (clock_settime):
41190         Likewise.
41191         * doc/posix-functions/pthread_attr_getguardsize.texi
41192         (pthread_attr_getguardsize): Likewise.
41193         * doc/posix-functions/pthread_attr_setguardsize.texi
41194         (pthread_attr_setguardsize): Likewise.
41195         * doc/posix-functions/pthread_attr_setstack.texi
41196         (pthread_attr_setstack): Likewise.
41197         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
41198         (pthread_attr_setstackaddr): Likewise.
41199         * doc/posix-functions/clock_getcpuclockid.texi
41200         (clock_getcpuclockid): Likewise.
41201         * doc/posix-functions/pthread_getcpuclockid.texi
41202         (pthread_getcpuclockid): Likewise.
41203         * doc/glibc-functions/error.texi (error): Likewise.
41204         * doc/glibc-functions/error_at_line.texi (error_at_line):
41205         Likewise.
41206         * doc/glibc-functions/error_message_count.texi
41207         (error_message_count): Likewise.
41208         * doc/glibc-functions/error_one_per_line.texi
41209         (error_one_per_line): Likewise.
41210         * doc/glibc-functions/error_print_progname.texi
41211         (error_print_progname): Likewise.
41212         * doc/posix-functions/pthread_condattr_getclock.texi
41213         (pthread_condattr_getclock): Likewise.
41214         * doc/posix-functions/pthread_condattr_setclock.texi
41215         (pthread_condattr_setclock): Likewise.
41216         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
41217         Likewise.
41218         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
41219         * doc/glibc-functions/getpt.texi (getpt): Likewise.
41220         * doc/glibc-functions/get_current_dir_name.texi
41221         (get_current_dir_name): Likewise.
41222         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
41223         Likewise.
41224         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
41225         wrong return type.
41226         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
41227         1.7.11.
41229 2012-02-29  Bruno Haible  <bruno@clisp.org>
41231         Tests for module 'hypotf'.
41232         * modules/hypotf-tests: New file.
41233         * tests/test-hypotf.c: New file.
41235         New module 'hypotf'.
41236         * lib/math.in.h (hypotf): New declaration.
41237         * lib/hypotf.c: New file.
41238         * m4/hypotf.m4: New file.
41239         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
41240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
41241         REPLACE_HYPOTF.
41242         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
41243         REPLACE_HYPOTF.
41244         * modules/hypotf: New file.
41245         * tests/test-math-c++.cc: Check the hypotf declaration.
41246         * doc/posix-functions/hypotf.texi: Mention the new module.
41248         hypot: Prepare for hypotf module.
41249         * m4/hypot.m4: New file.
41250         * modules/hypot (Files): Add m4/hypot.m4.
41251         (configure.ac): Invoke gl_FUNC_HYPOT.
41253 2012-02-29  Bruno Haible  <bruno@clisp.org>
41255         hypot tests: More tests.
41256         * tests/test-hypot.c: Include <float.h>.
41257         (main): Add tests about overflow and underflow.
41259 2012-02-29  Bruno Haible  <bruno@clisp.org>
41261         math code: Add comments.
41262         * lib/acosl.c: Add comment about related glibc source files.
41263         * lib/asinl.c: Likewise.
41264         * lib/atanl.c: Likewise.
41265         * lib/expl.c: Likewise.
41266         * lib/logl.c: Likewise.
41267         * lib/sincosl.c: Likewise.
41268         * lib/sinl.c: Likewise.
41269         * lib/tanl.c: Likewise.
41270         * lib/trigl.c: Likewise.
41271         * lib/cosl.c: Likewise. Fix comments.
41273 2012-02-28  Bruno Haible  <bruno@clisp.org>
41275         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41276         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41277         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41278         HUGE_VALL are defined.
41279         (numeric_equald): Renamed from numeric_equal.
41280         (numeric_equalf, numeric_equall): New functions.
41281         (main): Check also HUGE_VALF, HUGE_VALL.
41282         * modules/math-tests (Files): Add tests/macros.h.
41283         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41284         HUGE_VALL.
41286 2012-02-28  Bruno Haible  <bruno@clisp.org>
41288         doc: Move ISO C11 feature notes into POSIX chapters.
41289         * doc/posix-functions/aligned_alloc.texi: Renamed from
41290         doc/glibc-functions/aligned_alloc.texi.
41291         * doc/posix-functions/quick_exit.texi: Renamed from
41292         doc/glibc-functions/quick_exit.texi.
41293         * doc/posix-headers/uchar.texi: Renamed from
41294         doc/glibc-headers/uchar.texi.
41295         * doc/posix-functions/c16rtomb.texi: Renamed from
41296         doc/glibc-functions/c16rtomb.texi.
41297         * doc/posix-functions/c32rtomb.texi: Renamed from
41298         doc/glibc-functions/c32rtomb.texi.
41299         * doc/posix-functions/mbrtoc16.texi: Renamed from
41300         doc/glibc-functions/mbrtoc16.texi.
41301         * doc/posix-functions/mbrtoc32.texi: Renamed from
41302         doc/glibc-functions/mbrtoc32.texi.
41303         * doc/gnulib.texi: Update.
41304         (Glibc uchar.h): Remove section.
41305         Suggested by Eric Blake.
41307 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41309         stdnoreturn: port to MSVC better
41310         MSVC standard headers use __declspec(noreturn), so #define noreturn
41311         to empty on that platform.  Reported by Bruno Haible in
41312         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41313         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41314         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41316 2012-02-28  Bruno Haible  <bruno@clisp.org>
41318         doc: Mention new glibc headers and functions.
41319         * doc/glibc-headers/uchar.texi: New file.
41320         * doc/glibc-functions/aligned_alloc.texi: New file.
41321         * doc/glibc-functions/c16rtomb.texi: New file.
41322         * doc/glibc-functions/c32rtomb.texi: New file.
41323         * doc/glibc-functions/clock_adjtime.texi: New file.
41324         * doc/glibc-functions/fanotify_init.texi: New file.
41325         * doc/glibc-functions/fanotify_mark.texi: New file.
41326         * doc/glibc-functions/inet6_opt_append.texi: New file.
41327         * doc/glibc-functions/inet6_opt_find.texi: New file.
41328         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41329         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41330         * doc/glibc-functions/inet6_opt_init.texi: New file.
41331         * doc/glibc-functions/inet6_opt_next.texi: New file.
41332         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41333         * doc/glibc-functions/inet6_rth_add.texi: New file.
41334         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41335         * doc/glibc-functions/inet6_rth_init.texi: New file.
41336         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41337         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41338         * doc/glibc-functions/inet6_rth_space.texi: New file.
41339         * doc/glibc-functions/login.texi: New file.
41340         * doc/glibc-functions/mbrtoc16.texi: New file.
41341         * doc/glibc-functions/mbrtoc32.texi: New file.
41342         * doc/glibc-functions/name_to_handle_at.texi: New file.
41343         * doc/glibc-functions/ntp_gettimex.texi: New file.
41344         * doc/glibc-functions/open_by_handle_at.texi: New file.
41345         * doc/glibc-functions/prlimit.texi: New file.
41346         * doc/glibc-functions/process_vm_readv.texi: New file.
41347         * doc/glibc-functions/process_vm_writev.texi: New file.
41348         * doc/glibc-functions/recvmmsg.texi: New file.
41349         * doc/glibc-functions/scandirat.texi: New file.
41350         * doc/glibc-functions/sendmmsg.texi: New file.
41351         * doc/glibc-functions/setns.texi: New file.
41352         * doc/glibc-functions/timespec_get.texi: New file.
41353         * doc/gnulib.texi: Include them.
41354         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41355         sections.
41356         Reported by Eric Blake.
41358 2012-02-28  Bruno Haible  <bruno@clisp.org>
41360         Avoid compilation errors with MSVC option -fp:strict.
41361         * lib/floor.c: Use MSVC specific pragma fenv_access.
41362         * lib/ceil.c: Likewise.
41363         * lib/trunc.c: Likewise.
41364         * lib/round.c: Likewise.
41365         * lib/rint.c: Likewise.
41366         * lib/fma.c: Likewise.
41367         * lib/integer_length.c: Likewise.
41368         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41370         * tests/test-floor2.c: Likewise.
41371         * tests/test-floorf2.c: Likewise.
41372         * tests/test-ceil2.c: Likewise.
41373         * tests/test-ceilf2.c: Likewise.
41374         * tests/test-trunc2.c: Likewise.
41375         * tests/test-truncf2.c: Likewise.
41376         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41378 2012-02-27  Bruno Haible  <bruno@clisp.org>
41380         Tests for module 'sqrtl-ieee'.
41381         * modules/sqrtl-ieee-tests: New file.
41382         * tests/test-sqrtl-ieee.c: New file.
41384         New module 'sqrtl-ieee'.
41385         * modules/sqrtl-ieee: New file.
41387         Tests for module 'sqrt-ieee'.
41388         * modules/sqrt-ieee-tests: New file.
41389         * tests/test-sqrt-ieee.c: New file.
41391         New module 'sqrt-ieee'.
41392         * modules/sqrt-ieee: New file.
41394         Tests for module 'sqrtf-ieee'.
41395         * modules/sqrtf-ieee-tests: New file.
41396         * tests/test-sqrtf-ieee.c: New file.
41397         * tests/test-sqrt-ieee.h: New file.
41399         New module 'sqrtf-ieee'.
41400         * modules/sqrtf-ieee: New file.
41402 2012-02-27  Bruno Haible  <bruno@clisp.org>
41404         remainderl-ieee: Work around test failure on OSF/1.
41405         * m4/remainderl-ieee.m4: New file.
41406         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41407         present, test whether remainderl works with a zero second argument.
41408         Replace it if not.
41409         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41411         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41412         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41413         (Depends-on): Update conditions.
41414         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41415         (Depends-on): Add remainder-ieee.
41416         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41417         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41418         module.
41420         remainderf-ieee: Work around test failure on OSF/1.
41421         * m4/remainderf-ieee.m4: New file.
41422         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41423         present, test whether remainderf works with a zero second argument.
41424         Replace it if not.
41425         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41427         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41428         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41429         (Depends-on): Update conditions.
41430         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41431         (Depends-on): Add remainder-ieee.
41432         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41433         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41434         module.
41436         remainder-ieee: Work around test failure on OSF/1.
41437         * m4/remainder-ieee.m4: New file.
41438         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41439         present, test whether remainder works with a zero second argument.
41440         Replace it if not.
41441         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41443         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41444         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41445         (Depends-on): Update dependencies.
41446         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41447         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41448         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41450         Tests for module 'remainderl-ieee'.
41451         * modules/remainderl-ieee-tests: New file.
41452         * tests/test-remainderl-ieee.c: New file.
41454         New module 'remainderl-ieee'.
41455         * modules/remainderl-ieee: New file.
41457         Tests for module 'remainder-ieee'.
41458         * modules/remainder-ieee-tests: New file.
41459         * tests/test-remainder-ieee.c: New file.
41461         New module 'remainder-ieee'.
41462         * modules/remainder-ieee: New file.
41464         Tests for module 'remainderf-ieee'.
41465         * modules/remainderf-ieee-tests: New file.
41466         * tests/test-remainderf-ieee.c: New file.
41467         * tests/test-remainder-ieee.h: New file.
41469         New module 'remainderf-ieee'.
41470         * modules/remainderf-ieee: New file.
41472 2012-02-27  Bruno Haible  <bruno@clisp.org>
41474         modff, modfl: Fix configure syntax error.
41475         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41476         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41478 2012-02-27  Bruno Haible  <bruno@clisp.org>
41480         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41481         * m4/fmodl-ieee.m4: New file.
41482         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41483         whether fmodl works with zero arguments. Replace it if not.
41484         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41485         (Depends-on): Add fmod-ieee.
41486         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41487         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41489         fmodf-ieee: Work around test failure on OSF/1.
41490         * m4/fmodf-ieee.m4: New file.
41491         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41492         whether fmodf works with zero arguments. Replace it if not.
41493         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41495         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41496         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41497         (Depends-on): Update dependencies.
41498         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41499         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41500         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41502         fmodf-ieee: Work around test failure on MSVC 9.
41503         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41504         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41506         fmod-ieee: Work around test failures on OSF/1, mingw.
41507         * m4/fmod-ieee.m4: New file.
41508         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41509         whether fmod works with zero arguments. Replace it if not.
41510         * lib/math.in.h (fmod): New declaration.
41511         * lib/fmod.c: New file.
41512         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41514         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41515         * modules/fmod (Files): Add lib/fmod.c.
41516         (Depends-on): Add math, isinf, trunc, fma.
41517         (configure.ac): Arrange to compile lib/fmod.c if needed.
41518         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41519         m4/signbit.m4.
41520         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41521         * tests/test-math-c++.cc: Check the declaration of fmod.
41522         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41524         fmodl-ieee: Fix test failures.
41525         * lib/fmodl.c (fmodl): Treat Inf specially.
41526         * modules/fmodl (Depends-on): Add isinf.
41528         Tests for module 'fmodl-ieee'.
41529         * modules/fmodl-ieee-tests: New file.
41530         * tests/test-fmodl-ieee.c: New file.
41532         New module 'fmodl-ieee'.
41533         * modules/fmodl-ieee: New file.
41535         Tests for module 'fmod-ieee'.
41536         * modules/fmod-ieee-tests: New file.
41537         * tests/test-fmod-ieee.c: New file.
41539         New module 'fmod-ieee'.
41540         * modules/fmod-ieee: New file.
41542         Tests for module 'fmodf-ieee'.
41543         * modules/fmodf-ieee-tests: New file.
41544         * tests/test-fmodf-ieee.c: New file.
41545         * tests/test-fmod-ieee.h: New file.
41547         New module 'fmodf-ieee'.
41548         * modules/fmodf-ieee: New file.
41550 2012-02-27  Bruno Haible  <bruno@clisp.org>
41552         Tests for module 'rintl-ieee'.
41553         * modules/rintl-ieee-tests: New file.
41554         * tests/test-rintl-ieee.c: New file.
41556         New module 'rintl-ieee'.
41557         * modules/rintl-ieee: New file.
41559         Tests for module 'rint-ieee'.
41560         * modules/rint-ieee-tests: New file.
41561         * tests/test-rint-ieee.c: New file.
41563         New module 'rint-ieee'.
41564         * modules/rint-ieee: New file.
41566         Tests for module 'rintf-ieee'.
41567         * modules/rintf-ieee-tests: New file.
41568         * tests/test-rintf-ieee.c: New file.
41569         * tests/test-rint-ieee.h: New file.
41571         New module 'rintf-ieee'.
41572         * modules/rintf-ieee: New file.
41574 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41576         regex: re_search etc. should return -2 when memory exhausted
41577         This bug was uncovered when testing 'grep'.  Without the fix,
41578         re_search and friends return -1 when memory is exhausted, but -1
41579         means no match, and this causes grep to falsely report no-match
41580         instead of memory-exhaustion.  See
41581         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41582         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41583         trouble; this can occur if re_search_internal ran out of memory.
41585 2012-02-26  Bruno Haible  <bruno@clisp.org>
41587         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41588         * m4/modfl-ieee.m4: New file.
41589         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41590         whether modfl works with Inf. Replace it if not.
41591         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41592         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41593         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41594         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41595         (Depends-on): Update dependencies.
41596         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41597         m4/signbit.m4.
41598         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41599         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41601         modfl-ieee: Fix dependencies.
41602         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41604         modfl-ieee: Fix test failures.
41605         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41606         * modules/modfl (Depends-on): Add isfinite, isinf.
41608         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41609         * m4/modff-ieee.m4: New file.
41610         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41611         whether modff works with NaN and Inf. Replace it if not.
41612         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41614         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41615         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41616         (Depends-on): Update dependencies.
41617         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41618         m4/signbit.m4.
41619         (Depends-on): Add modf-ieee.
41620         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41621         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41623         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41624         * m4/modf-ieee.m4: New file.
41625         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41626         whether modf works with NaN and Inf. Replace it if not.
41627         * lib/math.in.h (modf): New declaration.
41628         * lib/modf.c: New file.
41629         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41631         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41632         * modules/modf (Files): Add lib/modf.c.
41633         (Depends-on): Add math, isfinite, trunc, isinf.
41634         (configure.ac): Addrange to compile lib/modf.c if needed.
41635         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41636         m4/signbit.m4.
41637         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41638         * tests/test-math-c++.cc: Check the declaration of modf.
41639         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41641         Tests for module 'modfl-ieee'.
41642         * modules/modfl-ieee-tests: New file.
41643         * tests/test-modfl-ieee.c: New file.
41645         New module 'modfl-ieee'.
41646         * modules/modfl-ieee: New file.
41648         Tests for module 'modf-ieee'.
41649         * modules/modf-ieee-tests: New file.
41650         * tests/test-modf-ieee.c: New file.
41652         New module 'modf-ieee'.
41653         * modules/modf-ieee: New file.
41655         Tests for module 'modff-ieee'.
41656         * modules/modff-ieee-tests: New file.
41657         * tests/test-modff-ieee.c: New file.
41658         * tests/test-modf-ieee.h: New file.
41660         New module 'modff-ieee'.
41661         * modules/modff-ieee: New file.
41663 2012-02-26  Bruno Haible  <bruno@clisp.org>
41665         Tests for module 'fabsl-ieee'.
41666         * modules/fabsl-ieee-tests: New file.
41667         * tests/test-fabsl-ieee.c: New file.
41669         New module 'fabsl-ieee'.
41670         * modules/fabsl-ieee: New file.
41672         Tests for module 'fabs-ieee'.
41673         * modules/fabs-ieee-tests: New file.
41674         * tests/test-fabs-ieee.c: New file.
41676         New module 'fabs-ieee'.
41677         * modules/fabs-ieee: New file.
41679         Tests for module 'fabsf-ieee'.
41680         * modules/fabsf-ieee-tests: New file.
41681         * tests/test-fabsf-ieee.c: New file.
41682         * tests/test-fabs-ieee.h: New file.
41684         New module 'fabsf-ieee'.
41685         * modules/fabsf-ieee: New file.
41687 2012-02-26  Bruno Haible  <bruno@clisp.org>
41689         Tests for module 'fmal-ieee'.
41690         * modules/fmal-ieee-tests: New file.
41691         * tests/test-fmal-ieee.c: New file.
41693         New module 'fmal-ieee'.
41694         * modules/fmal-ieee: New file.
41696         Tests for module 'fma-ieee'.
41697         * modules/fma-ieee-tests: New file.
41698         * tests/test-fma-ieee.c: New file.
41700         New module 'fma-ieee'.
41701         * modules/fma-ieee: New file.
41703         Tests for module 'fmaf-ieee'.
41704         * modules/fmaf-ieee-tests: New file.
41705         * tests/test-fmaf-ieee.c: New file.
41706         * tests/test-fma-ieee.h: New file.
41708         New module 'fmaf-ieee'.
41709         * modules/fmaf-ieee: New file.
41711 2012-02-26  Bruno Haible  <bruno@clisp.org>
41713         Tests for module 'ldexpl-ieee'.
41714         * modules/ldexpl-ieee-tests: New file.
41715         * tests/test-ldexpl-ieee.c: New file.
41717         New module 'ldexpl-ieee'.
41718         * modules/ldexpl-ieee: New file.
41720         Tests for module 'ldexp-ieee'.
41721         * modules/ldexp-ieee-tests: New file.
41722         * tests/test-ldexp-ieee.c: New file.
41724         New module 'ldexp-ieee'.
41725         * modules/ldexp-ieee: New file.
41727         Tests for module 'ldexpf-ieee'.
41728         * modules/ldexpf-ieee-tests: New file.
41729         * tests/test-ldexpf-ieee.c: New file.
41730         * tests/test-ldexp-ieee.h: New file.
41732         New module 'ldexpf-ieee'.
41733         * modules/ldexpf-ieee: New file.
41735 2012-02-26  Bruno Haible  <bruno@clisp.org>
41737         Refactor frexp*-ieee tests.
41738         * tests/test-frexp-ieee.h: New file.
41739         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41740         (main): Just call test_function.
41741         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41742         (main): Just call test_function.
41743         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41744         (main): Just call test_function.
41745         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41746         * modules/frexp-ieee-tests (Files): Likewise.
41747         * modules/frexpl-ieee-tests (Files): Likewise.
41749         Tests for module 'frexpl-ieee'.
41750         * modules/frexpl-ieee-tests: New file.
41751         * tests/test-frexpl-ieee.c: New file.
41753         New module 'frexpl-ieee'.
41754         * modules/frexpl-ieee: New file.
41756         Tests for module 'frexp-ieee'.
41757         * modules/frexp-ieee-tests: New file.
41758         * tests/test-frexp-ieee.c: New file.
41760         New module 'frexp-ieee'.
41761         * modules/frexp-ieee: New file.
41763         Tests for module 'frexpf-ieee'.
41764         * modules/frexpf-ieee-tests: New file.
41765         * tests/test-frexpf-ieee.c: New file.
41767         New module 'frexpf-ieee'.
41768         * modules/frexpf-ieee: New file.
41770 2012-02-26  Bruno Haible  <bruno@clisp.org>
41772         roundl-ieee tests: More tests.
41773         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41774         (main): Add tests for [MX] shaded specification in POSIX.
41775         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41776         (Depends-on): Add isnanl-nolibm.
41778         round-ieee tests: More tests.
41779         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41780         (main): Add tests for [MX] shaded specification in POSIX.
41781         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41782         (Depends-on): Add isnand-nolibm.
41784         roundf-ieee tests: More tests.
41785         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41786         (main): Add tests for [MX] shaded specification in POSIX.
41787         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41788         (Depends-on): Add isnanf-nolibm.
41790         truncl-ieee tests: More tests.
41791         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41792         (main): Add tests for [MX] shaded specification in POSIX.
41793         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41794         (Depends-on): Add isnanl-nolibm.
41796         trunc-ieee tests: More tests.
41797         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41798         (main): Add tests for [MX] shaded specification in POSIX.
41799         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41800         (Depends-on): Add isnand-nolibm.
41802         truncf-ieee tests: More tests.
41803         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41804         (main): Add tests for [MX] shaded specification in POSIX.
41805         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41806         (Depends-on): Add isnanf-nolibm.
41808         ceill-ieee tests: More tests.
41809         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41810         (main): Add tests for [MX] shaded specification in POSIX.
41811         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41812         (Depends-on): Add isnanl-nolibm.
41814         ceil-ieee tests: More tests.
41815         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41816         (main): Add tests for [MX] shaded specification in POSIX.
41817         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41818         (Depends-on): Add isnand-nolibm.
41820         ceilf-ieee tests: More tests.
41821         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41822         (main): Add tests for [MX] shaded specification in POSIX.
41823         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41824         (Depends-on): Add isnanf-nolibm.
41826         floorl-ieee tests: More tests.
41827         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41828         (main): Add tests for [MX] shaded specification in POSIX.
41829         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41830         (Depends-on): Add isnanl-nolibm.
41832         floor-ieee tests: More tests.
41833         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41834         (main): Add tests for [MX] shaded specification in POSIX.
41835         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41836         (Depends-on): Add isnand-nolibm.
41838         floorf-ieee tests: More tests.
41839         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41840         (main): Add tests for [MX] shaded specification in POSIX.
41841         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41842         (Depends-on): Add isnanf-nolibm.
41844 2012-02-26  Bruno Haible  <bruno@clisp.org>
41846         fpieee: More comments.
41847         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41849 2012-02-25  Bruno Haible  <bruno@clisp.org>
41851         Tests for module 'log10l'.
41852         * modules/log10l-tests: New file.
41853         * tests/test-log10l.c: New file.
41854         * tests/test-math-c++.cc: Check the declaration of log10l.
41856         New module 'log10l'.
41857         * lib/math.in.h (log10l): New declaration.
41858         * lib/log10l.c: New file.
41859         * m4/log10l.m4: New file.
41860         * modules/log10l: New file.
41861         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41863         HAVE_DECL_LOG10L.
41864         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41865         HAVE_DECL_LOG10L.
41866         * doc/posix-functions/log10l.texi: Mention the new module.
41868 2012-02-25  Bruno Haible  <bruno@clisp.org>
41870         fmodl, remainder*: Avoid wrong results due to rounding errors.
41871         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41872         expected bounds.
41873         * lib/remainderf.c (remainderf): Likewise.
41874         * lib/remainder.c (remainder): Likewise.
41875         * lib/remainderl.c (remainderl): Likewise.
41877 2012-02-25  Bruno Haible  <bruno@clisp.org>
41879         Tests for module 'remainderl'.
41880         * modules/remainderl-tests: New file.
41881         * tests/test-remainderl.c: New file.
41882         * tests/test-math-c++.cc: Check the declaration of remainderl.
41884         New module 'remainderl'.
41885         * lib/math.in.h (remainderl): New declaration.
41886         * lib/remainderl.c: New file.
41887         * m4/remainderl.m4: New file.
41888         * modules/remainderl: New file.
41889         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41891         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41892         HAVE_REMAINDERL.
41893         * doc/posix-functions/remainderl.texi: Mention the new module.
41895 2012-02-25  Bruno Haible  <bruno@clisp.org>
41897         Tests for module 'remainderf'.
41898         * modules/remainderf-tests: New file.
41899         * tests/test-remainderf.c: New file.
41900         * tests/test-math-c++.cc: Check the declaration of remainderf.
41902         New module 'remainderf'.
41903         * lib/math.in.h (remainderf): New declaration.
41904         * lib/remainderf.c: New file.
41905         * m4/remainderf.m4: New file.
41906         * modules/remainderf: New file.
41907         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41909         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41910         HAVE_REMAINDERF.
41911         * doc/posix-functions/remainderf.texi: Mention the new module.
41913 2012-02-25  Bruno Haible  <bruno@clisp.org>
41915         remainder: Support for MSVC.
41916         * lib/math.in.h (remainder): New declaration.
41917         * lib/remainder.c: New file.
41918         * m4/remainder.m4: New file.
41919         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41920         (Depends-on): Add math, round, fma.
41921         (configure.ac): Use results of gl_FUNC_REMAINDER.
41922         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41924         HAVE_DECL_REMAINDER.
41925         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41926         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41927         * tests/test-math-c++.cc: Check the declaration of remainder.
41928         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41929         problems are fixed.
41931 2012-02-25  Bruno Haible  <bruno@clisp.org>
41933         Tests for module 'fmodl'.
41934         * modules/fmodl-tests: New file.
41935         * tests/test-fmodl.c: New file.
41936         * tests/test-math-c++.cc: Check the declaration of fmodl.
41938         New module 'fmodl'.
41939         * lib/math.in.h (fmodl): New declaration.
41940         * lib/fmodl.c: New file.
41941         * m4/fmodl.m4: New file.
41942         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41944         REPLACE_FMODL.
41945         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41946         REPLACE_FMODL.
41947         * modules/fmodl: New file.
41948         * doc/posix-functions/fmodl.texi: Mention the new module.
41950 2012-02-25  Bruno Haible  <bruno@clisp.org>
41952         Tests for module 'modfl'.
41953         * modules/modfl-tests: New file.
41954         * tests/test-modfl.c: New file.
41955         * tests/test-math-c++.cc: Check the declaration of modfl.
41957         New module 'modfl'.
41958         * lib/math.in.h (modfl): New declaration.
41959         * lib/modfl.c: New file.
41960         * m4/modfl.m4: New file.
41961         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41963         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41964         * modules/modfl: New file.
41965         * doc/posix-functions/modfl.texi: Mention the new module.
41967 2012-02-25  Bruno Haible  <bruno@clisp.org>
41969         Tests for module 'fabsl'.
41970         * modules/fabsl-tests: New file.
41971         * tests/test-fabsl.c: New file.
41972         * tests/test-math-c++.cc: Check the declaration of fabsl.
41974         New module 'fabsl'.
41975         * lib/math.in.h (fabsl): New declaration.
41976         * lib/fabsl.c: New file.
41977         * m4/fabsl.m4: New file.
41978         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41980         REPLACE_FABSL.
41981         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41982         REPLACE_FABSL.
41983         * modules/fabsl: New file.
41984         * doc/posix-functions/fabsl.texi: Mention the new module.
41986 2012-02-25  Bruno Haible  <bruno@clisp.org>
41988         fabs tests: More tests.
41989         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41990         (zero): New variable.
41991         (main): Add tests for signed zero.
41992         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41994         fabsf tests: More tests.
41995         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41996         (zero): New variable.
41997         (main): Add tests for signed zero.
41998         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
42000 2012-02-24  Bruno Haible  <bruno@clisp.org>
42002         atanl: Provide function definition on MSVC.
42003         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
42004         function pointer.
42005         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
42007 2012-02-24  Bruno Haible  <bruno@clisp.org>
42009         acosl: Provide function definition on MSVC.
42010         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
42011         function pointer.
42012         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
42014 2012-02-24  Bruno Haible  <bruno@clisp.org>
42016         asinl: Provide function definition on MSVC.
42017         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
42018         function pointer.
42019         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
42021 2012-02-24  Bruno Haible  <bruno@clisp.org>
42023         tanl: Provide function definition on MSVC.
42024         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
42025         function pointer.
42026         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
42028 2012-02-24  Bruno Haible  <bruno@clisp.org>
42030         cosl: Provide function definition on MSVC.
42031         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
42032         function pointer.
42033         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
42035 2012-02-24  Bruno Haible  <bruno@clisp.org>
42037         sinl: Provide function definition on MSVC.
42038         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
42039         function pointer.
42040         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
42042 2012-02-24  Bruno Haible  <bruno@clisp.org>
42044         logl: Provide function definition on MSVC.
42045         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
42046         function pointer.
42047         * lib/math.in.h (logl): Undefine if it does not exist as a function.
42049 2012-02-24  Bruno Haible  <bruno@clisp.org>
42051         expl: Provide function definition on MSVC.
42052         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
42053         function pointer.
42054         * lib/math.in.h (expl): Undefine if it does not exist as a function.
42056 2012-02-24  Bruno Haible  <bruno@clisp.org>
42058         sqrtl: Provide function definition on MSVC.
42059         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
42060         a function pointer.
42061         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
42063 2012-02-24  Bruno Haible  <bruno@clisp.org>
42065         ceill: Provide function definition on MSVC.
42066         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
42067         used as a function pointer.
42068         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
42070 2012-02-24  Bruno Haible  <bruno@clisp.org>
42072         floorl: Provide function definition on MSVC.
42073         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
42074         used as a function pointer.
42075         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
42077 2012-02-24  Bruno Haible  <bruno@clisp.org>
42079         ceilf: Provide function definition on MSVC.
42080         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
42081         used as a function pointer.
42082         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
42084 2012-02-24  Bruno Haible  <bruno@clisp.org>
42086         floorf: Provide function definition on MSVC.
42087         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
42088         used as a function pointer.
42089         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
42091 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42093         stdnoreturn: new module
42094         This implements a replacement for C11's <stdnoreturn.h>.
42095         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
42096         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
42097         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
42098         * tests/test-stdnoreturn.c: New files.
42100 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
42102         regex: fix false multibyte matches in some regular expressions
42103         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42104         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
42105         * lib/regex_internal.c (re_string_skip_chars):
42106         Fix miscomputation of remain_len that may cause incomplete
42107         multi-byte character and false match.
42109 2012-02-24  Jim Meyering  <meyering@redhat.com>
42111         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
42112         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
42113         uses with "==" *before* the call, e.g., 0 == strcmp (...)
42114         Remove now-unnecessary str''cmp obfuscation.
42115         Suggested by Akim Demaille.
42117 2012-02-24  Bruno Haible  <bruno@clisp.org>
42119         streq: Rename macro.
42120         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
42121         * NEWS: Mention the change.
42122         * lib/mbrtowc.c (mbrtowc): Update.
42123         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
42124         * lib/wcwidth.c (wcwidth): Update.
42125         Suggested by Akim Demaille and Jim Meyering.
42127 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
42129         regex: fix typo in definition of MIN
42130         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
42131         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
42133 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42134             Bruno Haible  <bruno@clisp.org>
42136         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
42137         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
42138         entries into a stack-allocated buffer directly.
42139         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
42141 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
42142             Bruno Haible  <bruno@clisp.org>
42144         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
42146          - There were several instances of this pattern:
42148              for (;;) {
42149                n = acl (f, GETACLCNT, 0, NULL);
42150                [ allocate an array A of size N ]
42151                if (acl (f, GETACL, n, a) == n)
42152                  break;
42153              }
42155            This loop might never terminate if some other process is constantly
42156            manipulating the file's ACL.  The loop should be rewritten to
42157            terminate.
42159          - The acl (... GETACLNT ...) call is merely an optimization; its value
42160            is merely a hint as to how big to make the array.  A better
42161            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
42162            and just guess a reasonably-big size, growing the size and trying
42163            again if it's not large enough.  This guarantees termination, and
42164            saves a system call.
42166         * lib/acl-internal.h: Include <limits.h>.
42167         (MIN, SIZE_MAX): New macros.
42168         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
42169         a stack-allocated buffer, and use malloc if it does not fit. Don't
42170         use GETACLCNT.
42171         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42173 2012-02-19  Bruno Haible  <bruno@clisp.org>
42175         acl: Fix endless loop on Solaris with vxfs.
42176         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
42177         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
42178         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
42179         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
42180         * tests/test-sameacls.c (main)[Solaris]: Likewise.
42181         Reported by Bill Jones in
42182         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
42184 2012-02-19  Bruno Haible  <bruno@clisp.org>
42186         acl: Fix copy-acl test failure on Solaris 11.0.
42187         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
42188         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
42189         that this function returns 0 in some more cases.
42191 2012-02-19  Bruno Haible  <bruno@clisp.org>
42193         acl: Update doc references.
42194         * doc/acl-resources.txt: Update links to Solaris documentation.
42196 2012-02-19  Bruno Haible  <bruno@clisp.org>
42198         Fix test failure in many locales on Solaris 11.
42199         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
42200         'tr' arguments.
42201         * tests/test-pipe-filter-ii1.c (main): Likewise.
42202         * build-aux/bootstrap (check_versions): Run 'tr' command with range
42203         expressions in the C locale.
42204         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42205         * m4/host-os.m4 (gl_HOST_OS): Likewise.
42207 2012-02-19  Bruno Haible  <bruno@clisp.org>
42209         gnulib-tool: Improve usage message.
42210         * gnulib-tool (func_usage): Move doc of --help and --version to the
42211         section "Operation modes".
42213 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
42215         README-release: make it easier to execute commands
42216         * top/README-release: break commands out on to separate lines.
42218 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
42220         GNUmakefile: simplify detection of unconfigured trees
42221         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
42222         whether the tree make is being run from is already configured or
42223         not.  Related simplifications.
42225 2012-02-13  Simon Josefsson  <simon@josefsson.org>
42227         * gnulib-tool (func_usage): Document --help and --version.
42229 2012-02-11  Jim Meyering  <meyering@redhat.com>
42231         bootstrap: don't exit 0 upon gnulib-tool failure
42232         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
42233         its exit status, not 0.
42235 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
42237         README-release: various improvements
42238         * top/README-release: Give a command to push changes for the
42239         release.  Add "distcheck" to list of other pre-release checks.
42240         Fix instance of "make stable" which should be "make TYPE".
42242 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
42244         maint: replace FSF snail-mail addresses with URLs
42245         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
42246         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
42247         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
42248         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
42249         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
42250         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
42251         * lib/check-version.c, lib/check-version.h, lib/config.charset:
42252         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
42253         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42254         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42255         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42256         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42257         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42258         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42259         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42260         * lib/glthread/thread.c, lib/glthread/thread.h:
42261         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42262         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42263         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42264         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42265         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42266         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42267         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42268         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42269         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42270         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42271         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42272         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42273         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42274         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42275         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42276         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42277         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42278         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42279         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42280         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42281         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42282         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42283         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42284         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42285         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42286         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42287         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42288         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42289         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42290         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42291         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42292         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42293         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42294         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42295         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42296         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42297         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42298         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42299         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42300         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42301         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42302         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42303         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42304         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42305         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42306         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42307         * tests/test-poll.c, tests/test-quotearg-simple.c:
42308         * tests/test-quotearg.c, tests/test-quotearg.h:
42309         * tests/test-round-ieee.c, tests/test-round1.c:
42310         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42311         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42312         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42313         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42314         * tests/test-strerror.c, tests/test-strerror_r.c:
42315         * tests/test-strsignal.c, tests/test-strverscmp.c:
42316         * tests/test-xmemdup0.c:
42317         Replace FSF snail mail addresses with URLs, as per GNU coding
42318         standards.  See glibc bug
42319         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42321 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42323         README-release: capitalize a word and split a line
42324         * top/README-release: Fix punctuation and spacing.
42326 2012-02-08  Akim Demaille  <demaille@gostai.com>
42328         fatal-signal: use C prototypes (with explicit void).
42329         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42330         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42332 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42334         regex: spelling fix
42335         * lib/regexec.c: spelling fix
42337         regex: rely on stdint.h for SIZE_MAX
42338         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42340 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42342         regex: merge glibc changes
42344         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42345         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42346         (init_word_char): Work even if bitset words are not exactly 32 or
42347         64 bits wide.  Don't assume there are no padding bits.
42348         * lib/regex.c [_LIBC]: Do not include <config.h>.
42349         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42350         and -Wtype-limits.
42351         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42352         needless disagreement with glibc.  All uses changed.  Define it to
42353         1 only if _GNU_SOURCE, to match glibc.
42354         (_REG_RM_NAME): Remove; no longer needed, since the names in
42355         question are now all protected by __USE_GNU.
42356         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42357         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42358         * lib/regex_internal.h (MIN): New macro.
42360         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42361         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42363         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42364         * lib/regex_internal.c (re_string_fetch_byte_case):
42365         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42366         is miscompiled, and it turns out it is because of an incorrect
42367         attribute on re_string_fetch_byte_case.  Unlike
42368         re_string_peek_byte_case, this one is really not pure, it modifies
42369         memory (increments pstr->cur_idx), and with the pure attribute GCC
42370         assumed it doesn't and it cached the presumed value of
42371         regexp->cur_idx in a variable across the
42372          for (;; ++i)
42373            {
42374              if (i >= BRACKET_NAME_BUF_SIZE)
42375                return REG_EBRACK;
42376              if (token->type == OP_OPEN_CHAR_CLASS)
42377                ch = re_string_fetch_byte_case (regexp);
42378              else
42379                ch = re_string_fetch_byte (regexp);
42380              if (re_string_eoi(regexp))
42381                return REG_EBRACK;
42382              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42383                break;
42384              elem->opr.name[i] = ch;
42385            }
42387         2011-11-29 Andreas Schwab <schwab@redhat.com>
42388         * lib/regcomp.c (build_equiv_class):
42389         Fix access after end of search string in regex matcher.
42391         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42392         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42394         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42395         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42397         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42398         * lib/regcomp.c (parse_branch, parse_sub_exp):
42399         More regex memory leak fixes and tests.
42400         (parse_sub_exp, parse_bracket_exp):
42401         Fix memory leak for some invalid regular expressions.
42403         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42404         * lib/regex_internal.c, lib/regexec.c:
42405         Fix unnecessary overallocation due to incomplete character.  When
42406         incomplete characters are found at the end of a string the code
42407         ran amok and allocated lots of memory.  Stricter limits are now in
42408         place.
42410         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42411         * lib/regex.h: Update documentation.
42413         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42414         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42416         2010-05-05 Andreas Schwab <schwab@redhat.com>
42417         * lib/regexec.c (find_collation_sequence_value):
42418         Fix lookup of collation sequence value during regexp matching.
42420         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42421         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42423         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42424         * lib/regex.h: Cleanup namespace.
42426         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42427         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42429         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42430         * lib/regex_internal.h: Prevent some declarations and definitions
42431         to be seen when used in tests.
42433         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42434         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42435         __libc_lock_* macros if not _LIBC.
42436         (struct re_dfa_t): Add lock.
42438 2012-02-07  Eric Blake  <eblake@redhat.com>
42440         maint.mk: also prohibit lower-case @var@
42441         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42442         lower case, like @top_srcdir@.
42444 2012-02-04  Eric Blake  <eblake@redhat.com>
42446         canonicalize: avoid uninitialized memory use
42447         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42448         random '/' left in dest.
42449         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42451 2012-02-04  Bruno Haible  <bruno@clisp.org>
42453         isatty: Fix test failure of ptsname_r on native Windows.
42454         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42455         and don't set errno.
42456         (isatty): Test first whether fd is valid. Set errno when returning 0.
42458 2012-02-04  Bruno Haible  <bruno@clisp.org>
42460         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42461         * tests/test-spawn-pipe-main.c: Include progname.h.
42462         (main): Invoke set_program_name.
42463         * modules/spawn-pipe-tests (Depends-on): Add progname.
42465         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42466         * tests/test-nonblocking-socket-main.c: Include progname.h.
42467         (main): Invoke set_program_name.
42468         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42470         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42471         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42472         (main): Invoke set_program_name.
42473         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42475 2012-02-04  Eric Blake  <eblake@redhat.com>
42477         canonicalize-lgpl: fix // handling
42478         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42480         canonicalize: fix // handling
42481         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42482         /// to //, since only // is special.
42484 2012-02-04  Bruno Haible  <bruno@clisp.org>
42486         ioctl: Fix test failure on native Windows.
42487         * lib/ioctl.c: Include msvc-nothrow.h.
42488         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42490 2012-02-04  Bruno Haible  <bruno@clisp.org>
42492         fsync: Avoid test failure on native Windows.
42493         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42494         read-only.
42496 2012-02-04  Bruno Haible  <bruno@clisp.org>
42498         sys_select: Avoid syntax error on OpenBSD 5.0.
42499         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42500         currently being included, just include the system's <sys/select.h>.
42502 2012-02-04  Bruno Haible  <bruno@clisp.org>
42504         sys_select: Avoid syntax error on OpenBSD 5.0.
42505         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42506         <sys/select.h>, not before.
42507         Reported by Jiri B <jirib@devio.us>.
42509 2012-02-04  Bruno Haible  <bruno@clisp.org>
42511         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42512         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42513         global variables.
42514         * tests/test-get-rusage-data.c (main): Likewise.
42515         Reported by Jim Meyering.
42517 2012-02-04  Bruno Haible  <bruno@clisp.org>
42519         stdioext: Fix last commit.
42520         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42522 2012-02-03  Bruno Haible  <bruno@clisp.org>
42524         stdioext: Add tentative support for Plan9.
42525         * lib/stdio-impl.h: Include <errno.h>.
42526         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42527         * lib/freadable.c (freadable): Likewise.
42528         * lib/fwritable.c (fwritable): Likewise.
42529         * lib/fbufmode.c (fbufmode): Likewise.
42530         * lib/freading.c (freading): Likewise.
42531         * lib/fwriting.c (fwriting): Likewise.
42532         * lib/freadptr.c (freadptr): Likewise.
42533         * lib/freadseek.c (freadptrinc): Likewise.
42534         * lib/freadahead.c (freadahead): Likewise.
42535         * lib/fpurge.c (fpurge): Likewise.
42536         * lib/fseeko.c (rpl_fseeko): Likewise.
42537         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42538         Reported by Jens Staal <staal1978@gmail.com>.
42540 2012-02-02  Jim Meyering  <meyering@redhat.com>
42542         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42543         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42544         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42545         not even to try to add the attribute.  Instead, add a pragma to suppress
42546         the suggestion/warning.
42548 2012-01-31  Karl Berry  <karl@gnu.org>
42550         setstate doc: typo.
42551         * doc/posix-functions/setstate.texi (setstate): { not (.
42553 2012-01-31  Bruno Haible  <bruno@clisp.org>
42555         popen: Make more robust on Windows.
42556         * lib/popen.c: On native Windows, use the _popen based code even if
42557         HAVE_POPEN is set.
42558         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42559         environment variable on native Windows.
42561 2012-01-30  Bruno Haible  <bruno@clisp.org>
42563         pclose: Fix typo.
42564         * lib/stdio.in.h (pclose): Fix typo in warning message.
42566 2012-01-30  Bruno Haible  <bruno@clisp.org>
42568         doc about getlogin_r, setstate.
42569         * doc/posix-functions/getlogin_r.texi: List the incompatible
42570         declaration problem under "not fixed by gnulib".
42571         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42572         problem on Solaris 11 and other platforms.
42574 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42575             Bruno Haible  <bruno@clisp.org>
42577         poll tests: Make test more robust.
42578         * tests/test-poll.c: Include macros.h.
42579         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42580         return value of various I/O operations.
42581         * modules/poll-tests (Files): Add tests/macros.h.
42583 2012-01-30  Bruno Haible  <bruno@clisp.org>
42585         sys_stat: Fix support for mingw64 and MSVC.
42586         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42587         header files already do it.
42588         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42589         stat itself.
42590         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42592 2012-01-30  Bruno Haible  <bruno@clisp.org>
42594         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42595         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42596         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42598 2012-01-29  Bruno Haible  <bruno@clisp.org>
42600         quotearg: Fix test failure on MacOS X 10.5.
42601         * tests/test-quotearg-simple.c: Include localcharset.h.
42602         (main): If the locale encoding is not ASCII, bypass the tests of
42603         locale_quoting_style and clocale_quoting_style.
42604         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42606 2012-01-29  Jim Meyering  <meyering@redhat.com>
42608         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42609         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42610         detect uses of canonicalize_file_name.
42612 2012-01-28  Bruno Haible  <bruno@clisp.org>
42614         test-framework-sh: Fix test failure with AIX 7.1 diff.
42615         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42616         in column 1, like 'diff -c' does.
42617         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42618         whether 'diff -u' is used. Instead, test whether the output contains
42619         some '@' character.
42621 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42623         strtoimax: eliminate need for stdint.h, inttypes.h checks
42624         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42625         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42626         the prerequisites for a recently-introduced strtoimax test.
42627         I guess this might cause strtoimax to be replaced when not
42628         strictly necessary on older hosts, but this shouldn't introduce
42629         any bugs and it should make Emacs 'configure' faster on typical
42630         modern hosts.  Problem discovered when importing the latest gnulib
42631         to an Emacs test version.
42632         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42634 2012-01-28  Bruno Haible  <bruno@clisp.org>
42636         sys_time: Override 'struct timeval' on some native Windows platforms.
42637         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42638         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42639         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42640         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42641         needs to be overridden.
42642         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42643         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42644         * tests/test-sys_select.c: Check that the tv_sec member has the same
42645         size as a 'time_t'.
42646         * tests/test-sys_time.c: Likewise.
42647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42648         is set, set also REPLACE_GETTIMEOFDAY.
42649         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42650         convert the resulting 'struct timeval' before returning.
42651         * lib/select.c: Include <sys/time.h>.
42652         (select, timeval): Undefine at the right place.
42653         * modules/select (Depends-on): Add sys_time.
42654         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42655         some Windows platforms.
42656         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42658 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42660         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42661         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42662         an integer.
42663         * lib/fcntl.c (dupfd): Likewise.
42664         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42666 2012-01-28  Bruno Haible  <bruno@clisp.org>
42668         fcntl: Avoid compilation error on native Windows.
42669         * modules/fcntl (Depends-on): Add 'close'.
42671 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42673         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42674         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42675         pointer to an integer.
42676         * lib/poll.c (IsConsoleHandle): Likewise.
42677         * lib/isatty.c (IsConsoleHandle): Likewise.
42679 2012-01-28  Jim Meyering  <meyering@redhat.com>
42681         doc: clarify README-release
42682         * top/README-release: Clarify: you should make a point to have
42683         the latest stable versions of build tools in your PATH, and the
42684         reference to buildreq is solely for its list of tool names, not
42685         for its minimal-functional version numbers.
42686         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42688         maint.mk: use more readable (yet functionally equivalent) quoting
42689         It is common to quote a single quote in a single quoted string like
42690         this:  '...'\''...'.  Unless you know the idiom, that looks like
42691         gibberish, so prefer to double-quote the string when possible.
42692         Then you can use a more readable, lone single quote: "...'..."
42693         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42694         "don't" is more readable than the equivalent 'don'\''t'.
42695         (sc_cast_of_x_alloc_return_value): Likewise.
42696         (sc_cast_of_alloca_return_value): Likewise.
42697         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42698         rather than '\'':'\''.
42700 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42702         stdalign: relax _Alignof and tighten _Alignas test
42703         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42704         as it was too strict: alignof must divide offsetof, but it need
42705         not equal offsetof.  Inspired by Joseph S. Myers's comment
42706         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42707         Conversely, tighten the _Alignas test a bit, as the resulting
42708         alignment must be exactly 8.
42710 2012-01-27  Bruno Haible  <bruno@clisp.org>
42712         stdalign: Document the last change.
42713         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42715 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42717         stdalign: check that alignof and offsetof are consistent
42718         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42719         Problem reported for gnulib by Richard W.M. Jones in
42720         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42722 2012-01-27  Jim Meyering  <meyering@redhat.com>
42724         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42725         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42726         convert a sequence with gaps to the minimal containing range.
42727         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42728         * tests/test-update-copyright.sh: Test for this.
42729         The FSF confirmed it is ok to do this, assuming there is at
42730         least one significant change per year in the affected range:
42731         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42733 2012-01-26  Bruno Haible  <bruno@clisp.org>
42735         pipe2: refine doc about thread-safety
42736         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42737         multithread-safety problem.
42738         * doc/glibc-functions/accept4.texi: Likewise.
42740 2012-01-26  Bruno Haible  <bruno@clisp.org>
42742         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42743         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42744         In the test program, include <fcntl.h>, for O_RDONLY.
42746 2012-01-26  Eric Blake  <eblake@redhat.com>
42748         pipe2: document lack of thread-safety in replacement
42749         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42750         issue in replacement.
42751         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42752         Based on a report by Eric Wong.
42754 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42755             Bruno Haible  <bruno@clisp.org>
42757         malloca: Avoid warnings on x86_64 mingw64.
42758         * lib/malloca.c: Include <stdint.h>.
42759         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42760         * modules/malloca (Depends-on): Add stdint.
42761         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42763 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42765         obstack: remove __STDC__ conditionals
42766         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42767         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42768         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42769         m4/include_next.m4 as the only gnulib-maintained places that still
42770         refer to __STDC__.
42772 2012-01-24  Bruno Haible  <bruno@clisp.org>
42774         havelib: Modern quoting.
42775         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42776         the recent change to the GNU coding standards.
42778 2012-01-24  Bruno Haible  <bruno@clisp.org>
42780         stdint: Improve support for Android.
42781         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42782         Reported by Simon Josefsson <simon@josefsson.org>.
42784 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42786         doc: omit trailing empty lines from INSTALL etc.
42787         * doc/Makefile (INSTALL): Omit trailing empty lines.
42788         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42789         omit trailing empty lines.  This simplifies the build procedure.
42791 2012-01-23  Jim Meyering  <meyering@redhat.com>
42793         tests: avoid spurious warnings about gl_sockets_startup
42794         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42795         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42796         reporting a "statement with no effect".
42797         * tests/test-accept.c (main): Mark as "(void)".
42798         * tests/test-accept4.c (main): Likewise.
42799         * tests/test-bind.c (main): Likewise.
42800         * tests/test-connect.c (main): Likewise.
42801         * tests/test-getpeername.c (main): Likewise.
42802         * tests/test-getsockname.c (main): Likewise.
42803         * tests/test-getsockopt.c (main): Likewise.
42804         * tests/test-listen.c (main): Likewise.
42805         * tests/test-recv.c (main): Likewise.
42806         * tests/test-recvfrom.c (main): Likewise.
42807         * tests/test-send.c (main): Likewise.
42808         * tests/test-sendto.c (main): Likewise.
42809         * tests/test-setsockopt.c (main): Likewise.
42810         * tests/test-shutdown.c (main): Likewise.
42812 2012-01-21  Bruno Haible  <bruno@clisp.org>
42814         locale-fr.m4: Fix for Android.
42815         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42816         failure of the test program on Bionic libc.
42818 2012-01-21  Jim Meyering  <meyering@redhat.com>
42820         bootstrap: fail when bootstrap_post_import_hook fails
42821         Otherwise, it's far too easy to miss diagnostics emitted
42822         between gnulib-tool's output and that of running configure.
42823         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42825 2012-01-17  Jim Meyering  <meyering@redhat.com>
42827         maint: enable sc_trailing_blank
42828         * build-aux/pmccabe.css: Remove trailing blanks.
42829         * doc/acl-cygwin.txt: Likewise.
42830         * doc/gnu-oids.texi: Likewise
42831         * cfg.mk: Enable sc_trailing_blank.
42832         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42834 2012-01-17  Jim Meyering  <meyering@redhat.com>
42836         maint: enable sc_prohibit_openat_without_use
42837         * cfg.mk: Enable sc_prohibit_openat_without_use.
42838         Exempt lib/selinux-at.c.
42840 2012-01-17  Jim Meyering  <meyering@redhat.com>
42842         maint: enable sc_prohibit_cloexec_without_use
42843         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42844         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42846 2012-01-17  Jim Meyering  <meyering@redhat.com>
42848         maint: enable sc_prohibit_intprops_without_use
42849         * cfg.mk: Enable sc_prohibit_intprops_without_use
42850         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42852 2012-01-17  Jim Meyering  <meyering@redhat.com>
42854         maint: enable sc_prohibit_hash_pjw_without_use
42855         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42856         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42857         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42858         following " (".
42860 2012-01-17  Jim Meyering  <meyering@redhat.com>
42862         maint: enable double-word-prohibiting rule
42863         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42864         Exempt three files.
42866 2012-01-17  Jim Meyering  <meyering@redhat.com>
42868         maint: remove empty lines at EOF, but excluding modules/*
42869         Apply syntax rules at home as well as abroad.  Most changes
42870         were induced by running this:
42871           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42872             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42873             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42874         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42875         Exempt modules/* and two binary files.
42876         Also exempt doc/INSTALL*, per request from Bruno Haible.
42877         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42878         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42879         * doc/Copyright/request-assign.future: Likewise.
42880         * doc/Copyright/request-disclaim.changes: Likewise.
42881         * doc/INSTALL: Likewise.
42882         * doc/INSTALL.ISO: Likewise.
42883         * doc/INSTALL.UTF-8: Likewise.
42884         * doc/acl-cygwin.txt: Likewise.
42885         * doc/acl-resources.txt: Likewise.
42886         * doc/fdl-1.2.texi: Likewise.
42887         * doc/fdl-1.3.texi: Likewise.
42888         * doc/fdl.texi: Likewise.
42889         * lib/argp-pin.c: Likewise.
42890         * lib/round.c: Likewise.
42891         * lib/unicase/u16-totitle.c: Likewise.
42892         * lib/unictype/block_test.c: Likewise.
42893         * lib/uninorm/canonical-decomposition.c: Likewise.
42894         * m4/README: Likewise.
42895         * m4/relocatable-lib.m4: Likewise.
42896         * tests/test-isnand-nolibm.c: Likewise.
42897         * tests/test-isnand.c: Likewise.
42898         * tests/uninorm/NormalizationTest.txt: Likewise.
42900 2012-01-17  Jim Meyering  <meyering@redhat.com>
42902         maint: add framework to run syntax-check rules against gnulib sources
42903         * cfg.mk: New file, to disable all currently-failing tests.
42904         We'll enable them one by one, as they are made to pass.
42905         * Makefile (sc_maint): New rule.
42907 2012-01-21  Bruno Haible  <bruno@clisp.org>
42909         stdint: Add support for Android.
42910         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42911         include the system's <stdint.h>.
42912         Reported by Simon Josefsson <simon@josefsson.org>.
42914 2012-01-19  Jim Meyering  <meyering@redhat.com>
42916         bootstrap: add bootstrap_post_import_hook
42917         Bison does still need something like the gnulib_mk_hook whose
42918         invocation I had to remove along with slurp in commit 767ccd40.
42919         Technically, we could get along without it, but doing so would
42920         have required living with a warning and a mandatory post-bootstrap
42921         automake rerun.
42922         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42923         (bootstrap_post_import_hook): New function.
42924         Invoke it after gnulib-tool --import and before autoreconf.
42926 2012-01-18  Jim Meyering  <meyering@redhat.com>
42928         gitlog-to-changelog: don't use "no_"-prefixed variable name
42929         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42930         to enable both --cluster and --no-cluster.  Change variable name,
42931         s/\$no_cluster/$cluster/, and reverse usage to match.
42933         gitlog-to-changelog: use "||", not "or" in expressions
42934         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42935         expressions.
42937 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42939         gitlog-to-changelog: new option --no-cluster
42940         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42941         clustering of adjacent commit messages.
42943 2012-01-17  Jim Meyering  <meyering@redhat.com>
42945         maint: spell file systems with two words, not one
42946         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42947         two words, not one.
42949 2012-01-16  Jim Meyering  <meyering@redhat.com>
42951         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42952         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42954 2012-01-16  Eric Blake  <eblake@redhat.com>
42956         bootstrap: cater to autoconf 2.59
42957         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42958         is not available.
42960         bootstrap: properly check for libtool
42961         * build-aux/bootstrap (libtoolize): Also run libtool when older
42962         usage is detected.
42964 2012-01-15  Bruno Haible  <bruno@clisp.org>
42966         Improve support for MSVC 9.
42967         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42968         clashes on MSVC.
42969         * lib/fcntl.in.h: Likewise.
42970         * lib/stdlib.in.h: Likewise.
42971         * lib/sys_stat.in.h: Likewise.
42973 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42975         gnupload: we hold the master copy of this script now
42976         For motivation and more information, see:
42977         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42978         * build-aux/gnupload: Make it clear in the heading comments that the
42979         master copy of this file is maintained by gnulib.  Since we are at
42980         it, bump its copyright year and ...
42981         ($scriptversion): ... the date in its version.
42982         ($usage): Patches and bug reports should be sent to the gnulib list,
42983         not the automake one.
42984         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42985         anymore.
42987 2012-01-15  Bruno Haible  <bruno@clisp.org>
42989         Fix module 'random'.
42990         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42991         initstate, setstate are declared.
42993 2012-01-14  Bruno Haible  <bruno@clisp.org>
42995         Tests for module 'random'.
42996         * modules/random-tests: New file.
42997         * tests/test-random.c: New file, based on tests/test-random_r.c.
42999         New module 'random'.
43000         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
43001         declarations.
43002         * lib/random.c: New file, based on glibc/stdlib/random.c.
43003         * m4/random.m4: New file.
43004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
43005         HAVE_RANDOM.
43006         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
43007         * modules/random: New file.
43008         * config/srclist.txt: Add an entry for random.c.
43009         * doc/posix-functions/random.texi: Mention the 'random' module.
43010         * doc/posix-functions/initstate.texi: Likewise.
43011         * doc/posix-functions/setstate.texi: Likewise.
43012         * doc/posix-functions/srandom.texi: Likewise.
43014 2012-01-12  Bruno Haible  <bruno@clisp.org>
43016         random_r: Use common idioms.
43017         * lib/random_r.c: Include <stdlib.h> first.
43019         random_r: Override incompatible API on AIX, OSF/1.
43020         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
43021         Override the system function if REPLACE_RANDOM_R is 1.
43022         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
43023         and OSF/1, set REPLACE_RANDOM_R.
43024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
43025         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
43026         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
43027         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
43028         * doc/glibc-functions/random_r.texi: Likewise.
43029         * doc/glibc-functions/setstate_r.texi: Likewise.
43031         random_r: Support for MSVC 9.
43032         * lib/random_r.c: Include stdint.h, not inttypes.h.
43034 2012-01-12  Eric Blake  <eblake@redhat.com>
43036         inet_ntop: guard extra work by IF_LINT
43037         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
43038         better code generation when not checking for warnings.
43039         Suggested by Paul Eggert and Jim Meyering.
43041         strptime: fix regression on mingw
43042         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
43043         Fix regression.  Reported by Bruno Haible.
43045 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
43046             Bruno Haible  <bruno@clisp.org>
43048         copy-file: add error-code-returning variant.
43049         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
43050         (qcopy_file_preserving): New declaration.
43051         * lib/copy-file.c (qcopy_file_preserving): Renamed from
43052         copy_file_preserving. Change return type to 'int'. Don't emit an error
43053         message here.
43054         (copy_file_preserving): New function.
43055         * tests/test-copy-file.c: Include <stdlib.h>.
43056         (main): Test qcopy_file_preserving if the environment variable
43057         NO_STDERR_OUTPUT is set.
43058         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
43059         with NO_STDERR_OUTPUT
43060         * tests/test-copy-file-2.sh: Likewise.
43062 2012-01-10  Bruno Haible  <bruno@clisp.org>
43064         copy-file: Use 'quote' module consistently.
43065         * lib/copy-file.c (copy_file_preserving): Use quote().
43067         copy-file: Refactor.
43068         * lib/copy-file.c: Include quote.h.
43069         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
43070         message here.
43071         * modules/copy-file (Depends-on): Add quote.
43073         acl: Export qcopy_acl.
43074         * lib/acl.h (qcopy_acl): New declaration.
43075         * lib/copy-acl.c (qcopy_acl): Make non-static.
43077         acl: Rename a local variable.
43078         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
43080         acl: Align return values of copy_acl and qcopy_acl.
43081         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
43082         maybe < -1.
43084 2012-01-11  Eric Blake  <eblake@redhat.com>
43086         strptime: silence gcc warnings
43087         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
43088         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
43089         Reported by Daniel P. Berrange.
43091         inet_ntop: silence gcc warning
43092         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
43093         Reported by Daniel P. Berrange.
43095 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
43097         getloadavg test: skip the test on GNU/Linux without /proc mounted
43098         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
43099         file.  When /proc is not mounted, it always fails with ENOENT.
43100         * tests/test-getloadavg.c (main): Treat ENOENT return code from
43101         getloadavg(3) the same way as ENOSYS and ENOTSUP.
43103 2012-01-10  Bruno Haible  <bruno@clisp.org>
43105         regex: Avoid link error on MSVC 9.
43106         * modules/regex (Depends-on): Add wctype.
43108 2012-01-10  Bruno Haible  <bruno@clisp.org>
43110         doc: Mention --with-tests option.
43111         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
43112         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
43113         --with-tests.
43114         Reported by Reuben Thomas.
43116 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
43118         users.txt: order package names lexicographically.
43119         * users.txt: Order package names lexicographically.
43121 2012-01-10  Jim Meyering  <meyering@redhat.com>
43123         maint.mk: fix description in comment
43124         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
43126         ignore-value: remove deprecated ignore_ptr function
43127         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
43128         * NEWS: Note this.
43130 2012-01-09  Jim Meyering  <meyering@redhat.com>
43132         test-init.sh: avoid a subshell
43133         * tests/test-init.sh: Remove protective subshell.
43134         Suggested by Bernhard Voelker.  While a subshell is normally
43135         required to protect against older shells (Solaris, FreeBSD) that
43136         warn about a missing program before performing redirection, the
43137         shell-selection tests performed by init.sh probably exclude any
43138         offending shell.
43140 2012-01-08  Bruno Haible  <bruno@clisp.org>
43142         setlocale tests: Avoid test failure on Solaris 11.0.
43143         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
43144         variable.
43146 2012-01-08  Bruno Haible  <bruno@clisp.org>
43148         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
43149         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43150         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43151         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
43152         macro.
43153         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
43154         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43155         * lib/spawn_faction_addopen.c: Add workaround implementation if
43156         HAVE_WORKING_POSIX_SPAWN.
43157         * modules/spawn (Makefile): Substitute
43158         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
43159         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
43160         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
43161         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
43162         (Depends-on): Update conditions.
43163         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43164         the Solaris 11 bug.
43166 2012-01-08  Bruno Haible  <bruno@clisp.org>
43168         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
43169         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43170         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43171         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
43172         macro.
43173         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
43174         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43175         * lib/spawn_faction_adddup2.c: Add workaround implementation if
43176         HAVE_WORKING_POSIX_SPAWN.
43177         * modules/spawn (Makefile): Substitute
43178         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
43179         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
43180         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
43181         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
43182         (Depends-on): Update conditions.
43183         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43184         the Solaris 11 bug.
43186 2012-01-08  Bruno Haible  <bruno@clisp.org>
43188         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
43189         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
43190         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
43192         HAVE_WORKING_POSIX_SPAWN.
43193         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
43194         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
43195         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43196         * lib/spawn_faction_addclose.c: Add workaround implementation if
43197         HAVE_WORKING_POSIX_SPAWN.
43198         * modules/spawn (Makefile): Substitute
43199         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
43200         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
43201         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
43202         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
43203         (Depends-on): Update conditions.
43204         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43205         the Solaris 11 bug.
43207 2012-01-08  Bruno Haible  <bruno@clisp.org>
43209         doc: Update for Solaris 11.0.
43210         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
43211         * m4/printf.m4: Update comments.
43213 2012-01-08  Bruno Haible  <bruno@clisp.org>
43215         mktime: Avoid compilation error on Solaris 11.
43216         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
43218 2012-01-08  Bruno Haible  <bruno@clisp.org>
43220         doc: Small fix.
43221         * doc/posix-headers/nl_types.texi: Correct platforms list.
43223 2012-01-08  Simon Josefsson  <simon@josefsson.org>
43225         Add lgpl-3.0 module.
43226         * MODULES.html.sh (Support for building documentation): Add
43227         lgpl-3.0.
43228         * modules/lgpl-3.0: New file.
43230 2012-01-08  Jim Meyering  <meyering@redhat.com>
43232         select.c: indent with spaces, not TABs
43233         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
43235 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43237         quotearg: do not use grave accent for left quote
43238         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
43239         locale_quoting_style.
43240         (quotearg_buffer_restyled): Fix example.
43241         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
43243 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43245         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
43246         Most programs do not have translation catalogs for English and much
43247         less separate catalogs for British and American English.  Drop the
43248         suggestion to translators about these two, and provide it
43249         automatically for Unicode locales.  Like most programs, even those
43250         using American English, we use single quotation marks.  This conflicts
43251         with the American typographic convention, but works better when you
43252         cite the entire error message within double quotes.  It also tries not
43253         to clash with established practice and with what non-gnulib programs
43254         will usually do.
43255         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43256         using an UTF-8 or GB-18030 locale.  The list of other locales with
43257         quotes was provided by Bruno Haible.
43258         (quotearg_buffer_restyled): Adjust instructions to translators.
43259         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43260         text, since this would be wrong when using Unicode.
43261         * modules/quotearg: Depend on c-strcaseeq.
43263 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43265         quotearg: fix Wikipedia link
43266         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43268 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43270         Fix for mingw with MSVC9.
43271         * m4/ld-version-script.m4: Check that compiler rejects version
43272         scripts with syntax errors.  Reported by Bruno Haible
43273         <bruno@clisp.org>.
43275 2012-01-06  Bruno Haible  <bruno@clisp.org>
43277         Talk about "native Windows API", not "Woe32".
43278         * lib/accept4.c: Update comments to mention native Windows.
43279         * lib/execute.c: Likewise.
43280         * lib/fatal-signal.c: Likewise.
43281         * lib/localcharset.c: Likewise.
43282         * lib/nanosleep.c: Likewise.
43283         * lib/nl_langinfo.c: Likewise.
43284         * lib/pclose.c: Likewise.
43285         * lib/pipe-filter-gi.c: Likewise.
43286         * lib/pipe-filter-ii.c: Likewise.
43287         * lib/pipe.c: Likewise.
43288         * lib/pipe2.c: Likewise.
43289         * lib/popen.c: Likewise.
43290         * lib/progreloc.c: Likewise.
43291         * lib/relocatable.c: Likewise.
43292         * lib/sigaction.c: Likewise.
43293         * lib/sigprocmask.c: Likewise.
43294         * lib/spawn-pipe.h: Likewise.
43295         * lib/spawn-pipe.c: Likewise.
43296         * lib/spawni.c: Likewise.
43297         * lib/stat-time.h: Likewise.
43298         * lib/w32spawn.h: Likewise.
43299         * tests/test-isatty.c: Likewise.
43300         * lib/config.charset: More comments.
43301         * doc/gnulib-intro.texi: Mention native Windows.
43302         * doc/posix-functions/_Exit_C99.texi: Likewise.
43303         * doc/posix-headers/fcntl.texi: Likewise.
43305 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43307         argp: Avoid crash if translator uses % characters in a translation.
43308         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43309         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43311 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43313         doc: C11 and C++11 are now official
43314         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43315         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43316         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43317         * modules/stdalign:
43318         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43320 2012-01-06  Bruno Haible  <bruno@clisp.org>
43322         uc-is-grapheme-break tests: Tweak.
43323         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43324         message.
43326 2012-01-06  Bruno Haible  <bruno@clisp.org>
43328         test-init.sh: correct the test for diff -u
43329         * tests/test-init.sh: Also redirect stdout to /dev/null.
43331 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43333         Use ', not `, for quoting output.
43334         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43335         (print_changelog_deltas, get_tool_versions, main program):
43336         * build-aux/git-version-gen:
43337         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43338         * build-aux/move-if-change (help):
43339         * build-aux/useless-if-before-free (usage, main program):
43340         * check-module (parse_module_file, usage)
43341         (find_included_lib_files, check_module):
43342         * lib/argmatch.c (main) [TEST]:
43343         * lib/argp-help.c (_help):
43344         * lib/getopt1.c (main) [TEST]:
43345         * lib/git-merge-changelog.c (usage):
43346         * lib/xstrtol-error.c (xstrtol_error):
43347         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43348         * m4/argz.m4 (gl_FUNC_ARGZ):
43349         * m4/bison.m4 (gl_BISON):
43350         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43351         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43352         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43353         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43354         * m4/gc-random.m4 (gl_GC_RANDOM):
43355         * m4/intl.m4 (gt_CHECK_DECL):
43356         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43357         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43358         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43359         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43360         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43361         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43362         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43363         * tests/test-dirname.c (main):
43364         * tests/test-getpass.c (main):
43365         * tests/test-iconvme.c (main):
43366         * tests/test-parse-datetime.c (LOG):
43367         * tests/test-xstrtoimax.sh:
43368         * tests/test-xstrtol.sh:
43369         * tests/test-xstrtoll.sh:
43370         * tests/test-xstrtoumax.sh:
43371         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43372         * top/GNUmakefile (abort-due-to-no-makefile):
43373         Quote 'like this', not `like this', as per the recent change to
43374         the GNU coding standards.
43376 2012-01-05  Bruno Haible  <bruno@clisp.org>
43378         strtoimax: Don't force a replacement on systems where intmax_t is int.
43379         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43380         'intmax_t' is not larger than 'int'.
43381         Reported by Pádraig Brady <P@draigBrady.com>.
43383 2012-01-05  Bruno Haible  <bruno@clisp.org>
43385         doc: Mention NetBSD bugs.
43386         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43387         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43389 2012-01-05  Bruno Haible  <bruno@clisp.org>
43391         strtoumax tests: Enhance tests.
43392         * tests/test-strtoumax.c (main): Add tests for large values.
43394 2012-01-05  Bruno Haible  <bruno@clisp.org>
43396         strtoimax: Work around AIX 5.1 bug.
43397         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43398         definition.
43399         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43400         Set HAVE_STRTOIMAX.
43401         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43402         REPLACE_STRTOIMAX.
43403         * modules/inttypes-incomplete (Makefile.am): Substitute
43404         REPLACE_STRTOIMAX.
43405         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43406         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43407         (Depends-on): Update conditions.
43408         * tests/test-strtoimax.c (main): Add tests for large values.
43409         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43411 2012-01-05  Bruno Haible  <bruno@clisp.org>
43413         inttypes: Modernize.
43414         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43415         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43416         (Makefile.am): Update inttypes.h rule.
43418 2012-01-05  Jim Meyering  <meyering@redhat.com>
43420         init.sh: don't waste a subshell just to redirect stderr
43421         * tests/init.sh: In testing for diff -u and diff -c, use a
43422         stderr-redirecting exec inside `...` rather than a subshell.
43424         test-init.sh: avoid failure on HP-UX 11.00
43425         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43426         resolves to diff -c or cmp.  Reported by Bruno Haible.
43428 2012-01-05  Bruno Haible  <bruno@clisp.org>
43430         Tests for module 'strtoull'.
43431         * modules/strtoull-tests: New file.
43432         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43434 2012-01-05  Bruno Haible  <bruno@clisp.org>
43436         Tests for module 'strtoll'.
43437         * modules/strtoll-tests: New file.
43438         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43440 2012-01-05  Bruno Haible  <bruno@clisp.org>
43442         Tests for module 'strtoul'.
43443         * modules/strtoul-tests: New file.
43444         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43446 2012-01-05  Bruno Haible  <bruno@clisp.org>
43448         Tests for module 'strtol'.
43449         * modules/strtol-tests: New file.
43450         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43452 2012-01-04  Jim Meyering  <meyering@redhat.com>
43454         test-init.sh: accommodate Solaris 5.10's different diff -u output
43455         * tests/test-init.sh: Also exempt @@ lines from the comparison
43456         of diff output, since Solaris 5.10 and GNU diff formats differ.
43457         Reported by Stefano Lattarini.
43459 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43461         test-posixtm: don't assume signed integer wraparound
43462         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43463         after signed integer overflow.  Inspired by (though it may not
43464         fix) Bruno Haible's bug report in
43465         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43467         Spell out "Windows 9x" and "Windows XP".
43468         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43469         "Windows 9x" and "WinXP" with "Windows XP".
43471 2012-01-04  Jim Meyering  <meyering@redhat.com>
43473         test-vc-list-files-cvs.sh: remove obsolete comment
43474         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43475         double exit.  Now that's all encapsulated via skip_ and Exit.
43477 2012-01-04  Bruno Haible  <bruno@clisp.org>
43479         Talk about "native Windows API", not "Win32".
43480         * lib/classpath.c: Update comments to mention native Windows.
43481         * lib/csharpexec.c: Likewise.
43482         * lib/dup2.c: Likewise.
43483         * lib/error.c: Likewise.
43484         * lib/fcntl.c: Likewise.
43485         * lib/filename.h: Likewise.
43486         * lib/findprog.c: Likewise.
43487         * lib/get-rusage-as.c: Likewise.
43488         * lib/get-rusage-data.c: Likewise.
43489         * lib/getpagesize.c: Likewise.
43490         * lib/javaexec.c: Likewise.
43491         * lib/msvc-inval.c: Likewise.
43492         * lib/msvc-nothrow.c: Likewise.
43493         * lib/nanosleep.c: Likewise.
43494         * lib/nonblocking.c: Likewise.
43495         * lib/printf-parse.c: Likewise.
43496         * lib/setlocale.c: Likewise.
43497         * lib/sigaction.c: Likewise.
43498         * lib/strerror_r.c: Likewise.
43499         * lib/tmpdir.c: Likewise.
43500         * lib/vasnprintf.c: Likewise.
43501         * lib/w32spawn.h: Likewise.
43502         * lib/waitpid.c: Likewise.
43503         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43504         * m4/locale-ar.m4: Likewise.
43505         * m4/locale-fr.m4: Likewise.
43506         * m4/locale-ja.m4: Likewise.
43507         * m4/locale-tr.m4: Likewise.
43508         * m4/locale-zh.m4: Likewise.
43509         * m4/printf.m4: Likewise.
43510         * tests/test-cloexec.c: Likewise.
43511         * tests/test-copy-acl.sh: Likewise.
43512         * tests/test-copy-file.sh: Likewise.
43513         * tests/test-file-has-acl.sh: Likewise.
43514         * tests/test-set-mode-acl.sh: Likewise.
43515         * tests/test-dup-safer.c: Likewise.
43516         * tests/test-dup2.c: Likewise.
43517         * tests/test-dup3.c: Likewise.
43518         * tests/test-fcntl.c: Likewise.
43519         * tests/test-nonblocking-pipe.h: Likewise.
43520         * tests/test-nonblocking-socket.h: Likewise.
43521         * tests/test-pipe.c: Likewise.
43522         * tests/test-pipe2.c: Likewise.
43523         * tests/test-spawn-pipe-child.c: Likewise.
43524         * doc/acl-resources.txt: Likewise.
43525         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43526         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43527         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43528         * lib/localcharset.c: Update comments to mention native Windows.
43529         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43530         * lib/localename.c: Likewise.
43531         * lib/progreloc.c: Likewise.
43532         * lib/relocatable.c: Likewise.
43533         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43534         (windows_compute_revents): Renamed from win32_compute_revents.
43535         (windows_compute_revents_socket): Renamed from
43536         win32_compute_revents_socket.
43537         * lib/select.c: Update comments to mention native Windows.
43538         (windows_poll_handle): Renamed from win32_poll_handle.
43539         * m4/threadlib.m4: Update comments to mention native Windows.
43540         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43541         --enable-threads=windows instead of --enable-threads=win32. Set
43542         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43543         * lib/glthread/lock.h: Update comments to mention native Windows.
43544         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43545         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43546         USE_WIN32_THREADS.
43547         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43548         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43549         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43550         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43551         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43552         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43553         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43554         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43555         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43556         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43557         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43558         * tests/test-tls.c: Likewise.
43559         Rationale:
43560         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43561         on both 32-bit and 64-bit Windows systems.
43562         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43563         line of distinction is between "native Windows" on one side and Unix/
43564         POSIX systems on the other side. More details in
43565         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43566         Suggested by Paul Eggert.
43568 2012-01-03  Bruno Haible  <bruno@clisp.org>
43570         isatty: Support for MSVC 9.
43571         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43572         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43573         (_isatty_nothrow): New function.
43574         (isatty): Use it instead of _isatty.
43575         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43576         * lib/poll.c (IsConsoleHandle): Likewise.
43577         * lib/select.c (IsConsoleHandle): Likewise.
43578         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43579         (gl_PREREQ_ISATTY): New macro.
43580         * modules/isatty (Depends-on): Add msvc-inval.
43581         (configure.ac): Invoke gl_PREREQ_ISATTY.
43583 2012-01-03  Jim Meyering  <meyering@redhat.com>
43585         maint.mk: remove temporary transition aid from over 1.5 years ago
43586         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43587         purpose was to aid in the transition (avoiding silent malfunction)
43588         from that old name to the new _sc_search_regexp.  This shim was
43589         added by commit 219c504b.
43591         init.sh: do not try to accommodate compare arguments starting with "-"
43592         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43593         compare arguments that start with "-".  Besides, we do not worry
43594         about this when invoking diff or cmp; why start now with sed?
43595         Using "--" to separate options from argument would trigger sed
43596         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43597         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43599 2012-01-02  Bruno Haible  <bruno@clisp.org>
43601         Enhance tests for module 'isatty'.
43602         * modules/isatty-tests (Depends-on): Add pipe-posix.
43603         * tests/test-isatty.c: Include <fcntl.h>.
43604         (DEV_NULL): New macro.
43605         (main): Test the resut of isatty() also on regular files, pipes, and
43606         /dev/null.
43608         New module 'isatty'.
43609         * lib/unistd.in.h (isatty): New declaration.
43610         * lib/isatty.c: New file, based on an idea of
43611         Bastien Roucariès <roucaries.bastien@gmail.com>.
43612         * m4/isatty.m4: New file.
43613         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43614         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43615         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43616         REPLACE_ISATTY.
43617         * modules/isatty: New file.
43618         * doc/posix-functions/isatty.texi: Mention the new module.
43619         Suggested by Paolo Bonzini.
43621 2012-01-02  Bruno Haible  <bruno@clisp.org>
43623         canonicalize: Tweak 2011-12-29 commit.
43624         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43625         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43627 2012-01-02  Jim Meyering  <meyering@redhat.com>
43629         gitlog-to-changelog: describe input syntax in --help output
43630         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43632         gitlog-to-changelog: fix typo in --help: show backslash before email @
43633         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43634         in sources, but not in actual output.
43636 2011-12-30  Jim Meyering  <meyering@redhat.com>
43638         gitlog-to-changelog: don't malfunction when name contains %-directive
43639         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43640         in a name string cause trouble.  E.g., with a user name of "%s",
43641         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43643 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43645         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43646         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43647         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43648         the "  (tiny change)" notation that is appended to the standard
43649         ChangeLog "date  name  email" header line.
43651 2012-01-01  Jim Meyering  <meyering@redhat.com>
43653         test-framework-sh: init.sh: fix "make dist" failure
43654         When using gnulib-tool's --with-tests option and any module that
43655         depends on test-framework-sh, "make dist" would fail due to the
43656         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43657         in the gltests directory, and not in the gllib/ directory.
43658         One way to work around that is to move the EXTRA_DIST += init.sh
43659         from the primary module to the -tests one:
43660         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43661         * modules/test-framework-sh (Makefile.am): ...not here.
43662         Reported by Tom G. Christensen in
43663         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43665         version-etc: update copyright year reported by --version
43666         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43668 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43670         canonicalize: only stat() if required
43671         * lib/canonicalize.c (canonicalize_filename_mode):
43672         Avoid calling l?stat() when both CAN_MISSING,
43673         and CAN_NOLINKS are set, as we neither need
43674         to resolve symlinks or test component existence.
43676 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43678         doc: cover st_ino issues once; add OpenVMS etc.
43679         * doc/posix-functions/stat.texi (stat):
43680         * doc/posix-functions/lstat.texi (lstat):
43681         * doc/posix-functions/fstatat.texi (fstatat):
43682         * doc/posix-functions/fstat.texi (fstat):
43683         Move general 'struct stat' stuff to sys_stat.texi,
43684         leaving behind a pointer.
43685         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43686         Merge duplicate info about 'struct stat' problems into here.
43687         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43688         and suggest partial workarounds.
43690         same-inode: port to OpenVMS
43691         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43692         three st_ino values.
43694 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43696         canonicalize: fix references to stat() and lstat()
43697         * lib/canonicalize.c (canonicalize_filename_mode):
43698         Ensure references always resolve to a replacement
43699         function if required (even via a macro).
43701 2011-12-30  Jim Meyering  <meyering@redhat.com>
43703         gitlog-to-changelog: remove a little duplication
43704         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43705         rather than twice.
43707 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43709         canonicalize: add support for not resolving symlinks
43710         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43711         indicate we don't want to follow symlinks.  Also
43712         provide CAN_MODE_MASK to aid setting these existing
43713         mutually exclusive values.
43714         * lib/canonicalize.c (canonicalize_filename_mode):
43715         Extract the flags from can_mode parameter, which
43716         are currently just used to select between stat()
43717         and lstat().  Also ensure that mutually exclusive
43718         values are flagged immediately as invalid.
43719         * tests/test-canonicalize.c: Verify symlinks are
43720         not followed, and that invalid flag combinations
43721         are diagnosed.
43723 2011-12-25  Jim Meyering  <meyering@redhat.com>
43725         gitlog-to-changelog: do not clump multi-paragraph entries
43726         Identical header lines (date,name,email+coauthors) are suppressed,
43727         thus putting all entries with those same characteristics under
43728         a single header.  However, when a log entry consists of two or
43729         more paragraphs, it may not be clear where it starts and ends.
43730         This change makes it so that such an entry is always separated
43731         from others by a header line, even when that header would
43732         otherwise be suppressed.
43733         * build-aux/gitlog-to-changelog: Implement the above.
43734         Inspired by a related request from Stefano Lattarini in
43735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43737 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43739         announce-gen: fix `cmd' typo in diagnostic
43740         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43741         diagnostic: a missing '$' meant that the command was not output.
43743 2011-12-23  Jim Meyering  <meyering@redhat.com>
43745         test-framework-sh: distribute init.sh
43746         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43747         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43748         fail due to the lack of init.sh.
43750         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43751         * modules/atexit-tests: Rather than listing tests/init.sh,
43752         now that there's a module for it, simply depend on that new module.
43753         * modules/closein-tests: Likewise.
43754         * modules/exclude-tests: Likewise.
43755         * modules/getcwd-tests: Likewise.
43756         * modules/perror-tests: Likewise.
43757         * modules/pread-tests: Likewise.
43758         * modules/pwrite-tests: Likewise.
43759         * modules/vc-list-files-tests: Likewise.
43760         * modules/verify-tests: Likewise.
43761         * modules/xalloc-die-tests: Likewise.
43762         * modules/xstrtoimax-tests: Likewise.
43763         * modules/xstrtol-tests: Likewise.
43764         * modules/xstrtoll-tests: Likewise.
43765         * modules/xstrtoumax-tests: Likewise.
43766         * modules/yesno-tests: Likewise.
43768 2011-12-22  Jim Meyering  <meyering@redhat.com>
43770         test-framework-sh: add minimal tests of init.sh's compare function
43771         * modules/test-framework-sh-tests: New file.
43772         * tests/test-init.sh: New file.
43774         test-framework-sh: new module
43775         * modules/test-framework-sh: New file.
43776         * MODULES.html.sh (Support for maintaining and releasing projects):
43777         List it.
43779         init.sh: do not emit simulated diff output to stderr
43780         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43782 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43784         .gitignore: ignore gnulib.dvi and regex.info
43785         * doc/.gitignore:add gnulib.dvi and regex.info
43787 2011-12-22  Jim Meyering  <meyering@redhat.com>
43789         init.sh: correct previous change
43790         * tests/init.sh (compare): My previous change was wrong.
43791         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43793         init.sh: avoid unwarranted test failure when using "set -e"
43794         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43795         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43796         a use like "compare exp out" would get evoke an unconditional failure.
43798 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43800         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43801         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43802         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43803         autoreconf that did not.
43804         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43805         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43807 2011-12-17  Jim Meyering  <meyering@redhat.com>
43809         bootstrap: remove some now-unneeded code
43810         This script arose back when gnulib-tool was young.
43811         Since then, it has seen improvements that render much of this
43812         script unnecessary.  In particular, it can now make symlinks
43813         to the files it uses.  Also, I no longer see as much value in
43814         marking files as read-only via comments.
43815         If you relied on the symlink-creation feature of the preceding
43816         version of this script, you can get most of that functionality
43817         by adding the --symlink option to the definition of
43818         gnulib_tool_option_extras in your bootstrap.conf file.
43819         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43820         Run autopoint and libtoolize *before* gnulib-tool.
43821         After it, run an abbreviated autoreconf, rather than a loop around
43822         all tools.
43823         (slirp, bt_mark_as_generated): Remove functions.
43825 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43827         ftoastr: fix typo
43828         * lib/ftoastr.h: Fix misspelling in comment.
43830 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43832         * top/README-release: fix punctuation.
43834 2011-12-17  Jim Meyering  <meyering@redhat.com>
43836         bootstrap: correct the recent buildreq change
43837         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43838         had no effect.
43839         * build-aux/bootstrap (buildreq): Bracket each search term with
43840         "*...*", so that the shell "case" statement works as intended.
43841         Add comments.
43843 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43845         build: let bootstrap resort to wget when downloading .po files
43846         * build-aux/bootstrap (download_po_files): Fallback to wget when
43847         downloading the .po files via rsync fails.  This is necessary to
43848         bootstrap from behind a strict firewall.
43850 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43852         stdint: don't assume C++11 when compiling with g++
43853         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43854         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43855         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43856         work also in C++ before C++11, as that improperly inhibits
43857         generating a substitute stdint.h for that case.
43859 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43861         alloca: protect comment from gnulib-tool
43862         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43863         that gnulib-tool doesn't think it's a license, and munge it to
43864         say "GCC version 3".
43866 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43868         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43869         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43870         $(abs_top_builddir) instead of $(top_builddir).
43872 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43874         strftime-tests: also test nanoseconds
43875         * tests/test-strftime.c (T): Add a test of %N.
43877 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43879         inttypes, stdint: add C++11 support
43880         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43881         when including inttypes.h and stdint.h.  Support this change to
43882         the standard.
43883         * doc/posix-headers/inttypes.texi (inttypes.h):
43884         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43885         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43886         Define if not defined already, for the benefit of pre-C++11 hosts.
43887         Define the standard format macros (e.g., PRId8) always.
43888         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43889         Likewise, if __cpluspus.  Define the standard constant and limit
43890         macros (e.g., INT8_C, INT8_MAX) always.
43891         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43892         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43893         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43894         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43895         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43896         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43897         Likewise.
43899 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43901         nonblocking tests: Fix test failure on Linux/PPC.
43902         Suggested by Prerna Saxena in
43903         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43904         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43905         Set to 1100000.
43907 2011-12-12  Jim Meyering  <meyering@redhat.com>
43909         argmatch: don't hard-code `' when listing valid option arguments
43910         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43911         use the quote function to add quotes.  Use fputs rather than
43912         fprintf for the format string with no format directive.
43914 2011-12-07  Eric Blake  <eblake@redhat.com>
43916         bootstrap: detect tools required by gnulib-tool
43917         * build-aux/bootstrap (buildreq): Provide minimum implicit
43918         dependencies.
43919         * DEPENDENCIES: Mention patch as a prereq.
43921 2011-12-04  Bruno Haible  <bruno@clisp.org>
43923         sethostname: Port to Windows platforms.
43924         * lib/sethostname.c: Provide an alternate implementation for Windows
43925         platforms.
43926         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43927         (main): Skip the test if sethostname() fails with EPERM. On Windows
43928         platforms, don't check the result of gethostname().
43930 2011-12-04  Bruno Haible  <bruno@clisp.org>
43931             Jim Meyering  <meyering@redhat.com>
43933         tests: Avoid spurious error message on platforms without mktemp program.
43934         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43936 2011-12-04  Bruno Haible  <bruno@clisp.org>
43938         sethostname: Fix documentation.
43939         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43940         "not fixed" section.
43942 2011-12-03  Bruno Haible  <bruno@clisp.org>
43944         gnulib-tool: Verify that the License field is present and non-empty.
43945         * gnulib-tool (func_get_license_raw): New function, extracted from
43946         func_get_license.
43947         (func_get_license): Use it. Warn if the module is not a test module and
43948         has no license.
43949         Suggested by Jim Meyering.
43951 2011-12-03  Bruno Haible  <bruno@clisp.org>
43953         sethostname tests: Fix link error on mingw.
43954         * tests/test-sethostname1.c: New file, extracted from
43955         tests/test-sethostname.c.
43956         * tests/test-sethostname2.c: New file, extracted from
43957         tests/test-sethostname.c.
43958         * tests/test-sethostname.c: Remove file.
43959         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43960         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43961         (Depends-on): Add gethostname.
43962         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43963         Link the latter with $(GETHOSTNAME_LIB).
43965         sethostname tests: Fix compilation error on mingw.
43966         * tests/test-sethostname.c: Don't include <sys/types.h>.
43967         (geteuid): Use a dummy value without uid_t.
43968         * modules/sethostname-tests (Depends-on): Remove sys_types.
43970         sethostname tests: Avoid a gcc warning.
43971         * tests/test-sethostname.c (main): Remove an unused variable.
43973         Tweak last commit.
43974         * modules/sethostname-tests (Files): Sort by decreasing importance.
43975         (configure.ac): Check for geteuid.
43976         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43977         the test when there's nothing to test. Drop an unnecessary cast.
43978         Improve an error message. Verify that the final sethostname() call
43979         succeeds.
43981 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43983         Add a test suite for the sethostname module.
43984         * modules/sethostname-tests: New file.  A test program
43985         for the sethostname module.
43986         * tests/test-sethostname.c: Likewise.
43988 2011-12-03  Bruno Haible  <bruno@clisp.org>
43990         Tweak last commit.
43991         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43992         Fix preprocessor directives indentation. Fix typos.
43993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43994         * modules/unistd (Makefile): Likewise.
43996 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43998         Integrate the sethostname module into unistd.
43999         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
44000         into the unistd.h header.
44001         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
44002         preprocessor directives.
44003         * modules/unistd: Setup the Makefile substitutions of the
44004         SETHOSTNAME preprocessor directives.
44006 2011-12-03  Bruno Haible  <bruno@clisp.org>
44008         Tweak last commit.
44009         * lib/sethostname.c: Don't include <string.h>.
44010         (sethostname): No need to copy the argument string to the stack. Don't
44011         call clearerr. Preserve errno when fprintf failed.
44012         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
44013         Don't invoke AC_REPLACE_FUNCS.
44014         * modules/sethostname (Link): Remove empty section.
44015         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
44016         failure problem.
44018 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44020         New module 'sethostname'.
44021         * lib/sethostname.c (sethostname): New file.  Provide sethostname
44022         for systems that lack it.
44023         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
44024         sethostname declaration and function.
44025         * modules/sethostname: New file.  Define the sethostname module.
44027 2011-12-03  Bruno Haible  <bruno@clisp.org>
44029         Tweak last commit.
44030         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
44032 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44034         Split the HOST_NAME_MAX detection into a separate m4 macro.
44035         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
44036         macro so it can be used by the pending sethostname module.
44038 2011-12-03  Bruno Haible  <bruno@clisp.org>
44040         Fix module descriptions syntax.
44041         * modules/argv-iter (License): Fix syntax.
44042         * modules/di-set (License): Likewise.
44043         * modules/ino-map (License): Likewise.
44044         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
44046 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44048         stdalign: port to Clang 3.0
44049         Problem reported by Simon Josefsson in
44050         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
44051         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
44052         which has <stdalign.h> but which does not define alignof.
44053         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
44055 2011-12-01  Eric Blake  <eblake@redhat.com>
44057         mktempd: silence dd usage
44058         * build-aux/mktempd (rand_bytes): Silence dd.
44060 2011-11-30  Simon Josefsson  <simon@josefsson.org>
44062         manywarnings: Don't mention gcc version in docstring.
44063         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
44064         Jim Meyering <meyering@redhat.com>.
44066 2011-11-30  Jim Meyering  <meyering@redhat.com>
44068         hash: mark a few floating point constants with "f" suffix
44069         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
44070         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
44071         floating point constants with "f", since they're destined to be
44072         saved/used as "float"s.
44074 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
44076         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
44077         * tests/test-float.c (test_long_double): Correct and re-enable the
44078         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
44080 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
44082         Avoid subtracting two pointers that don't point into the same block.
44083         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
44084         only pointers into the same memory block are subtracted. We cannot
44085         assume that sizeof (ptrdiff_t) == sizeof (void *).
44087 2011-11-29  Eric Blake  <eblake@redhat.com>
44089         maint.mk: add syntax check for use of compare from init.sh
44090         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
44091         moved here from coreutils.
44093         manywarnings: drop -Wunsuffixed-float-constants
44094         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
44095         '1.0D', which is the only way to silence this warning for 'double'.
44097 2011-11-29  Jim Meyering  <meyering@redhat.com>
44099         hash: mark compute_bucket_size with the pure attribute
44100         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
44102         quotearg, propername: correct pragma guard expression
44103         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
44104         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
44106 2011-11-28  Jim Meyering  <meyering@redhat.com>
44108         propername: do not mark proper_name with the const attribute
44109         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
44110         since it examines data pointed to by its parameter.
44111         * lib/propername.c (proper_name): Instead, add a pragma to suppress
44112         the suggestion from -Wsuggest-attribute=const.
44114         propername: mark one more function as const
44115         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
44117 2011-11-27  Jim Meyering  <meyering@redhat.com>
44119         mark functions with const and pure attributes
44121         Mark functions per suggestions from gcc-4.6 when using these options:
44122         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
44123         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
44124         Follow these guidelines: when possible, apply the attribute to
44125         an extern declaration, not to its definition.  Apply it to the
44126         definition only when the definition is static.
44127         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
44128         * lib/argv-iter.h (argv_iter_n_args): Likewise.
44129         * lib/base64.h (isbase64): Likewise.
44130         * lib/basename-lgpl.c (last_component, base_len): Likewise.
44131         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
44132         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
44133         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
44134         (c_tolower, c_toupper): Likewise.
44135         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
44136         * lib/chdir-long.c (find_non_slash): Likewise.
44137         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
44138         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
44139         * lib/file-type.h (file_type): Likewise.
44140         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
44141         * lib/filevercmp.c (verrevcmp): Likewise.
44142         * lib/freadahead.h (freadahead): Likewise.
44143         * lib/fts.c (fts_maxarglen): Likewise.
44144         * lib/hash-pjw.h (hash_pjw): Likewise.
44145         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
44146         * lib/hash.c (is_prime, next_prime): Likewise.
44147         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
44148         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
44149         (hash_table_ok, hash_get_first, hash_string): Likewise.
44150         (compute_bucket_size): Likewise.
44151         * lib/i-ring.h (i_ring_empty): Likewise.
44152         * lib/isnan.c (isnanl): Likewise.
44153         * lib/math.h (isnanl, rpl_isnanl): Likewise.
44154         * lib/memcasecmp.h (memcasecmp): Likewise.
44155         * lib/memchr2.h (memchr2): Likewise.
44156         * lib/memcmp2.h (memcmp2): Likewise.
44157         * lib/parse-datetime.y (lookup_zone): Likewise.
44158         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
44159         [!WINDOWS_SOCKETS]: Likewise.
44160         * lib/strnlen1.h (strnlen1): Likewise.
44161         * lib/uniwidth.in.h (uc_width): Likewise.
44162         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
44163         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
44164         (quoting_options_from_style): Add a comment.
44165         * lib/propername.h (proper_name): Add a comment.
44167 2011-11-27  Bruno Haible  <bruno@clisp.org>
44169         Remove unused macros from !_LIBC code in glibc-borrowed files.
44170         * lib/fnmatch.c (STRCOLL): Remove macro.
44171         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
44172         * lib/glob.c (__stat, __readdir64): Remove macros.
44173         * lib/tempname.c (__open64, __xstat64): Remove macros.
44174         Suggested by Paul Eggert.
44176 2011-11-27  Bruno Haible  <bruno@clisp.org>
44178         getcwd: Fix link error on MSVC 9.
44179         * modules/getcwd (Depends-on): Add readdir, rewinddir.
44181 2011-11-27  Bruno Haible  <bruno@clisp.org>
44183         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
44184         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
44185         HAVE_OPENDIR is 0.
44186         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
44187         HAVE_CLOSEDIR is 0.
44188         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
44189         is 0.
44190         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
44192 2011-11-27  Bruno Haible  <bruno@clisp.org>
44194         getcwd: Fix bug from 2011-08-17.
44195         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
44196         platforms that need it.
44197         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
44198         code of 4 to be a failure, not a success. This ensures that
44199         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
44201 2011-11-27  Bruno Haible  <bruno@clisp.org>
44203         binary-io tests: Avoid test failure on mingw when libtool is used.
44204         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
44205         Don't verify the size of t-bin-out1.tmp here.
44206         * tests/test-binary-io.sh: Verify it here.
44207         Reported by Simon Josefsson.
44209 2011-11-26  Bruno Haible  <bruno@clisp.org>
44211         Fix conflict between two instantiations of module 'unistd'.
44212         * gnulib-tool (func_emit_autoconf_snippet): Substitute
44213         ${include_guard_prefix} also in the autoconf snippet.
44214         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
44215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
44216         GNULIB_UNISTD_H_GETOPT.
44217         * modules/getopt-posix (configure.ac): Set the
44218         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
44219         * modules/getopt-gnu (configure.ac): Likewise.
44220         * modules/unistd (Makefile.am): Change the substitution value of
44221         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
44222         Reported by Simon Josefsson.
44224 2011-11-25  Bruno Haible  <bruno@clisp.org>
44226         pagealign_alloc: Doc and comments.
44227         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
44228         module.
44229         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
44231 2011-11-25  Jim Meyering  <meyering@redhat.com>
44233         test-update-copyright.sh: avoid false-positive failure
44234         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
44235         around false positive failure on Cygwin/Windows.  The latter was
44236         matching erroneously-created files with names like
44237         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
44239 2011-11-25  Simon Josefsson  <simon@josefsson.org>
44241         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
44242         * m4/valgrind-tests.m4: Check that the parameters that will be
44243         used works, not just a subset of them.  Reported by Bruno Haible
44244         <bruno@clisp.org>.
44246 2011-11-24  Jim Meyering  <meyering@redhat.com>
44248         test-stdalign.c: comment out long double tests
44249         * tests/test-stdalign.c: Don't try to reduce alignment of long double
44250         variables.  That provokes errors like this from gcc-4.7.0 20111124:
44251         error: '_Alignas' specifiers cannot reduce alignment of \
44252         'static_longdouble_alignas'.
44254 2011-11-22  Jim Meyering  <meyering@redhat.com>
44256         init.sh: make "compare /dev/null FILE" output more readable
44257         * tests/init.sh (compare_): Document the preferred order of arguments.
44258         (emit_diff_u_header_): New function.
44259         (compare_dev_null_): Emit a simulated diff, rather than just the
44260         contents of the unexpected file.  Suggestion from Bruno Haible.
44262 2011-11-21  Jim Meyering  <meyering@redhat.com>
44263             Eric Blake  <eblake@redhat.com>
44265         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44266         * tests/init.sh: Make our compare function slightly more portable.
44267         Reported by Bruno Haible in
44268         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44270 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44272         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44273         before using it, in code that ends up in config.h.
44275 2011-11-20  Bruno Haible  <bruno@clisp.org>
44277         getcwd: Work around getcwd bug on AIX 5..7.
44278         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44279         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44280         Use a different value for gl_cv_func_getcwd_path_max. Move the
44281         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44282         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44283         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44284         Define HAVE_MINIMALLY_WORKING_GETCWD.
44285         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44286         where it is not even minimally working, that is, on AIX.
44287         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44288         m4/getcwd-path-max.m4.
44289         (main): Update exit code computation.
44290         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44291         getcwd does not handle long file names.
44293 2011-11-20  Bruno Haible  <bruno@clisp.org>
44295         getcwd: Fix bug from 2009-09-10.
44296         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44297         like "no".
44299 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44301         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44303 2011-11-20  Bruno Haible  <bruno@clisp.org>
44305         fma tests: Avoid shadowing local variables.
44306         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44307         expected.
44309 2011-11-20  Bruno Haible  <bruno@clisp.org>
44311         copysignf tests: Fix.
44312         * tests/test-copysignf.c: Fix signature check.
44314 2011-11-20  Bruno Haible  <bruno@clisp.org>
44316         fma: Remove unused code.
44317         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44318         unused macros.
44320 2011-11-20  Bruno Haible  <bruno@clisp.org>
44322         sethostname: Fix doc about AIX.
44323         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44324         sethostname; it has it.
44326         sethostname: Mention more portability problems.
44327         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44328         problem.
44329         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44331 2011-11-19  Bruno Haible  <bruno@clisp.org>
44333         Depend on module fcntl-h when AT_FDCWD is used.
44334         * modules/utimens (Depends-on): Add fcntl-h.
44335         * modules/areadlinkat (Depends-on): Likewise.
44336         * modules/areadlinkat-with-size (Depends-on): Likewise.
44337         * modules/faccessat (Depends-on): Likewise.
44338         * modules/fchmodat (Depends-on): Likewise.
44339         * modules/fchownat (Depends-on): Likewise.
44340         * modules/getcwd (Depends-on): Likewise.
44341         * modules/mkdirat (Depends-on): Likewise.
44342         * modules/mkfifoat (Depends-on): Likewise.
44343         * modules/readlinkat (Depends-on): Likewise.
44344         * modules/symlinkat (Depends-on): Likewise.
44345         * modules/dup2-tests (Depends-on): Likewise.
44346         * modules/fdutimensat-tests (Depends-on): Likewise.
44347         * modules/futimens-tests (Depends-on): Likewise.
44349 2011-11-19  Bruno Haible  <bruno@clisp.org>
44351         euidaccess: Update a comment.
44352         * lib/euidaccess.c: Update comment about platforms with faccessat.
44354 2011-11-19  Bruno Haible  <bruno@clisp.org>
44356         openat: Fix file list.
44357         * modules/openat (Files): Remove lib/at-func.c.
44359 2011-11-19  Bruno Haible  <bruno@clisp.org>
44361         fstatat: Simplify.
44362         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44363         gnulib should define rpl_fstatat, there is a
44364         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44366 2011-11-19  Bruno Haible  <bruno@clisp.org>
44368         Ensure 'inline' can be used in tests/test-utimens-common.h.
44369         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44370         * modules/futimens-tests (configure.ac): Likewise.
44371         * modules/utimens-tests (configure.ac): Likewise.
44372         * modules/utimensat-tests (configure.ac): Likewise.
44374 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44376         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44377         not hash_insert0.
44378         (hash_insert_if_absent): Doc fix.
44380 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44382         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44384 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44386         test-getcwd: disambiguate exit status
44387         * tests/test-getcwd.c (test_long_name): Return 0..7.
44388         (main): Exit with an unambiguous exit status.  The old
44389         code yielded a mysterious mixture of two failure codes.
44391         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44392         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44393         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44394         rpl_fstatat or fstatat.  This should fix the other problem
44395         reported by Kai Habel in
44396         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44397         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44398         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44399         and I reproduced it on a Solaris 8 host we still have in production.
44401 2011-11-18  Jim Meyering  <meyering@redhat.com>
44403         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44404         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44405         Add a sentence to the comment.
44406         (hash_insert0): New function that simply calls hash_insert_if_absent.
44407         * lib/hash.h (hash_insert_if_absent): Declare it.
44408         (hash_insert0): Add deprecation attribute.
44409         (_GL_ATTRIBUTE_DEPRECATED): Define.
44410         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44411         not hash_insert0.
44412         * NEWS: Mention it, even though it's not really an incompatible change.
44414 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44416         openat: avoid compilation failure due to lack of <errno.h> inclusion
44417         * lib/openat.c: Include <errno.h>.
44419 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44421         * modules/getcwd (Depends-on): Add fdopendir.
44422         This fixes one of the two problems reported by Kai Habel in
44423         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44425         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44426         stdalign problem reported by Ian Beckwith in
44427         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44428         * modules/crypto/gc-arcfour (Depends-on):
44429         Depend conditionally on crypto/arcfour.
44430         * modules/crypto/gc-arctwo (Depends-on):
44431         Depend conditionally on crypto/arctwo.
44432         * modules/crypto/gc-des (Depends-on):
44433         Depend conditionally on crypto/des.
44434         * modules/crypto/gc-hmac-md5 (Depends-on):
44435         Depend conditionally on crypto/hmac-md5.
44436         * modules/crypto/gc-hmac-sha1 (Depends-on):
44437         Depend conditionally on crypto/hmac-sha1.
44438         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44439         * modules/crypto/gc-md4 (Depends-on):
44440         Depend conditionally on crypto/md4.
44441         * modules/crypto/gc-md5 (Depends-on):
44442         Depend conditionally on crypto/md5.
44443         * modules/crypto/gc-rijndael (Depends-on):
44444         Depend conditionally on crypto/rijndael.
44445         * modules/crypto/gc-sha1 (Depends-on):
44446         Depend conditionally on crypto/sha1.
44447         * modules/crypto/gc-arcfour:
44448         * modules/crypto/gc-arctwo:
44449         * modules/crypto/gc-des:
44450         * modules/crypto/gc-hmac-md5:
44451         * modules/crypto/gc-hmac-sha1:
44452         * modules/crypto/gc-md2:
44453         * modules/crypto/gc-md4:
44454         * modules/crypto/gc-md5:
44455         * modules/crypto/gc-rijndael:
44456         * modules/crypto/gc-sha1:
44457         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44458         now that the conditional dependencies do the work for us.
44460 2011-11-17  Jim Meyering  <meyering@redhat.com>
44462         tests: factor st_ctime-comparison out of two headers
44463         * tests/test-utimens-common.h (ctime_compare): Define.
44464         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44465         * tests/test-lutimens.h (test_lutimens): Likewise.
44466         * tests/test-utimens.h (test_utimens): Likewise.
44468         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44469         Invoke the test program via an init.sh-using wrapper.
44470         * tests/test-getcwd.sh: New file.
44471         * modules/getcwd-tests (Files): Add it.
44472         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44474 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44476         gitlog-to-changelog: support multi-author commits.
44477         The FSF cares about keeping track of all authors of patches to its
44478         projects, but Git doesn't provide obvious support for multi-author
44479         changesets. Consensus seems to be forming around the use of extra
44480         Signed-off-by inspired lines in the log message formatted as
44481         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44482         multi-author commits between version control systems.
44483         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44484         log message and output in standard ChangeLog multi-author format.
44485         Reported by Peter Rosin <peda@lysator.liu.se>
44487 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44488             Bruno Haible  <bruno@clisp.org>
44490         Fix some modules' file list.
44491         * modules/fstatat (Files): Add m4/lstat.m4.
44492         * modules/openat (Files): Likewise.
44493         * modules/unlinkat (Files): Likewise.
44495 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44497         maint.mk: fix tight-scope.mk generation in VPATH builds.
44498         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44499         reference with $(srcdir) so that the file is found correctly even
44500         when running `make syntax-check' in a VPATH build.
44502 2011-11-13  Bruno Haible  <bruno@clisp.org>
44503             Jim Meyering  <meyering@redhat.com>
44505         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44506         * tests/init.sh (compare): Remove "No differences encountered" or
44507         synonymous output from the 'diff' program.
44509 2011-11-13  Bruno Haible  <bruno@clisp.org>
44511         Makefile: Tweak indentation.
44512         * Makefile: Use tab as first character in every line that contains rule
44513         commands.
44515 2011-11-13  Bruno Haible  <bruno@clisp.org>
44517         Syntax check for copyright statements.
44518         * check-copyright: New file.
44519         * Makefile (sc_check_copyright): New rule.
44521 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44523         * build-aux/git-version-gen: Add --prefix to configure the tag
44524         match string.
44526 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44528         * build-aux/git-version-gen: Add --help and --version.
44530 2011-11-12  Jim Meyering  <meyering@redhat.com>
44532         revamp the other test-exclude?.sh scripts to use init.sh, too
44533         * tests/test-exclude1.sh: Use init.sh.
44534         * tests/test-exclude2.sh: Likewise.
44535         * tests/test-exclude3.sh: Likewise.
44536         * tests/test-exclude4.sh: Likewise.
44537         * tests/test-exclude5.sh: Likewise.
44538         * tests/test-exclude6.sh: Likewise.
44539         * tests/test-exclude7.sh: Likewise.
44540         * tests/test-exclude8.sh: Likewise.
44541         * modules/exclude-tests (Files): List init.sh.
44543         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44544         These shell scripts ignored failure of the binary test-exclude,
44545         so making the latter return 77 didn't cause them to be skipped.
44546         * tests/test-exclude5.sh: Exit with test-exclude's error status
44547         when that program fails.  Revamp to use init.sh.
44548         * tests/test-exclude2.sh: Likewise.
44550         test-exclude: fix a typo
44551         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44553 2011-11-11  Bruno Haible  <bruno@clisp.org>
44555         obstack: Fix compilation error on MSVC 9.
44556         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44558 2011-11-11  Jim Meyering  <meyering@redhat.com>
44560         test-exclude: skip tests rather than failing on deficient systems
44561         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44562         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44563         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44564         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44566 2011-11-10  Bruno Haible  <bruno@clisp.org>
44568         ptsname_r test: Avoid gcc warning on glibc systems.
44569         * tests/test-ptsname_r.c (null_ptr): New function.
44570         (test_errors): Use it.
44572 2011-11-10  Bruno Haible  <bruno@clisp.org>
44574         ptsname_r: Avoid compilation error on OSF/1 5.1.
44575         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44577         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44578         function is not declared or incompatibly declared.
44579         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44580         * modules/ptsname_r (Depends-on, configure.ac): Update.
44581         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44583 2011-11-10  Bruno Haible  <bruno@clisp.org>
44585         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44586         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44587         When cross-compiling, guess yes on all platforms except AIX.
44588         Reported by Ludovic Courtès <ludo@gnu.org>.
44590 2011-11-09  Bruno Haible  <bruno@clisp.org>
44592         ptsname_r tests: Fix bugs.
44593         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44594         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44596 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44598         fstatat: work with cross-compilation
44599         Problem reported by Ludovic Courtès in
44600         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44601         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44602         "cross-compiling" and assume the bug is present.  Replace
44603         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44604         an inverted sense, to be more conservative about our assumptions.
44605         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44607 2011-11-09  Bruno Haible  <bruno@clisp.org>
44609         Improve MODULES.html output.
44610         * modules/mkfifoat (Description): Use the word "function".
44611         * modules/readlinkat (Description): Likewise.
44612         * modules/symlinkat (Description): Likewise.
44614 2011-11-09  Eric Blake  <eblake@redhat.com>
44616         ptsname_r-tests: new test module
44617         * modules/ptsname_r-tests: New module.
44618         * tests/test-ptsname_r.c: New file.
44620         ptsname_r: new module
44621         * modules/ptsname_r: New module.
44622         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44623         * lib/ptsname.c (__ptsname_r): Split...
44624         * lib/ptsname_r.c: ...into new file.
44625         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44626         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44627         * modules/stdlib (Makefile.am): Substitute witnesses.
44628         * lib/stdlib.in.h (ptsname_r): Declare it.
44629         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44630         * MODULES.html.sh (Misc): Likewise.
44631         * modules/ptsname (Depends-on): Alter dependency.
44632         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44634 2011-11-09  Jim Meyering  <meyering@redhat.com>
44636         announce-gen: be more concise when there's only one URL+tarball
44637         * build-aux/announce-gen (get_tool_versions): When you distribute
44638         only one type of tarball, combine the first two "Here are..."
44639         sections and make the key-checking grammar independent of
44640         how many tarballs there are.
44642 2011-11-09  Eric Blake  <eblake@redhat.com>
44644         openpty: provide a stub on mingw
44645         * lib/pty.in.h (includes): Provide forward declarations.
44646         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44648         raise: fix mingw handling of SIGPIPE
44649         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44651 2011-11-08  Bruno Haible  <bruno@clisp.org>
44653         More conditional dependencies.
44654         * modules/faccessat (Depends-on): Add conditions.
44655         * modules/fchmodat (Depends-on): Likewise.
44656         * modules/fchownat (Depends-on): Likewise.
44657         * modules/fstatat (Depends-on): Likewise.
44658         * modules/mkfifoat (Depends-on): Likewise.
44659         * modules/readlinkat (Depends-on): Likewise.
44660         * modules/symlinkat (Depends-on): Likewise.
44661         * modules/unlinkat (Depends-on): Likewise.
44662         * modules/utimensat (Depends-on): Likewise.
44663         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44664         * modules/linkat (Depends-on): Refine the conditions.
44665         * modules/renameat (Depends-on): Likewise.
44667 2011-11-08  Bruno Haible  <bruno@clisp.org>
44669         faccessat: Move AC_LIBOBJ invocation to module description.
44670         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44671         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44672         invocation from here...
44673         * modules/faccessat (configure.ac): ... to here. Invoke
44674         gl_PREREQ_FACCESSAT.
44676 2011-11-08  Bruno Haible  <bruno@clisp.org>
44678         faccessat: Simplify autoconf macro.
44679         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44680         gl_FUNC_EUIDACCESS.
44682 2011-11-08  Bruno Haible  <bruno@clisp.org>
44684         renameat: Fix dependencies.
44685         * modules/renameat (Depends-on): Add stdbool.
44687 2011-11-08  Bruno Haible  <bruno@clisp.org>
44689         mkfifoat: Fix module description.
44690         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44691         not gl_UNISTD_MODULE_INDICATOR.
44693 2011-11-08  Bruno Haible  <bruno@clisp.org>
44695         fstatat: Remove unused dependency.
44696         * modules/fstatat (Depends-on): Remove fstat.
44698 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44700         GNUmakefile: behave when Makefile is missing.
44701         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44703 2011-11-08  Bruno Haible  <bruno@clisp.org>
44705         openat: Conditionalize dependencies.
44706         * lib/openat.c: Reduce the scope of some #includes.
44707         * modules/openat (Depends-on): Add conditions.
44709 2011-11-07  Jim Meyering  <meyering@redhat.com>
44711         maint.mk: extract GPG key ID without using a temporary file
44712         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44713         without using a temporary file.  Based on a suggestion from Werner Koch
44714         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44716 2011-11-07  Eric Blake  <eblake@redhat.com>
44718         grantpt: fix typo
44719         * lib/stdlib.in.h (grantpt): Check correct function.
44721         maint.mk: silence new syntax check
44722         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44724 2011-11-06  Bruno Haible  <bruno@clisp.org>
44726         Doc about floating-point and math API.
44727         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44728         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44730 2011-11-06  Bruno Haible  <bruno@clisp.org>
44732         stdalign tests: Skip the test when compiled by Sun C.
44733         * tests/test-stdalign.c (main): Skip the test on Sun C.
44735 2011-11-06  Bruno Haible  <bruno@clisp.org>
44737         ansi-c++-opt: Complete the 2011-06-05 change.
44738         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44739         does not support namespaces, set the variable to "no", not to ":".
44741 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44743         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44745 2011-11-06  Bruno Haible  <bruno@clisp.org>
44747         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44748         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44749         (minus_zerol) [HP-UX]: New macro.
44750         (unary_minus) [HP-UX]: New function.
44751         (copysignl) [HP-UX]: Use unary_minus function.
44753 2011-11-06  Bruno Haible  <bruno@clisp.org>
44755         ldexp, ldexpf, ldexpl: Enhance tests.
44756         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44757         and tests/test-ldexpl.c.
44758         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44759         LDEXP, MIN_EXP, MAX_EXP): New macros.
44760         Include test-ldexp.h.
44761         (main): Just call test_function.
44762         * tests/test-ldexp.c: Include float.h, isnand-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         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44770         infinity.h, nan.h.
44771         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44772         MAX_EXP): New macros.
44773         Include test-ldexp.h.
44774         (x, y): Remove variables.
44775         (main): Just call test_function.
44776         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44777         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44778         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44779         (Depends-on): Add isnand-nolibm, signbit, float.
44780         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44781         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44782         (Depends-on): Add isnanf-nolibm, signbit, float.
44784 2011-11-06  Bruno Haible  <bruno@clisp.org>
44786         math tests: Cosmetics.
44787         * tests/test-math-c++.cc: Reorder declarations.
44789 2011-11-05  Bruno Haible  <bruno@clisp.org>
44791         fma*: Simplify test.
44792         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44793         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44795         Tests for module 'fmal'.
44796         * modules/fmal-tests: New file.
44797         * tests/test-fmal1.c: New file.
44798         * tests/test-fmal2.c: New file.
44800         New module 'fmal'.
44801         * lib/math.in.h (fmal): New declaration.
44802         * lib/fmal.c: New file.
44803         * m4/fmal.m4: New file.
44804         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44806         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44807         REPLACE_FMAL.
44808         * modules/fmal: New file.
44809         * doc/posix-functions/fmal.texi: Mention the new module and the various
44810         bugs.
44812         Tests for module 'fmaf'.
44813         * modules/fmaf-tests: New file.
44814         * tests/test-fmaf1.c: New file.
44815         * tests/test-fmaf2.c: New file.
44817         New module 'fmaf'.
44818         * lib/math.in.h (fmaf): New declaration.
44819         * lib/fmaf.c: New file.
44820         * m4/fmaf.m4: New file.
44821         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44823         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44824         REPLACE_FMAF.
44825         * modules/fmaf: New file.
44826         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44827         bugs.
44829         Tests for module 'fma'.
44830         * modules/fma-tests: New file.
44831         * tests/test-fma1.c: New file.
44832         * tests/test-fma1.h: New file.
44833         * tests/test-fma2.c: New file.
44834         * tests/test-fma2.h: New file.
44836         New module 'fma'.
44837         * lib/math.in.h (fma): New declaration.
44838         * lib/fma.c: New file.
44839         * m4/fma.m4: New file.
44840         * m4/fegetround.m4: New file.
44841         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44843         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44844         REPLACE_FMA.
44845         * modules/fma: New file.
44846         * doc/posix-functions/fma.texi: Mention the new module and the various
44847         bugs.
44849         Extend gl_MATHFUNC.
44850         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44851         Support 'void' as argument type.
44852         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44854 2011-11-05  Jim Meyering  <meyering@redhat.com>
44856         maint.mk: also prohibit inclusion of dirent.h without use
44857         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44859 2011-11-05  Bruno Haible  <bruno@clisp.org>
44861         ldexpl tests: Avoid test failure on MSVC 9.
44862         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44863         value. Needed in order to enforce the conversion from a value greater
44864         than LDBL_MAX to Infinity.
44866 2011-11-05  Bruno Haible  <bruno@clisp.org>
44868         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44869         * modules/at-internal: New file, extracted from modules/openat.
44870         * modules/openat-h: New file.
44871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44872         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44873         * modules/openat (Description): Add reference to POSIX function.
44874         (Files): Remove lib/openat.h, lib/openat-proc.c.
44875         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44876         intprops, unistd.
44877         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44878         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44879         gl_FCNTL_MODULE_INDICATOR.
44880         (Include): Remove unistd.h, openat.h.
44881         * modules/areadlinkat (Files): Add lib/at-func.c.
44882         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44883         openat-die, openat-h, save-cwd.
44884         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44885         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44886         openat-die, openat-h, save-cwd, unistd.
44887         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44888         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44889         openat-h, save-cwd. Remove fcntl-h, openat.
44890         * modules/fchmodat (Files): Remove lib/openat.h.
44891         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44892         openat, stdbool, unistd.
44893         * modules/fchownat (Files): Remove lib/openat.h.
44894         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44895         openat, stdbool, sys_stat.
44896         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44897         lib/openat-proc.c.
44898         (Depends-on): Add at-internal.
44899         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44900         * modules/fstatat (Files): Remove lib/openat.h.
44901         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44902         stdbool, unistd.
44903         * modules/fts (Depends-on): Add openat-h.
44904         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44905         openat.
44906         * modules/mkdirat (Files): Remove lib/openat.h.
44907         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44908         openat, stdbool, sys_stat.
44909         * modules/mkfifoat (Files): Add lib/at-func.c.
44910         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44911         openat-h, save-cwd. Remove fcntl-h, openat.
44912         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44913         * modules/readlinkat (Files): Add lib/at-func.c.
44914         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44915         openat-h, save-cwd. Remove fcntl-h, openat.
44916         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44917         openat.
44918         * modules/selinux-at (Files): Add lib/at-func.c.
44919         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44920         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44921         * modules/symlinkat (Files): Add lib/at-func.c.
44922         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44923         openat-h, save-cwd. Remove fcntl-h, openat.
44924         * modules/unlinkat (Files): Remove lib/openat.h.
44925         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44926         stdbool.
44927         * modules/utimensat (Files): Add lib/at-func.c.
44928         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44929         openat-die, openat-h, save-cwd.
44930         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44931         * modules/fdutimensat-tests (Depends-on): Add openat.
44932         * modules/fstatat-tests (Depends-on): Add openat-h.
44933         * modules/readlinkat-tests (Depends-on): Add openat.
44934         * modules/symlinkat-tests (Depends-on): Add openat.
44936 2011-11-05  Bruno Haible  <bruno@clisp.org>
44938         openat: Include <stdbool.h>.
44939         * lib/openat.c: Include <stdbool.h>.
44941 2011-11-04  Bruno Haible  <bruno@clisp.org>
44943         fchownat, renameat, unlinkat: Fix dependencies.
44944         * modules/fchownat (Depends-on): Add fstatat.
44945         * modules/renameat (Depends-on): Likewise.
44946         * modules/unlinkat (Depends-on): Likewise.
44948 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44950         openat: remove direct dependency on dirent
44951         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44952         and hasn't been needed ever since fdopendir was split into its own
44953         module on 2009-08-31.
44954         * modules/openat (Depends-on): Remove dirent.
44956 2011-11-04  Bruno Haible  <bruno@clisp.org>
44958         renameat: Optimize code size.
44959         * modules/renameat (configure.ac): Don't compile at-func2.c if
44960         REPLACE_RENAMEAT is 1.
44962 2011-11-04  Bruno Haible  <bruno@clisp.org>
44964         openat tests: Fix file list.
44965         * modules/openat-tests (Files): Add tests/test-open.h.
44967 2011-11-04  Bruno Haible  <bruno@clisp.org>
44969         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44970         * modules/fchmodat (Depends-on): Add openat-die.
44971         * modules/fchownat (Depends-on): Likewise.
44972         * modules/linkat (Depends-on): Likewise.
44973         * modules/renameat (Depends-on): Likewise.
44974         * modules/openat (Depends-on): Add dirent.
44976 2011-11-04  Jim Meyering  <meyering@redhat.com>
44978         at-func*.c: fix comments
44979         * lib/at-func2.c: Correct/improve first-line comment.
44980         * lib/at-func.c: Correct grammar in first-line comment.
44982 2011-11-04  Bruno Haible  <bruno@clisp.org>
44984         New module 'mkdirat', split off from module 'openat'.
44985         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44986         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44987         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44988         * modules/mkdirat: New file, extracted from modules/openat.
44989         * modules/openat (Files): Remove lib/mkdirat.c.
44990         (Depends-on): Remove mkdir.
44991         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44992         (Include): Remove <sys/stat.h>.
44993         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44994         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44995         tests/test-mkdir.h.
44996         (Depends-on): Remove ignore-value.
44997         (Makefile.am): Remove rules for test-mkdirat.
44998         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44999         of module 'openat'.
45000         * NEWS: Mention the change.
45002 2011-11-04  Bruno Haible  <bruno@clisp.org>
45004         closedir: Avoid warning on mingw.
45005         * lib/closedir.c: Include <unistd.h>.
45007 2011-11-04  Bruno Haible  <bruno@clisp.org>
45009         New module 'fstatat', split off from module 'openat'.
45010         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
45011         defined.
45012         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
45013         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
45014         gl_FUNC_FSTATAT.
45015         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
45016         * modules/fstatat: New file, extracted from modules/openat.
45017         * modules/openat (Files): Remove lib/fstatat.c.
45018         (Depends-on): Remove lstat.
45019         (configure.ac): Remove AC_LIBOBJ of fstatat.
45020         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
45021         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
45022         tests/test-lstat.h, tests/test-stat.h.
45023         (Depends-on): Remove getcwd-lgpl.
45024         (Makefile.am): Remove rules for test-fstatat.
45025         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
45026         of module 'openat'.
45027         * NEWS: Mention the change.
45028         * modules/getcwd (Depends-on): Add fstatat.
45029         * modules/linkat (Depends-on): Likewise.
45030         * modules/mkfifoat-tests (Depends-on): Likewise.
45031         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
45033 2011-11-03  Bruno Haible  <bruno@clisp.org>
45035         New module 'unlinkat', split off from module 'openat'.
45036         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
45037         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
45038         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
45039         * modules/unlinkat: New file, extracted from modules/openat. Correct
45040         the dependency conditions.
45041         * modules/openat (Files): Remove lib/unlinkat.c.
45042         (Depends-on): Remove rmdir, unlink.
45043         (configure.ac): Remove AC_LIBOBJ of unlinkat.
45044         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
45045         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
45046         tests/test-rmdir.h, tests/test-unlink.h.
45047         (Depends-on): Remove unlinkdir.
45048         (Makefile.am): Remove rules for test-unlinkat.
45049         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
45050         of module 'openat'.
45051         * NEWS: Mention the change.
45052         * modules/linkat-tests (Depends-on): Add unlinkat.
45053         * modules/mkfifoat-tests (Depends-on): Likewise.
45054         * modules/readlinkat-tests (Depends-on): Likewise.
45056 2011-11-02  Bruno Haible  <bruno@clisp.org>
45058         New module 'fchmodat', split off from module 'openat'.
45059         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
45060         defined.
45061         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
45062         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
45063         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
45064         * modules/fchmodat: New file, extracted from modules/openat.
45065         * modules/openat (Files): Remove lib/fchmodat.c.
45066         (configure.ac): Remove AC_LIBOBJ of fchmodat.
45067         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
45068         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
45069         (Makefile.am): Remove rules for test-fchmodat.
45070         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
45071         of module 'openat'.
45072         * NEWS: Mention the change.
45074 2011-11-02  Jim Meyering  <meyering@redhat.com>
45076         putenv: indent #definition of "environ" to placate cppi
45077         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
45079         gitlog-to-changelog: provide a ChangeLog-repair mechanism
45080         Git logs are often treated as immutable, because editing them
45081         changes the SHA1 checksums of all descendants.  Thus, errors in
45082         git logs tend to stay there forever.  However, when we generate
45083         a ChangeLog file -- typically for distribution -- from that git log,
45084         we can actually make corrections in the generated file.  The key
45085         lies in recording in machine-readable/applicable form the desired
45086         corrections.  See --help for description and an example.
45087         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
45088         (usage): Describe it; alphabetize option descriptions.
45089         (main): Honor the new option, carefully.
45091 2011-11-01  Jim Meyering  <meyering@redhat.com>
45093         gitlog-to-changelog: avoid an infloop
45094         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
45095         that ends up being empty.
45097 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45099         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
45100         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
45101         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
45102         contains (possibly-quoted) backslashes.  This should avoid
45103         all-too-common shell bugs if COMPLICATED contains backslashes in
45104         the "wrong" places.  Reported by David Evans in
45105         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
45106         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
45107         because we want ASCII ranges.  Is there some reason we don't use
45108         the C locale everywhere in this script?
45109         (func_module, top level): Avoid unwanted pathname expansion when
45110         $repo_url_prefix or $repo_url_suffix_repl contain shell
45111         metacharacters like '?' and '*'.
45113 2011-11-01  Bruno Haible  <bruno@clisp.org>
45115         fchownat: Improve description.
45116         * modules/fchownat (Description): Add link to function.
45118 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45120         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
45121         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
45122         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
45123         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
45125 2011-11-01  Bruno Haible  <bruno@clisp.org>
45127         alignof: Avoid collision with stdalign module.
45128         * lib/alignof.h (alignof): Remove macro.
45129         * NEWS: Mention the change.
45130         Reported by Paul Eggert.
45132 2011-11-01  Bruno Haible  <bruno@clisp.org>
45134         New module 'fchownat', split off from module 'openat'.
45135         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
45136         defined.
45137         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
45138         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
45139         invoke gl_FUNC_FCHOWNAT.
45140         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
45141         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
45142         * modules/fchownat: New file, extracted from modules/openat.
45143         * modules/openat (Files): Remove lib/fchownat.c.
45144         (Depends-on): Remove lchown.
45145         (configure.ac): Remove AC_LIBOBJ of fchownat.
45146         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
45147         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
45148         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
45149         (Depends-on): Remove mgetgroups, usleep, stat-time.
45150         (configure.ac): Remove test for getegid.
45151         (Makefile.am): Remove rules for test-fchownat.
45152         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
45153         of module 'openat'.
45154         * NEWS: Mention the change.
45156 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45158         stdalign: port better to MSVC and to Sun C 5.11
45159         This fixes some of the problems reported by Bruno Haible in
45160         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
45161         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
45162         shortcomings of MSVC and of Sun C 5.11.
45163         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
45164         around __declspec arg.
45165         * modules/stdalign-tests (Files): Add tests/macros.h.
45166         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
45167         Include macros.h, for ASSERT.
45168         (DECLARE_ALIGNED): Remove.
45169         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
45170         to catch bug), and to 1 if not (simplifies the rest of the code).
45171         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
45172         (CHECK_AUTO): Remove.
45173         (CHECK_ALIGNED): Check only the alignment of the static vars,
45174         since auto var alignment isn't supported by Sun C 5.11.
45175         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
45176         ASSERT failures are easier to diagnose.
45178 2011-10-31  Bruno Haible  <bruno@clisp.org>
45180         doc about some IRIX 5.3 problems.
45181         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
45182         on IRIX 5.3.
45183         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
45184         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
45185         5.3.
45186         * doc/posix-functions/grantpt.texi: Likewise.
45187         * doc/posix-functions/unlockpt.texi: Likewise.
45188         * doc/posix-functions/lgamma.texi: Likewise.
45189         * doc/posix-functions/nextafter.texi: Likewise.
45190         * doc/posix-functions/remainder.texi: Likewise.
45191         * doc/posix-functions/select.texi: Mention misplaced declaration on
45192         IRIX 5.3.
45193         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45195 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
45197         gitlog-to-changelog: fix git-log invocation.
45198         git-log mishandles date strings before 1970-01-01 UTC, and there is
45199         no use to specify --since=1970-01-01 by default anyway.
45200         * build-aux/gitlog-to-changelog: By default, when no --since option
45201         was given, do not specify explicit --since option to git-log.
45203 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
45205         gitlog-to-changelog: new option --append-dot.
45206         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
45207         first non-blank line of each commit message terminated with a dot.
45209 2011-10-30  Bruno Haible  <bruno@clisp.org>
45211         ffsl, ffsll: Avoid compilation error due to 'restrict'.
45212         * lib/ffsl.h: Include <config.h>.
45213         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
45215 2011-10-30  Jim Meyering  <meyering@redhat.com>
45217         GNUmakefile: reenable "make syntax-check" for most projects
45218         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
45219         build-aux variable", "syntax-check" would do nothing but succeed with
45220         the "No version control files detected..." diagnostic (unless you
45221         happened to override _build-aux via cfg.mk).
45222         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
45223         to precede inclusion of maint.mk.  Otherwise, these variables would
45224         be used undefined in any project that does not override the default.
45226 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
45228         gitlog-to-changelog: treat a message with only blank lines as empty.
45229         * build-aux/gitlog-to-changelog: Move the code that removes leading and
45230         trailing blank lines before the code that issues a warning about an
45231         empty commit message.
45233 2011-10-30  Jim Meyering  <meyering@redhat.com>
45235         test-parse-datetime.c: avoid new DST-related false positive test failure
45236         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
45237         based on the time/date we'll convert, not the current time.
45238         Otherwise, the moment we cross a DST boundary like today's in
45239         Europe, (CEST to CET), that offset ends up being one hour off.
45241 2011-10-27  Bruno Haible  <bruno@clisp.org>
45243         fstat: Tweak documentation.
45244         * modules/fstat (Description): More precise description.
45246 2011-10-27  Bruno Haible  <bruno@clisp.org>
45248         Update documentation regarding 'largefile' module.
45249         * doc/posix-functions/fstat.texi: Tweak wording.
45250         * doc/posix-functions/opendir.texi: Mention that the module fixes the
45251         problems with huge directories and/or small ino_t types.
45252         * doc/posix-functions/readdir.texi: Likewise.
45253         * doc/posix-functions/rewinddir.texi: Likewise.
45255 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45257         maint.mk: don't maintain a second build-aux variable.
45258         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45259         depends on GNUmakefile, which already maintains a cfg.mk
45260         overridable $(_build-aux) for projects with a non-standard
45261         build-aux directory location, although without the $(srcdir)
45262         prefix.  Use that variable consistently instead of introducing a
45263         second one.  Adjust all call sites.
45265 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45267         Add stdalign module and use it in other modules.
45268         This is based on a previous proposal by Bruno Haible
45269         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45271         stdalign: new module
45272         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45273         * modules/stdalign: New files.
45274         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45275         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45277         stdalign-tests: new module
45278         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45280         argp: use stdalign
45281         * lib/argp-parse.c: Include <stdalign.h>.
45282         (alignof): Remove.
45283         * modules/argp (Depends-on): Add stdalign.
45285         crypto libraries: use stdalign
45286         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45287         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45288         Do not include <stdlib.h> twice, in md4.c.
45289         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45290         because we are accessing a pointer's bit-pattern, not a size.
45291         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45292         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45293         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45294         * modules/crypto/sha512: Likewise.
45296         sys_socket: use stdalign, not alignof
45297         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45298         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45300 2011-10-27  Bruno Haible  <bruno@clisp.org>
45302         raise test: Avoid a test failure on Linux/MIPS.
45303         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45304         because 99 is a valid signal on Linux/MIPS.
45306 2011-10-27  Bruno Haible  <bruno@clisp.org>
45308         nonblocking tests: Fix test failure on Linux/MIPS.
45309         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45310         Set to 270000.
45312 2011-10-27  Bruno Haible  <bruno@clisp.org>
45314         utimensat: Work around problem on Linux/hppa.
45315         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45316         values.
45317         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45319 2011-10-25  Jim Meyering  <meyering@redhat.com>
45321         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45322         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45323         after symbols like NULL, size_t, etc.
45324         Reported by Alfred M. Szmidt.
45326         maint.mk: exempt ENODATA from a syntax-check rule
45327         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45328         from the sc_prohibit_always-defined_macros syntax-check rule.
45329         Add a comment.  See this for more details:
45330         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45332 2011-10-23  Jim Meyering  <meyering@redhat.com>
45334         fts: close parent dir FD before returning from post-traversal fts_read
45335         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45336         unlink A, even though an FD open on A remained.  This is suboptimal
45337         (holding a file descriptor open longer than needed), but otherwise not
45338         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45339         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45340         that represents a real problem: it causes the removal of A to fail
45341         with e.g., "rm: cannot remove `A': Device or resource busy"
45343         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45344         directory file descriptors.  After completing the final, FTS_DP,
45345         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45346         cache, but then proceeded to add a new FD to it via the subsequent
45347         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45348         final file descriptor would be closed only via fts_close's call to
45349         fd_ring_clear.  Now, it is usually closed earlier, via the final
45350         FTS_DP-returning fts_read call.
45351         * lib/fts.c (restore_initial_cwd): New function, converted from
45352         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45353         Update callers.
45354         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45355         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45357 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45358             Bruno Haible  <bruno@clisp.org>
45359             Jim Meyering  <jim@meyering.net>
45361         readme-release: improve safety of release prep instructions.
45362         * README-release: Don't git pull all branches when only master
45363         is needed for the release process.
45364         Run make maintainer-clean before changing trees and merging.
45365         Don't try to run ./configure right after git pull in case files
45366         that influence the bootstrap process have changed, move the
45367         ./configure step to after running ./bootstrap.
45368         Don't bootstrap "one last time"... it's the first time!
45370 2011-10-22  Bruno Haible  <bruno@clisp.org>
45372         errno, strerror-override: Support for MSVC 10.
45373         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45374         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45375         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45376         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45377         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45378         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45379         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45380         Assign values compatible with MSVC 10.
45381         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45382         New macros.
45383         (GNULIB_defined_EWINSOCK): New macro.
45384         * lib/strerror-override.c (strerror_override): Update accordingly.
45385         * lib/strerror-override.h: Likewise.
45386         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45387         longer equal to the corresponding errno value.
45388         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45390 2011-10-22  Bruno Haible  <bruno@clisp.org>
45392         perror: Recognize when test program crashes.
45393         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45394         strerror, set gl_cv_func_perror_works to no.
45395         Reported by Daniel Richard G. <skunk@iskunk.org>.
45397         perror: Fix indentation.
45398         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45400 2011-10-22  Bruno Haible  <bruno@clisp.org>
45402         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45403         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45404         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45405         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45406         functions, not as a macro.
45407         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45408         macros.
45409         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45410         absence of macro.
45411         Suggested by Eric Blake.
45412         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45414 2011-10-21  Bruno Haible  <bruno@clisp.org>
45416         relocatable-prog-wrapper: Don't leave object files behind.
45417         * build-aux/install-reloc: Re-synchronize list of .o files to be
45418         removed with list of compilation units.
45420 2011-10-20  Bruno Haible  <bruno@clisp.org>
45422         openpty, posix_openpt: Remove code duplication.
45423         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45424         * lib/openpty.c: Include <stdlib.h>.
45425         (openpty): Use posix_openpt on all platforms except IRIX.
45426         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45428 2011-10-20  Bruno Haible  <bruno@clisp.org>
45430         unlockpt: Detect invalid argument.
45431         * lib/unlockpt.c: Include <fcntl.h>.
45432         (unlockpt): Check whether fd is valid, using fcntl().
45433         * modules/unlockpt (Depends-on): Add fcntl-h.
45435 2011-10-20  Bruno Haible  <bruno@clisp.org>
45437         openpty: Avoid compilation error on AIX 6.1.
45438         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45440 2011-10-20  Bruno Haible  <bruno@clisp.org>
45442         posix_openpt: Support for OpenBSD.
45443         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45444         (posix_openpt) [OpenBSD]: New code.
45445         * lib/grantpt.c: Include <fcntl.h>.
45446         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45447         * modules/grantpt (Depends-on): Add fcntl-h.
45449 2011-10-20  Bruno Haible  <bruno@clisp.org>
45451         posix_openpt test: Coding style.
45452         * tests/test-posix_openpt.c: Use GNU coding style.
45454 2011-10-20  Bruno Haible  <bruno@clisp.org>
45456         grantpt: Support --avoid=pt_chown.
45457         * modules/grantpt (Files): Add lib/pty-private.h.
45459 2011-10-20  Bruno Haible  <bruno@clisp.org>
45461         posix_openpt: Fix autoconf macro.
45462         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45463         unneeded check for _getpty.
45465 2011-10-20  Bruno Haible  <bruno@clisp.org>
45467         openpty: Update comments.
45468         * lib/openpty.c: Add comments about Minix.
45470 2011-10-19  Eric Blake  <eblake@redhat.com>
45472         openpty: relax license
45473         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45475         pt_chown: use configmake to simplify build
45476         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45478         ptsname and others: relax license
45479         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45480         * modules/unlockpt (License): Likewise.
45481         * modules/pt_chown (License): Likewise.
45482         * modules/ptsname (License): Likewise.
45483         * modules/ttyname_r (License): Likewise.
45485 2011-10-19  Jim Meyering  <meyering@redhat.com>
45487         posix_openpt: remove spurious #endif
45488         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45490 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45492         maint.mk: Respect $(build_aux) in web-manual rule.
45493         * top/maint.mk (web-manual): Find gen-announce script in user's
45494         $(build_aux) directory instead of hard-coding 'build-aux'.
45496 2011-10-19  Bruno Haible  <bruno@clisp.org>
45498         posix_openpt: Fix compilation error.
45499         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45500         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45501         Mention the openpty module as an alternative.
45503 2011-10-19  Bruno Haible  <bruno@clisp.org>
45505         Support for old NeXTstep 3.3 frexp().
45506         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45507         execution time of the test to 5 seconds.
45508         Reported by Daniel Richard G. <skunk@iskunk.org>.
45510 2011-10-19  Bruno Haible  <bruno@clisp.org>
45512         Support for old NeXTstep 3.3 sed.
45513         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45514         part, use /.../, not \|...|. Escape periods in the header file name.
45515         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45516         Reported by Daniel Richard G. <skunk@iskunk.org>.
45518 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45520         Support for old NeXTstep 3.3 gcc.
45521         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45522         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45523         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45524         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45525         * lib/regex.h (_Restrict_arr_): Likewise.
45526         * lib/regex_internal.h (re_token_t): Likewise.
45527         * lib/regexec.c (check_node_accept_bytes): Likewise.
45528         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45530 2011-10-18  Eric Blake  <eblake@redhat.com>
45532         posix_openpt: new module
45533         * modules/posix_openpt: New module.
45534         * m4/posix_openpt.m4: New file.
45535         * lib/posix_openpt.c: Likewise.
45536         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45537         (gl_STDLIB_H_DEFAULTS): Set defaults.
45538         * modules/stdlib (Makefile.am): Substitute macros.
45539         * lib/stdlib.in.h (posix_openpt): Declare.
45540         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45541         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45542         * modules/posix_openpt-tests: New test module.
45543         * tests/test-posix_openpt.c: New test.
45545 2011-10-15  Bruno Haible  <bruno@clisp.org>
45547         xstrtoll: Fix compilation failure.
45548         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45549         from lib/strtol.c.
45550         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45551         some platforms.
45552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45554 2011-10-15  Bruno Haible  <bruno@clisp.org>
45556         vasnprintf: Optimize bit search operation.
45557         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45559         gl_DOUBLE_EXPONENT_LOCATION.
45560         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45561         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45562         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45563         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45564         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45565         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45566         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45567         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45568         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45570 2011-10-15  Bruno Haible  <bruno@clisp.org>
45572         vasnprintf: Fix comments.
45573         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45575 2011-10-14  Bruno Haible  <bruno@clisp.org>
45577         Tests for module 'integer_length_ll'.
45578         * modules/integer_length_ll-tests: New file.
45579         * tests/test-integer_length_ll.c: New file.
45581         New module 'integer_length_ll'.
45582         * lib/integer_length_ll.c: New file.
45583         * modules/integer_length_ll: New file.
45585 2011-10-14  Bruno Haible  <bruno@clisp.org>
45587         Tests for module 'integer_length_l'.
45588         * modules/integer_length_l-tests: New file.
45589         * tests/test-integer_length_l.c: New file.
45591         New module 'integer_length_l'.
45592         * lib/integer_length_l.c: New file.
45593         * modules/integer_length_l: New file.
45595 2011-10-14  Bruno Haible  <bruno@clisp.org>
45597         Tests for module 'integer_length'.
45598         * modules/integer_length-tests: New file.
45599         * tests/test-integer_length.c: New file.
45601         New module 'integer_length'.
45602         * lib/integer_length.h: New file.
45603         * lib/integer_length.c: New file.
45604         * modules/integer_length: New file.
45606 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45608         popen: Fix dependency conditions.
45609         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45611 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45613         perror: Fix autoconf test.
45614         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45615         <stdlib.h> and <string.h>.
45617 2011-10-14  Bruno Haible  <bruno@clisp.org>
45619         ffsl: Optimize on 64-bit platforms.
45620         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45621         unrolling.
45623 2011-10-13  Bruno Haible  <bruno@clisp.org>
45625         ffsl: Optimize on 32-bit platforms.
45626         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45627         use ffs() without a loop.
45629         ffsl, ffsll: Optimize for GCC.
45630         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45631         * lib/ffsl.c (GCC_BUILTIN): New macro.
45632         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45634 2011-10-13  Bruno Haible  <bruno@clisp.org>
45636         ffs, bcopy, memset: Support symbol renaming via config.h.
45637         * lib/ffs.c: Include <config.h>.
45638         * lib/bcopy.c: Likewise.
45639         * lib/memset.c: Likewise.
45641 2011-10-10  Bruno Haible  <bruno@clisp.org>
45643         atanl: Simplify for platforms where 'long double' == 'double'.
45644         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45645         alternative implementation.
45646         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45647         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45648         * modules/atanl (Depends-on): Add atan. Update conditions.
45650 2011-10-10  Bruno Haible  <bruno@clisp.org>
45652         acosl: Simplify for platforms where 'long double' == 'double'.
45653         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45654         alternative implementation.
45655         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45656         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45657         * modules/acosl (Depends-on): Add acos. Update conditions.
45659 2011-10-10  Bruno Haible  <bruno@clisp.org>
45661         asinl: Simplify for platforms where 'long double' == 'double'.
45662         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45663         alternative implementation.
45664         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45665         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45666         * modules/asinl (Depends-on): Add asin. Update conditions.
45668 2011-10-10  Bruno Haible  <bruno@clisp.org>
45670         tanl: Simplify for platforms where 'long double' == 'double'.
45671         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45672         implementation.
45673         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45674         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45675         * modules/tanl (Depends-on): Add tan. Update conditions.
45676         (configure.ac): Don't compile trigl.c if
45677         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45679 2011-10-10  Bruno Haible  <bruno@clisp.org>
45681         cosl: Simplify for platforms where 'long double' == 'double'.
45682         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45683         implementation.
45684         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45685         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45686         * modules/cosl (Depends-on): Add cos. Update conditions.
45687         (configure.ac): Don't compile sincosl.c and trigl.c if
45688         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45690 2011-10-10  Bruno Haible  <bruno@clisp.org>
45692         sinl: Simplify for platforms where 'long double' == 'double'.
45693         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45694         implementation.
45695         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45696         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45697         * modules/sinl (Depends-on): Add sin. Update conditions.
45698         (configure.ac): Don't compile sincosl.c and trigl.c if
45699         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45701 2011-10-10  Bruno Haible  <bruno@clisp.org>
45703         logl: Simplify for platforms where 'long double' == 'double'.
45704         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45705         implementation.
45706         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45707         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45708         * modules/logl (Depends-on): Add log. Update conditions.
45710 2011-10-10  Bruno Haible  <bruno@clisp.org>
45712         expl: Simplify for platforms where 'long double' == 'double'.
45713         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45714         implementation.
45715         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45716         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45717         * modules/expl (Depends-on): Add exp. Update conditions.
45719 2011-10-10  Bruno Haible  <bruno@clisp.org>
45721         sqrtl: Simplify for platforms where 'long double' == 'double'.
45722         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45723         alternative implementation.
45724         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45725         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45726         * modules/sqrtl (Depends-on): Update conditions.
45728 2011-10-10  Bruno Haible  <bruno@clisp.org>
45730         ldexpl: Simplify for platforms where 'long double' == 'double'.
45731         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45732         alternative implementation.
45733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45734         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45735         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45737 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45739         ffsll: set correct witness
45740         * modules/ffsll (configure.ac): Fix typo.
45742 2011-10-10  Bruno Haible  <bruno@clisp.org>
45744         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45745         * lib/printf-frexpl.c: Include <config.h>.
45746         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45747         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45748         second time.
45749         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45750         gl_LONG_DOUBLE_VS_DOUBLE.
45751         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45752         conditions.
45754 2011-10-10  Bruno Haible  <bruno@clisp.org>
45756         frexpl: Simplify for platforms where 'long double' == 'double'.
45757         * lib/frexpl.c: Include <config.h>.
45758         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45759         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45760         time.
45761         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45762         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45763         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45764         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45765         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45766         conditions.
45768 2011-10-10  Jim Meyering  <meyering@redhat.com>
45770         test-renameat: don't leave behind a temporary file
45771         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45772           ERROR: files left in build directory after distclean:
45773           ./gltests/test-renameat.too
45774           make[1]: *** [distcleancheck] Error 1
45775         Reported by Tom G. Christensen.
45777 2011-10-09  Bruno Haible  <bruno@clisp.org>
45779         rint: Determine RINT_LIBM correctly on AIX 7.
45780         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45781         directly, not only through a function pointer. Also accept an optional
45782         4th argument with extra code.
45783         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45784         rintf() call by gcc when optimizing.
45786         mathfunc.m4: Refactor.
45787         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45788         m4 variable.
45790 2011-10-09  Bruno Haible  <bruno@clisp.org>
45792         rintl: Simplify for platforms where 'long double' == 'double'.
45793         * lib/rintl.c: Include <config.h>.
45794         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45795         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45796         time.
45797         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45798         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45799         * modules/rintl (Depends-on): Add rint. Update conditions.
45801 2011-10-09  Bruno Haible  <bruno@clisp.org>
45803         roundl: Simplify for platforms where 'long double' == 'double'.
45804         * lib/roundl.c: Include <config.h>.
45805         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45806         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45807         time.
45808         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45809         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45810         * modules/roundl (Depends-on): Add round. Update conditions.
45812 2011-10-09  Bruno Haible  <bruno@clisp.org>
45814         truncl: Simplify for platforms where 'long double' == 'double'.
45815         * lib/truncl.c: Include <config.h>.
45816         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45817         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45818         time.
45819         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45820         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45821         * modules/truncl (Depends-on): Add trunc. Update conditions.
45823 2011-10-09  Bruno Haible  <bruno@clisp.org>
45825         ceill: Simplify for platforms where 'long double' == 'double'.
45826         * lib/ceill.c: Include <config.h>.
45827         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45828         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45829         time.
45830         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45831         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45832         * modules/ceill (Depends-on): Add ceil. Update conditions.
45834 2011-10-09  Bruno Haible  <bruno@clisp.org>
45836         floorl: Simplify for platforms where 'long double' == 'double'.
45837         * lib/floorl.c: Include <config.h>.
45838         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45839         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45840         time.
45841         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45842         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45843         * modules/floorl (Depends-on): Add floor. Update conditions.
45845 2011-10-09  Bruno Haible  <bruno@clisp.org>
45847         rint: Fix ordering constraints.
45848         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45849         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45850         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45852 2011-10-09  Bruno Haible  <bruno@clisp.org>
45854         copysignl: Simplify for platforms where 'long double' == 'double'.
45855         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45856         alternative.
45857         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45858         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45859         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45861 2011-10-09  Bruno Haible  <bruno@clisp.org>
45863         Tests for module 'rintl'.
45864         * modules/rintl-tests: New file.
45865         * tests/test-rintl.c: New file.
45867         New module 'rintl'.
45868         * lib/math.in.h (rintl): New declaration.
45869         * lib/rintl.c: New file.
45870         * m4/rintl.m4: New file.
45871         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45873         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45874         * modules/rintl: New file.
45875         * tests/test-math-c++.cc: Check the declaration of rintl.
45876         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45877         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45878         * doc/posix-functions/rintl.texi: Mention the new module.
45880 2011-10-09  Bruno Haible  <bruno@clisp.org>
45882         Tests for module 'rintf'.
45883         * modules/rintf-tests: New file.
45884         * tests/test-rintf.c: New file.
45886         New module 'rintf'.
45887         * lib/math.in.h (rintf): New declaration.
45888         * lib/rintf.c: New file.
45889         * m4/rintf.m4: New file.
45890         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45892         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45893         * modules/rintf: New file.
45894         * tests/test-math-c++.cc: Check the declaration of rintf.
45895         * doc/posix-functions/rintf.texi: Mention the new module.
45897 2011-10-09  Bruno Haible  <bruno@clisp.org>
45899         rint: Support for MSVC.
45900         * lib/math.in.h (rint): New declaration.
45901         * lib/rint.c: New file.
45902         * m4/rint.m4: New file.
45903         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45905         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45906         * modules/rint (Description): Fix.
45907         (Files): Add lib/rint.c, m4/rint.m4.
45908         (Depends-on): Add math.
45909         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45910         gl_MATH_MODULE_INDICATOR.
45911         * tests/test-math-c++.cc: Check the declaration of rint.
45912         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45913         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45914         * doc/posix-functions/rint.texi: Mention the replacement provided by
45915         the module.
45917         rint tests: More tests.
45918         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45919         minus-zero.h, infinity.h, nan.h.
45920         (main): Skip the test if the current rounding mode is not standard. Add
45921         tests for negative numbers, minus zero, infinity, NaN.
45922         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45923         tests/nan.h.
45924         (Depends-on): Add isnand-nolibm.
45926 2011-10-09  Bruno Haible  <bruno@clisp.org>
45928         Tests for module 'copysignl'.
45929         * modules/copysignl-tests: New file.
45930         * tests/test-copysignl.c: New file.
45932         New module 'copysignl'.
45933         * lib/math.in.h (copysignl): New declaration.
45934         * lib/copysignl.c: New file.
45935         * m4/copysignl.m4: New file.
45936         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45938         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45939         HAVE_COPYSIGNL.
45940         * modules/copysignl: New file.
45941         * tests/test-math-c++.cc: Check the declaration of copysignl.
45942         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45943         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45944         * doc/posix-functions/copysignl.texi: Mention the new module.
45946 2011-10-09  Bruno Haible  <bruno@clisp.org>
45948         Tests for module 'copysignf'.
45949         * modules/copysignf-tests: New file.
45950         * tests/test-copysignf.c: New file.
45952         New module 'copysignf'.
45953         * lib/math.in.h (copysignf): New declaration.
45954         * lib/copysignf.c: New file.
45955         * m4/copysignf.m4: New file.
45956         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45957         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45958         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45959         HAVE_COPYSIGNF.
45960         * modules/copysignf: New file.
45961         * tests/test-math-c++.cc: Check the declaration of copysignf.
45962         * doc/posix-functions/copysignf.texi: Mention the new module.
45964 2011-10-09  Bruno Haible  <bruno@clisp.org>
45966         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45967         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45968         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45969         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45970         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45971         gl_SIGNAL_H_DEFAULTS.
45973 2011-10-09  Bruno Haible  <bruno@clisp.org>
45975         poll: Make macro safer.
45976         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45977         ac_cv_header_poll_h is not set.
45979 2011-10-09  Bruno Haible  <bruno@clisp.org>
45981         copysign: Provide replacement.
45982         * lib/math.in.h (copysign): New declaration.
45983         * lib/copysign.c: New file.
45984         * m4/copysign.m4: New file.
45985         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45987         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45988         HAVE_COPYSIGN.
45989         * modules/copysign (Description): Clarify.
45990         (Files): Add lib/copysign.c, m4/copysign.m4.
45991         (Depends-on): Add math, signbit.
45992         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45993         gl_MATH_MODULE_INDICATOR.
45994         * tests/test-math-c++.cc: Check the declaration of copysign.
45995         * doc/posix-functions/copysign.texi: Mention the effects of the module
45996         on Minix and MSVC.
45998 2011-10-09  Bruno Haible  <bruno@clisp.org>
46000         isinf: Ensure macro on AIX 5.1.
46001         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
46002         macro.
46003         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
46005 2011-10-09  Bruno Haible  <bruno@clisp.org>
46007         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
46008         * modules/snprintf-posix-tests (configure.ac): Require
46009         gl_LONG_DOUBLE_VS_DOUBLE.
46010         * modules/sprintf-posix-tests (configure.ac): Likewise.
46011         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
46012         * modules/vasprintf-posix-tests (configure.ac): Likewise.
46013         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
46014         * modules/vsprintf-posix-tests (configure.ac): Likewise.
46015         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
46016         tests on platforms where 'long double' is the same as 'double'.
46017         * tests/test-sprintf-posix.h (test_function): Likewise.
46018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46019         * tests/test-vasprintf-posix.c (test_function): Likewise.
46021         *printf: Fix for platforms where 'long double' == 'double'.
46022         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
46023         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
46024         * modules/dprintf-posix (Files): Add m4/math_h.m4.
46025         * modules/fprintf-posix (Files): Likewise.
46026         * modules/obstack-printf-posix (Files): Likewise.
46027         * modules/snprintf-posix (Files): Likewise.
46028         * modules/sprintf-posix (Files): Likewise.
46029         * modules/vasnprintf (Files): Likewise.
46030         * modules/vasnprintf-posix (Files): Likewise.
46031         * modules/vasprintf-posix (Files): Likewise.
46032         * modules/vdprintf-posix (Files): Likewise.
46033         * modules/vfprintf-posix (Files): Likewise.
46034         * modules/vsnprintf-posix (Files): Likewise.
46035         * modules/vsprintf-posix (Files): Likewise.
46036         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46037         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46038         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46039         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46040         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46041         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46042         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46044         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
46045         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
46046         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46047         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
46048         'long double'.
46049         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
46051         isinf: Fix for platforms where 'long double' == 'double'.
46052         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46053         Don't blindly assume 80-bit 'long double'.
46055         isfinite: Fix for platforms where 'long double' == 'double'.
46056         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
46057         Don't blindly assume 80-bit 'long double'.
46059         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
46060         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
46061         * modules/isfinite-tests (configure.ac): Require
46062         gl_LONG_DOUBLE_VS_DOUBLE.
46063         * modules/isinf-tests (configure.ac): Likewise.
46064         * modules/isnan-tests (configure.ac): Likewise.
46065         * modules/isnanl-tests (configure.ac): Likewise.
46066         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
46067         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
46068         tests on platforms where 'long double' is the same as 'double'.
46069         * tests/test-isinf.c (test_isinfl): Likewise.
46070         * tests/test-isnan.c (test_long_double): Likewise.
46071         * tests/test-isnanl.h (main): Likewise.
46073 2011-10-08  Bruno Haible  <bruno@clisp.org>
46075         Tests for module 'tanhf'.
46076         * modules/tanhf-tests: New file.
46077         * tests/test-tanhf.c: New file.
46079         New module 'tanhf'.
46080         * lib/math.in.h (tanhf): New declaration.
46081         * lib/tanhf.c: New file.
46082         * m4/tanhf.m4: New file.
46083         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
46084         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
46085         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
46086         * modules/tanhf: New file.
46087         * tests/test-math-c++.cc: Check the declaration of tanhf.
46088         * doc/posix-functions/tanhf.texi: Mention the new module.
46090         tanh: Use a .m4 file.
46091         * m4/tanh.m4: New file.
46092         * modules/tanh (Files): Add it.
46093         (configure.ac): Just invoke gl_FUNC_TANH.
46095 2011-10-08  Bruno Haible  <bruno@clisp.org>
46097         Tests for module 'coshf'.
46098         * modules/coshf-tests: New file.
46099         * tests/test-coshf.c: New file.
46101         New module 'coshf'.
46102         * lib/math.in.h (coshf): New declaration.
46103         * lib/coshf.c: New file.
46104         * m4/coshf.m4: New file.
46105         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
46106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
46107         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
46108         * modules/coshf: New file.
46109         * tests/test-math-c++.cc: Check the declaration of coshf.
46110         * doc/posix-functions/coshf.texi: Mention the new module.
46112         cosh: Use a .m4 file.
46113         * m4/cosh.m4: New file.
46114         * modules/cosh (Files): Add it.
46115         (configure.ac): Just invoke gl_FUNC_COSH.
46117 2011-10-08  Bruno Haible  <bruno@clisp.org>
46119         Tests for module 'sinhf'.
46120         * modules/sinhf-tests: New file.
46121         * tests/test-sinhf.c: New file.
46123         New module 'sinhf'.
46124         * lib/math.in.h (sinhf): New declaration.
46125         * lib/sinhf.c: New file.
46126         * m4/sinhf.m4: New file.
46127         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
46128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
46129         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
46130         * modules/sinhf: New file.
46131         * tests/test-math-c++.cc: Check the declaration of sinhf.
46132         * doc/posix-functions/sinhf.texi: Mention the new module.
46134         sinh: Use a .m4 file.
46135         * m4/sinh.m4: New file.
46136         * modules/sinh (Files): Add it.
46137         (configure.ac): Just invoke gl_FUNC_SINH.
46139 2011-10-08  Bruno Haible  <bruno@clisp.org>
46141         Tests for module 'atan2f'.
46142         * modules/atan2f-tests: New file.
46143         * tests/test-atan2f.c: New file.
46145         New module 'atan2f'.
46146         * lib/math.in.h (atan2f): New declaration.
46147         * lib/atan2f.c: New file.
46148         * m4/atan2f.m4: New file.
46149         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
46150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
46151         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
46152         * modules/atan2f: New file.
46153         * tests/test-math-c++.cc: Check the declaration of atan2f.
46154         * doc/posix-functions/atan2f.texi: Mention the new module.
46156         atan2: Use a .m4 file.
46157         * m4/atan2.m4: New file.
46158         * modules/atan2 (Files): Add it.
46159         (configure.ac): Just invoke gl_FUNC_ATAN2.
46161 2011-10-08  Bruno Haible  <bruno@clisp.org>
46163         Tests for module 'atanf'.
46164         * modules/atanf-tests: New file.
46165         * tests/test-atanf.c: New file.
46167         New module 'atanf'.
46168         * lib/math.in.h (atanf): New declaration.
46169         * lib/atanf.c: New file.
46170         * m4/atanf.m4: New file.
46171         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
46172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
46173         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
46174         * modules/atanf: New file.
46175         * tests/test-math-c++.cc: Check the declaration of atanf.
46176         * doc/posix-functions/atanf.texi: Mention the new module.
46178         atan: Use a .m4 file.
46179         * m4/atan.m4: New file.
46180         * modules/atan (Files): Add it.
46181         (configure.ac): Just invoke gl_FUNC_ATAN.
46183 2011-10-08  Bruno Haible  <bruno@clisp.org>
46185         Tests for module 'acosf'.
46186         * modules/acosf-tests: New file.
46187         * tests/test-acosf.c: New file.
46189         New module 'acosf'.
46190         * lib/math.in.h (acosf): New declaration.
46191         * lib/acosf.c: New file.
46192         * m4/acosf.m4: New file.
46193         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
46194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
46195         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
46196         * modules/acosf: New file.
46197         * tests/test-math-c++.cc: Check the declaration of acosf.
46198         * doc/posix-functions/acosf.texi: Mention the new module.
46200         acos: Use a .m4 file.
46201         * m4/acos.m4: New file.
46202         * modules/acos (Files): Add it.
46203         (configure.ac): Just invoke gl_FUNC_ACOS.
46205 2011-10-08  Bruno Haible  <bruno@clisp.org>
46207         Tests for module 'asinf'.
46208         * modules/asinf-tests: New file.
46209         * tests/test-asinf.c: New file.
46211         New module 'asinf'.
46212         * lib/math.in.h (asinf): New declaration.
46213         * lib/asinf.c: New file.
46214         * m4/asinf.m4: New file.
46215         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
46216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
46217         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
46218         * modules/asinf: New file.
46219         * tests/test-math-c++.cc: Check the declaration of asinf.
46220         * doc/posix-functions/asinf.texi: Mention the new module.
46222         asin: Use a .m4 file.
46223         * m4/asin.m4: New file.
46224         * modules/asin (Files): Add it.
46225         (configure.ac): Just invoke gl_FUNC_ASIN.
46227 2011-10-08  Bruno Haible  <bruno@clisp.org>
46229         Tests for module 'tanf'.
46230         * modules/tanf-tests: New file.
46231         * tests/test-tanf.c: New file.
46233         New module 'tanf'.
46234         * lib/math.in.h (tanf): New declaration.
46235         * lib/tanf.c: New file.
46236         * m4/tanf.m4: New file.
46237         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
46238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
46239         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
46240         * modules/tanf: New file.
46241         * tests/test-math-c++.cc: Check the declaration of tanf.
46242         * doc/posix-functions/tanf.texi: Mention the new module.
46244         tan: Use a .m4 file.
46245         * m4/tan.m4: New file.
46246         * modules/tan (Files): Add it.
46247         (configure.ac): Just invoke gl_FUNC_TAN.
46249 2011-10-08  Bruno Haible  <bruno@clisp.org>
46251         Tests for module 'cosf'.
46252         * modules/cosf-tests: New file.
46253         * tests/test-cosf.c: New file.
46255         New module 'cosf'.
46256         * lib/math.in.h (cosf): New declaration.
46257         * lib/cosf.c: New file.
46258         * m4/cosf.m4: New file.
46259         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46261         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46262         * modules/cosf: New file.
46263         * tests/test-math-c++.cc: Check the declaration of cosf.
46264         * doc/posix-functions/cosf.texi: Mention the new module.
46266         cos: Use a .m4 file.
46267         * m4/cos.m4: New file.
46268         * modules/cos (Files): Add it.
46269         (configure.ac): Just invoke gl_FUNC_COS.
46271 2011-10-08  Bruno Haible  <bruno@clisp.org>
46273         Tests for module 'sinf'.
46274         * modules/sinf-tests: New file.
46275         * tests/test-sinf.c: New file.
46277         New module 'sinf'.
46278         * lib/math.in.h (sinf): New declaration.
46279         * lib/sinf.c: New file.
46280         * m4/sinf.m4: New file.
46281         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46283         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46284         * modules/sinf: New file.
46285         * tests/test-math-c++.cc: Check the declaration of sinf.
46286         * doc/posix-functions/sinf.texi: Mention the new module.
46288         sin: Use a .m4 file.
46289         * m4/sin.m4: New file.
46290         * modules/sin (Files): Add it.
46291         (configure.ac): Just invoke gl_FUNC_SIN.
46293 2011-10-08  Bruno Haible  <bruno@clisp.org>
46295         Tests for module 'powf'.
46296         * modules/powf-tests: New file.
46297         * tests/test-powf.c: New file.
46299         New module 'powf'.
46300         * lib/math.in.h (powf): New declaration.
46301         * lib/powf.c: New file.
46302         * m4/powf.m4: New file.
46303         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46305         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46306         * modules/powf: New file.
46307         * tests/test-math-c++.cc: Check the declaration of powf.
46308         * doc/posix-functions/powf.texi: Mention the new module.
46310         pow: Use a .m4 file.
46311         * m4/pow.m4: New file.
46312         * modules/pow (Files): Add it.
46313         (configure.ac): Just invoke gl_FUNC_POW.
46315 2011-10-08  Bruno Haible  <bruno@clisp.org>
46317         Tests for module 'log10f'.
46318         * modules/log10f-tests: New file.
46319         * tests/test-log10f.c: New file.
46321         New module 'log10f'.
46322         * lib/math.in.h (log10f): New declaration.
46323         * lib/log10f.c: New file.
46324         * m4/log10f.m4: New file.
46325         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46327         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46328         * modules/log10f: New file.
46329         * tests/test-math-c++.cc: Check the declaration of log10f.
46330         * doc/posix-functions/log10f.texi: Mention the new module.
46332         log10: Use a .m4 file.
46333         * m4/log10.m4: New file.
46334         * modules/log10 (Files): Add it.
46335         (configure.ac): Just invoke gl_FUNC_LOG10.
46337 2011-10-08  Bruno Haible  <bruno@clisp.org>
46339         Tests for module 'logf'.
46340         * modules/logf-tests: New file.
46341         * tests/test-logf.c: New file.
46343         New module 'logf'.
46344         * lib/math.in.h (logf): New declaration.
46345         * lib/logf.c: New file.
46346         * m4/logf.m4: New file.
46347         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46349         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46350         * modules/logf: New file.
46351         * tests/test-math-c++.cc: Check the declaration of logf.
46352         * doc/posix-functions/logf.texi: Mention the new module.
46354         log: Use a .m4 file.
46355         * m4/log.m4: New file.
46356         * modules/log (Files): Add it.
46357         (configure.ac): Just invoke gl_FUNC_LOG.
46359 2011-10-08  Bruno Haible  <bruno@clisp.org>
46361         Tests for module 'expf'.
46362         * modules/expf-tests: New file.
46363         * tests/test-expf.c: New file.
46365         New module 'expf'.
46366         * lib/math.in.h (expf): New declaration.
46367         * lib/expf.c: New file.
46368         * m4/expf.m4: New file.
46369         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46371         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46372         * modules/expf: New file.
46373         * tests/test-math-c++.cc: Check the declaration of expf.
46374         * doc/posix-functions/expf.texi: Mention the new module.
46376         exp: Use a .m4 file.
46377         * m4/exp.m4: New file.
46378         * modules/exp (Files): Add it.
46379         (configure.ac): Just invoke gl_FUNC_EXP.
46381 2011-10-08  Bruno Haible  <bruno@clisp.org>
46383         Tests for module 'sqrtf'.
46384         * modules/sqrtf-tests: New file.
46385         * tests/test-sqrtf.c: New file.
46387         New module 'sqrtf'.
46388         * lib/math.in.h (sqrtf): New declaration.
46389         * lib/sqrtf.c: New file.
46390         * m4/sqrtf.m4: New file.
46391         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46393         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46394         * modules/sqrtf: New file.
46395         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46396         * doc/posix-functions/sqrtf.texi: Mention the new module.
46398 2011-10-08  Bruno Haible  <bruno@clisp.org>
46400         Tests: Avoid link failures w.r.t. libintl.
46401         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46402         $(LIBINTL).
46403         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46404         $(LIBINTL).
46405         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46406         against $(LIBINTL).
46407         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46408         $(LIBINTL).
46409         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46410         $(LIBINTL).
46411         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46413 2011-10-08  Bruno Haible  <bruno@clisp.org>
46415         pow tests: Defeat compiler optimizations.
46416         * tests/test-pow.c (main): Assign arguments to x and y before use.
46418 2011-10-08  Bruno Haible  <bruno@clisp.org>
46420         gnulib-tool: Improve last commit.
46421         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46422         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46423         ignore dependencies that are not among the modules list.
46425 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46427         gnulib-tool: don't follow dependencies to avoided modules
46428         This fixes a bug that is related to the previous one.
46429         * gnulib-tool (func_modules_transitive_closure)
46430         (func_emit_autoconf_snippets):
46431         Check whether a dependency is acceptable before using it.
46432         (--extract-dependencies): Report an error if --avoid is also used,
46433         since this combination of options is not yet supported.
46435         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46436         Problem reported by Peter Dyballa in
46437         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46438         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46439         when echoing "$condition".
46441 2011-10-07  Bruno Haible  <bruno@clisp.org>
46443         Fix documentation about math functions on MacOS X.
46444         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46445         MacOS X 10.5.
46446         * doc/posix-functions/fdim.texi: Likewise.
46447         * doc/posix-functions/feclearexcept.texi: Likewise.
46448         * doc/posix-functions/fegetenv.texi: Likewise.
46449         * doc/posix-functions/fegetround.texi: Likewise.
46450         * doc/posix-functions/feholdexcept.texi: Likewise.
46451         * doc/posix-functions/feraiseexcept.texi: Likewise.
46452         * doc/posix-functions/fesetenv.texi: Likewise.
46453         * doc/posix-functions/fesetround.texi: Likewise.
46454         * doc/posix-functions/fetestexcept.texi: Likewise.
46455         * doc/posix-functions/feupdateenv.texi: Likewise.
46456         * doc/posix-functions/fmax.texi: Likewise.
46457         * doc/posix-functions/fmin.texi: Likewise.
46458         * doc/posix-functions/log2.texi: Likewise.
46459         * doc/posix-functions/modff.texi: Likewise.
46460         * doc/posix-functions/nan.texi: Likewise.
46461         * doc/posix-functions/nanf.texi: Likewise.
46462         * doc/posix-functions/nextafterf.texi: Likewise.
46463         * doc/posix-functions/remquo.texi: Likewise.
46465 2011-10-07  Bruno Haible  <bruno@clisp.org>
46467         modff: Drop assumption about library that defines modff.
46468         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46469         AC_CHECK_FUNCS.
46470         * modules/modff (Files): Add m4/mathfunc.m4.
46472 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46474         raise tests: Avoid a GCC warning.
46475         * tests/test-raise.c (handler): Use _Noreturn.
46477 2011-10-07  Bruno Haible  <bruno@clisp.org>
46479         Tests for module 'ldexpf'.
46480         * modules/ldexpf-tests: New file.
46481         * tests/test-ldexpf.c: New file.
46483         New module 'ldexpf'.
46484         * lib/math.in.h (ldexpf): New declaration.
46485         * lib/ldexpf.c: New file.
46486         * m4/ldexpf.m4: New file.
46487         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46489         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46490         * modules/ldexpf: New file.
46491         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46492         * doc/posix-functions/ldexpf.texi: Mention the new module.
46494 2011-10-06  Bruno Haible  <bruno@clisp.org>
46496         frexpf: Work around problems on IRIX and mingw.
46497         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46499         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46500         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46501         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46502         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46503         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46505 2011-10-06  Bruno Haible  <bruno@clisp.org>
46507         fabsf: Drop assumption about library that defines fabsf.
46508         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46509         AC_CHECK_FUNCS.
46510         * modules/fabsf (Files): Add m4/mathfunc.m4.
46512 2011-10-06  Bruno Haible  <bruno@clisp.org>
46514         frexpf: Drop assumption about library that defines frexpf.
46515         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46516         'int *', 'float *', 'long double *', 'float', 'long double'.
46517         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46518         AC_CHECK_FUNCS.
46519         * modules/frexpf (Files): Add m4/mathfunc.m4.
46521         Tests for module 'frexpf'.
46522         * modules/frexpf-tests: New file.
46523         * tests/test-frexpf.c: New file.
46525         New module 'frexpf'.
46526         * lib/math.in.h (frexpf): New declaration.
46527         * lib/frexpf.c: New file.
46528         * m4/frexpf.m4: New file.
46529         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46531         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46532         * modules/frexpf: New file.
46533         * tests/test-math-c++.cc: Check the declaration of frexpf.
46534         * doc/posix-functions/frexpf.texi: Mention the new module.
46536 2011-10-06  Bruno Haible  <bruno@clisp.org>
46538         math: Sort function declarations of math.in.h.
46539         * lib/math.in.h (frexp, logb): Move declarations.
46541 2011-10-05  Bruno Haible  <bruno@clisp.org>
46543         Tests for module 'modff'.
46544         * modules/modff-tests: New file.
46545         * tests/test-modff.c: New file.
46547         New module 'modff'.
46548         * lib/math.in.h (modff): New declaration.
46549         * lib/modff.c: New file.
46550         * m4/modff.m4: New file.
46551         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46553         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46554         * modules/modff: New file.
46555         * tests/test-math-c++.cc: Check the declaration of modff.
46556         * doc/posix-functions/modff.texi: Mention the new module.
46558         modf tests: Make test sharper.
46559         * tests/test-modf.c (main): Strengthen upper bound.
46561         modf: Use a .m4 file.
46562         * m4/modf.m4: New file.
46563         * modules/modf (Files): Add it.
46564         (configure.ac): Just invoke gl_FUNC_MODF.
46566 2011-10-05  Bruno Haible  <bruno@clisp.org>
46568         Tests for module 'fmodf'.
46569         * modules/fmodf-tests: New file.
46570         * tests/test-fmodf.c: New file.
46572         New module 'fmodf'.
46573         * lib/math.in.h (fmodf): New declaration.
46574         * lib/fmodf.c: New file.
46575         * m4/fmodf.m4: New file.
46576         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46578         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46579         * modules/fmodf: New file.
46580         * tests/test-math-c++.cc: Check the declaration of fmodf.
46581         * doc/posix-functions/fmodf.texi: Mention the new module.
46583         fmod: Use a .m4 file.
46584         * m4/fmod.m4: New file.
46585         * modules/fmod (Files): Add it.
46586         (configure.ac): Just invoke gl_FUNC_FMOD.
46588 2011-10-05  Bruno Haible  <bruno@clisp.org>
46590         Tests for module 'fabsf'.
46591         * modules/fabsf-tests: New file.
46592         * tests/test-fabsf.c: New file.
46594         New module 'fabsf'.
46595         * lib/math.in.h (fabsf): New declaration.
46596         * lib/fabsf.c: New file.
46597         * m4/fabsf.m4: New file.
46598         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46600         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46601         * modules/fabsf: New file.
46602         * tests/test-math-c++.cc: Check the declaration of fabsf.
46603         * doc/posix-functions/fabsf.texi: Mention the new module.
46605         fabs: Use a .m4 file.
46606         * m4/fabs.m4: New file.
46607         * modules/fabs (Files): Add it.
46608         (configure.ac): Just invoke gl_FUNC_FABS.
46610 2011-10-05  Jim Meyering  <meyering@redhat.com>
46612         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46613         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46614         ls -lL regression introduced in coreutils-8.12, it does so at the
46615         cost of an additional stat call in the common case.  Besides, now
46616         that the kernel change that prompted commit 95f7c57f has been reverted
46617         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46618         we have no use for commit 95f7c57f, "file-has-acl: use
46619         acl_extended_file_nofollow if available".
46621 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46623         file-has-acl: revert unintended change in behavior of ls -L
46624         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46625         derived from...
46626         (file_has_acl): ...code here.  Call it.
46627         This problem was introduced with 2011-07-22 commit 95f7c57f,
46628         "file-has-acl: use acl_extended_file_nofollow if available".
46629         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46631 2011-10-03  Bruno Haible  <bruno@clisp.org>
46633         poll: Avoid link errors on MSVC.
46634         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46635         * modules/poll (Depends-on): Add sockets.
46636         (Link): New section.
46637         * NEWS: Mention the change.
46638         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46639         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46640         $(LIB_POLL) instead of $(LIBSOCKET).
46642 2011-10-03  Bruno Haible  <bruno@clisp.org>
46644         sys_select tests: Fix link error on MSVC 9.
46645         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46646         with $(LIB_SELECT) instead of $(LIBSOCKET).
46648 2011-10-03  Bruno Haible  <bruno@clisp.org>
46650         sys_select: Fix compilation error on mingw.
46651         * lib/sys_select.in.h: On native Windows, include <io.h>.
46653 2011-10-03  Bruno Haible  <bruno@clisp.org>
46655         wmemset: Support for MSVC.
46656         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46657         whether wmemset() exists.
46659 2011-10-03  Bruno Haible  <bruno@clisp.org>
46661         wmemmove: Support for MSVC.
46662         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46663         whether wmemmove() exists.
46665 2011-10-03  Bruno Haible  <bruno@clisp.org>
46667         wmemcpy: Support for MSVC.
46668         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46669         whether wmemcpy() exists.
46671 2011-10-03  Bruno Haible  <bruno@clisp.org>
46673         wmemcmp: Support for MSVC.
46674         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46675         whether wmemcmp() exists.
46677 2011-10-03  Bruno Haible  <bruno@clisp.org>
46679         wmemchr: Support for MSVC.
46680         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46681         whether wmemchr() exists.
46683 2011-10-03  Bruno Haible  <bruno@clisp.org>
46685         glthread/*, strsignal: Support for MSVC.
46686         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46687         including <winsock.h> on MSVC 9.
46688         * lib/glthread/lock.h: Likewise.
46689         * lib/glthread/thread.h: Likewise.
46690         * lib/glthread/tls.h: Likewise.
46691         * lib/glthread/yield.h: Likewise.
46692         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46693         if HAVE_UNISTD_H is false.
46694         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46696 2011-10-03  Bruno Haible  <bruno@clisp.org>
46698         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46699         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46700         Set to 100000.
46702 2011-10-03  Bruno Haible  <bruno@clisp.org>
46704         acl: Fix specification.
46705         * lib/file-has-acl.c (file_has_acl): Fix specification.
46707 2011-10-03  Bruno Haible  <bruno@clisp.org>
46709         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46710         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46711         (compute_curr_prefix, shared_library_fullname,
46712         find_shared_library_fullname, get_shared_library_fullname, relocate):
46713         Use it together with PIC && INSTALLDIR.
46714         Reported by <jojelino@gmail.com>
46715         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46717 2011-10-01  Jim Meyering  <meyering@redhat.com>
46719         maint.mk: adjust a release-related rule not to require use of gzip
46720         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46721         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46722         projects that build only .tar.xz files.  Also fix an erroneous test.
46724         test-linkat: don't leave behind a temporary file
46725         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46726         Otherwise, coreutils' "make distcheck" would fail with this:
46727           Only in /c/cu/tests/torture/coreutils/test/\
46728             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46729           make[2]: *** [my-distcheck] Error 1
46731         float, math: add omitted file
46732         * lib/itold.c: Add file, required for yesterday's float change.
46734 2011-10-01  Bruno Haible  <bruno@clisp.org>
46736         isinf: Fix for OpenBSD/x86.
46737         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46738         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46739         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46741 2011-10-01  Bruno Haible  <bruno@clisp.org>
46743         isfinite: Fix syntax error in configure test.
46744         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46746         isfinite: Fix typo.
46747         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46748         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46750 2011-10-01  Bruno Haible  <bruno@clisp.org>
46752         nonblocking tests: Fix test failure on Linux/IA-64.
46753         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46754         Set to 270000.
46756 2011-10-01  Bruno Haible  <bruno@clisp.org>
46758         mkfifoat tests: Fix a test failure on mingw.
46759         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46760         with error ENOSYS.
46762 2011-09-30  Bruno Haible  <bruno@clisp.org>
46764         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46765         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46766         'long double'. Set REPLACE_ITOLD.
46767         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46768         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46769         * lib/itold.c: New file.
46770         * modules/float (Files): Add lib/itold.c.
46771         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46772         (Makefile.am): Substitute REPLACE_ITOLD.
46773         * modules/math (Depends-on): Add float.
46774         (Makefile.am): Substitute REPLACE_ITOLD.
46775         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46776         * doc/posix-headers/math.texi: Likewise.
46777         * doc/posix-functions/logl.texi: Likewise.
46779 2011-09-30  Bruno Haible  <bruno@clisp.org>
46781         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46782         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46783         Set to 140000.
46785 2011-09-30  Bruno Haible  <bruno@clisp.org>
46787         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46788         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46789         invocation, say "right after AC_PROG_CC_STDC", not "right after
46790         AC_PROG_CC".
46791         Reported by Gary V. Vaughan <gary@gnu.org>.
46793 2011-09-30  Bruno Haible  <bruno@clisp.org>
46795         Centralize C99 requirement.
46796         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46797         * modules/stdarg (configure.ac-early): Invoke it instead of
46798         AC_PROG_CC_STDC.
46799         Reported by Gary V. Vaughan and Paul Eggert.
46801 2011-09-29  Bruno Haible  <bruno@clisp.org>
46803         float: Fix LDBL_MAX value on Linux/PowerPC.
46804         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46805         on Linux/PowerPC.
46806         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46807         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46808         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46809         platform.
46810         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46812 2011-09-29  Bruno Haible  <bruno@clisp.org>
46814         doc: Improve doc about gl_EARLY.
46815         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46816         AC_PROG_CC_STDC invocation.
46817         Reported by Gary V. Vaughan <gary@gnu.org>.
46819 2011-09-28  Bruno Haible  <bruno@clisp.org>
46821         fgetc, fputc, fread, fwrite tests: Fix link error.
46822         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46823         on non-MSVC platforms.
46824         * tests/test-fputc.c (main): Likewise.
46825         * tests/test-fread.c (main): Likewise.
46826         * tests/test-fwrite.c (main): Likewise.
46827         Reported by Jim Meyering.
46829 2011-09-27  Bruno Haible  <bruno@clisp.org>
46831         fputc, fwrite tests: Avoid test failure on MSVC.
46832         * tests/test-fgetc.c: Include msvc-inval.h.
46833         (main): Invoke gl_msvc_inval_ensure_handler.
46834         * tests/test-fputc.c: Include msvc-inval.h.
46835         (main): Invoke gl_msvc_inval_ensure_handler.
46836         * tests/test-fread.c: Include msvc-inval.h.
46837         (main): Invoke gl_msvc_inval_ensure_handler.
46838         * tests/test-fwrite.c: Include msvc-inval.h.
46839         (main): Invoke gl_msvc_inval_ensure_handler.
46840         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46841         * modules/fputc-tests (Depends-on): Likewise.
46842         * modules/fread-tests (Depends-on): Likewise.
46843         * modules/fwrite-tests (Depends-on): Likewise.
46845 2011-09-27  Bruno Haible  <bruno@clisp.org>
46847         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46848         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46849         (raise): Remove older, duplicated declaration.
46850         (_gl_raise_SIGPIPE): New declaration.
46851         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46852         (rpl_raise): Remove function.
46853         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46854         a gnulib-defined SIGPIPE here.
46855         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46856         'sigprocmask' has detected missing signal-blocking and the module
46857         'sigpipe' is enabled.
46858         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46860 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46862         base64-tests: avoid memory leak
46863         * tests/test-base64.c (main): Plug memory leak.
46865         base32: new module
46866         * modules/base32: New module.
46867         * lib/base32.c: New file.
46868         * lib/base32.h: Likewise.
46869         * m4/base32.m4: Likewise.
46870         * modules/base32-tests: New test.
46871         * tests/test-base32.c: Likewise.
46872         * MODULES.html.sh (Misc): Mention it.
46874 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46876         gnulib: use more-standard license notice wording
46877         * gnulib-tool (func_emit_copyright_notice): When emitting a
46878         license notice into a file, use the standard wording as suggested
46879         by the current information for GNU maintainers, except say "file"
46880         rather than "program".  The new wording gives a license version
46881         number, which addresses an issue raised by Glenn Morris in
46882         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46883         * m4/onceonly.m4: Use that same wording here, too.
46885         dup2: minor simplification
46886         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46887         as lib/dup2.c no longer uses 'inline'.
46889 2011-09-25  Bruno Haible  <bruno@clisp.org>
46891         strings: Fix compilation error on MSVC.
46892         * lib/strings.in.h: Include <stddef.h> for size_t.
46894 2011-09-25  Bruno Haible  <bruno@clisp.org>
46896         fflush et al.: Document limitation on MSVC.
46897         * doc/posix-functions/fflush.texi: Document possible crash in handling
46898         mode other than DEFAULT_HANDLING.
46899         * doc/posix-functions/fgetc.texi: Likewise.
46900         * doc/posix-functions/fputc.texi: Likewise.
46901         * doc/posix-functions/fread.texi: Likewise.
46902         * doc/posix-functions/fwrite.texi: Likewise.
46904 2011-09-25  Bruno Haible  <bruno@clisp.org>
46906         msvc-inval: Allow three invalid parameter handling modes.
46907         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46908         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46909         macros.
46910         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46911         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46912         SANE_LIBRARY_HANDLING as a no-op.
46913         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46914         <stdlib.h>.
46915         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46917 2011-09-25  Bruno Haible  <bruno@clisp.org>
46919         msvc-inval: Make handler multithread-safe.
46920         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46921         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46922         declarations.
46923         (gl_msvc_inval_current): New declaration.
46924         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46925         Operate on the structure returned by gl_msvc_inval_current().
46926         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46927         Remove varaiables.
46928         (tls_index, tls_initialized): New variables.
46929         (not_per_thread): New variable.
46930         (gl_msvc_inval_current): New function.
46931         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46932         returned by gl_msvc_inval_current().
46934 2011-09-25  Bruno Haible  <bruno@clisp.org>
46936         msvc-inval: Install handler globally.
46937         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46938         !_MSC_VER.
46939         (gl_msvc_invalid_parameter_handler): Remove declaration.
46940         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46941         declarations.
46942         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46943         Install the handler globally, don't uninstall it.
46944         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46945         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46946         currently valid, call RaiseException instead.
46947         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46948         for !_MSC_VER.
46950 2011-09-25  Bruno Haible  <bruno@clisp.org>
46952         strerror_r-posix: Fix for MSVC 9.
46953         * lib/strerror_r.c (local_snprintf): New function.
46954         (snprintf): Define to local_snprintf, not to _snprintf.
46956 2011-09-25  Bruno Haible  <bruno@clisp.org>
46958         ftruncate: Support for MSVC 9.
46959         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46960         (chsize_nothrow): New function.
46961         (chsize): Redefine as a macro.
46962         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46963         * modules/ftruncate (Depends-on): Add msvc-inval.
46965 2011-09-25  Bruno Haible  <bruno@clisp.org>
46967         New module 'fstat'.
46968         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46969         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46970         * lib/fchdir.c (rpl_fstat): Remove function.
46971         * m4/fstat.m4: New file.
46972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46973         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46974         declared.
46975         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46976         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46977         * modules/fstat: New file.
46978         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46979         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46980         is set.
46981         * doc/posix-functions/fstat.texi: Mention the new module and the
46982         problem on MSVC.
46983         * NEWS: Mention the change.
46984         * modules/acl (Depends-on): Add fstat.
46985         * modules/chdir-safer (Depends-on): Likewise.
46986         * modules/chown (Depends-on): Likewise.
46987         * modules/copy-file (Depends-on): Likewise.
46988         * modules/fchdir (Depends-on): Likewise.
46989         * modules/fdopendir (Depends-on): Likewise.
46990         * modules/fopen (Depends-on): Likewise.
46991         * modules/fts (Depends-on): Likewise.
46992         * modules/getcwd (Depends-on): Likewise.
46993         * modules/isapipe (Depends-on): Likewise.
46994         * modules/linkat (Depends-on): Likewise.
46995         * modules/lseek (Depends-on): Likewise.
46996         * modules/mkdir-p (Depends-on): Likewise.
46997         * modules/open (Depends-on): Likewise.
46998         * modules/openat (Depends-on): Likewise.
46999         * modules/read-file (Depends-on): Likewise.
47000         * modules/renameat (Depends-on): Likewise.
47001         * modules/utimens (Depends-on): Likewise.
47003 2011-09-25  Bruno Haible  <bruno@clisp.org>
47005         linkat: Fix compilation on MSVC 9.
47006         * lib/linkat.c: Don't include <stdint.h>.
47008 2011-09-25  Bruno Haible  <bruno@clisp.org>
47010         fclose: Support for MSVC 9.
47011         * lib/fclose.c: Include msvc-inval.h.
47012         (fclose_nothrow): New function.
47013         (rpl_fclose): Use it.
47014         * modules/fclose (Depends-on): Add msvc-inval.
47015         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
47017 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47019         dup2: minor simplifications
47020         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
47021         that it's a performance win.
47022         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
47023         ! defined __CYGWIN__)" to "ifdef F_GETFL".
47025 2011-09-24  Jim Meyering  <meyering@redhat.com>
47027         test-futimens: avoid a warning from gcc -Wshadow
47028         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
47029         to avoid a shadowing warning.
47031 2011-09-24  Bruno Haible  <bruno@clisp.org>
47033         fdopen: Support for MSVC 9.
47034         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
47035         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
47036         * lib/fdopen.c: Include msvc-inval.h.
47037         (fdopen_nothrow): New function.
47038         (rpl_fdopen): Use it.
47039         * modules/fdopen (Depends-on): Add msvc-inval.
47040         * modules/fclose-tests (Depends-on): Add fdopen.
47041         * modules/fflush-tests (Depends-on): Likewise.
47042         * modules/fgetc-tests (Depends-on): Likewise.
47043         * modules/fputc-tests (Depends-on): Likewise.
47044         * modules/fread-tests (Depends-on): Likewise.
47045         * modules/freopen-tests (Depends-on): Likewise.
47046         * modules/fseeko-tests (Depends-on): Likewise.
47047         * modules/ftello-tests (Depends-on): Likewise.
47048         * modules/fwrite-tests  (Depends-on): Likewise.
47049         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
47051 2011-09-24  Bruno Haible  <bruno@clisp.org>
47053         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
47054         * modules/fgetc-tests (Depends-on): Add unistd.
47055         * modules/fputc-tests (Depends-on): Likewise.
47056         * modules/fread-tests (Depends-on): Likewise.
47057         * modules/fwrite-tests (Depends-on): Likewise.
47059 2011-09-24  Bruno Haible  <bruno@clisp.org>
47061         dup: Simplify autoconf test.
47062         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
47063         on gl_MSVC_INVAL's result.
47065 2011-09-24  Bruno Haible  <bruno@clisp.org>
47067         Tests for function fwrite().
47068         * modules/fwrite-tests: New file.
47069         * tests/test-fwrite.c: New file.
47070         * modules/stdio-tests (Depends-on): Add fwrite-tests.
47072         Tests for function fread().
47073         * modules/fread-tests: New file.
47074         * tests/test-fread.c: New file.
47075         * modules/stdio-tests (Depends-on): Add fread-tests.
47077         Activate fputc tests.
47078         * modules/stdio-tests (Depends-on): Add fputc-tests.
47080         Enhance fgetc, fputc tests.
47081         * tests/test-fgetc.c (main): Also test the stream's error indicator.
47082         * tests/test-fputc.c (main): Likewise.
47084 2011-09-24  Bruno Haible  <bruno@clisp.org>
47086         write: Support for MSVC 9.
47087         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47088         is not 1.
47089         * lib/write.c (write_nothrow): New function.
47090         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
47091         not 1. Use write_nothrow.
47092         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
47093         invalid parameter handler.
47094         (gl_PREREQ_WRITE): New macro.
47095         * modules/write (Depends-on): Add msvc-inval.
47096         (configure.ac): Invoke gl_PREREQ_WRITE.
47097         * doc/posix-functions/write.texi: Mention the problem on MSVC.
47099 2011-09-24  Bruno Haible  <bruno@clisp.org>
47101         read: Fix last commit.
47102         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
47104 2011-09-24  Bruno Haible  <bruno@clisp.org>
47106         dup2: Fix last commit.
47107         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
47108         (rpl_dup2): Disable fcntl workaround on native Windows.
47110         sigprocmask: Make code safer.
47111         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
47112         section that changes macro definitions for this compilation unit.
47114 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47116         dup2: clarify by coalescing Windows-specific material
47117         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
47118         "msvc-nothrow.h"' to the Windows-specific section, so that the
47119         Emacs source need not contain these include files.
47120         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
47121         Windows-specific fixes into this function rather than just the
47122         nothrow fix, as this shortens and clarifies the code.  Always
47123         define as a function, as that's a bit cleaner than having it be
47124         sometimes a function and sometimes a macro.
47125         (rpl_dup2): Move the Windows-specific stuff out of here and into
47126         ms_windows_dup2.  Don't protect the Haiku-related fix with
47127         "#if !defined __linux__", as the same code also works around
47128         a Linux kernel bug, and it doesn't add any system calls on any
47129         platform.  Add comment about FreeBSD 6.1.
47131         sigprocmask: move #include directive
47132         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
47133         Windows-specific section, so that the Emacs source need not
47134         contain msvc-inval.h.
47136 2011-09-23  Bruno Haible  <bruno@clisp.org>
47138         read: Support for MSVC 9.
47139         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
47140         is not 1.
47141         * lib/read.c (read_nothrow): New function.
47142         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
47143         read_nothrow.
47144         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
47145         invalid parameter handler.
47146         (gl_PREREQ_READ): New macro.
47147         * modules/read (Depends-on): Add msvc-inval.
47148         (configure.ac): Invoke gl_PREREQ_READ.
47149         * doc/posix-functions/read.texi: Mention the problem on MSVC.
47151 2011-09-23  Bruno Haible  <bruno@clisp.org>
47153         close: Support for MSVC 9.
47154         * lib/close.c: Include <errno.h>, msvc-inval.h.
47155         (close_nothrow): New function.
47156         (rpl_close): Use it.
47157         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
47158         invalid parameter handler.
47159         * modules/close (Depends-on): Add msvc-inval.
47160         * modules/dup2-tests (Depends-on): Add close.
47161         * modules/dup3-tests (Depends-on): Likewise.
47162         * modules/fcntl-tests (Depends-on): Likewise.
47163         * modules/spawn-pipe-tests (Depends-on): Likewise.
47164         * modules/unistd-safer-tests (Depends-on): Likewise.
47165         * doc/posix-functions/close.texi: Mention the problem on MSVC.
47167 2011-09-23  Bruno Haible  <bruno@clisp.org>
47169         New module 'dup'.
47170         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
47171         Allow replacement.
47172         * lib/dup.c: New file.
47173         * lib/fchdir.c (rpl_dup): Remove function.
47174         * m4/dup.m4: New file.
47175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
47176         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
47177         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
47178         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
47179         * modules/dup: New file.
47180         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
47181         'dup' module is in use.
47182         * modules/fdopendir (Depends-on): Add dup.
47183         * modules/fdutimensat-tests (Depends-on): Likewise.
47184         * modules/fts (Depends-on): Likewise.
47185         * modules/futimens-tests (Depends-on): Likewise.
47186         * modules/posix_spawnp-tests (Depends-on): Likewise.
47187         * modules/unistd-safer-tests (Depends-on): Likewise.
47188         * modules/utimens-tests (Depends-on): Likewise.
47189         * doc/posix-functions/dup.texi: Mention the new module and the problem
47190         on MSVC.
47192 2011-09-23  Bruno Haible  <bruno@clisp.org>
47194         getdtablesize: Support for MSVC 9.
47195         * lib/getdtablesize.c: Include msvc-inval.h.
47196         (_setmaxstdio_nothrow): New function.
47197         (_setmaxstdio): Redefine it.
47198         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
47199         * modules/getdtablesize (Depends-on): Add msvc-inval.
47200         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
47202 2011-09-23  Bruno Haible  <bruno@clisp.org>
47204         signal-h: Rename from signal.
47205         * modules/signal-h: Renamed from modules/signal.
47206         * modules/pthread_sigmask (Depends-on): Update.
47207         * modules/raise (Depends-on): Likewise.
47208         * modules/sigaction (Depends-on): Likewise.
47209         * modules/sigpipe (Depends-on): Likewise.
47210         * modules/sigprocmask (Depends-on): Likewise.
47211         * modules/sys_select (Depends-on): Likewise.
47212         * modules/signal-h-tests: Renamed from modules/signal-tests.
47213         (Files, Depends-on, Makefile.am): Update.
47214         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
47215         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
47216         (Files, Makefile.am): Update.
47217         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
47218         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
47219         * modules/signal: New placeholder file.
47220         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
47221         * doc/posix-headers/signal.texi: Update.
47222         * NEWS: Mention the change.
47224 2011-09-23  Bruno Haible  <bruno@clisp.org>
47226         sigprocmask: Avoid crashes through signal() on MSVC 9.
47227         * lib/sigprocmask.c: Include msvc-inval.h.
47228         (signal_nothrow): New function.
47229         (signal): Redefine it.
47230         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
47231         * modules/sigprocmask (Depends-on): Add msvc-inval.
47232         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
47234 2011-09-23  Bruno Haible  <bruno@clisp.org>
47236         Tests for module 'raise'.
47237         * modules/raise-tests: New file.
47238         * tests/test-raise.c: New file.
47240         raise: Support for MSVC.
47241         * lib/signal.in.h (raise): New declaration.
47242         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
47243         for native Windows platforms.
47244         * m4/raise.m4: New file.
47245         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
47246         HAVE_RAISE, REPLACE_RAISE.
47247         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
47248         REPLACE_RAISE.
47249         * modules/raise (Status, Notice): Remove fields.
47250         (Files): Add m4/raise.m4.
47251         (Depends-on): Add signal, msvc-inval.
47252         (configure.ac): Use the common idioms.
47253         (Maintainer): Add me.
47254         * tests/test-signal-c++.cc: Check the signature of raise.
47255         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47257 2011-09-23  Bruno Haible  <bruno@clisp.org>
47259         pipe2: Fix compilation on pre-C99 compilers.
47260         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47262 2011-09-23  Bruno Haible  <bruno@clisp.org>
47264         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47265         * lib/msvc-nothrow.h: New file.
47266         * lib/msvc-nothrow.c: New file.
47267         * m4/msvc-nothrow.m4: New file.
47268         * modules/msvc-nothrow: New file.
47269         * lib/dup2.c: Include msvc-nothrow.h.
47270         (rpl_dup2): No need to protect _get_osfhandle call here.
47271         * lib/accept4.c: Include msvc-nothrow.h.
47272         * lib/error.c: Likewise.
47273         * lib/fcntl.c: Likewise.
47274         * lib/lseek.c: Likewise.
47275         * lib/nonblocking.c: Likewise.
47276         * lib/poll.c: Likewise.
47277         * lib/read.c: Likewise.
47278         * lib/select.c: Likewise.
47279         * lib/sockets.h: Likewise.
47280         * lib/sockets.c: Likewise.
47281         * lib/stdio-read.c: Likewise.
47282         * lib/stdio-write.c: Likewise.
47283         * lib/write.c: Likewise.
47284         * lib/w32sock.h: Likewise.
47285         * lib/w32spawn.h: Likewise.
47286         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47287         * lib/fsync.c: Likewise.
47288         * lib/isapipe.c: Likewise.
47289         * modules/dup2 (Depends-on): Add msvc-nothrow.
47290         * modules/accept4 (Depends-on): Likewise.
47291         * modules/error (Depends-on): Likewise.
47292         * modules/fcntl (Depends-on): Likewise.
47293         * modules/lseek (Depends-on): Likewise.
47294         * modules/nonblocking (Depends-on): Likewise.
47295         * modules/poll (Depends-on): Likewise.
47296         * modules/read (Depends-on): Likewise.
47297         * modules/select (Depends-on): Likewise.
47298         * modules/sockets (Depends-on): Likewise.
47299         * modules/sigpipe (Depends-on): Likewise.
47300         * modules/write (Depends-on): Likewise.
47301         * modules/accept (Depends-on): Likewise.
47302         * modules/bind (Depends-on): Likewise.
47303         * modules/connect (Depends-on): Likewise.
47304         * modules/gethostname (Depends-on): Likewise.
47305         * modules/getpeername (Depends-on): Likewise.
47306         * modules/getsockname (Depends-on): Likewise.
47307         * modules/getsockopt (Depends-on): Likewise.
47308         * modules/ioctl (Depends-on): Likewise.
47309         * modules/listen (Depends-on): Likewise.
47310         * modules/recv (Depends-on): Likewise.
47311         * modules/recvfrom (Depends-on): Likewise.
47312         * modules/send (Depends-on): Likewise.
47313         * modules/sendto (Depends-on): Likewise.
47314         * modules/setsockopt (Depends-on): Likewise.
47315         * modules/shutdown (Depends-on): Likewise.
47316         * modules/socket (Depends-on): Likewise.
47317         * modules/execute (Depends-on): Likewise.
47318         * modules/spawn-pipe (Depends-on): Likewise.
47319         * modules/flock (Depends-on): Likewise.
47320         * modules/fsync (Depends-on): Likewise.
47321         * modules/isapipe (Depends-on): Likewise.
47322         * tests/test-cloexec.c: Include msvc-nothrow.h.
47323         * tests/test-dup-safer.c: Likewise.
47324         * tests/test-dup2.c: Likewise.
47325         * tests/test-dup3.c: Likewise.
47326         * tests/test-fcntl.c: Likewise.
47327         * tests/test-pipe.c: Likewise.
47328         * tests/test-pipe2.c: Likewise.
47329         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47330         * modules/unistd-safer-tests (Depends-on): Likewise.
47331         * modules/dup2-tests (Depends-on): Likewise.
47332         * modules/dup3-tests (Depends-on): Likewise.
47333         * modules/fcntl-tests (Depends-on): Likewise.
47334         * modules/pipe-posix-tests (Depends-on): Likewise.
47335         * modules/pipe2-tests (Depends-on): Likewise.
47337 2011-09-23  Bruno Haible  <bruno@clisp.org>
47339         dup2: Make code more maintainable.
47340         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47341         (rpl_dup2): Use it.
47342         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47343         * modules/dup2 (configure.ac): Invoke it.
47344         Reported by Paul Eggert.
47346 2011-09-23  Bruno Haible  <bruno@clisp.org>
47348         msvc-inval: Fix compilation error.
47349         * lib/msvc-inval.h: Include <excpt.h>.
47351 2011-09-23  Bruno Haible  <bruno@clisp.org>
47353         mkdir: Tweak for MSVC 9.
47354         * lib/sys_stat.in.h: Update comments.
47355         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47357         Tests for module 'chdir'.
47358         * modules/chdir-tests: New file.
47359         * tests/test-chdir.c: New file.
47361         New module 'chdir'.
47362         * modules/chdir: New file.
47363         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47364         (chdir): New declaration.
47365         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47366         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47367         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47368         * tests/test-unistd-c++.cc: Check signature of chdir.
47369         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47370         * modules/chdir-long (Depends-on): Add chdir.
47371         * modules/fchdir (Depends-on): Likewise.
47372         * modules/rename (Depends-on): Likewise.
47373         * modules/savewd (Depends-on): Likewise.
47375         rmdir: Support for mingw, MSVC 9.
47376         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47377         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47379         getcwd: Tweak for MSVC 9.
47380         * lib/unistd.in.h: Update comments.
47381         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47383 2011-09-22  Bruno Haible  <bruno@clisp.org>
47385         strerror_r-posix: Avoid a link error on MSVC.
47386         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47387         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47389 2011-09-22  Bruno Haible  <bruno@clisp.org>
47391         select: Avoid link errors on MSVC.
47392         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47393         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47394         * modules/pselect (Link): Likewise.
47395         * NEWS: Mention the change.
47396         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47397         test-select-stdin against $(LIB_SELECT).
47398         * modules/pselect-tests (Makefile.am): Link test-pselect against
47399         $(LIB_SELECT).
47401 2011-09-22  Bruno Haible  <bruno@clisp.org>
47403         select: Avoid compilation error on MSVC.
47404         * lib/select.c: Don't include <stdbool.h>.
47406 2011-09-21  Bruno Haible  <bruno@clisp.org>
47408         Consolidate all uses of PATH_MAX in *.m4 files.
47409         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47410         macros.
47411         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47412         and gl_PATHMAX_SNIPPET.
47413         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47415         * modules/chdir-long (Files): Add m4/pathmax.m4.
47416         * modules/getcwd (Files): Likewise.
47418 2011-09-21  Bruno Haible  <bruno@clisp.org>
47420         ftruncate: Un-deprecate, concentrate on Win32 support.
47421         * modules/ftruncate (Status, Notice): Remove sections.
47422         (Depends-on): Add largefile.
47423         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47424         non-mingw platforms.
47425         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47426         include <io.h>.
47427         * modules/perror-tests (Depends-on): Add ftruncate.
47428         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47429         'ftruncate' module.
47431 2011-09-21  Bruno Haible  <bruno@clisp.org>
47433         Add dependencies to new dirent related modules.
47434         * modules/opendir (Depends-on): Add closedir.
47435         * modules/getcwd (Depends-on): Add opendir, closedir.
47436         * modules/dirent-safer-tests (Depends-on): Likewise.
47437         * modules/fdopendir-tests (Depends-on): Likewise.
47438         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47439         * modules/renameat-tests (Depends-on): Likewise.
47441 2011-09-21  Bruno Haible  <bruno@clisp.org>
47443         opendir: Avoid compilation error on mingw.
47444         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47445         * modules/opendir (Depends-on): Add unistd.
47447 2011-09-21  Bruno Haible  <bruno@clisp.org>
47449         ftruncate tests: Avoid a test failure on mingw.
47450         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47452 2011-09-21  Bruno Haible  <bruno@clisp.org>
47454         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47455         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47456         native Windows.
47458 2011-09-21  Bruno Haible  <bruno@clisp.org>
47460         New module 'fdopen'.
47461         * lib/stdio.in.h (fdopen): New declaration.
47462         * lib/fdopen.c: New file.
47463         * m4/fdopen.m4: New file.
47464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47465         REPLACE_FDOPEN.
47466         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47467         REPLACE_FDOPEN.
47468         * modules/fdopen: New file.
47469         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47470         * tests/test-stdio-c++.cc: Check signature of fdopen.
47471         * doc/posix-functions/fdopen.texi: Mention the new module.
47473 2011-09-21  Bruno Haible  <bruno@clisp.org>
47475         unlockpt tests: Avoid test failure on NetBSD 5.1.
47476         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47477         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47479 2011-09-21  Bruno Haible  <bruno@clisp.org>
47481         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47482         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47483         * tests/test-getlogin_r.c (main): Likewise.
47485 2011-09-20  Bruno Haible  <bruno@clisp.org>
47487         time tests: Don't require pid_t.
47488         * doc/posix-headers/time.texi: Revert last change.
47489         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47490         * tests/test-time.c: Comment out the check for pid_t.
47492 2011-09-20  Bruno Haible  <bruno@clisp.org>
47494         fsync tests: Avoid a test failure on mingw.
47495         * tests/test-fsync.c (main): Allow a failure with EIO.
47497 2011-09-20  Bruno Haible  <bruno@clisp.org>
47499         euidaccess: Update comments.
47500         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47502 2011-09-20  Bruno Haible  <bruno@clisp.org>
47504         Ensure EBADF returns for socket functions on mingw.
47505         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47506         descriptor is invalid.
47507         * lib/bind.c (rpl_bind): Likewise.
47508         * lib/connect.c (rpl_connect): Likewise.
47509         * lib/getpeername.c (rpl_getpeername): Likewise.
47510         * lib/getsockname.c (rpl_getsockname): Likewise.
47511         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47512         * lib/listen.c (rpl_listen): Likewise.
47513         * lib/recv.c (rpl_recv): Likewise.
47514         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47515         * lib/send.c (rpl_send): Likewise.
47516         * lib/sendto.c (rpl_sendto): Likewise.
47517         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47518         * lib/shutdown.c (rpl_shutdown): Likewise.
47520 2011-09-20  Bruno Haible  <bruno@clisp.org>
47522         select tests: EBADF tests.
47523         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47524         test_bad_fd): New functions.
47525         (test_function): Invoke also test_bad_fd.
47527 2011-09-20  Bruno Haible  <bruno@clisp.org>
47529         Tests for module 'posix_spawn_file_actions_addopen.
47530         * modules/posix_spawn_file_actions_addopen-tests: New file.
47531         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47533         Tests for module 'posix_spawn_file_actions_adddup2'.
47534         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47535         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47537         Tests for module 'posix_spawn_file_actions_addclose'.
47538         * modules/posix_spawn_file_actions_addclose-tests: New file.
47539         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47541 2011-09-20  Bruno Haible  <bruno@clisp.org>
47543         Tests for module 'unlockpt'.
47544         * modules/unlockpt-tests: New file.
47545         * tests/test-unlockpt.c: New file.
47546         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47548         Tests for module 'grantpt'.
47549         * modules/grantpt-tests: New file.
47550         * tests/test-grantpt.c: New file.
47551         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47553 2011-09-20  Bruno Haible  <bruno@clisp.org>
47555         freopen tests: EBADF tests.
47556         * tests/test-freopen.c: Include errno.h, unistd.h.
47557         (main): Add tests for EBADF, commented out for the moment.
47559         fclose tests: EBADF tests.
47560         * tests/test-fclose.c (main): Add tests for EBADF.
47562         fflush tests: EBADF tests.
47563         * tests/test-fflush.c: Include errno.h, macros.h.
47564         (main): Add tests for EBADF.
47566         ftello tests: EBADF tests.
47567         * tests/test-ftello4.sh: New file.
47568         * tests/test-ftello4.c: New file.
47569         * modules/ftello-tests (Files): Add them.
47570         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47572         fseeko tests: EBADF tests.
47573         * tests/test-fseeko4.sh: New file.
47574         * tests/test-fseeko4.c: New file.
47575         * modules/fseeko-tests (Files): Add them.
47576         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47578         Tests for function fputc().
47579         * modules/fputc-tests: New file.
47580         * tests/test-fputc.c: New file.
47581         * modules/stdio-tests (Depends-on): Add fputc-tests.
47583         Tests for function fgetc().
47584         * modules/fgetc-tests: New file.
47585         * tests/test-fgetc.c: New file.
47586         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47588         Tests for function fdopen().
47589         * modules/fdopen-tests: New file.
47590         * tests/test-fdopen.c: New file.
47591         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47593         Tests for module 'vdprintf'.
47594         * modules/vdprintf-tests: New file.
47595         * tests/test-vdprintf.c: New file.
47597         Tests for module 'dprintf'.
47598         * modules/dprintf-tests: New file.
47599         * tests/test-dprintf.c: New file.
47601 2011-09-20  Bruno Haible  <bruno@clisp.org>
47603         Tests for module 'ioctl'.
47604         * modules/ioctl-tests: New file.
47605         * tests/test-ioctl.c: New file.
47607 2011-09-20  Bruno Haible  <bruno@clisp.org>
47609         fcntl tests: EBADF tests.
47610         * tests/test-fcntl.c (main): Add more tests for EBADF.
47612 2011-09-20  Bruno Haible  <bruno@clisp.org>
47614         utimensat tests: EBADF tests.
47615         * tests/test-utimensat.c (main): Add tests for EBADF.
47617         renameat tests: EBADF tests.
47618         * tests/test-renameat.c (main): Add tests for EBADF.
47620         mkfifoat tests: EBADF tests.
47621         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47623         readlinkat tests: EBADF tests.
47624         * tests/test-readlinkat.c (main): Add tests for EBADF.
47626         symlinkat tests: EBADF tests.
47627         * tests/test-symlinkat.c (main): Add tests for EBADF.
47629         linkat tests: EBADF tests.
47630         * tests/test-linkat.c (main): Add tests for EBADF.
47632         Tests for module 'faccessat'.
47633         * modules/faccessat-tests: New file.
47634         * tests/test-faccessat.c: New file.
47636         fdopendir tests: EBADF tests.
47637         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47639         openat tests: EBADF tests.
47640         * tests/test-fchownat.c (main): Add tests for EBADF.
47641         * tests/test-fstatat.c (main): Likewise.
47642         * tests/test-mkdirat.c (main): Likewise.
47643         * tests/test-openat.c (main): Likewise.
47644         * tests/test-unlinkat.c (main): Likewise.
47645         * tests/test-fchmodat.c: New file.
47646         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47647         (Makefile.am): Also run 'test-fchmodat'.
47649 2011-09-20  Bruno Haible  <bruno@clisp.org>
47651         utimens, futimens, fdutimensat tests: EBADF tests.
47652         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47654         Tests for function fstat().
47655         * modules/fstat-tests: New file.
47656         * tests/test-fstat.c: New file.
47657         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47659 2011-09-20  Bruno Haible  <bruno@clisp.org>
47661         test-ttyname_r tests: EBADF tests.
47662         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47664         Tests for module 'isatty'.
47665         * modules/isatty-tests: New file.
47666         * tests/test-isatty.c: New file.
47668         Tests for module 'write'.
47669         * modules/write-tests: New file.
47670         * tests/test-write.c: New file.
47672         Tests for module 'read'.
47673         * modules/read-tests: New file.
47674         * tests/test-read.c: New file.
47676         pwrite tests: EBADF tests.
47677         * tests/test-pwrite.c (main): Add tests for EBADF.
47679         pread tests: EBADF tests.
47680         * tests/test-pread.c (main): Add tests for EBADF.
47682         lseek tests: EBADF tests.
47683         * tests/test-lseek.c (main): Add more tests for EBADF.
47685         Tests for module 'ftruncate'.
47686         * modules/ftruncate-tests: New file.
47687         * tests/test-ftruncate.sh: New file.
47688         * tests/test-ftruncate.c: New file.
47690         fsync tests: EBADF tests.
47691         * tests/test-fsync.c (main): Add more tests for EBADF.
47693         fdatasync tests: EBADF tests.
47694         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47696         Tests for module 'fchown'.
47697         * modules/fchown-tests: New file.
47698         * tests/test-fchown.c: New file.
47700         Tests for module 'fchmod'.
47701         * modules/fchmod-tests: New file.
47702         * tests/test-fchmod.c: New file.
47704         fchdir tests: EBADF tests.
47705         * tests/test-fchdir.c (main): Add more tests for EBADF.
47707         dup2 tests: EBADF tests.
47708         * tests/test-dup2.c (main): Add more tests for EBADF.
47710         Tests for module 'dup'.
47711         * modules/dup-tests: New file.
47712         * tests/test-dup.c: New file.
47714         Tests for module 'close'.
47715         * modules/close-tests: New file.
47716         * tests/test-close.c: New file.
47718 2011-09-20  Bruno Haible  <bruno@clisp.org>
47720         Tests for module 'shutdown'.
47721         * modules/shutdown-tests: New file.
47722         * tests/test-shutdown.c: New file.
47724         Tests for module 'setsockopt'.
47725         * modules/setsockopt-tests: New file.
47726         * tests/test-setsockopt.c: New file.
47728         Tests for module 'sendto'.
47729         * modules/sendto-tests: New file.
47730         * tests/test-sendto.c: New file.
47732         Tests for module 'send'.
47733         * modules/send-tests: New file.
47734         * tests/test-send.c: New file.
47736         Tests for module 'recvfrom'.
47737         * modules/recvfrom-tests: New file.
47738         * tests/test-recvfrom.c: New file.
47740         Tests for module 'recv'.
47741         * modules/recv-tests: New file.
47742         * tests/test-recv.c: New file.
47744         Tests for module 'listen'.
47745         * modules/listen-tests: New file.
47746         * tests/test-listen.c: New file.
47748         Tests for module 'getsockopt'.
47749         * modules/getsockopt-tests: New file.
47750         * tests/test-getsockopt.c: New file.
47752         Tests for module 'getsockname'.
47753         * modules/getsockname-tests: New file.
47754         * tests/test-getsockname.c: New file.
47756         Tests for module 'getpeername'.
47757         * modules/getpeername-tests: New file.
47758         * tests/test-getpeername.c: New file.
47760         Tests for module 'connect'.
47761         * modules/connect-tests: New file.
47762         * tests/test-connect.c: New file.
47764         Tests for module 'bind'.
47765         * modules/bind-tests: New file.
47766         * tests/test-bind.c: New file.
47768         accept4 tests: Fix for native Windows.
47769         * tests/test-accept4.c: Include sockets.h.
47770         (main): Invoke gl_sockets_startup.
47771         * modules/accept4-tests (Depends-on): Add sockets.
47773         accept tests: Fix for native Windows.
47774         * tests/test-accept.c: Include sockets.h.
47775         (main): Invoke gl_sockets_startup.
47776         * modules/accept-tests (Depends-on): Add sockets.
47778 2011-09-19  Bruno Haible  <bruno@clisp.org>
47780         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47781         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47782         do...while(0).
47783         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47784         Suggested by Paul Eggert.
47786 2011-09-19  Bruno Haible  <bruno@clisp.org>
47788         sched: Ensure pid_t is defined.
47789         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47790         not define pid_t.
47791         * lib/sched.in.h: Include <sys/types.h>.
47792         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47793         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47795 2011-09-19  Bruno Haible  <bruno@clisp.org>
47797         msvc-inval: Ensure the entire expansion is a single statement.
47798         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47799         of braces.
47801 2011-09-19  Jim Meyering  <meyering@redhat.com>
47803         tests: use printf, not echo in init.sh's warn_ function
47804         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47805         misbehave when given strings containing a backslash or starting
47806         with e.g., -n.  James Youngman suggested setting IFS.
47808 2011-09-19  Eric Blake  <eblake@redhat.com>
47810         futimens: enhance test
47811         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47812         closed non-negative fd.
47814         date: accept 'hence' as opposite of 'ago'
47815         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47816         * tests/test-parse-datetime.c (main): Enhance test.
47817         Suggested by Jesse Wilson.
47819 2011-09-19  Jim Meyering  <meyering@redhat.com>
47821         getcwd: don't fail in a deep directory on a system without openat
47822         Before this change, getcwd would fail when called from a directory
47823         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47824         the non-openat implementation used "..", "../..", "../../..", etc.
47825         to access ancestor directories.  With too many, that string would
47826         be longer than PATH_MAX.
47827         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47828         using gnulib's openat replacement.
47829         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47830         we're using the replacement function.
47832 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47834         maint.mk: avoid warnings from perl about missing files
47835         * top/maint.mk (def_sym_regex): Ignore files listed in
47836         $(gl_other_headers_) that do not exist, say because a project
47837         does not use a corresponding module.
47839 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47841         stat: use pathmax.h only if needed
47842         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47843         This is better for Emacs, which does not have a mingw port and
47844         therefore can avoid the pathmax module.
47846         utimens: remove dependency on dup2
47847         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47848         to work around the Linux kernel bug.
47849         * modules/utimens (Depends-on): Remove dup2.
47851 2011-09-18  Bruno Haible  <bruno@clisp.org>
47853         inet_ntop, inet_pton: Look for it also in libresolv.
47854         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47855         libnsl, search for it in libresolv.
47856         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47857         Needed on Solaris 7.
47859 2011-09-18  Bruno Haible  <bruno@clisp.org>
47861         accept, accept4 tests: Avoid link error on Solaris.
47862         * modules/accept-tests (Makefile.am): Link test-accept against
47863         $(LIBSOCKET).
47864         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47865         $(LIBSOCKET).
47867         accept4: Avoid link error on Solaris.
47868         * modules/accept4 (Link): New section.
47870         socket functions: Avoid link errors on Solaris.
47871         * modules/accept (Depends-on): Add socketlib.
47872         (Link): New section.
47873         * modules/bind (Depends-on): Add socketlib.
47874         (Link): New section.
47875         * modules/connect (Depends-on): Add socketlib.
47876         (Link): New section.
47877         * modules/getpeername (Depends-on): Add socketlib.
47878         (Link): New section.
47879         * modules/getsockname (Depends-on): Add socketlib.
47880         (Link): New section.
47881         * modules/getsockopt (Depends-on): Add socketlib.
47882         (Link): New section.
47883         * modules/listen (Depends-on): Add socketlib.
47884         (Link): New section.
47885         * modules/recv (Depends-on): Add socketlib.
47886         (Link): New section.
47887         * modules/recvfrom (Depends-on): Add socketlib.
47888         (Link): New section.
47889         * modules/send (Depends-on): Add socketlib.
47890         (Link): New section.
47891         * modules/sendto (Depends-on): Add socketlib.
47892         (Link): New section.
47893         * modules/setsockopt (Depends-on): Add socketlib.
47894         (Link): New section.
47895         * modules/shutdown (Depends-on): Add socketlib.
47896         (Link): New section.
47897         * modules/socket (Depends-on): Add socketlib.
47898         (Link): New section.
47900 2011-09-18  Bruno Haible  <bruno@clisp.org>
47902         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47903         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47904         than 5 seconds.
47905         * modules/ptsname-tests (configure.ac): Test for alarm.
47907 2011-09-18  Bruno Haible  <bruno@clisp.org>
47909         posix_spawn_file_actions_add*: Fix module dependencies.
47910         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47911         posix_spawn_file_actions_init.
47912         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47913         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47915 2011-09-18  Bruno Haible  <bruno@clisp.org>
47917         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47918         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47919         * tests/test-renameat.c (main): Likewise.
47921 2011-09-18  Bruno Haible  <bruno@clisp.org>
47923         Tests for module 'accept4'.
47924         * modules/accept4-tests: New file.
47925         * tests/test-accept4.c: New file.
47927 2011-09-18  Bruno Haible  <bruno@clisp.org>
47929         Tests for module 'accept'.
47930         * modules/accept-tests: New file.
47931         * tests/test-accept.c: New file.
47933 2011-09-18  Bruno Haible  <bruno@clisp.org>
47935         dup2: Support for MSVC.
47936         * lib/dup2.c: Include msvc-inval.h.
47937         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47938         _get_osfhandle calls.
47939         * modules/dup2 (Depends-on): Add msvc-inval.
47940         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47942         New module 'msvc-inval'.
47943         * lib/msvc-inval.h: New file.
47944         * lib/msvc-inval.c: New file.
47945         * m4/msvc-inval.m4: New file.
47946         * modules/msvc-inval: New file.
47948 2011-09-17  Bruno Haible  <bruno@clisp.org>
47950         Tests for module 'pclose'.
47951         * modules/pclose-tests: New file.
47953         New module 'pclose'.
47954         * lib/stdio.in.h (pclose): New declaration.
47955         * lib/pclose.c: New file.
47956         * m4/pclose.m4: New file.
47957         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47958         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47959         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47960         * modules/pclose: New file.
47961         * modules/popen-tests (Depends-on): Add pclose.
47962         * modules/popen-safer-tests (Depends-on): Likewise.
47963         * doc/posix-functions/pclose.texi: Mention the new module.
47965 2011-09-17  Bruno Haible  <bruno@clisp.org>
47967         popen: Support for MSVC.
47968         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47969         * lib/popen.c (popen): Provide alternate definition for native Windows.
47970         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47972         * modules/popen (Depends-on, configure.ac): Update condition.
47973         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47974         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47975         fixed.
47977 2011-09-17  Bruno Haible  <bruno@clisp.org>
47979         isnanl, isnand, isnanf: Work around MSVC bug.
47980         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47982 2011-09-17  Bruno Haible  <bruno@clisp.org>
47984         sys_socket tests: Fix recent mistake.
47985         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47987 2011-09-17  Bruno Haible  <bruno@clisp.org>
47989         putenv: Support for MSVC.
47990         * modules/putenv (Depends-on): Add environ.
47991         * lib/putenv.c (environ): Disable declaration.
47992         * lib/unistd.in.h: Update comment.
47994 2011-09-17  Bruno Haible  <bruno@clisp.org>
47996         math: Avoid macro redefinition warnings on MSVC.
47997         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47998         Undefine before redefining.
48000 2011-09-17  Bruno Haible  <bruno@clisp.org>
48002         doc: Mention functions which are declared as macros.
48003         * doc/posix-functions/*[fl].texi: Mention that some functions are
48004         defined as macros with arguments only.
48006 2011-09-17  Bruno Haible  <bruno@clisp.org>
48008         Add dependencies to new dirent related modules.
48009         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
48010         * modules/fts (Depends-on): Likewise.
48011         * modules/glob (Depends-on): Likewise.
48012         * modules/savedir (Depends-on): Likewise.
48013         * modules/scandir (Depends-on): Likewise.
48014         * modules/dirent-safer (Depends-on): Add opendir, closedir.
48015         * modules/fdopendir (Depends-on): Add opendir.
48017 2011-09-17  Bruno Haible  <bruno@clisp.org>
48019         inet_pton: Support for MSVC on Windows Vista or newer.
48020         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
48021         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
48022         HAVE_DECL_INET_PTON is defined.
48023         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48024         On platforms with <winsock2.h>, test whether inet_pton is declared in
48025         <ws2tcpip.h>. If so, arrange to replace it.
48026         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48027         REPLACE_INET_PTON.
48028         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
48029         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
48030         (Depends-on, configure.ac): Update condition.
48031         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
48033 2011-09-17  Bruno Haible  <bruno@clisp.org>
48035         inet_ntop: Support for MSVC on Windows Vista or newer.
48036         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
48037         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
48038         HAVE_DECL_INET_NTOP is defined.
48039         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
48040         On platforms with <winsock2.h>, test whether inet_ntop is declared in
48041         <ws2tcpip.h>. If so, arrange to replace it.
48042         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
48043         REPLACE_INET_NTOP.
48044         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
48045         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
48046         (Depends-on, configure.ac): Update condition.
48047         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
48049 2011-09-16  Eric Blake  <eblake@redhat.com>
48051         test-fsync: yet another enhancement
48052         * tests/test-fsync.c (main): Also test behavior on read-only text
48053         file.
48055 2011-09-16  Bruno Haible  <bruno@clisp.org>
48057         Enhance fsync, fdatasync tests.
48058         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
48059         * tests/test-fdatasync.c (main): Likewise.
48061 2011-09-16  Bruno Haible  <bruno@clisp.org>
48063         Support for MSVC compiler: Ensure mode_t gets defined.
48064         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
48065         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48066         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48067         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
48068         * tests/test-fcntl-h.c: Check that mode_t is defined.
48069         * tests/test-sys_stat.c: Likewise.
48070         * tests/test-sys_types.c: Likewise.
48071         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
48072         * doc/posix-headers/sys_stat.texi: Likewise.
48073         * doc/posix-headers/sys_types.texi: Likewise.
48075 2011-09-16  Bruno Haible  <bruno@clisp.org>
48077         sys_stat: Support for MSVC.
48078         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
48079         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
48080         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
48081         MSVC.
48083 2011-09-16  Bruno Haible  <bruno@clisp.org>
48085         Support for MSVC compiler: Ensure off_t gets defined.
48086         * lib/unistd.in.h: Include <sys/types.h>.
48087         * tests/test-fcntl-h.c: Check that off_t is defined.
48088         * tests/test-sys_stat.c: Likewise.
48089         * tests/test-sys_types.c: Likewise.
48091 2011-09-16  Eric Blake  <eblake@redhat.com>
48093         fdatasync: port to Solaris
48094         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
48095         * modules/fdatasync (Link): Document it.
48096         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
48098         fdatasync: port to MacOS X 10.7
48099         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
48100         declared.
48101         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
48102         * modules/unistd (Makefile.am): Substitute it.
48103         * lib/unistd.in.h (fdatasync): Declare on MacOS.
48104         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
48106         fdatasync: minor improvements
48107         * modules/fdatasync (Depends-on): Add condition for fsync.
48108         * lib/fdatasync.c (fdatasync): Add comment.
48109         * tests/test-unistd-c++.cc: Test fdatasync.
48111         unistd: update refs to newer POSIX
48112         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
48113         Suggested by Bruno Haible.
48115         fdatasync: new module
48116         * modules/fsync (Description): Document difference to fdatasync.
48117         * modules/fdatasync: New module.
48118         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
48119         * lib/fdatasync.c (fdatasync): Likewise.
48120         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
48121         defaults.
48122         * modules/unistd (Makefile.am): Set witnesses.
48123         * lib/unistd.in.h (fdatasync): Declare.
48124         * MODULES.html.sh: Document it.
48125         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
48126         * modules/fdatasync-tests: New test.
48127         * tests/test-fdatasync.c: Likewise.
48129 2011-09-16  Eric Blake  <eblake@redhat.com>
48131         test-fsync: enhance tests
48132         * modules/fsync-tests (Depends-on): Add errno, for mingw.
48133         * tests/test-fsync.c (main): Enhance test.
48135 2011-09-15  Bruno Haible  <bruno@clisp.org>
48137         Support for MSVC compiler: Ensure ssize_t gets defined.
48138         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
48139         * doc/posix-headers/stdio.texi: Likewise.
48140         * modules/stdio (Depends-on): Add ssize_t.
48141         * modules/sys_socket (Depends-on): Likewise.
48142         * modules/sys_types (Depends-on): Likewise.
48143         * modules/sys_uio (Depends-on): Likewise.
48144         * modules/unistd (Depends-on): Likewise.
48145         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
48146         * tests/test-sys_types.c: Check that ssize_t is defined.
48148 2011-09-14  Bruno Haible  <bruno@clisp.org>
48150         Avoid using #, the m4 comment starter character, near brackets.
48151         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
48152         delimiter character in sed expressions.
48153         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
48154         Suggested by Eric Blake.
48156         Properly quote AC_CHECK_DECLS' 4th argument.
48157         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
48158         argument.
48159         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48160         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48161         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
48162         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
48163         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48164         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
48165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
48166         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
48167         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
48168         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
48169         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
48170         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48171         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48172         * m4/isinf.m4 (gl_ISINF): Likewise.
48173         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
48174         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48175         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48176         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48177         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48178         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48179         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
48180         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
48181         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
48182         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48183         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48184         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
48186         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48187         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48188         Reported by Eric Blake.
48190         Properly quote AC_CHECK_DECL's 4th argument.
48191         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
48192         argument.
48193         * m4/argp.m4 (gl_ARGP): Likewise.
48194         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
48195         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
48196         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
48197         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
48198         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
48199         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
48200         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
48201         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
48202         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48203         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
48204         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
48205         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
48206         Reported by Eric Blake.
48208 2011-09-14  Eric Blake  <eblake@redhat.com>
48210         opendir: avoid compile warning
48211         * lib/opendir.c (includes): Always include errno.h.
48212         Reported by Tatsuro MATSUOKA.
48214 2011-09-14  Jim Meyering  <meyering@redhat.com>
48216         maint.mk: sc_tight_scope: propagate failure from sub-make
48217         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
48218         Reported by Martin von Gagern.
48220 2011-09-13  Bruno Haible  <bruno@clisp.org>
48222         tempname: Support for MSVC.
48223         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
48224         MSVC.
48225         * modules/tempname (Depends-on): Add fcntl-h.
48227 2011-09-13  Bruno Haible  <bruno@clisp.org>
48229         sys_time: Support for MSVC.
48230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
48231         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
48232         include <winsock2.h>.
48233         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
48234         function declarations that collide with POSIX.
48235         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
48236         (Makefile.am): Substitute HAVE_WINSOCK2_H.
48238 2011-09-13  Bruno Haible  <bruno@clisp.org>
48240         stat: Support for MSVC.
48241         * lib/stat.c: Include pathmax.h.
48242         * modules/stat (Depends-on): Add pathmax.
48244         pathmax: Support for native Windows.
48245         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
48247 2011-09-12  Bruno Haible  <bruno@clisp.org>
48249         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
48250         * lib/dirent.in.h (struct dirent): New type.
48251         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
48252         DT_WHT): New macros.
48253         (DIR): New type.
48254         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48255         (readdir, rewinddir): New declarations.
48256         * lib/dirent-private.h: New file.
48257         * lib/opendir.c: New file.
48258         * lib/readdir.c: New file.
48259         * lib/rewinddir.c: New file.
48260         * lib/closedir.c: New file.
48261         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48262         * m4/opendir.m4: New file.
48263         * m4/readdir.m4: New file.
48264         * m4/rewinddir.m4: New file.
48265         * m4/closedir.m4: New file.
48266         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48267         REPLACE_CLOSEDIR here.
48268         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48269         readdir, rewinddir are declared.
48270         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48271         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48272         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48273         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48274         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48275         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48276         * modules/opendir: New file.
48277         * modules/readdir: New file.
48278         * modules/rewinddir: New file.
48279         * modules/closedir: New file.
48280         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48281         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48282         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48283         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48284         * NEWS: Mention the 'fchdir' change.
48286 2011-09-11  Bruno Haible  <bruno@clisp.org>
48288         asm-underscore.m4: Support for MSVC.
48289         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48290         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48292 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48294         Doc about crypt functions.
48295         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48296         needing for _GNU_SOURCE to get crypt.
48297         * doc/posix-functions/encrypt.texi: Likewise.
48298         * doc/posix-functions/setkey.texi: Likewise.
48300 2011-09-11  Bruno Haible  <bruno@clisp.org>
48302         doc: Update regarding MSVC 9.
48303         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48304         tested".
48305         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48306         * doc/posix-headers/*.texi: Likewise.
48307         * doc/pastposix-functions/*.texi: Likewise.
48308         * doc/glibc-functions/*.texi: Likewise.
48309         * doc/glibc-headers/*.texi: Likewise.
48311 2011-09-11  Bruno Haible  <bruno@clisp.org>
48313         unistd et al.: Don't assume <unistd.h> exists.
48314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48315         does not exist.
48316         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48317         exist. But include <stdlib.h>.
48318         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48319         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48320         symlink() does not exist.
48321         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48322         include <io.h> instead.
48323         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48324         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48325         include <direct.h> instead.
48326         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48327         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48328         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48329         <io.h> instead.
48330         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48331         correctly if the system does not have hard links.
48332         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48333         <direct.h> instead.
48334         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48335         it when looking for function declarations.
48336         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48337         <direct.h> and <io.h> instead.
48338         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48340 2011-09-11  Bruno Haible  <bruno@clisp.org>
48342         strcase: Support for MSVC.
48343         * modules/strcase (Status, Notice): Remove obsoletion mark.
48344         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48345         * doc/posix-functions/strncasecmp.texi: Likewise.
48347         strings: Don't assume <strings.h> exists.
48348         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48349         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48350         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48351         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48353 2011-09-11  Bruno Haible  <bruno@clisp.org>
48355         dirent: Don't assume <dirent.h> exists.
48356         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48357         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48358         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48359         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48361 2011-09-11  Bruno Haible  <bruno@clisp.org>
48363         Fix wint_t on MSVC.
48364         * lib/wchar.in.h (wint_t): On MSVC, override it.
48365         * lib/wctype.in.h (wint_t): Likewise.
48366         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48367         MSVC.
48368         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48369         * doc/posix-headers/wctype.texi: Likewise.
48371 2011-09-11  Bruno Haible  <bruno@clisp.org>
48373         sys_types: Fix typo.
48374         * lib/sys_types.in.h: Fix typo in comment.
48375         Reported by Paul Eggert.
48377         Support for MSVC compiler: Ensure size_t gets defined.
48378         * modules/strings (Depends-on): Add 'sys_types'.
48379         * modules/sys_uio (Depends-on): Likewise.
48380         * lib/sys_uio.in.h: Update comment.
48382         C++ tests for module 'sys_types'.
48383         * modules/sys_types-c++-tests: New file.
48384         * tests/test-sys_types-c++.cc: New file.
48386         Tests for module 'sys_types'.
48387         * modules/sys_types-tests: New file.
48388         * tests/test-sys_types.c: New file.
48390         New module 'sys_types'.
48391         * lib/sys_types.in.h: New file.
48392         * m4/sys_types_h.m4: New file.
48393         * modules/sys_types: New file.
48394         * doc/posix-headers/sys_types.texi: Mention the new module and the
48395         size_t problem on MSVC 9.
48397 2011-09-11  Bruno Haible  <bruno@clisp.org>
48399         Support for MSVC compiler: Avoid division by a literal 0.
48400         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48401         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48402         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48403         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48404         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48405         * tests/infinity.h: New file.
48406         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48407         on MSVC.
48408         * tests/test-ceilf1.c: Include infinity.h.
48409         (main): Use Infinityf.
48410         * tests/test-ceil1.c: Include infinity.h.
48411         (main): Use Infinityd.
48412         * tests/test-ceill.c: Include infinity.h.
48413         (main): Use Infinityl.
48414         * tests/test-dprintf-posix.c: Include infinity.h.
48415         (test_function): Use Infinityd.
48416         * tests/test-floorf1.c: Include infinity.h.
48417         (main): Use Infinityf.
48418         * tests/test-floor1.c: Include infinity.h.
48419         (main): Use Infinityd.
48420         * tests/test-floorl.c: Include infinity.h.
48421         (main): Use Infinityl.
48422         * tests/test-fprintf-posix.c: Include infinity.h.
48423         (test_function): Use Infinityd.
48424         * tests/test-frexp.c: Include infinity.h.
48425         (main): Use Infinityd.
48426         * tests/test-frexpl.c: Include infinity.h.
48427         (main): Use Infinityl.
48428         * tests/test-isfinite.c: Include infinity.h.
48429         (test_isfinitef): Use Infinityf.
48430         (test_isfinited): Use Infinityd.
48431         (test_isfinitel): Use Infinityl.
48432         * tests/test-isinf.c: Include infinity.h.
48433         (test_isinff): Use Infinityf.
48434         (test_isinfd): Use Infinityd.
48435         (test_isinfl): Use Infinityl.
48436         * tests/test-isnan.c: Include infinity.h.
48437         (test_float): Use Infinityf.
48438         (test_double): Use Infinityd.
48439         (test_long_double): Use Infinityl.
48440         * tests/test-isnanf.h: Include infinity.h.
48441         (main): Use Infinityf.
48442         * tests/test-isnand.h: Include infinity.h.
48443         (main): Use Infinityd.
48444         * tests/test-isnanl.h: Include infinity.h.
48445         (main): Use Infinityl.
48446         * tests/test-ldexpl.c: Include infinity.h.
48447         (main): Use Infinityl.
48448         * tests/test-printf-posix.h: Include infinity.h.
48449         (test_function): Use Infinityd.
48450         * tests/test-roundf1.c: Include infinity.h.
48451         (main): Use Infinityf.
48452         * tests/test-round1.c: Include infinity.h.
48453         (main): Use Infinityd.
48454         * tests/test-roundl.c: Include infinity.h.
48455         (main): Use Infinityl.
48456         * tests/test-signbit.c: Include infinity.h.
48457         (test_signbitf): Use Infinityf.
48458         (test_signbitd): Use Infinityd.
48459         (test_signbitl): Use Infinityl.
48460         * tests/test-snprintf-posix.h: Include infinity.h.
48461         (test_function): Use Infinityd, Infinityl.
48462         * tests/test-sprintf-posix.h: Include infinity.h.
48463         (test_function): Use Infinityd, Infinityl.
48464         * tests/test-truncf1.c: Include infinity.h.
48465         (main): Use Infinityf.
48466         * tests/test-trunc1.c: Include infinity.h.
48467         (main): Use Infinityd.
48468         * tests/test-truncl.c: Include infinity.h.
48469         (main): Use Infinityl.
48470         * tests/test-vasnprintf-posix.c: Include infinity.h.
48471         (test_function): Use Infinityd, Infinityl.
48472         * tests/test-vasprintf-posix.c: Include infinity.h.
48473         (test_function): Use Infinityd, Infinityl.
48474         * modules/ceilf-tests (Files): Add tests/infinity.h.
48475         * modules/ceil-tests (Files): Likewise.
48476         * modules/ceill-tests (Files): Likewise.
48477         * modules/dprintf-posix-tests (Files): Likewise.
48478         * modules/floorf-tests (Files): Likewise.
48479         * modules/floor-tests (Files): Likewise.
48480         * modules/floorl-tests (Files): Likewise.
48481         * modules/fprintf-posix-tests (Files): Likewise.
48482         * modules/frexp-tests (Files): Likewise.
48483         * modules/frexp-nolibm-tests (Files): Likewise.
48484         * modules/frexpl-tests (Files): Likewise.
48485         * modules/frexpl-nolibm-tests (Files): Likewise.
48486         * modules/isfinite-tests (Files): Likewise.
48487         * modules/isinf-tests (Files): Likewise.
48488         * modules/isnan-tests (Files): Likewise.
48489         * modules/isnanf-tests (Files): Likewise.
48490         * modules/isnanf-nolibm-tests (Files): Likewise.
48491         * modules/isnand-tests (Files): Likewise.
48492         * modules/isnand-nolibm-tests (Files): Likewise.
48493         * modules/isnanl-tests (Files): Likewise.
48494         * modules/isnanl-nolibm-tests (Files): Likewise.
48495         * modules/ldexpl-tests (Files): Likewise.
48496         * modules/printf-posix-tests (Files): Likewise.
48497         * modules/roundf-tests (Files): Likewise.
48498         * modules/round-tests (Files): Likewise.
48499         * modules/roundl-tests (Files): Likewise.
48500         * modules/signbit-tests (Files): Likewise.
48501         * modules/snprintf-posix-tests (Files): Likewise.
48502         * modules/sprintf-posix-tests (Files): Likewise.
48503         * modules/truncf-tests (Files): Likewise.
48504         * modules/trunc-tests (Files): Likewise.
48505         * modules/truncl-tests (Files): Likewise.
48506         * modules/vasnprintf-posix-tests (Files): Likewise.
48507         * modules/vasprintf-posix-tests (Files): Likewise.
48508         * modules/vdprintf-posix-tests (Files): Likewise.
48509         * modules/vfprintf-posix-tests (Files): Likewise.
48510         * modules/vprintf-posix-tests (Files): Likewise.
48511         * modules/vsnprintf-posix-tests (Files): Likewise.
48512         * modules/vsprintf-posix-tests (Files): Likewise.
48513         * modules/xprintf-posix-tests (Files): Likewise.
48515 2011-09-11  Bruno Haible  <bruno@clisp.org>
48517         Ensure pid_t gets defined.
48518         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48519         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48520         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48521         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48522         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48523         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48524         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48525         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48526         * tests/test-fcntl-h.c: Check that pid_t is defined.
48527         * tests/test-sched.c: Likewise.
48528         * tests/test-termios.c: Likewise.
48529         * tests/test-time.c: Likewise.
48530         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48531         * doc/posix-headers/signal.texi: Likewise.
48532         * doc/posix-headers/sys_types.texi: Likewise.
48533         * doc/posix-headers/time.texi: Likewise.
48535 2011-09-11  Bruno Haible  <bruno@clisp.org>
48537         acl: Fix compilation on Solaris 10 (older version).
48538         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48539         of ACE_EVERYONE.
48540         * lib/set-mode-acl.c (qset_acl): Likewise.
48541         Reported by Christian Jullien <eligis@orange.fr>.
48543 2011-09-10  Bruno Haible  <bruno@clisp.org>
48545         iconv, unsetenv: Add support for MSVC compiler.
48546         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48547         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48549 2011-09-10  Bruno Haible  <bruno@clisp.org>
48551         *printf: Add support for MSVC compiler.
48552         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48553         handles the exception caused by the %n directive. When cross-compiling,
48554         guess no on native Windows.
48555         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48556         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48557         emulate it through vsnprintf.
48558         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48559         * doc/posix-functions/dprintf.texi: Update documentation regarding
48560         MSVC 9.
48561         * doc/posix-functions/fprintf.texi: Likewise.
48562         * doc/posix-functions/printf.texi: Likewise.
48563         * doc/posix-functions/snprintf.texi: Likewise.
48564         * doc/posix-functions/sprintf.texi: Likewise.
48565         * doc/posix-functions/swprintf.texi: Likewise.
48566         * doc/posix-functions/vdprintf.texi: Likewise.
48567         * doc/posix-functions/vfprintf.texi: Likewise.
48568         * doc/posix-functions/vprintf.texi: Likewise.
48569         * doc/posix-functions/vsnprintf.texi: Likewise.
48570         * doc/posix-functions/vsprintf.texi: Likewise.
48571         * doc/glibc-functions/asprintf.texi: Likewise.
48572         * doc/glibc-functions/obstack_printf.texi: Likewise.
48573         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48574         * doc/glibc-functions/vasprintf.texi: Likewise.
48576 2011-09-10  Bruno Haible  <bruno@clisp.org>
48578         nocrash: Add support for native Windows.
48579         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48581 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48582             Bruno Haible  <bruno@clisp.org>
48584         absolute-header, include-next: Add support for MSVC compiler.
48585         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48586         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48587         directory separator in #line directives.
48588         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48589         recognize also backslash as directory separator in #line directives.
48591 2011-09-08  Jim Meyering  <meyering@redhat.com>
48593         maint.mk: mark the post-release commit log with "maint: " prefix
48594         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48595         one-line commit-log summary.
48597 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48598             Bruno Haible  <bruno@clisp.org>
48600         Doc about crypt functions.
48601         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48602         systems.
48603         * doc/posix-functions/encrypt.texi: Likewise.
48604         * doc/posix-functions/setkey.texi: Likewise.
48606 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48608         * lib/gc.h: Fix copyright header.
48610 2011-09-07  Bruno Haible  <bruno@clisp.org>
48612         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48613         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48614         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48616 2011-09-07  Bruno Haible  <bruno@clisp.org>
48618         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48619         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48620         * lib/freopen.c: Likewise.
48621         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48622         * lib/lstat.c: Likewise.
48623         * lib/stat.c: Likewise.
48624         * lib/open.c: Use different syntax for include of <fcntl.h>.
48625         * lib/openat.c: Include fcntl.h again, explicitly.
48627 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48629         parse-datetime: document the newly accepted format
48630         * doc/parse-datetime.texi (Combined date and time of day items):
48631         New section.
48633 2011-09-06  Bruno Haible  <bruno@clisp.org>
48635         acl: Fix a test failure on newer Solaris 10 with ZFS.
48636         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48637         ENOSYS as no ACL.
48638         Reported by Jim Meyering.
48640 2011-09-06  Bruno Haible  <bruno@clisp.org>
48642         acl: Update for AIX >= 5.3 with NFS.
48643         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48644         ENOSYS as no ACL.
48646         acl: Fix a test failure on AIX >= 5.3 with NFS.
48647         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48648         as no ACL.
48650 2011-09-06  Bruno Haible  <bruno@clisp.org>
48652         acl: Fix a test failure on IRIX 6.5 with NFS.
48653         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48654         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48655         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48656         * lib/copy-acl.c (qcopy_acl): Likewise.
48658 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48660         openat: port to AIX 7.1 with large files
48661         AIX 7.1 does a "#define openat open64at" if large files are in use,
48662         so we can't simply #undef openat.  Use the orig_openat trick (similar
48663         to orig_open in lib/open.c) to work around the problem.  Problem
48664         reported by Kevin Brott for GNU tar, in the thread containing
48665         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48666         * lib/openat.c (__need_system_fcntl_h): Define first.
48667         Include <fcntl.h> and <sys/types.h> before undefining.
48668         (orig_openat) [HAVE_OPENAT]: New inline function.
48669         (openat) [HAVE_OPENAT]: Do not undef.
48670         (rpl_openat): Use orig_openat, not openat.
48672 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48673             Bruno Haible  <bruno@clisp.org>
48675         acl: Avoid errors on NonStop Kernel.
48676         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48677         ENOTSUP errors.
48679 2011-09-05  Bruno Haible  <bruno@clisp.org>
48681         acl: Clean up Solaris code.
48682         * lib/acl-internal.h: Remove no-op #if.
48683         * lib/file-has-acl.c: Likewise.
48684         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48685         * lib/copy-acl.c (qcopy_acl): Likewise.
48687 2011-09-05  Bruno Haible  <bruno@clisp.org>
48689         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48690         binaries built on the original Solaris 10.
48691         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48692         trivial.
48694 2011-09-05  Bruno Haible  <bruno@clisp.org>
48696         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48697         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48698         10.
48699         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48700         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48701         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48702         instead of acl_get, facl_get, acl_set, facl_set.
48704 2011-09-05  Bruno Haible  <bruno@clisp.org>
48706         copy-file: Try unit tests on more file systems.
48707         * tests/test-copy-file-1.sh: New file.
48708         * tests/test-copy-file-2.sh: New file.
48709         * modules/copy-file-tests (Files): Add them.
48710         (Makefile.am): Add them to TESTS.
48712         acl: Try unit tests on more file systems.
48713         * tests/test-file-has-acl-1.sh: New file.
48714         * tests/test-file-has-acl-2.sh: New file.
48715         * tests/test-set-mode-acl-1.sh: New file.
48716         * tests/test-set-mode-acl-2.sh: New file.
48717         * tests/test-copy-acl-1.sh: New file.
48718         * tests/test-copy-acl-2.sh: New file.
48719         * modules/acl-tests (Files): Add them.
48720         (Makefile.am): Add them to TESTS.
48722 2011-09-04  Bruno Haible  <bruno@clisp.org>
48724         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48725         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48726         10.
48727         (OLD_ALLOW, OLD_DENY): New macros.
48728         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48729         ACE_ACCESS_ALLOWED_ACE_TYPE.
48730         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48731         ACE_ACCESS_DENIED_ACE_TYPE.
48732         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48733         (NEW_ACE_EXECUTE): Fix value.
48734         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48735         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48736         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48737         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48738         NEW_ACE_SYNCHRONIZE): New macros.
48739         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48740         instead of acl_fromtext, acl_set, facl_set.
48741         Fixes a coreutils/tests/cp/perm failure.
48743 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48745         openat: test for fstatat (..., 0) bug
48746         Further testing with tar suggests that fstatat (..., 0)
48747         does not work in general, on AIX 7.1; see
48748         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48749         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48750         replacement fstatat (which is what older AIX releases were using
48751         anyway).
48752         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48753         use is now changed to orig_fstatat.  This was probably the right
48754         thing to do anyway.
48755         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48756         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48757         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48758         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48759         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48760         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48761         if the bug is found.
48763         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48764         This tests for another fstatat bug on AIX 7.1:
48765         fstatat (AT_FDCWD, ..., 0) does not work.  See
48766         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48767         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48768         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48769         (rpl_fstatat): Adjust so that it works around either (or both)
48770         bugs if present.
48771         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48773 2011-09-03  Karl Berry  <karl@gnu.org>
48775         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48776         in index entries.
48778 2011-09-02  Bruno Haible  <bruno@clisp.org>
48780         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48781         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48782         values of AR, ARFLAGS, RANLIB.
48783         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48785 2011-09-02  Bruno Haible  <bruno@clisp.org>
48787         Find 'ar' program that fits with --host argument.
48788         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48790 2011-09-02  Bruno Haible  <bruno@clisp.org>
48792         tests: init.sh: Support any non-GNU diff.
48793         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48794         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48795         Solaris 8.
48797 2011-09-02  Bruno Haible  <bruno@clisp.org>
48799         tests: init.sh: work also with any non-GNU diff that supports -u
48800         * tests/init.sh: Relax check for diff -u support.
48801         Rather than checking for GNU diff via --version, simply check
48802         for support for -u itself.  Useful at least on OpenBSD 4.9,
48803         AIX 7.1, IRIX 6.5, and Solaris 10.
48805 2011-09-01  Bruno Haible  <bruno@clisp.org>
48807         strtoimax, strtoumax: Document problem on HP-UX 11.
48808         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48809         * doc/posix-functions/strtoumax.texi: Likewise.
48811 2011-09-01  Bruno Haible  <bruno@clisp.org>
48813         strtoumax: Avoid link error on OSF/1 with DTK cc.
48814         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48815         defined as a function.
48816         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48817         strtoumax is defined, not whether it is declared.
48819 2011-09-01  Bruno Haible  <bruno@clisp.org>
48821         strtoimax: Avoid link error on OSF/1 with DTK cc.
48822         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48823         defined as a function.
48824         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48825         strtoimax is defined, not whether it is declared.
48827 2011-09-01  Bruno Haible  <bruno@clisp.org>
48829         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48830         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48831         as a function.
48832         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48833         whether it is declared.
48835 2011-09-01  Bruno Haible  <bruno@clisp.org>
48837         imaxabs: Avoid link error on OSF/1 with DTK cc.
48838         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48839         as a function.
48840         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48841         whether it is declared.
48843 2011-09-01  Bruno Haible  <bruno@clisp.org>
48845         Tests for module 'strtoumax'.
48846         * modules/strtoumax-tests: New file.
48847         * tests/test-strtoumax.c: New file.
48849         Tests for module 'strtoimax'.
48850         * modules/strtoimax-tests: New file.
48851         * tests/test-strtoimax.c: New file.
48853         Tests for module 'imaxdiv'.
48854         * modules/imaxdiv-tests: New file.
48855         * tests/test-imaxdiv.c: New file.
48857         Tests for module 'imaxabs'.
48858         * modules/imaxabs-tests: New file.
48859         * tests/test-imaxabs.c: New file.
48861 2011-09-01  Bruno Haible  <bruno@clisp.org>
48863         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48864         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48865         pthread_create.
48867 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48869         openat: work around AIX 7.1 fstatat issue
48870         This should fix the problem that was not properly fixed
48871         in the previous change, dated 2011-08-30.
48872         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48873         __need_system_stat_h defined.
48874         (orig_fstatat) [HAVE_FSTATAT]: New function.
48875         (rpl_fstatat): Go back to the old way of doing things,
48876         except call orig_fstatat instead of fstatat.
48877         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48878         Remove unnecessary check whether fstatat fills in st_size etc.
48880 2011-09-01  Bruno Haible  <bruno@clisp.org>
48882         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48883         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48884         just include the system's header.
48886 2011-08-31  Jim Meyering  <meyering@redhat.com>
48888         tests: avoid spurious assertion failure in test-float.c on ppc64
48889         * tests/test-float.c (test_long_double): Comment out an assertion,
48890         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48891         with gcc-4.4.4.
48893         maint: indent with spaces, not TABs
48894         I need to get in the habit of running gnulib's "make check".
48895         Both of these would have been caught.
48896         * m4/largefile.m4: Indent with spaces, not TABs.
48897         * lib/parse-datetime.y (iso_8601_time): Likewise.
48898         Spotted by Pádraig Brady.
48900         test-parse-datetime.c: accommodate a relatively strict gcc warning
48901         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48902         to avoid a warning from gcc's -Werror=missing-declarations.
48903         Insert a few spaces-before-funcall-parenthesis.
48905 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48907         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48908         The parser now accepts ISO 8601 date-time strings with "T" as the
48909         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48910         with a space between the date and time strings.  Now it also parses
48911         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48912         variants like "2004-02-29T16:21:42.333-07:00"
48913         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48914         of day representation using the 'T' separator character.
48915         * doc/parse-datetime.texi (General date syntax): replace use of
48916         deprecated --iso-8601 option with --rfc-3339 in example of date
48917         command output formats that can be parsed.
48918         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48919         lib/parse-datetime.y.
48920         (gmt_offset): New function.
48921         (main): Add additional test cases to validate ISO8601 extended
48922         date and time of day parsing.
48924 2011-08-31  Bruno Haible  <bruno@clisp.org>
48926         freopen: Documentation.
48927         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48928         name.
48929         Reported by Claudio Bley <claudio.bley@gmail.com>.
48931 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48933         freopen: Don't crash if the filename argument is NULL.
48934         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48935         NULL.
48937 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48939         openat: work around AIX 7.1 fstatat bug
48940         Problem reported by Kevin Brott for GNU tar, in the thread containing
48941         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48942         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48943         FSTATAT_ST_SIZE_ETC_BROKEN.
48944         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48945         rpl_fstatat.
48946         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48947         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48948         AC_CHECK_FUNCS_ONCE for fstatat.
48949         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48950         fchmodat, mkdirat, openat and unlinkat.
48952 2011-08-30  Bruno Haible  <bruno@clisp.org>
48954         Avoid endless recursions if config.h includes some header files.
48955         * lib/fopen.c (__need_FILE): Define already before including config.h.
48956         * lib/freopen.c (__need_FILE): Likewise.
48957         * lib/open.c (__need_system_fcntl_h): Likewise.
48958         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48959         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48960         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48962 2011-08-25  Karl Berry  <karl@gnu.org>
48964         * config/srclist.txt (ylwrap): new try.
48965         * build-aux/ylwrap: new file.
48967 2011-08-23  Bruno Haible  <bruno@clisp.org>
48969         tmpdir: Use a good default directory on native Windows.
48970         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48971         (P_tmpdir): Default to _P_tmpdir on native Windows.
48972         (path_search): On native Windows, try the value returned by GetTempPath
48973         before trying P_tmpdir.
48974         * modules/tmpdir (Depends-on): Add pathmax.
48975         Suggested by John Darrington <john@darrington.wattle.id.au>.
48977 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48979         doc: fix typo in README-release
48980         * top/README-release: Capitalize first word of a sentence.
48982 2011-08-19  Jim Meyering  <meyering@redhat.com>
48984         fts: do not exhaust memory when processing million-entry directories
48985         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48986         directory would require about 256*N bytes of memory.  Thus, it was
48987         easy to construct a directory too large to be processed by any of
48988         those tools.  With this change, fts' maximum memory utilization is
48989         now limited to around 30MB.
48990         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48991         (fts_read): When we've processed the final entry (i.e., when
48992         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48993         using the parent entry to read any remaining entries.  Dispatch
48994         depending on what fts_build returns:
48995         - NULL+stop, aka failure: stop
48996         - NULL otherwise: move up in the dir hierarchy
48997         - non-NULL: handle this new entry
48998         (fts_build): Declare and use new local, continue_readdir.
48999         Prepare to be called from fts_read, when the entries
49000         from a partially-read directory have just been exhausted.
49001         In that case, we'll skip the opendir and instead use the parent's
49002         fts_dirp and derive dir_fd from that.
49003         Finally, in the readdir loop, if we read max_entries entries,
49004         exit the loop ensuring *not* to call closedir.  This is required
49005         so that fts_dirp can be reused on a subsequent call.
49006         Prompted by Ben England's report of memory exhaustion in find
49007         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
49009         maint: fts: move decl of `dp' down into while loop; split a long line
49010         * lib/fts.c (fts_build): No semantic change.
49012         fts: add/use new struct member, fts_dirp
49013         We are about to use this to manage any directory with
49014         too many entries to read all of them into memory at once.
49015         To do that, we'll need to save the DIR* pointer in each
49016         affected FTSENT struct.
49017         * lib/fts_.h: Include <dirent.h>.
49018         (struct FTSENT) [fts_dirp]: New member.
49019         * lib/fts.c (closedir_and_clear): Define.
49020         Use it in place of closedir so that we are sure to
49021         clear the new fts_dirp member when done with it.
49022         (fts_alloc): Initialize the new member.
49023         (fts_lfree): Free, if needed.
49025         maint: fts: give __opendir2 a new parameter and rename
49026         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
49027         than surreptitiously using sole caller's "dir_fd".
49028         (fts_opendir): Rename from __opendir2.
49030         maint: fts.c: remove __opendir2's now-unused parameter, oflag
49031         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
49033         maint: fts.c: correct off-by-one indentation
49034         * lib/fts.c (fts_build): Correct indentation, change style
49035         of a couple of block comments, and bracing style.
49037         maint: fts.c: move __opendir2 #define "up" out of function body
49038         * lib/fts.c (__opendir2): Move "up".  No semantic change.
49040         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
49041         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
49042         out for a long time and besides was useful only on BSD systems.
49044 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49046         regex: port to Stratus OpenVOS
49047         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
49048         define to empty, rather than attempting nonportable optimizations.
49049         Problem reported by Paul Green in:
49050         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
49051         and fix suggested by Eric Blake in:
49052         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
49054 2011-08-17  Eric Blake  <eblake@redhat.com>
49056         getcwd: fix test failures on mingw
49057         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
49058         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
49059         test if long directory cannot be created, and allow mingw errno.
49061         getcwd-lgpl: fix m4 to match relaxed test for BSD
49062         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
49063         (gl_FUNC_GETCWD_SIGNATURE): New macro.
49064         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
49065         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
49066         signature problem.
49068         getcwd: fix compilation on mingw64
49069         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
49070         getcwd.
49071         Reported by Marc-André Lureau.
49073         pipe2: silence compiler warning
49074         * lib/pipe2.c (pipe2): Hide label if it is not used.
49076 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
49078         relocatable-prog: fix link error
49079         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
49080         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
49081         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
49082         into modules/relocatable-lib without noticing that
49083         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
49084         also needs to build relocatable.c.
49086 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
49088         getaddrinfo: fix sh typo in gai_strerrorA decl checking
49089         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
49090         shell code: it contained a 'break' that was not in a loop.
49091         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
49092         via a shell-language loop; this may have been true in old Autoconf
49093         versions, but it's not true in Autoconf 2.68.  I found this bug
49094         when testing coreutils git on Solaris 8, whose shell complains
49095         about the syntax error.
49097 2011-08-12  Simon Josefsson  <simon@josefsson.org>
49099         * lib/base64.c: Fix comment to reference RFC 4648.
49100         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
49101         <gvtulder@gmail.com>.
49103 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
49105         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
49107         po/Makefile.in.in: fix make -q problem
49108         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
49109         rule, since there's no file named 'check-macro-version' and its
49110         use as a file breaks make -q.
49111         (all): Don't depend on check-macro-version.
49112         (CHECK_MACRO_VERSION): New macro.
49113         (stamp-po): Use it.
49115         configmake: fix make -q problem
49116         * modules/configmake (configmake.h): Update configmake.h's time stamp
49117         even if the file does not change.  Otherwise, 'make -q' fails.
49118         Problem reported by Simon Josefsson in
49119         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
49121 2011-08-11  Jim Meyering  <meyering@redhat.com>
49123         git-version-gen: correct the advice in a comment
49124         * build-aux/git-version-gen: Correct comment.
49125         Don't recommend to list .tarball-version in .gitignore.
49127 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
49129         base64: fix off-by-one buffer size bug
49130         Problem and (trivial) fix reported by Gijs van Tulder in
49131         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
49132         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
49133         * tests/test-base64.c (main): Catch the bug.
49135 2011-08-10  Eric Blake  <eblake@redhat.com>
49137         closein: correct comments
49138         * lib/closein.c (close_stdin): Improve comments.
49140 2011-08-09  Bruno Haible  <bruno@clisp.org>
49142         More tests for 'fseeko'.
49143         * tests/test-fseeko3.c: New file, from Eric Blake.
49144         * tests/test-fseeko3.sh: New file.
49145         * modules/fseeko-tests (Files): Add them.
49146         (TESTS): Add test-fseeko3.sh.
49147         (check_PROGRAMS): Add test-fseeko3.
49149 2011-08-09  Eric Blake  <eblake@redhat.com>
49151         fseeko: remove unneeded hack
49152         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
49154         fseeko: fix bug on glibc
49155         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
49156         Reported by John W. Eaton.
49158 2011-08-08  Bruno Haible  <bruno@clisp.org>
49160         unictype/base: Fix interoperability with preinstalled libunistring.
49161         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
49162         Reported by Simon Josefsson.
49164 2011-08-08  Bruno Haible  <bruno@clisp.org>
49166         iswblank: Detect declaration correctly.
49167         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
49168         AC_CHECK_DECLS invocation.
49170 2011-08-08  Bruno Haible  <bruno@clisp.org>
49172         tcgetsid: Detect declaration correctly.
49173         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
49174         AC_CHECK_DECLS invocation.
49175         Reported by Simon Josefsson.
49177 2011-08-08  Eric Blake  <eblake@redhat.com>
49179         largefile: fix typo that regressed large file support
49180         * modules/largefile (configure.ac-early): Fix section name.
49182 2011-08-06  Karl Berry  <karl@gnu.org>
49184         * MODULES.html.sh (func_all_files): _Noreturn is no longer
49185         a separate module.
49187 2011-08-05  Simon Josefsson  <simon@josefsson.org>
49189         openat: Fix warnings and commens when building unlinkat.c on Hurd.
49190         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
49191         get prototype for free.
49193 2011-08-04  Bruno Haible  <bruno@clisp.org>
49195         Tests for module 'pathmax'.
49196         * modules/pathmax-tests: New file.
49197         * tests/test-pathmax.c: New file.
49199         canonicalize-lgpl: Support larger filenames on the Hurd.
49200         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
49201         Reported by Paul Eggert.
49203         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
49204         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
49205         * lib/chdir-long.h: Include pathmax.h.
49206         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
49207         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
49208         (PATH_MAX): Remove code that is done by pathmax.h.
49209         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
49210         * lib/tmpfile.c: Add a comment.
49211         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
49212         * modules/chdir-long (Depends-on): Add pathmax.
49213         * modules/getcwd (Depends-on): Add pathmax.
49214         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
49215         is not defined.
49216         * doc/posix-headers/limits.texi: Mention the pathmax module.
49217         * NEWS: Mention the change.
49219 2011-08-02  Bruno Haible  <bruno@clisp.org>
49221         pthread_sigmask: Actually use results of gl_THREADLIB.
49222         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
49223         gl_THREADLIB, not gl_[]THREADLIB.
49224         Reported by Eric Blake.
49226 2011-08-02  Jim Meyering  <meyering@redhat.com>
49228         maint.mk: relax the default _gl_TS_function_match regexp
49229         * top/maint.mk (_gl_TS_function_match): Don't require at least one
49230         space between function name and "(" in an "extern" declaration.
49231         That would fail to match a decl with no space there: extern void foo();
49233 2011-07-31  Iain Nicol  <iain@thenicols.net>
49235         git-version-gen: document that EXTRA_DIST must include .version
49236         * build-aux/git-version-gen: In the how-to-use comment, document
49237         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
49238         will fail when run from an unpacked distribution tarball.
49240 2011-08-01  Bruno Haible  <bruno@clisp.org>
49242         wctype-h: Fix last change.
49243         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
49244         REPLACE_TOWLOWER to 0.
49245         Reported by Sam Steingold <sds@gnu.org>.
49247 2011-07-31  Bruno Haible  <bruno@clisp.org>
49249         frexpl: Update autoconf test.
49250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
49251         according to changes of 2011-06-20.
49253 2011-07-31  Bruno Haible  <bruno@clisp.org>
49255         sys_utsname: Add support for Minix.
49256         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49257         <sys/utsname.h>.
49258         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49259         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49261 2011-07-31  Bruno Haible  <bruno@clisp.org>
49263         strings: Add support for Minix.
49264         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49265         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49266         * doc/posix-headers/strings.texi: Document the Minix problem.
49268 2011-07-31  Bruno Haible  <bruno@clisp.org>
49270         wctype-h: Add support for Minix.
49271         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49272         REPLACE_TOWLOWER.
49273         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49274         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49275         REPLACE_ISWCNTRL.
49277 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49279         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49280         This is a performance improvement for 64-bit hosts: it causes the
49281         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49283 2011-07-31  Bruno Haible  <bruno@clisp.org>
49285         stdioext: Add support for Minix.
49286         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49287         * lib/fpurge.c (fpurge): Likewise.
49288         * lib/freadahead.c (freadahead): Likewise.
49289         * lib/freadable.c (freadable): Likewise.
49290         * lib/freading.c (freading): Likewise.
49291         * lib/freadptr.c (freadptr): Likewise.
49292         * lib/freadseek.c (freadptrinc): Likewise.
49293         * lib/fseeko.c (rpl_fseeko): Likewise.
49294         * lib/fseterr.c (fseterr): Likewise.
49295         * lib/fwritable.c (fwritable): Likewise.
49296         * lib/fwriting.c (fwriting): Likewise.
49297         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49298         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49300 2011-07-31  Bruno Haible  <bruno@clisp.org>
49302         errno: Port to Minix.
49303         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49304         ECONNABORTED are defined.
49305         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49306         GNULIB_defined_ECONNABORTED): New macros.
49307         * lib/strerror-override.h (strerror_override): Test also
49308         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49309         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49310         ECONNABORTED.
49311         * doc/posix-headers/errno.texi: Mention the Minix problem.
49313 2011-07-31  Bruno Haible  <bruno@clisp.org>
49315         Work around declaration collisions on Minix.
49316         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49317         defined, set REPLACE_MBSINIT.
49318         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49319         defined, set REPLACE_MBRTOWC.
49320         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49321         set REPLACE_MBRLEN.
49322         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49323         defined, set REPLACE_MBSRTOWCS.
49324         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49325         defined, set REPLACE_WCRTOMB.
49326         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49327         defined, set REPLACE_WCSRTOMBS.
49329 2011-07-31  Bruno Haible  <bruno@clisp.org>
49331         Add support for Minix with ACK compiler.
49332         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49333         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49334         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49336 2011-07-31  Bruno Haible  <bruno@clisp.org>
49338         Documentation about Minix.
49339         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49340         * doc/glibc-headers/*.texi: Likewise.
49341         * doc/posix-functions/*.texi: Likewise.
49342         * doc/glibc-functions/*.texi: Likewise.
49344 2011-07-31  Bruno Haible  <bruno@clisp.org>
49346         snippet/warn-on-use: Fix indentation.
49347         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49349 2011-07-25  Jim Meyering  <meyering@redhat.com>
49351         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49352         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49353         commands.
49355 2011-07-27  Jim Meyering  <meyering@redhat.com>
49357         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49358         * top/maint.mk (gl_extract_significant_defines_): Now that
49359         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49360         gnulib/lib/signal.in.h, and now that we recommend to
49361         define-if-undefined those two symbols in application code,
49362         we must filter them out of the "significant" list.
49363         This avoids a "make syntax-check" failure in coreutils.
49365 2011-07-26  Eric Blake  <eblake@redhat.com>
49367         warnings: add comments about previous patch
49368         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49369         * m4/include_next.m4: Likewise.
49370         * m4/warn-on-use.m4: Likewise.
49371         * m4/warnings.m4: Likewise, and simplify use.
49372         Suggested by Stefano Lattarini.
49374         include-next, warnings: support older autoconf
49375         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49376         AS_VAR_PUSHDEF in a way that works with older autoconf.
49377         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49378         Reported by Daniel P. Berrange.
49380 2011-07-25  Bruno Haible  <bruno@clisp.org>
49382         fseek, ftell: Fix doc.
49383         * doc/posix-functions/fseek.texi: Reword statement about
49384         AC_SYS_LARGEFILE.
49385         * doc/posix-functions/ftell.texi: Likewise.
49387 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49388             Bruno Haible  <bruno@clisp.org>
49390         Add dependencies to the 'largefile' module.
49391         * modules/fopen (Depends-on): Add 'largefile'.
49392         * modules/freopen (Depends-on): Likewise.
49393         * modules/fseeko (Depends-on): Likewise.
49394         * modules/ftello (Depends-on): Likewise.
49395         * modules/glob (Depends-on): Likewise.
49396         * modules/lseek (Depends-on): Likewise.
49397         * modules/lstat (Depends-on): Likewise.
49398         * modules/mkostemp (Depends-on): Likewise.
49399         * modules/mkostemps (Depends-on): Likewise.
49400         * modules/mkstemp (Depends-on): Likewise.
49401         * modules/mkstemps (Depends-on): Likewise.
49402         * modules/open (Depends-on): Likewise.
49403         * modules/openat (Depends-on): Likewise.
49404         * modules/pread (Depends-on): Likewise.
49405         * modules/pwrite (Depends-on): Likewise.
49406         * modules/scandir (Depends-on): Likewise.
49407         * modules/stat (Depends-on): Likewise.
49408         * modules/tmpfile (Depends-on): Likewise.
49409         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49410         since the containing module now depends on the largefile module.
49411         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49412         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49413         off_t is fixed by gnulib.
49414         * doc/posix-functions/freopen.texi: Likewise.
49415         * doc/posix-functions/fseeko.texi: Likewise.
49416         * doc/posix-functions/fstatat.texi: Likewise.
49417         * doc/posix-functions/ftello.texi: Likewise.
49418         * doc/posix-functions/glob.texi: Likewise.
49419         * doc/posix-functions/lseek.texi: Likewise.
49420         * doc/posix-functions/lstat.texi: Likewise.
49421         * doc/posix-functions/mkstemp.texi: Likewise.
49422         * doc/posix-functions/open.texi: Likewise.
49423         * doc/posix-functions/openat.texi: Likewise.
49424         * doc/posix-functions/pread.texi: Likewise.
49425         * doc/posix-functions/pwrite.texi: Likewise.
49426         * doc/posix-functions/scandir.texi: Likewise.
49427         * doc/posix-functions/stat.texi: Likewise.
49428         * doc/posix-functions/tmpfile.texi: Likewise.
49429         * doc/glibc-functions/mkostemp.texi: Likewise.
49430         * doc/glibc-functions/mkostemps.texi: Likewise.
49431         * doc/glibc-functions/mkstemps.texi: Likewise.
49433 2011-07-25  Bruno Haible  <bruno@clisp.org>
49435         fcntl: Move AC_LIBOBJ invocation to module description.
49436         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49437         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49439         fcntl: Remove call-in from fchdir.m4.
49440         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49441         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49443         dup3: Remove potential call-in from fchdir.m4.
49444         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49447         dup2: Move AC_LIBOBJ invocation to module description.
49448         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49449         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49450         Don't invoke AC_LIBOBJ.
49451         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49453         dup2: Remove call-in from fchdir.m4.
49454         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49457         fclose: Move AC_LIBOBJ invocation to module description.
49458         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49459         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49460         to 1.
49461         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49463         fclose: Remove call-in from close.m4.
49464         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49465         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49467         close: Move AC_LIBOBJ invocation to module description.
49468         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49469         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49470         1.
49471         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49473         close: Remove call-in from fchdir.m4.
49474         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49477         open: Move AC_LIBOBJ invocation to module description.
49478         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49479         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49480         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49482         open: Remove call-in from fchdir.m4.
49483         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49486         fchdir: Start to remove gl_REPLACE_* idiom.
49487         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49488         (gl_FUNC_FCHDIR): Invoke it.
49490 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49492         * lib/ftell.c (ftell): Comment out cast.
49494         close: use gl_REPLACE_FCLOSE only if defined
49495         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49496         is defined.  The close module doesn't depend on the fclose module
49497         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49498         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49499         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49501 2011-07-24  Jim Meyering  <meyering@redhat.com>
49503         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49504         * tests/test-select.h (test_function): Declare as "static".
49506 2011-07-24  Bruno Haible  <bruno@clisp.org>
49508         doc: Mention the effects of AC_SYS_LARGEFILE.
49509         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49510         on this function.
49511         * doc/posix-functions/aio_error.texi: Likewise.
49512         * doc/posix-functions/aio_fsync.texi: Likewise.
49513         * doc/posix-functions/aio_read.texi: Likewise.
49514         * doc/posix-functions/aio_return.texi: Likewise.
49515         * doc/posix-functions/aio_suspend.texi: Likewise.
49516         * doc/posix-functions/aio_write.texi: Likewise.
49517         * doc/posix-functions/fgetpos.texi: Likewise.
49518         * doc/posix-functions/fopen.texi: Likewise.
49519         * doc/posix-functions/freopen.texi: Likewise.
49520         * doc/posix-functions/fsetpos.texi: Likewise.
49521         * doc/posix-functions/fstatvfs.texi: Likewise.
49522         * doc/posix-functions/ftruncate.texi: Likewise.
49523         * doc/posix-functions/ftw.texi: Likewise.
49524         * doc/posix-functions/getrlimit.texi: Likewise.
49525         * doc/posix-functions/glob.texi: Likewise.
49526         * doc/posix-functions/lio_listio.texi: Likewise.
49527         * doc/posix-functions/lockf.texi: Likewise.
49528         * doc/posix-functions/mkstemp.texi: Likewise.
49529         * doc/posix-functions/mmap.texi: Likewise.
49530         * doc/posix-functions/nftw.texi: Likewise.
49531         * doc/posix-functions/openat.texi: Likewise.
49532         * doc/posix-functions/opendir.texi: Likewise.
49533         * doc/posix-functions/posix_fadvise.texi: Likewise.
49534         * doc/posix-functions/posix_fallocate.texi: Likewise.
49535         * doc/posix-functions/pread.texi: Likewise.
49536         * doc/posix-functions/pwrite.texi: Likewise.
49537         * doc/posix-functions/readdir.texi: Likewise.
49538         * doc/posix-functions/readdir_r.texi: Likewise.
49539         * doc/posix-functions/rewinddir.texi: Likewise.
49540         * doc/posix-functions/scandir.texi: Likewise.
49541         * doc/posix-functions/seekdir.texi: Likewise.
49542         * doc/posix-functions/setrlimit.texi: Likewise.
49543         * doc/posix-functions/statvfs.texi: Likewise.
49544         * doc/posix-functions/telldir.texi: Likewise.
49545         * doc/posix-functions/tmpfile.texi: Likewise.
49546         * doc/posix-functions/truncate.texi: Likewise.
49547         * doc/glibc-functions/fallocate.texi: Likewise.
49548         * doc/glibc-functions/fstatfs.texi: Likewise.
49549         * doc/glibc-functions/fts_children.texi: Likewise.
49550         * doc/glibc-functions/fts_read.texi: Likewise.
49551         * doc/glibc-functions/getdirentries.texi: Likewise.
49552         * doc/glibc-functions/mkostemp.texi: Likewise.
49553         * doc/glibc-functions/mkostemps.texi: Likewise.
49554         * doc/glibc-functions/mkstemps.texi: Likewise.
49555         * doc/glibc-functions/preadv.texi: Likewise.
49556         * doc/glibc-functions/pwritev.texi: Likewise.
49557         * doc/glibc-functions/sendfile.texi: Likewise.
49558         * doc/glibc-functions/statfs.texi: Likewise.
49560 2011-07-24  Bruno Haible  <bruno@clisp.org>
49562         doc: Fix typo.
49563         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49565 2011-07-24  Bruno Haible  <bruno@clisp.org>
49567         doc: Mention fsusage.
49568         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49570 2011-07-24  Bruno Haible  <bruno@clisp.org>
49572         doc: Mention new glibc headers and functions.
49573         * doc/glibc-headers/gshadow.texi: New file.
49574         * doc/glibc-functions/endsgent.texi: New file.
49575         * doc/glibc-functions/fgetsgent.texi: New file.
49576         * doc/glibc-functions/fgetsgent_r.texi: New file.
49577         * doc/glibc-functions/getsgent.texi: New file.
49578         * doc/glibc-functions/getsgent_r.texi: New file.
49579         * doc/glibc-functions/getsgnam.texi: New file.
49580         * doc/glibc-functions/getsgnam_r.texi: New file.
49581         * doc/glibc-functions/putsgent.texi: New file.
49582         * doc/glibc-functions/setsgent.texi: New file.
49583         * doc/glibc-functions/sgetsgent.texi: New file.
49584         * doc/glibc-functions/sgetsgent_r.texi: New file.
49585         * doc/glibc-functions/malloc_info.texi: New file.
49586         * doc/glibc-functions/preadv.texi: New file.
49587         * doc/glibc-functions/pwritev.texi: New file.
49588         * doc/glibc-functions/register_printf_modifier.texi: New file.
49589         * doc/glibc-functions/register_printf_specifier.texi: New file.
49590         * doc/glibc-functions/register_printf_type.texi: New file.
49591         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49592         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49593         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49594         * doc/glibc-functions/pthread_getname_np.texi: New file.
49595         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49596         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49597         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49598         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49599         * doc/glibc-functions/pthread_setname_np.texi: New file.
49600         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49601         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49602         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49603         * doc/glibc-functions/qsort_r.texi: New file.
49604         * doc/glibc-functions/quick_exit.texi: New file.
49605         * doc/glibc-functions/syncfs.texi: New file.
49606         * doc/gnulib.texi: Include them.
49607         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49608         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49609         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49610         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49611         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49612         * doc/glibc-functions/execvpe.texi: Likewise.
49614 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49616         ftell: don't include <unistd.h>
49617         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49618         guaranteed to define off_t, and the ftell module depends on the
49619         stdio module.
49621         ftell: do not assume wraparound signed arithmetic
49622         * lib/ftell.c: Include <limits.h>.
49623         (ftell): Don't assume wraparound signed arithmetic.
49625 2011-07-24  Bruno Haible  <bruno@clisp.org>
49627         close: No longer depend on module 'fclose'.
49628         * modules/close (Depends-on): Remove fclose.
49629         * NEWS: Mention the change.
49630         Suggested by Sam Steingold <sds@gnu.org>.
49632 2011-07-24  Bruno Haible  <bruno@clisp.org>
49634         fsusage: Enable large volume support on AIX >= 5.2.
49635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49636         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49637         instead of STAT_STATVFS.
49638         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49640         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49641         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49642         f_blocks field only on MacOS X.
49644         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49645         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49646         * modules/fsusage (Depends-on): Add largefile.
49648 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49650         * README: Modernize discussion of signed integers.
49651         Assuming overflow wraparound is no longer safe.
49652         Mention ones' complement and signed magnitude.
49654 2011-07-22  Bruno Haible  <bruno@clisp.org>
49656         select tests, pselect tests: Refactor.
49657         * tests/test-select.h: New file, extracted from tests/test-select.c.
49658         (select_fn): New type.
49659         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49660         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49661         test_pipe): Add my_select argument.
49662         (test_function): Renamed from main. Add my_select argument.
49663         * tests/test-select.c: Move most code to tests/test-select.h. Include
49664         test-select.h.
49665         * modules/select-tests (Files): Add tests/test-select.h.
49666         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49667         (my_select, main): New functions.
49668         * modules/pselect-tests (Files): Add tests/test-select.h,
49669         tests/macros.h, tests/signature.h.
49670         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49671         (configure.ac): Check for <sys/wait.h>.
49673 2011-07-22  Bruno Haible  <bruno@clisp.org>
49675         sys_select tests: Check the signature of FD_*.
49676         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49677         signature tests from here...
49678         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49679         here.
49680         * modules/sys_select-tests (Files): Add tests/signature.h.
49682 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49684         largefile: new module, replacing large-inode
49685         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49686         * MODULES.html.sh: Add largefile, remove large-inode.
49687         * modules/largefile, m4/largefile.m4: New files.
49688         * modules/large-inode, m4/large-inode.m4: Remove.
49690         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49691         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49692         implementations that use only 32 bits to count blocks.
49693         On typical hosts with 1024-byte blocks, this fails with file
49694         systems as small as 4 TiB.  Problem reported by Herb Wartens
49695         <http://debbugs.gnu.org/9140> and this should also fix a similar
49696         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49698         large-inode: New module
49699         * MODULES.html.sh: Add it.
49700         * modules/large-inode, m4/large-inode.m4: New files.
49702         extensions: Enable extensions on MacOS X 10.5 and later.
49703         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49705 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49707         file-has-acl: use acl_extended_file_nofollow if available
49708         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49709         (acl_extended_file): New macro.
49710         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49711         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49713 2011-07-21  Bruno Haible  <bruno@clisp.org>
49715         Declare system functions in a way that works with C++.
49716         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49717         declare fdopendir as extern "C".
49718         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49719         declare frexpl as extern "C".
49720         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49721         declare gai_strerror as extern "C".
49722         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49723         programs, declare gai_strerror as extern "C".
49724         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49725         declare getlogin_r as extern "C".
49726         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49727         as extern "C".
49728         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49729         declare ldexpl as extern "C".
49730         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49731         as extern "C".
49732         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49733         program, declare getmntinfo as extern "C".
49734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49735         stpncpy as extern "C".
49736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49737         program, declare __xpg_strerror_r as extern "C".
49738         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49739         strndup as extern "C".
49740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49741         declare memset and bzero as extern "C".
49742         Reported by Sam Steingold <sds@gnu.org>.
49744 2011-07-12  Jim Meyering  <meyering@redhat.com>
49746         maint.mk: prohibit inclusion of "verify.h" without use
49747         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49749 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49751         timer-time: A new module to check for timer_settime()
49752         * m4/timer_time.m4: Check for the posix function.
49753         * modules/timer-time: Add the new module.
49754         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49755         Mention it.
49757 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49758             Bruno Haible  <bruno@clisp.org>
49760         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49761         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49762         not defined, assume POSIX threads and look for pthread_sigmask in
49763         $LIBS, without changing $CPPFLAGS.
49765 2011-07-19  Bruno Haible  <bruno@clisp.org>
49767         strstr: Update cross-compilation guess.
49768         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49769         CPUs, guess no, in view of glibc
49770         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49771         Suggested by Eric Blake. Reported by Reuben Thomas.
49773 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49775         getopt-gnu: suppress core dumps from detection code
49776         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49777         to suppress core dumps that may well occur on glibc systems.
49778         * modules/getopt-gnu: Depend on nocrash.
49780 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49782         pthread_sigmask: ensure usleep is declared
49783         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49784         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49786 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49788         doc: Document NonStop portability issues.
49789         * doc/posix-functions/sigaction.texi (sigaction):
49790         * doc/posix-headers/signal.texi (signal.h):
49791         Document NonStop.  See Joachim Schmitz in
49792         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49794 2011-07-15  Bruno Haible  <bruno@clisp.org>
49796         ffsl, ffsll: Avoid unportable behaviour.
49797         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49799 2011-07-15  Bruno Haible  <bruno@clisp.org>
49801         ffs: More tests.
49802         * tests/test-ffs.c (NBITS): New macro.
49803         (main): Add more tests.
49804         * tests/test-ffsl.c (NBITS): New macro.
49805         (main): Add more tests.
49806         * tests/test-ffsll.c (NBITS): New macro.
49807         (main): Add more tests.
49809 2011-07-15  Eric Blake  <eblake@redhat.com>
49811         ffsl, ffsll: new modules
49812         * modules/ffsl: New file.
49813         * modules/ffsll: Likewise.
49814         * m4/ffsl.m4: Likewise.
49815         * m4/ffsll.m4: Likewise.
49816         * lib/ffsl.c: Likewise.
49817         * lib/ffsl.h: Likewise.
49818         * lib/ffsll.c: Likewise.
49819         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49820         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49821         * modules/string (Makefile.am): Substitute witnesses.
49822         * lib/strings.in.h (ffsl, ffsll): Declare.
49823         * modules/ffsl-tests: New test file.
49824         * modules/ffsll-tests: Likewise.
49825         * tests/test-ffsl.c: Likewise.
49826         * tests/test-ffsll.c: Likewise.
49827         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49828         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49829         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49831         ffs: fix m4 prerequisite
49832         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49834         ffs: avoid undefined behavior
49835         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49836         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49837         Reported by Bruno Haible.
49839 2011-07-12  Bruno Haible  <bruno@clisp.org>
49841         pthread_sigmask: Rely on module 'threadlib'.
49842         * modules/pthread_sigmask (Depends-on): Add threadlib.
49843         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49844         is defined.
49846 2011-07-12  Bruno Haible  <bruno@clisp.org>
49848         regex: Depend on module 'strcase'.
49849         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49851 2011-07-12  Jim Meyering  <meyering@redhat.com>
49853         warn-on-use: fix typo in file name
49854         * modules/snippet/warn-on-use (Files): Correct file name:
49855         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49857 2011-07-12  Bruno Haible  <bruno@clisp.org>
49859         strings: Document module.
49860         * doc/posix-headers/strings.texi: Mention module 'strings'.
49862 2011-07-12  Bruno Haible  <bruno@clisp.org>
49864         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49865         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49866         (Files, Makefile.am): Update.
49867         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49868         * modules/stdlib (Depends-on): Update.
49870 2011-07-12  Bruno Haible  <bruno@clisp.org>
49872         * NEWS: Mention the changes.
49874         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49875         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49876         (Files, Makefile.am): Update.
49877         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49878         * modules/arpa_inet (Depends-on): Update.
49879         * modules/ctype (Depends-on): Update.
49880         * modules/dirent (Depends-on): Update.
49881         * modules/fcntl-h (Depends-on): Update.
49882         * modules/glob (Depends-on): Update.
49883         * modules/iconv-h (Depends-on): Update.
49884         * modules/inttypes-incomplete (Depends-on): Update.
49885         * modules/langinfo (Depends-on): Update.
49886         * modules/locale (Depends-on): Update.
49887         * modules/math (Depends-on): Update.
49888         * modules/netdb (Depends-on): Update.
49889         * modules/poll-h (Depends-on): Update.
49890         * modules/pty (Depends-on): Update.
49891         * modules/search (Depends-on): Update.
49892         * modules/signal (Depends-on): Update.
49893         * modules/spawn (Depends-on): Update.
49894         * modules/stdio (Depends-on): Update.
49895         * modules/stdlib (Depends-on): Update.
49896         * modules/string (Depends-on): Update.
49897         * modules/strings (Depends-on): Update.
49898         * modules/sys_file (Depends-on): Update.
49899         * modules/sys_ioctl (Depends-on): Update.
49900         * modules/sys_select (Depends-on): Update.
49901         * modules/sys_socket (Depends-on): Update.
49902         * modules/sys_stat (Depends-on): Update.
49903         * modules/sys_time (Depends-on): Update.
49904         * modules/sys_times (Depends-on): Update.
49905         * modules/sys_utsname (Depends-on): Update.
49906         * modules/sys_wait (Depends-on): Update.
49907         * modules/termios (Depends-on): Update.
49908         * modules/time (Depends-on): Update.
49909         * modules/unistd (Depends-on): Update.
49910         * modules/wchar (Depends-on): Update.
49911         * modules/wctype-h (Depends-on): Update.
49912         * MODULES.html.sh (Support for building libraries and executables):
49913         Update.
49915         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49916         * modules/snippet/unused-parameter: Renamed from
49917         modules/unused-parameter.
49918         (Files, Makefile.am): Update.
49919         * build-aux/snippet/unused-parameter.h: Renamed from
49920         build-aux/unused-parameter.h.
49921         * modules/selinux-h (Depends-on): Update.
49922         * modules/unistr/base (Depends-on): Update.
49923         * MODULES.html.sh (Core language properties): Update.
49925         Rename module 'link-warning' to 'snippet/link-warning'.
49926         * modules/snippet/link-warning: Renamed from modules/link-warning.
49927         (Files, Makefile.am): Update.
49928         * build-aux/snippet/link-warning.h: Renamed from
49929         build-aux/link-warning.h.
49930         * MODULES.html.sh (Support for building libraries and executables):
49931         Update.
49933         Rename module 'c++defs' to 'snippet/c++defs'.
49934         * modules/snippet/c++defs: Renamed from modules/c++defs.
49935         (Files, Makefile.am): Update.
49936         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49937         * modules/arpa_inet (Depends-on): Update.
49938         * modules/ctype (Depends-on): Update.
49939         * modules/dirent (Depends-on): Update.
49940         * modules/fcntl-h (Depends-on): Update.
49941         * modules/glob (Depends-on): Update.
49942         * modules/iconv-h (Depends-on): Update.
49943         * modules/langinfo (Depends-on): Update.
49944         * modules/locale (Depends-on): Update.
49945         * modules/math (Depends-on): Update.
49946         * modules/netdb (Depends-on): Update.
49947         * modules/poll-h (Depends-on): Update.
49948         * modules/pty (Depends-on): Update.
49949         * modules/search (Depends-on): Update.
49950         * modules/signal (Depends-on): Update.
49951         * modules/spawn (Depends-on): Update.
49952         * modules/stdio (Depends-on): Update.
49953         * modules/stdlib (Depends-on): Update.
49954         * modules/string (Depends-on): Update.
49955         * modules/strings (Depends-on): Update.
49956         * modules/sys_ioctl (Depends-on): Update.
49957         * modules/sys_select (Depends-on): Update.
49958         * modules/sys_socket (Depends-on): Update.
49959         * modules/sys_stat (Depends-on): Update.
49960         * modules/sys_time (Depends-on): Update.
49961         * modules/sys_wait (Depends-on): Update.
49962         * modules/termios (Depends-on): Update.
49963         * modules/time (Depends-on): Update.
49964         * modules/unistd (Depends-on): Update.
49965         * modules/wchar (Depends-on): Update.
49966         * modules/wctype-h (Depends-on): Update.
49968         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49969         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49970         (Files, Makefile.am): Update.
49971         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49972         * modules/argv-iter (Depends-on): Update.
49973         * modules/arpa_inet (Depends-on): Update.
49974         * modules/dirent (Depends-on): Update.
49975         * modules/fcntl-h (Depends-on): Update.
49976         * modules/fnmatch (Depends-on): Update.
49977         * modules/getopt-posix (Depends-on): Update.
49978         * modules/glob (Depends-on): Update.
49979         * modules/iconv-h (Depends-on): Update.
49980         * modules/inttypes-incomplete (Depends-on): Update.
49981         * modules/locale (Depends-on): Update.
49982         * modules/math (Depends-on): Update.
49983         * modules/netdb (Depends-on): Update.
49984         * modules/search (Depends-on): Update.
49985         * modules/signal (Depends-on): Update.
49986         * modules/spawn (Depends-on): Update.
49987         * modules/stdio (Depends-on): Update.
49988         * modules/stdlib (Depends-on): Update.
49989         * modules/string (Depends-on): Update.
49990         * modules/strings (Depends-on): Update.
49991         * modules/sys_socket (Depends-on): Update.
49992         * modules/sys_stat (Depends-on): Update.
49993         * modules/sys_time (Depends-on): Update.
49994         * modules/sys_times (Depends-on): Update.
49995         * modules/sys_utsname (Depends-on): Update.
49996         * modules/time (Depends-on): Update.
49997         * modules/unistd (Depends-on): Update.
49998         * modules/wchar (Depends-on): Update.
49999         * MODULES.html.sh (Support for building libraries and executables):
50000         Update.
50002 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50004         Improvements on _Noreturn and related modules.
50006         modules/_Exit-tests: test _Noreturn too
50007         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
50008         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
50009         (main): Use them.
50011         stdnoreturn, stdnoreturn-tests: remove modules
50012         They're not needed here and a bit premature for use elsewhere.  See
50013         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
50014         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
50015         * tests/test-stdnoreturn.c: Remove files.
50016         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
50017         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
50018         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
50019         and using noreturn.
50020         * modules/openat, modules/sigpipe-die, modules/xalloc:
50021         * modules/xmemdup0, modules/xstrtol:
50022         Remove dependency on stdnoreturn.
50024         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
50025         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
50026         Reparenthesize to avoid GCC warning.
50027         Support Microsoft's syntax.
50028         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
50030         _Noreturn-tests: remove module
50031         * modules/_Noreturn-tests: Remove.
50032         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
50033         * tests/test-_Noreturn.c: Remove.
50034         * tests/test-stdnoreturn.c: Merge from the old
50035         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
50037 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
50039         _Noreturn, stdnoreturn, and related modules.
50041         * top/maint.mk: Adjust to new noreturn support.
50042         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
50043         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
50045         xalloc: use stdnoreturn.h
50046         * lib/xalloc.h: Include <stdnoreturn.h>.
50047         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50048         * modules/xalloc (Depends-on): Add stdnoreturn.
50050         xstrtol: use stdnoreturn.h
50051         * lib/xstrtol.h: Include <stdnoreturn.h>.
50052         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50053         * modules/xstrtol (Depends-on): Add stdnoreturn.
50055         xmemdup0: use stdnoreturn.h
50056         * lib/xmemdup0.h: Include <stdnoreturn.h>.
50057         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50058         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
50060         sigpipe-die: use stdnoreturn.h
50061         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
50062         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50063         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
50065         openat: use stdnoreturn.h
50066         * lib/openat.h: Include <stdnoreturn.h>.
50067         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
50068         * modules/openat (Depends-on): Add stdnoreturn.
50070         * lib/openat-die.c (openat_save_fail): Modernize comment.
50072         * lib/xalloc-die.c (xalloc_die): Modernize comment.
50074         * lib/glthread/thread.h: Modernize comment.
50076         obstack: use _Noreturn
50077         * lib/obstack.c (__attribute__): Remove macro.
50078         (print_and_abort): Use _Noreturn.
50080         c-stack: use _Noreturn
50081         * lib/c-stack.c (die, overflow_handler, segv_handler):
50082         Use _Noreturn rather than __attribute__((noreturn)).
50084         argmatch-tests, exclude_tests: use _Noreturn
50085         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
50086         Remove.
50087         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
50089         stdlib: use _Noreturn
50090         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
50091         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
50092         * modules/stdlib (Depends-on): Add _Noreturn.
50093         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
50095         stdnoreturn-tests: new module
50096         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
50098         stdnoreturn: new module
50099         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
50100         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
50102         _Noreturn-tests: new module
50103         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
50105         _Noreturn: new module
50106         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
50107         New section, mentioning it.
50108         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
50110         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
50112 2011-07-11  Eric Blake  <eblake@redhat.com>
50114         ffs: new module
50115         * modules/ffs: New file.
50116         * m4/ffs.m4: Likewise.
50117         * lib/ffs.c: Likewise.
50118         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
50119         * modules/strings (Makefile.am): Substitute witness.
50120         (Depends-on): Add c++defs.
50121         * lib/strings.in.h (ffs): Declare.
50122         * modules/ffs-tests: New test file.
50123         * tests/test-ffs.c: Test new module.
50124         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50125         * doc/posix-functions/ffs.texi (ffs): Likewise.
50127         regex: avoid compiler warning
50128         * lib/regex.c (includes): Include <strings.h>, for use of
50129         strcasecmp in regcomp.c.
50130         Reported by Joachim Schmitz.
50132 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50134         stdint: respect system's intmax_t if INTMAX_MAX
50135         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
50136         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
50137         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
50138         long but int64_t is long long, and where we will clash with the
50139         system intmax_t if we override it.  See
50140         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
50141         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
50142         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
50143         similarly for UINTMAX_C.
50145 2011-07-08  Bruno Haible  <bruno@clisp.org>
50147         pthread_sigmask tests: Avoid a compiler warning.
50148         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
50149         non-zero.
50151         sigprocmask tests: A better way to avoid a compiler warning.
50152         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
50153         (main): Complain if system() returns non-zero.
50154         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
50156 2011-07-08  Bruno Haible  <bruno@clisp.org>
50158         pthread_sigmask: Work around IRIX bug.
50159         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
50160         bug.
50161         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
50162         there may be unblocked pending signals.
50163         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
50165 2011-07-08  Bruno Haible  <bruno@clisp.org>
50167         pthread_sigmask: Work around Cygwin bug.
50168         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
50169         bug.
50170         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
50171         the system's pthread_sigmask function.
50172         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
50174 2011-07-08  Bruno Haible  <bruno@clisp.org>
50176         pthread_sigmask: Work around bug in single-threaded implementation.
50177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
50178         FreeBSD, HP-UX, Solaris bug.
50179         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
50180         * lib/pthread_sigmask.c: Include <stddef.h>.
50181         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
50182         the system's pthread_sigmask function.
50183         * modules/pthread_sigmask (configure.ac): Invoke
50184         gl_PREREQ_PTHREAD_SIGMASK.
50185         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
50186         HP-UX, Solaris.
50188 2011-07-08  Eric Blake  <eblake@redhat.com>
50190         test-sigprocmask: avoid compiler warning
50191         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
50192         * tests/test-sigprocmask.c (main): Use it to silence warning.
50193         Reported by Jim Meyering.
50195         test-snprintf: avoid compiler warning
50196         * tests/test-snprintf.c (main): Avoid shadowed declaration.
50197         * tests/test-vsnprintf.c (main): Likewise.
50198         Reported by Jim Meyering.
50200 2011-07-08  Bruno Haible  <bruno@clisp.org>
50202         Tests for module 'pthread_sigmask'.
50203         * modules/pthread_sigmask-tests: New file.
50204         * tests/test-pthread_sigmask1.c: New file, based on
50205         tests/test-sigprocmask.c.
50206         * tests/test-pthread_sigmask2.c: New file.
50208 2011-07-08  Jim Meyering  <meyering@redhat.com>
50210         test-getopt.h: avoid warning about an unused variable
50211         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
50213 2011-07-07  Jim Meyering  <meyering@redhat.com>
50215         maint: reduce list of files exempt from sc_prohibit_leading_TABs
50216         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
50217         now that it no longer contains leading TABs.
50218         Remove unused "url=FIXME" statement.
50220 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50222         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
50223         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50224         When gl_THREADLIB is not in use, assume that the POSIX sematics
50225         are desired.  This is better for Emacs, which uses POSIX semantics
50226         on GNUish and/or POSIXish platforms, and does not use threads at
50227         all otherwise.
50229         pthread_sigmask: fix typo when testing for libraries
50230         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
50231         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
50233 2011-07-08  Eric Blake  <eblake@redhat.com>
50235         fts: introduce FTS_NOATIME
50236         * lib/fts_.h (FTS_NOATIME): New bit flag.
50237         (FTS_OPTIONMASK): Adjust.
50238         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
50239         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
50241 2011-07-08  Bruno Haible  <bruno@clisp.org>
50243         Tests for module 'thread'.
50244         * modules/thread-tests: New file.
50245         * tests/test-thread_self.c: New file.
50246         * tests/test-thread_create.cc: New file.
50248 2011-07-08  Bruno Haible  <bruno@clisp.org>
50250         thread: Avoid gcc warnings when using gl_thread_self().
50251         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
50252         'void *'.
50253         (gl_thread_self_pointer): Update.
50255 2011-07-07  Bruno Haible  <bruno@clisp.org>
50257         signal-c++-tests: Check declaration of pthread_sigmask.
50258         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50259         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50260         $(LIB_PTHREAD_SIGMASK).
50262 2011-07-07  Bruno Haible  <bruno@clisp.org>
50264         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50265         * lib/signal.in.h (pthread_sigmask): Override if
50266         REPLACE_PTHREAD_SIGMASK is 1.
50267         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50268         REPLACE_PTHREAD_SIGMASK.
50269         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50270         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50271         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50272         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50273         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50275 2011-07-07  Bruno Haible  <bruno@clisp.org>
50277         pthread_sigmask: Ensure declaration in <signal.h>.
50278         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50279         include <pthread.h>.
50280         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50281         problem.
50283 2011-07-07  Bruno Haible  <bruno@clisp.org>
50285         pthread_sigmask: Document the module.
50286         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50288 2011-07-07  Bruno Haible  <bruno@clisp.org>
50290         pthread_sigmask: Follow gnulib conventions.
50291         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50292         gl_PTHREAD_SIGMASK.
50293         * modules/pthread_sigmask (configure.ac): Update.
50295 2011-07-07  Bruno Haible  <bruno@clisp.org>
50297         pthread_sigmask: Make declaration C++ safe.
50298         * lib/signal.in.h: In two special conditions, just do an #include_next.
50299         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50300         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50301         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50302         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50303         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50304         not REPLACE_PTHREAD_MASK.
50305         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50306         not REPLACE_PTHREAD_MASK.
50307         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50309 2011-07-07  Bruno Haible  <bruno@clisp.org>
50311         pthread_sigmask: Fix return value.
50312         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50313         * lib/pthread_sigmask.c: New file.
50314         * modules/pthread_sigmask (Files): Add it.
50315         (configure.ac): Invoke AC_LIBOBJ.
50317 2011-07-07  Eric Blake  <eblake@redhat.com>
50319         getopt: more portable argv creation
50320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50321         const, use char arrays rather than strings.
50322         Suggested by Paul Eggert.
50324 2011-07-07  Bruno Haible  <bruno@clisp.org>
50326         Tests for module 'sigprocmask'.
50327         * modules/sigprocmask-tests: New file.
50328         * tests/test-sigprocmask.c: New file.
50330 2011-07-07  Bruno Haible  <bruno@clisp.org>
50332         float tests: Tweak.
50333         * tests/test-float.c (main): Tweak skip message.
50335 2011-07-07  Eric Blake  <eblake@redhat.com>
50337         getopt: avoid compiler warning during configure
50338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50339         assigning string literals to non-const pointer.
50341         getopt-gnu: avoid crash in glibc getopt
50342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50343         * tests/test-getopt.h (test_getopt): Enhance test.
50344         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50345         * doc/posix-functions/getopt.texi (getopt): Document it.
50346         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50347         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50348         Likewise.
50350 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50352         getopt: handle W; without long options in getopt [BZ #12922]
50353         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50354         but no long options are defined, just return 'W'.
50356 2011-07-07  Bruno Haible  <bruno@clisp.org>
50358         Avoid literal tabs.
50359         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50360         variable containing a tab instead of a literal tab.
50361         Reported by Jim Meyering.
50363 2011-07-07  Bruno Haible  <bruno@clisp.org>
50365         Comments.
50366         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50368 2011-07-06  Bruno Haible  <bruno@clisp.org>
50370         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50371         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50372         <winsock2.h>.
50373         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50374         lib/sys_socket.in.h.
50375         (close, gethostname): Hide declarations from <winsock2.h>.
50376         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50377         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50378         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50379         (select): Don't override if gnulib's <sys/select.h> was already
50380         included.
50381         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50382         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50383         setsockopt, shutdown, select): Tweak indentation.
50385 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50387         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50388         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50389         in an application that does not use the sys_select module.
50391 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50393         poll: do not return 0 on timeout=-1
50394         * lib/poll.c: Loop with yield if no events occurred.
50396 2011-07-06  Eric Blake  <eblake@redhat.com>
50398         pthread_sigmask: always replace when not using pthread
50399         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50400         replacement when using some threading other than pthread.  Fix
50401         logic bug.
50403 2011-07-06  Bruno Haible  <bruno@clisp.org>
50405         Comments.
50406         * m4/printf.m4: Update comments about mingw.
50408 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50410         sys_select: define sigset_t more portably
50411         * lib/sys_select.in.h: Always include <sys/types.h>, since
50412         we now need sigset_t and mingw defines it there.
50413         Include <signal.h> before split inclusion guard, to avoid
50414         mishaps on Solaris, whose <signal.h> eventually includes us.
50415         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50416         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50417         which come from ...
50418         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50419         gl_CHECK_TYPE_SIGSET_T.
50420         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50421         does the real work.
50422         * modules/sys_select (Depends-on): Add 'signal'.
50424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50425         Suggested by Bruno Haible.
50427         pselect: Use pthread_sigmask, not sigprocmask.
50428         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50429         multithreaded apps better than sigprocmask does.
50430         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50431         sigprocmask directly.
50433 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50435         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50436         Don't #undef,  since we don't need any underlying pselect.
50437         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50438         (Depends-on): Add select.
50439         (Link): Add $(LIBSOCKET).
50440         These changes suggested by Bruno Haible.
50442         pselect: document better
50443         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50444         * doc/posix-functions/pselect.texi (pselect): Document new module.
50446         pthread_sigmask: new module
50447         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50448         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50449         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50450         This is done only as a macro; I don't know how well that'll
50451         work for C++.  Move <sys/types.h> include before the include_next,
50452         to avoid mishap on Solaris.
50453         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50454         * modules/signal (Makefile.am): Substitute the check's results.
50455         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50457         test-pselect: new module
50458         * modules/pselect-tests, tests/test-pselect.c: New files.
50459         * tests/test-select.c, tests/test-sys_select-c++.cc:
50460         If TEST_PSELECT is defined, test pselect instead of testing select.
50462         * tests/test-sys_select.c (sigset_t): Test for it, too.
50463         Suggested by Bruno Haible.
50465 2011-07-05  Eric Blake  <eblake@redhat.com>
50467         snprintf: guarantee %1$d, for libintl
50468         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50469         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50470         * doc/posix-functions/snprintf.texi (snprintf): Update.
50471         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50472         * tests/test-snprintf.c (main): Enhance test.
50473         * tests/test-vsnprintf.c (main): Likewise.
50475 2011-07-05  Jim Meyering  <meyering@redhat.com>
50477         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50478         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50479         per Bruno's request, to accommodate this idiom (no space after "#")
50480         even when the function is inside an #if block:
50481         char *
50482         gets (char *s)
50483         #undef gets
50484         {
50485           ...
50486         }
50488 2011-07-04  Jim Meyering  <meyering@redhat.com>
50490         maint: indent with spaces, not TABs, and add a rule to check this
50491         * tests/test-userspec.c: Indent with spaces, not TABs.
50492         * tests/test-argp.c: Likewise.
50493         * tests/test-c-stack2.sh: Likewise.
50494         * tests/test-parse-duration.sh: Likewise
50495         * m4/strtod.m4: Likewise.
50496         * m4/alloca.m4: Likewise.
50497         * m4/pselect.m4: Likewise.
50498         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50500 2011-07-03  Jim Meyering  <meyering@redhat.com>
50502         maint.mk: correct omissions in prohibit_argmatch_without_use check
50503         This rule would mistakenly report that argmatch.h is included without
50504         use even when both the argmatch and invalid_arg macro were used.
50505         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50506         of argmatch and invalid_arg.
50508 2011-07-03  Bruno Haible  <bruno@clisp.org>
50510         Comments about EINTR.
50511         * lib/safe-read.h: Explain the purpose of this module.
50512         * lib/safe-write.h: Likewise.
50513         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50514         module.
50515         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50516         module.
50517         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50519 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50521         xnanosleep: Rewrite to use new dtotimespec module.
50522         It has the conversion code that used to be in xnanosleep.
50523         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50524         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50525         (TIME_T_MAX): Remove.
50526         (xnanosleep): Rewrite in terms of dtotimespec.
50527         * modules/xnanosleep (Depends-on): Add dtotimespec.
50528         Remove intprops, stdbool.
50530         timespec-add, timespec-sub: new modules
50531         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50532         * lib/timespec-add.c, lib/timespec-sub.c:
50533         * modules/timespec-add, modules/timespec-sub: New files.
50535         dtotimespec: new module
50536         * lib/timespec.h (dtotimespec): New decl.
50537         * lib/dtotimespec.c, modules/dtotimespec: New files.
50539         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50541         pselect: new module
50542         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50543         (pselect): New decls.
50544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50545         since the standard pselect decl uses 'restrict'.
50546         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50547         HAVE_PSELECT, REPLACE_PSELECT.
50548         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50549         HAVE_PSELECT, REPLACE_PSELECT.
50550         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50552         sys_select: don't depend on sys_socket
50553         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50554         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50555         This fix works on GNU and GNU-like platforms, but has not been tested
50556         on native Windows.
50557         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50559         gl_HEADER_SYS_SOCKET.
50560         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50561         gl_PREREQ_SYS_H_WINSOCK2.
50563 2011-06-29  Eric Blake  <eblake@redhat.com>
50565         pipe2: fix C89 compile problem
50566         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50567         Reported by Bruno Haible.
50569         pipe, pipe2: don't corrupt fd on error
50570         * lib/pipe.c (pipe): Leave fd unchanged on error.
50571         * lib/pipe2.c (pipe2): Likewise.
50572         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50573         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50575 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50577         mmap-anon: do not use regular expressions inadvertently
50578         * m4/mmap-anon.m4: Remove trailing period from strings sought
50579         in the output.
50581 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50583         nanosleep: fix integer overflow problem
50584         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50585         arithmetic wraps around on overflow.
50587         nanosleep: simplify carrying
50588         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50589         first call to the underyling nanosleep, not for the last one.
50590         This doesn't fix any bugs, but it simplifies the computation of
50591         the remaining delay.  Found while auditing integer overflow issues.
50593         dup2: remove test for existence of fcntl
50594         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50595         "#if HAVE_FCNTL", in the configure-time test program.
50596         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50597         and therefore speeds up "configure" a bit.  Found while
50598         adding the dup2 module to Emacs.
50600 2011-06-24  Eric Blake  <eblake@redhat.com>
50602         maint.mk: enhance useless header checks
50603         * top/maint.mk (_sc_header_without_use): Check both include
50604         styles.
50605         (sc_prohibit_assert_without_use)
50606         (sc_prohibit_close_stream_without_use)
50607         (sc_prohibit_getopt_without_use)
50608         (sc_prohibit_quotearg_without_use)
50609         (sc_prohibit_quote_without_use)
50610         (sc_prohibit_long_options_without_use)
50611         (sc_prohibit_inttostr_without_use)
50612         (sc_prohibit_ignore_value_without_use)
50613         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50614         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50615         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50616         (sc_prohibit_hash_pjw_without_use)
50617         (sc_prohibit_safe_read_without_use)
50618         (sc_prohibit_argmatch_without_use)
50619         (sc_prohibit_canonicalize_without_use)
50620         (sc_prohibit_root_dev_ino_without_use)
50621         (sc_prohibit_openat_without_use)
50622         (sc_prohibit_c_ctype_without_use)
50623         (sc_prohibit_signal_without_use)
50624         (sc_prohibit_stdio--_without_use)
50625         (sc_prohibit_stdio-safer_without_use)
50626         (sc_prohibit_strings_without_use)
50627         (sc_prohibit_intprops_without_use)
50628         (sc_prohibit_stddef_without_use)
50629         (sc_prohibit_xfreopen_without_use): Update clients.
50631 2011-06-24  Jim Meyering  <meyering@redhat.com>
50633         syntax-check: keep one maint.mk rule in sync with its header
50634         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50635         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50636         I prefer to avoid temporary files here, so use <(...), but that
50637         is not supported by /bin/sh, so...
50638         (SHELL): Define to /bin/bash.
50640 2011-06-24  Eric Blake  <eblake@redhat.com>
50642         maint.mk: update sc_prohibit_intprops_without_use
50643         * top/maint.mk (_intprops_names): Match recent changes.
50645 2011-06-24  Bruno Haible  <bruno@clisp.org>
50647         strerror-override: No-op tweak.
50648         * lib/strerror-override.h (strerror_override): Reorder conditions,
50649         for consistency with lib/strerror-override.c.
50651 2011-06-23  Eric Blake  <eblake@redhat.com>
50653         maint.mk: test further PATH_MAX issues
50654         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50655         (sc_prohibit_path_max_allocation): ...and also test alloca.
50656         Suggested by Jim Meyering.
50658 2011-06-22  Eric Blake  <eblake@redhat.com>
50660         maint.mk: add syntax-check to avoid char[PATH_MAX]
50661         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50663         stat: be robust to PATH_MAX definition
50664         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50665         * modules/stat (Depends-on): Add verify.
50667         link: work around IRIX bug
50668         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50669         * lib/link.c (rpl_link): Work around it.
50670         * tests/test-link.h (test_link): Enhance test.
50671         * doc/posix-functions/link.texi (link): Document the bug.
50673         getopt: silence clang warning
50674         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50675         dereference.
50676         Reported by Gustavo Martin Domato.
50678 2011-06-22  Jim Meyering  <meyering@redhat.com>
50680         bootstrap: do not insert a blank line into each .gitignore file
50681         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50683 2011-06-21  Eric Blake  <eblake@redhat.com>
50685         perror: test for output mismatch
50686         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50687         perror on IRIX.
50689         strerror_r: fix OpenBSD behavior on out-of-range
50690         * lib/strerror_r.c (strerror_r): Always use maximal string.
50691         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50693         strerror_r: fix OpenBSD behavior on 0
50694         * lib/strerror-override.c (strerror_override): Also override 0
50695         when needed.
50696         * lib/strerror-override.h (strerror_override): Likewise.
50697         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50698         earlier.
50699         * lib/strerror_r.c (strerror_r): Likewise.
50700         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50701         behavior...
50702         (gl_FUNC_STRERROR_0): ...into new macro.
50703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50704         is overridden.
50705         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50706         * modules/strerror-override (Files): Add strerror.m4.
50707         (configure.ac): Also provide override for 0 when needed.
50708         * doc/posix-functions/strerror.texi (strerror): Document this.
50709         * doc/posix-functions/perror.texi (perror): Likewise.
50711         perror: adjust array size
50712         * modules/perror (Depends-on): Add strerror-override.
50713         * lib/perror.c (perror): Use it to avoid magic number.
50715         strerror-override: reduce size
50716         * lib/strerror-override.c (strerror_override): Use fewer lines.
50718 2011-06-20  Bruno Haible  <bruno@clisp.org>
50720         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50721         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50723 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50725         alloca: port to compilers that can optimize like GCC 4.6.0
50726         * lib/alloca.c (find_stack_direction): New signature, taken from
50727         Autoconf git.  This works with GCC 4.6.0.  This code should never
50728         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50729         be used with other compilers that optimize as well as GCC 4.6.0 does.
50730         (alloca): Adjust to new signature.
50731         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50732         New macro, which patches Autoconf in a similar way.
50734         c-stack: stop worrying about stack direction
50735         * lib/c-stack.c (find_stack_direction): Remove.
50736         (segv_handler): Don't worry about stack direction growth, as it's
50737         too much of a pain to configure this correctly, given how compilers
50738         are optimizing-away our stack-growth detection code.  Instead, assume
50739         that any access to just before or just after the stack is OK.
50740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50741         Don't require AC_FUNC_ALLOCA; no longer needed.
50743 2011-06-20  Eric Blake  <eblake@redhat.com>
50745         test-stat: don't allocate PATH_MAX bytes
50746         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50747         PATH_MAX-sized buffer.
50748         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50749         * modules/stat-tests (Depends-on): Likewise.
50750         * tests/test-fstatat.c (includes): Drop pathmax.h.
50751         * tests/test-stat.c (includes): Likewise.
50752         Reported by Bruno Haible.
50754 2011-06-20  Bruno Haible  <bruno@clisp.org>
50756         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50757         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50758         * lib/float.c: New file.
50759         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50760         REPLACE_FLOAT_LDBL.
50761         * modules/float (Files): Add lib/float.c.
50762         (configure.ac): Invoke AC_LIBOBJ.
50763         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50765 2011-06-20  Bruno Haible  <bruno@clisp.org>
50767         Tests for module 'float'.
50768         * modules/float-tests: New file.
50769         * tests/test-float.c: New file.
50771 2011-06-19  Bruno Haible  <bruno@clisp.org>
50773         isinf: Coding style.
50774         * lib/isinf.c: Use GNU coding style.
50776 2011-06-19  Bruno Haible  <bruno@clisp.org>
50778         linkat test: Avoid test failure on AIX 7.1.
50779         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50780         * tests/test-link.h (test_link): Likewise.
50782 2011-06-19  Bruno Haible  <bruno@clisp.org>
50784         pread test: Avoid test failure on OpenBSD 4.9.
50785         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50787 2011-06-19  Bruno Haible  <bruno@clisp.org>
50789         sprintf-posix: Fix test failure on AIX 7.1.
50790         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50791         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50792         on AIX.
50793         * doc/posix-functions/fprintf.texi: Likewise.
50794         * doc/posix-functions/printf.texi: Likewise.
50795         * doc/posix-functions/snprintf.texi: Likewise.
50796         * doc/posix-functions/sprintf.texi: Likewise.
50797         * doc/posix-functions/vdprintf.texi: Likewise.
50798         * doc/posix-functions/vfprintf.texi: Likewise.
50799         * doc/posix-functions/vprintf.texi: Likewise.
50800         * doc/posix-functions/vsnprintf.texi: Likewise.
50801         * doc/posix-functions/vsprintf.texi: Likewise.
50803 2011-06-19  Bruno Haible  <bruno@clisp.org>
50805         roundl-ieee: Fix test failure on AIX 7.1.
50806         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50807         * doc/posix-functions/roundl.texi: Mention problem with negative
50808         arguments.
50810 2011-06-19  Bruno Haible  <bruno@clisp.org>
50812         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50813         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50814         * doc/posix-functions/round.texi: Mention problem with negative
50815         arguments.
50816         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50818 2011-06-19  Bruno Haible  <bruno@clisp.org>
50820         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50822         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50823         * doc/posix-functions/roundf.texi: Mention problem with negative
50824         arguments.
50825         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50827 2011-06-19  Bruno Haible  <bruno@clisp.org>
50829         ceilf-ieee: Work around bug on MacOS X 10.5.
50830         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50832         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50833         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50834         IEEE compliant, avoid compiler optimizations.
50835         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50836         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50837         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50838         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50839         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50840         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50841         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50842         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50843         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50844         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50846 2011-06-19  Bruno Haible  <bruno@clisp.org>
50848         ceilf-ieee: Work around bug on AIX 7.1.
50849         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50850         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50852 2011-06-19  Bruno Haible  <bruno@clisp.org>
50854         ceil-ieee: Work around bug on AIX 7.1.
50855         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50856         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50858 2011-06-18  Bruno Haible  <bruno@clisp.org>
50860         fsync test: Avoid test failure on MacOS X and AIX.
50861         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50862         EINVAL.
50864 2011-06-18  Bruno Haible  <bruno@clisp.org>
50866         openat, fdopendir tests: Fix link errors.
50867         * modules/openat-tests (Depends-on): Add progname.
50868         * modules/fdopendir-tests (Depends-on): Likewise.
50869         * tests/test-fchownat.c: Include progname.h.
50870         (main): Call set_program_name.
50871         * tests/test-fstatat.c: Include progname.h.
50872         (main): Call set_program_name.
50873         * tests/test-mkdirat.c: Include progname.h.
50874         (main): Call set_program_name.
50875         * tests/test-openat.c: Include progname.h.
50876         (main): Call set_program_name.
50877         * tests/test-unlinkat.c: Include progname.h.
50878         (main): Call set_program_name.
50879         * tests/test-fdopendir.c: Include progname.h.
50880         (main): Call set_program_name.
50882 2011-06-18  Bruno Haible  <bruno@clisp.org>
50884         Doc update.
50885         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50886         HP-UX.
50887         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50889 2011-06-18  Bruno Haible  <bruno@clisp.org>
50891         getcwd tests: Avoid compilation error on HP-UX 11.31.
50892         * modules/getcwd-tests (Depends-on): Add pathmax.
50893         * tests/test-getcwd.c: Include pathmax.h.
50895 2011-06-18  Bruno Haible  <bruno@clisp.org>
50897         isfinite, isinf: Fix link error on AIX 6 and 7.
50898         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50899         needed, also test the macro with a 'float' argument.
50900         * m4/isinf.m4 (gl_ISINF): Likewise.
50902 2011-06-18  Bruno Haible  <bruno@clisp.org>
50904         getloadavg: Don't clobber LIBS. Regression from previous commit.
50905         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50906         AC_CHECK_LIB from here...
50907         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50908         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50909         gl_func_getloadavg_done.
50910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50912 2011-06-18  Bruno Haible  <bruno@clisp.org>
50914         clean-temp: Improve documentation.
50915         * lib/clean-temp.h: Explain better how to use this module.
50916         Reported by John Darrington <john@darrington.wattle.id.au>.
50918 2011-06-17  Bruno Haible  <bruno@clisp.org>
50920         pread, pwrite: Avoid cc warning on AIX.
50921         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50922         (pwrite): Likewise.
50924 2011-06-17  Bruno Haible  <bruno@clisp.org>
50926         spawn-pipe tests: Fix link error.
50927         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50930 2011-06-17  Bruno Haible  <bruno@clisp.org>
50932         Tests: Remove unnecessary dependency.
50933         * modules/canonicalize-tests (Depends-on): Remove progname.
50934         * modules/chown-tests (Depends-on): Likewise.
50935         * modules/dirname-tests (Depends-on): Likewise.
50936         * modules/fdopendir-tests (Depends-on): Likewise.
50937         * modules/fdutimensat-tests (Depends-on): Likewise.
50938         * modules/hash-tests (Depends-on): Likewise.
50939         * modules/lchown-tests (Depends-on): Likewise.
50940         * modules/linkat-tests (Depends-on): Likewise.
50941         * modules/renameat-tests (Depends-on): Likewise.
50942         * modules/spawn-pipe-tests (Depends-on): Likewise.
50943         * modules/utimensat-tests (Depends-on): Likewise.
50945 2011-06-17  Bruno Haible  <bruno@clisp.org>
50947         spawn-pipe tests: Fix link error.
50948         * tests/test-spawn-pipe-child.c: Undefine fflush.
50950 2011-06-17  Bruno Haible  <bruno@clisp.org>
50952         Fix tests link errors.
50953         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50954         * modules/chown-tests (Makefile.am): Don't link test-chown with
50955         LIBINTL.
50956         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50957         LIBINTL.
50958         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50959         LIBINTL.
50960         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50961         LIBINTL.
50963 2011-06-16  Bruno Haible  <bruno@clisp.org>
50965         crypto/gc-sha1: Fix recent regression.
50966         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50967         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50969         crypto/gc-md5: Fix recent regression.
50970         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50972         crypto/gc-md4: Fix recent regression.
50973         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50974         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50976         crypto/gc-arctwo: Fix recent regression.
50977         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50978         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50980         crypto/gc-rijndael: Fix recent regression.
50981         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50982         (configure.ac): Invoke AC_LIBOBJ here.
50983         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50986         crypto/gc-hmac-sha1: Fix recent regression.
50987         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50988         (configure.ac): Invoke AC_LIBOBJ here.
50989         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50992         crypto/gc-hmac-md5: Fix recent regression.
50993         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50994         (configure.ac): Invoke AC_LIBOBJ here.
50995         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50998         crypto/gc-des: Fix recent regression.
50999         * modules/crypto/gc-des (Files): Remove m4/des.m4.
51000         (configure.ac): Invoke AC_LIBOBJ here.
51001         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
51002         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51004         crypto/gc-arcfour: Fix recent regression.
51005         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
51006         (configure.ac): Invoke AC_LIBOBJ here.
51007         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
51008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51010 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
51012         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
51013         After the 2011-05-21 change, this macro requires
51014         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
51015         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51017 2011-06-16  Bruno Haible  <bruno@clisp.org>
51019         fprintftime: Move AC_LIBOBJ invocations to module description.
51020         * m4/fprintftime.m4: Remove file.
51021         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
51022         (configure.ac): Remove gl_FPRINTFTIME call.
51023         (Makefile.am): Augment lib_SOURCES.
51024         Reported by Jim Meyering.
51026 2011-06-16  Bruno Haible  <bruno@clisp.org>
51028         tmpfile-safer: Finish 2011-05-23 commit.
51029         * m4/stdio-safer.m4: Really remove file.
51030         Reported by Jim Meyering.
51032 2011-06-16  Bruno Haible  <bruno@clisp.org>
51034         syntax-check: Fix typo.
51035         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
51036         printf-posix.m4.
51037         Reported by Jim Meyering.
51039 2011-06-13  Jim Meyering  <meyering@redhat.com>
51041         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
51042         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
51044 2011-05-23  Bruno Haible  <bruno@clisp.org>
51046         yesno: Move AC_LIBOBJ invocations to module description.
51047         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
51048         * modules/yesno (Makefile.am): Augment lib_SOURCES.
51050 2011-05-23  Bruno Haible  <bruno@clisp.org>
51052         xstrtol: Move AC_LIBOBJ invocations to module description.
51053         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
51054         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
51056 2011-05-23  Bruno Haible  <bruno@clisp.org>
51058         xstrtold: Move AC_LIBOBJ invocations to module description.
51059         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
51060         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
51062 2011-05-23  Bruno Haible  <bruno@clisp.org>
51064         xstrtod: Move AC_LIBOBJ invocations to module description.
51065         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
51066         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
51068 2011-05-23  Bruno Haible  <bruno@clisp.org>
51070         xnanosleep: Move AC_LIBOBJ invocations to module description.
51071         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
51072         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
51074 2011-05-23  Bruno Haible  <bruno@clisp.org>
51076         xgetcwd: Move AC_LIBOBJ invocations to module description.
51077         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
51078         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
51080 2011-05-23  Bruno Haible  <bruno@clisp.org>
51082         xalloc: Move AC_LIBOBJ invocations to module description.
51083         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
51084         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
51086 2011-05-23  Bruno Haible  <bruno@clisp.org>
51088         write-any-file: Move AC_LIBOBJ invocations to module description.
51089         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
51090         invocation.
51091         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
51093 2011-05-23  Bruno Haible  <bruno@clisp.org>
51095         utimens: Move AC_LIBOBJ invocations to module description.
51096         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
51097         * modules/utimens (Makefile.am): Augment lib_SOURCES.
51099 2011-05-23  Bruno Haible  <bruno@clisp.org>
51101         utimecmp: Move AC_LIBOBJ invocations to module description.
51102         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
51103         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
51105 2011-05-23  Bruno Haible  <bruno@clisp.org>
51107         userspec: Move AC_LIBOBJ invocations to module description.
51108         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
51109         * modules/userspec (Makefile.am): Augment lib_SOURCES.
51111 2011-05-23  Bruno Haible  <bruno@clisp.org>
51113         unlinkdir: Move AC_LIBOBJ invocations to module description.
51114         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
51115         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
51117 2011-05-23  Bruno Haible  <bruno@clisp.org>
51119         unistd-safer: Move AC_LIBOBJ invocations to module description.
51120         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
51121         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
51123 2011-05-23  Bruno Haible  <bruno@clisp.org>
51125         tempname: Move AC_LIBOBJ invocations to module description.
51126         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
51127         * modules/tempname (Makefile.am): Augment lib_SOURCES.
51129 2011-05-23  Bruno Haible  <bruno@clisp.org>
51131         strftime: Move AC_LIBOBJ invocations to module description.
51132         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
51133         * modules/strftime (Makefile.am): Augment lib_SOURCES.
51135 2011-05-23  Bruno Haible  <bruno@clisp.org>
51137         stdlib-safer: Move AC_LIBOBJ invocations to module description.
51138         * m4/stdlib-safer.m4: Remove file.
51139         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
51140         (configure.ac): Remove gl_STDLIB_SAFER call.
51141         (Makefile.am): Augment lib_SOURCES.
51143 2011-05-23  Bruno Haible  <bruno@clisp.org>
51145         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
51146         * m4/stdio-safer.m4: Remove file.
51147         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
51148         (configure.ac): Remove gl_TMPFILE_SAFER call.
51149         (Makefile.am): Augment lib_SOURCES.
51151 2011-05-23  Bruno Haible  <bruno@clisp.org>
51153         popen-safer: Move AC_LIBOBJ invocations to module description.
51154         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
51155         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
51156         (configure.ac): Remove gl_POPEN_SAFER call.
51157         (Makefile.am): Augment lib_SOURCES.
51159 2011-05-23  Bruno Haible  <bruno@clisp.org>
51161         freopen-safer: Move AC_LIBOBJ invocations to module description.
51162         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
51163         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
51164         (configure.ac): Remove gl_FREOPEN_SAFER call.
51165         (Makefile.am): Augment lib_SOURCES.
51167 2011-05-23  Bruno Haible  <bruno@clisp.org>
51169         fopen-safer: Move AC_LIBOBJ invocations to module description.
51170         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
51171         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
51172         (configure.ac): Remove gl_FOPEN_SAFER call.
51173         (Makefile.am): Augment lib_SOURCES.
51175 2011-05-23  Bruno Haible  <bruno@clisp.org>
51177         crypto/sha512: Move AC_LIBOBJ invocations to module description.
51178         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
51179         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
51181 2011-05-23  Bruno Haible  <bruno@clisp.org>
51183         crypto/sha256: Move AC_LIBOBJ invocations to module description.
51184         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
51185         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
51187 2011-05-23  Bruno Haible  <bruno@clisp.org>
51189         crypto/sha1: Move AC_LIBOBJ invocations to module description.
51190         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
51191         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
51193 2011-05-23  Bruno Haible  <bruno@clisp.org>
51195         settime: Move AC_LIBOBJ invocations to module description.
51196         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
51197         * modules/settime (Makefile.am): Augment lib_SOURCES.
51199 2011-05-23  Bruno Haible  <bruno@clisp.org>
51201         savedir: Move AC_LIBOBJ invocations to module description.
51202         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
51203         * modules/savedir (Makefile.am): Augment lib_SOURCES.
51205 2011-05-23  Bruno Haible  <bruno@clisp.org>
51207         save-cwd: Move AC_LIBOBJ invocations to module description.
51208         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
51209         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
51211 2011-05-23  Bruno Haible  <bruno@clisp.org>
51213         same: Move AC_LIBOBJ invocations to module description.
51214         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
51215         * modules/same (Makefile.am): Augment lib_SOURCES.
51217 2011-05-23  Bruno Haible  <bruno@clisp.org>
51219         safe-write: Move AC_LIBOBJ invocations to module description.
51220         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
51221         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
51222         instead of gl_SAFE_WRITE.
51223         (Makefile.am): Augment lib_SOURCES.
51225 2011-05-23  Bruno Haible  <bruno@clisp.org>
51227         safe-read: Move AC_LIBOBJ invocations to module description.
51228         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
51229         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
51230         of gl_SAFE_READ.
51231         (Makefile.am): Augment lib_SOURCES.
51233 2011-05-23  Bruno Haible  <bruno@clisp.org>
51235         safe-alloc: Move AC_LIBOBJ invocations to module description.
51236         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
51237         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
51239 2011-05-23  Bruno Haible  <bruno@clisp.org>
51241         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
51242         * m4/rijndael.m4: Remove file.
51243         * modules/crypto/rijndael (Files): Remove it.
51244         (configure.ac): Remove gl_RIJNDAEL call.
51245         (Makefile.am): Augment lib_SOURCES.
51247 2011-05-23  Bruno Haible  <bruno@clisp.org>
51249         readtokens: Move AC_LIBOBJ invocations to module description.
51250         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
51251         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
51253 2011-05-23  Bruno Haible  <bruno@clisp.org>
51255         read-file: Move AC_LIBOBJ invocations to module description.
51256         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51257         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51258         of gl_FUNC_READ_FILE.
51259         (Makefile.am): Augment lib_SOURCES.
51261 2011-05-23  Bruno Haible  <bruno@clisp.org>
51263         quotearg: Move AC_LIBOBJ invocations to module description.
51264         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51265         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51267 2011-05-23  Bruno Haible  <bruno@clisp.org>
51269         quote: Move AC_LIBOBJ invocations to module description.
51270         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51271         * modules/quote (Makefile.am): Augment lib_SOURCES.
51273 2011-05-23  Bruno Haible  <bruno@clisp.org>
51275         posixver: Move AC_LIBOBJ invocations to module description.
51276         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51277         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51279 2011-05-23  Bruno Haible  <bruno@clisp.org>
51281         posixtm: Move AC_LIBOBJ invocations to module description.
51282         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51283         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51285 2011-05-23  Bruno Haible  <bruno@clisp.org>
51287         physmem: Move AC_LIBOBJ invocations to module description.
51288         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51289         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51291 2011-05-23  Bruno Haible  <bruno@clisp.org>
51293         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51294         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51295         invocation.
51296         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51298 2011-05-23  Bruno Haible  <bruno@clisp.org>
51300         mpsort: Move AC_LIBOBJ invocations to module description.
51301         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51302         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51304 2011-05-23  Bruno Haible  <bruno@clisp.org>
51306         modechange: Move AC_LIBOBJ invocations to module description.
51307         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51308         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51310 2011-05-23  Bruno Haible  <bruno@clisp.org>
51312         mkdir-p: Move AC_LIBOBJ invocations to module description.
51313         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51314         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51316 2011-05-23  Bruno Haible  <bruno@clisp.org>
51318         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51319         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51320         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51322 2011-05-23  Bruno Haible  <bruno@clisp.org>
51324         mgetgroups: Move AC_LIBOBJ invocations to module description.
51325         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51326         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51328 2011-05-23  Bruno Haible  <bruno@clisp.org>
51330         memxor: Move AC_LIBOBJ invocations to module description.
51331         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51332         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51334 2011-05-23  Bruno Haible  <bruno@clisp.org>
51336         memcoll: Move AC_LIBOBJ invocations to module description.
51337         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51338         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51340 2011-05-23  Bruno Haible  <bruno@clisp.org>
51342         memcasecmp: Move AC_LIBOBJ invocations to module description.
51343         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51344         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51346 2011-05-23  Bruno Haible  <bruno@clisp.org>
51348         crypto/md5: Move AC_LIBOBJ invocations to module description.
51349         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51350         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51352 2011-05-23  Bruno Haible  <bruno@clisp.org>
51354         crypto/md4: Move AC_LIBOBJ invocations to module description.
51355         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51356         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51358 2011-05-23  Bruno Haible  <bruno@clisp.org>
51360         crypto/md2: Move AC_LIBOBJ invocations to module description.
51361         * m4/md2.m4: Remove file.
51362         * modules/crypto/md2 (Files): Remove it.
51363         (configure.ac): Remove gl_MD2 call.
51364         (Makefile.am): Augment lib_SOURCES.
51366 2011-05-23  Bruno Haible  <bruno@clisp.org>
51368         long-options: Move AC_LIBOBJ invocations to module description.
51369         * m4/long-options.m4: Remove file.
51370         * modules/long-options (Files): Remove it.
51371         (configure.ac): Remove gl_LONG_OPTIONS call.
51372         (Makefile.am): Augment lib_SOURCES.
51374 2011-05-23  Bruno Haible  <bruno@clisp.org>
51376         i-ring: Move AC_LIBOBJ invocations to module description.
51377         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51378         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51380 2011-05-23  Bruno Haible  <bruno@clisp.org>
51382         idcache: Move AC_LIBOBJ invocations to module description.
51383         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51384         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51386 2011-05-23  Bruno Haible  <bruno@clisp.org>
51388         human: Move AC_LIBOBJ invocations to module description.
51389         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51390         * modules/human (Makefile.am): Augment lib_SOURCES.
51392 2011-05-23  Bruno Haible  <bruno@clisp.org>
51394         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51395         * m4/hmac-sha1.m4: Remove file.
51396         * modules/crypto/hmac-sha1 (Files): Remove it.
51397         (configure.ac): Remove gl_HMAC_SHA1 call.
51398         (Makefile.am): Augment lib_SOURCES.
51400 2011-05-23  Bruno Haible  <bruno@clisp.org>
51402         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51403         * m4/hmac-md5.m4: Remove file.
51404         * modules/crypto/hmac-md5 (Files): Remove it.
51405         (configure.ac): Remove gl_HMAC_MD5 call.
51406         (Makefile.am): Augment lib_SOURCES.
51408 2011-05-23  Bruno Haible  <bruno@clisp.org>
51410         hash: Move AC_LIBOBJ invocations to module description.
51411         * m4/hash.m4: Remove file.
51412         * modules/hash (Files): Remove it.
51413         (configure.ac): Remove gl_HASH call.
51414         (Makefile.am): Augment lib_SOURCES.
51416 2011-05-23  Bruno Haible  <bruno@clisp.org>
51418         hard-locale: Move AC_LIBOBJ invocations to module description.
51419         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51420         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51422 2011-05-23  Bruno Haible  <bruno@clisp.org>
51424         getugroups: Move AC_LIBOBJ invocations to module description.
51425         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51426         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51428 2011-05-23  Bruno Haible  <bruno@clisp.org>
51430         gettime: Move AC_LIBOBJ invocations to module description.
51431         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51432         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51434 2011-05-23  Bruno Haible  <bruno@clisp.org>
51436         getndelim2: Move AC_LIBOBJ invocations to module description.
51437         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51438         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51440 2011-05-23  Bruno Haible  <bruno@clisp.org>
51442         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51443         * m4/gc-pbkdf2-sha1.m4: Remove file.
51444         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51445         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51446         (Makefile.am): Augment lib_SOURCES.
51448 2011-05-23  Bruno Haible  <bruno@clisp.org>
51450         fts: Move AC_LIBOBJ invocations to module description.
51451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51452         * modules/fts (configure.ac): ... to here.
51454 2011-05-23  Bruno Haible  <bruno@clisp.org>
51456         file-type: Move AC_LIBOBJ invocations to module description.
51457         * m4/file-type.m4: Remove file.
51458         * modules/file-type (Files): Remove it.
51459         (configure.ac): Remove gl_FILE_TYPE call.
51460         (Makefile.am): Augment lib_SOURCES.
51462 2011-05-23  Bruno Haible  <bruno@clisp.org>
51464         filenamecat*: Respect rules for use of AC_LIBOBJ.
51465         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51466         Remove AC_LIBOBJ invocation.
51467         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51468         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51470 2011-05-23  Bruno Haible  <bruno@clisp.org>
51472         filemode: Move AC_LIBOBJ invocations to module description.
51473         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51474         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51476 2011-05-23  Bruno Haible  <bruno@clisp.org>
51478         openat-safer: Move AC_LIBOBJ invocations to module description.
51479         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51480         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51482 2011-05-23  Bruno Haible  <bruno@clisp.org>
51484         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51485         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51486         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51488 2011-05-23  Bruno Haible  <bruno@clisp.org>
51490         exclude: Move AC_LIBOBJ invocations to module description.
51491         * m4/exclude.m4: Remove file.
51492         * modules/exclude (Files): Remove it.
51493         (configure.ac): Remove gl_EXCLUDE call.
51494         (Makefile.am): Augment lib_SOURCES.
51496 2011-05-23  Bruno Haible  <bruno@clisp.org>
51498         dirname*: Respect rules for use of AC_LIBOBJ.
51499         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51500         invocations.
51501         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51502         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51504 2011-05-23  Bruno Haible  <bruno@clisp.org>
51506         dirent-safer: Move AC_LIBOBJ invocations to module description.
51507         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51508         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51510 2011-05-23  Bruno Haible  <bruno@clisp.org>
51512         crypto/des: Move AC_LIBOBJ invocations to module description.
51513         * m4/des.m4: Remove file.
51514         * modules/crypto/des (Files): Remove it.
51515         (configure.ac): Remove gl_DES call.
51516         (Makefile.am): Augment lib_SOURCES.
51518 2011-05-23  Bruno Haible  <bruno@clisp.org>
51520         cycle-check: Move AC_LIBOBJ invocations to module description.
51521         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51522         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51524 2011-05-23  Bruno Haible  <bruno@clisp.org>
51526         c-strtold: Move AC_LIBOBJ invocations to module description.
51527         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51528         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51530 2011-05-23  Bruno Haible  <bruno@clisp.org>
51532         c-strtod: Move AC_LIBOBJ invocations to module description.
51533         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51534         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51536 2011-05-23  Bruno Haible  <bruno@clisp.org>
51538         crc: Move AC_LIBOBJ invocations to module description.
51539         * m4/crc.m4: Remove file.
51540         * modules/crc (Files): Remove it.
51541         (configure.ac): Remove gl_CRC call.
51542         (Makefile.am): Augment lib_SOURCES.
51544 2011-05-23  Bruno Haible  <bruno@clisp.org>
51546         close-stream: Move AC_LIBOBJ invocations to module description.
51547         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51548         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51550 2011-05-23  Bruno Haible  <bruno@clisp.org>
51552         closeout: Move AC_LIBOBJ invocations to module description.
51553         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51554         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51556 2011-05-23  Bruno Haible  <bruno@clisp.org>
51558         closein: Move AC_LIBOBJ invocations to module description.
51559         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51560         * modules/closein (Makefile.am): Augment lib_SOURCES.
51562 2011-05-23  Bruno Haible  <bruno@clisp.org>
51564         cloexec: Move AC_LIBOBJ invocations to module description.
51565         * m4/cloexec.m4: Remove file.
51566         * modules/cloexec (Files): Remove it.
51567         (configure.ac): Remove gl_CLOEXEC call.
51568         (Makefile.am): Augment lib_SOURCES.
51570 2011-05-23  Bruno Haible  <bruno@clisp.org>
51572         check-version: Move AC_LIBOBJ invocations to module description.
51573         * m4/check-version.m4: Remove file.
51574         * modules/check-version (Files): Remove it.
51575         (configure.ac): Remove gl_CHECK_VERSION call.
51576         (Makefile.am): Augment lib_SOURCES.
51578 2011-05-23  Bruno Haible  <bruno@clisp.org>
51580         chdir-safer: Move AC_LIBOBJ invocations to module description.
51581         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51582         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51584 2011-05-23  Bruno Haible  <bruno@clisp.org>
51586         canonicalize: Move AC_LIBOBJ invocations to module description.
51587         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51588         AC_LIBOBJ invocation.
51589         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51591 2011-05-23  Bruno Haible  <bruno@clisp.org>
51593         canon-host: Move AC_LIBOBJ invocations to module description.
51594         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51595         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51596         instead of gl_CANON_HOST.
51597         (Makefile.am): Augment lib_SOURCES.
51599 2011-05-23  Bruno Haible  <bruno@clisp.org>
51601         backupfile: Move AC_LIBOBJ invocations to module description.
51602         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51603         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51605 2011-05-23  Bruno Haible  <bruno@clisp.org>
51607         argmatch: Move AC_LIBOBJ invocations to module description.
51608         * m4/argmatch.m4: Remove file.
51609         * modules/argmatch (Files): Remove it.
51610         (configure.ac): Remove gl_ARGMATCH call.
51611         (Makefile.am): Augment lib_SOURCES.
51613 2011-05-23  Bruno Haible  <bruno@clisp.org>
51615         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51616         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51617         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51619 2011-05-23  Bruno Haible  <bruno@clisp.org>
51621         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51622         * m4/arcfour.m4: Remove file.
51623         * modules/crypto/arcfour (Files): Remove it.
51624         (configure.ac): Remove gl_ARCFOUR call.
51625         (Makefile.am): Augment lib_SOURCES.
51627 2011-05-22  Bruno Haible  <bruno@clisp.org>
51629         write: Move AC_LIBOBJ invocations to module description.
51630         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51631         * modules/write (configure.ac): ... to here.
51633 2011-05-22  Bruno Haible  <bruno@clisp.org>
51635         wmemset: Move AC_LIBOBJ invocations to module description.
51636         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51637         here...
51638         * modules/wmemset (configure.ac): ... to here.
51640 2011-05-22  Bruno Haible  <bruno@clisp.org>
51642         wmemmove: Move AC_LIBOBJ invocations to module description.
51643         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51644         here...
51645         * modules/wmemmove (configure.ac): ... to here.
51647 2011-05-22  Bruno Haible  <bruno@clisp.org>
51649         wmemcpy: Move AC_LIBOBJ invocations to module description.
51650         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51651         here...
51652         * modules/wmemcpy (configure.ac): ... to here.
51654 2011-05-22  Bruno Haible  <bruno@clisp.org>
51656         wmemcmp: Move AC_LIBOBJ invocations to module description.
51657         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51658         here...
51659         * modules/wmemcmp (configure.ac): ... to here.
51661 2011-05-22  Bruno Haible  <bruno@clisp.org>
51663         wmemchr: Move AC_LIBOBJ invocations to module description.
51664         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51665         here...
51666         * modules/wmemchr (configure.ac): ... to here.
51668 2011-05-22  Bruno Haible  <bruno@clisp.org>
51670         wcswidth: Move AC_LIBOBJ invocations to module description.
51671         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51672         here...
51673         * modules/wcswidth (configure.ac): ... to here.
51675 2011-05-22  Bruno Haible  <bruno@clisp.org>
51677         wcwidth: Respect rules for use of AC_LIBOBJ.
51678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51679         invocation from here...
51680         * modules/wcwidth (configure.ac): ... to here.
51681         (Depends-on): Update conditions.
51683 2011-05-22  Bruno Haible  <bruno@clisp.org>
51685         wctype: Move AC_LIBOBJ invocations to module description.
51686         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51687         invocation from here...
51688         * modules/wctype (configure.ac): ... to here.
51689         (Depends-on): Update conditions.
51691 2011-05-22  Bruno Haible  <bruno@clisp.org>
51693         wctrans: Move AC_LIBOBJ invocations to module description.
51694         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51695         invocation from here...
51696         * modules/wctrans (configure.ac): ... to here.
51698 2011-05-22  Bruno Haible  <bruno@clisp.org>
51700         wctomb: Move AC_LIBOBJ invocations to module description.
51701         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51702         invocations from here...
51703         * modules/wctomb (configure.ac): ... to here.
51705 2011-05-22  Bruno Haible  <bruno@clisp.org>
51707         wctob: Move AC_LIBOBJ invocations to module description.
51708         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51709         gl_PREREQ_WCTOB invocations from here...
51710         * modules/wctob (configure.ac): ... to here.
51711         (Depends-on): Update conditions.
51713 2011-05-22  Bruno Haible  <bruno@clisp.org>
51715         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51716         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51717         here...
51718         * modules/wcsxfrm (configure.ac): ... to here.
51720 2011-05-22  Bruno Haible  <bruno@clisp.org>
51722         wcstok: Move AC_LIBOBJ invocations to module description.
51723         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51724         * modules/wcstok (configure.ac): ... to here.
51726 2011-05-22  Bruno Haible  <bruno@clisp.org>
51728         wcsstr: Move AC_LIBOBJ invocations to module description.
51729         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51730         * modules/wcsstr (configure.ac): ... to here.
51732 2011-05-22  Bruno Haible  <bruno@clisp.org>
51734         wcsspn: Move AC_LIBOBJ invocations to module description.
51735         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51736         * modules/wcsspn (configure.ac): ... to here.
51738 2011-05-22  Bruno Haible  <bruno@clisp.org>
51740         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51741         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51742         gl_PREREQ_WCSRTOMBS invocations from here...
51743         * modules/wcsrtombs (configure.ac): ... to here.
51745 2011-05-22  Bruno Haible  <bruno@clisp.org>
51747         wcsrchr: Move AC_LIBOBJ invocations to module description.
51748         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51749         here...
51750         * modules/wcsrchr (configure.ac): ... to here.
51752 2011-05-22  Bruno Haible  <bruno@clisp.org>
51754         wcspbrk: Move AC_LIBOBJ invocations to module description.
51755         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51756         here...
51757         * modules/wcspbrk (configure.ac): ... to here.
51759 2011-05-22  Bruno Haible  <bruno@clisp.org>
51761         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51762         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51763         gl_PREREQ_WCSNRTOMBS invocations from here...
51764         * modules/wcsnrtombs (configure.ac): ... to here.
51766 2011-05-22  Bruno Haible  <bruno@clisp.org>
51768         wcsnlen: Move AC_LIBOBJ invocations to module description.
51769         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51770         here...
51771         * modules/wcsnlen (configure.ac): ... to here.
51773 2011-05-22  Bruno Haible  <bruno@clisp.org>
51775         wcsncpy: Move AC_LIBOBJ invocations to module description.
51776         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51777         here...
51778         * modules/wcsncpy (configure.ac): ... to here.
51780 2011-05-22  Bruno Haible  <bruno@clisp.org>
51782         wcsncmp: Move AC_LIBOBJ invocations to module description.
51783         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51784         here...
51785         * modules/wcsncmp (configure.ac): ... to here.
51787 2011-05-22  Bruno Haible  <bruno@clisp.org>
51789         wcsncat: Move AC_LIBOBJ invocations to module description.
51790         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51791         here...
51792         * modules/wcsncat (configure.ac): ... to here.
51794 2011-05-22  Bruno Haible  <bruno@clisp.org>
51796         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51797         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51798         from here...
51799         * modules/wcsncasecmp (configure.ac): ... to here.
51801 2011-05-22  Bruno Haible  <bruno@clisp.org>
51803         wcslen: Move AC_LIBOBJ invocations to module description.
51804         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51805         * modules/wcslen (configure.ac): ... to here.
51807 2011-05-22  Bruno Haible  <bruno@clisp.org>
51809         wcsdup: Move AC_LIBOBJ invocations to module description.
51810         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51811         * modules/wcsdup (configure.ac): ... to here.
51813 2011-05-22  Bruno Haible  <bruno@clisp.org>
51815         wcscspn: Move AC_LIBOBJ invocations to module description.
51816         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51817         here...
51818         * modules/wcscspn (configure.ac): ... to here.
51820 2011-05-22  Bruno Haible  <bruno@clisp.org>
51822         wcscpy: Move AC_LIBOBJ invocations to module description.
51823         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51824         * modules/wcscpy (configure.ac): ... to here.
51826 2011-05-22  Bruno Haible  <bruno@clisp.org>
51828         wcscoll: Move AC_LIBOBJ invocations to module description.
51829         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51830         here...
51831         * modules/wcscoll (configure.ac): ... to here.
51833 2011-05-22  Bruno Haible  <bruno@clisp.org>
51835         wcscmp: Move AC_LIBOBJ invocations to module description.
51836         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51837         * modules/wcscmp (configure.ac): ... to here.
51839 2011-05-22  Bruno Haible  <bruno@clisp.org>
51841         wcschr: Move AC_LIBOBJ invocations to module description.
51842         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51843         * modules/wcschr (configure.ac): ... to here.
51845 2011-05-22  Bruno Haible  <bruno@clisp.org>
51847         wcscat: Move AC_LIBOBJ invocations to module description.
51848         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51849         * modules/wcscat (configure.ac): ... to here.
51851 2011-05-22  Bruno Haible  <bruno@clisp.org>
51853         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51854         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51855         here...
51856         * modules/wcscasecmp (configure.ac): ... to here.
51858 2011-05-22  Bruno Haible  <bruno@clisp.org>
51860         wcrtomb: Move AC_LIBOBJ invocations to module description.
51861         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51862         invocations from here...
51863         * modules/wcrtomb (configure.ac): ... to here.
51865 2011-05-22  Bruno Haible  <bruno@clisp.org>
51867         wcpncpy: Move AC_LIBOBJ invocations to module description.
51868         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51869         here...
51870         * modules/wcpncpy (configure.ac): ... to here.
51872 2011-05-22  Bruno Haible  <bruno@clisp.org>
51874         wcpcpy: Move AC_LIBOBJ invocations to module description.
51875         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51876         * modules/wcpcpy (configure.ac): ... to here.
51878 2011-05-22  Bruno Haible  <bruno@clisp.org>
51880         waitpid: Move AC_LIBOBJ invocations to module description.
51881         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51882         invocation from here...
51883         * modules/waitpid (configure.ac): ... to here.
51885 2011-05-22  Bruno Haible  <bruno@clisp.org>
51887         utimensat: Move AC_LIBOBJ invocations to module description.
51888         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51889         here...
51890         * modules/utimensat (configure.ac): ... to here.
51892 2011-05-22  Bruno Haible  <bruno@clisp.org>
51894         usleep: Move AC_LIBOBJ invocations to module description.
51895         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51896         here...
51897         * modules/usleep (configure.ac): ... to here.
51899 2011-05-22  Bruno Haible  <bruno@clisp.org>
51901         unlockpt: Move AC_LIBOBJ invocations to module description.
51902         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51903         gl_PREREQ_UNLOCKPT invocations from here...
51904         * modules/unlockpt (configure.ac): ... to here.
51906 2011-05-22  Bruno Haible  <bruno@clisp.org>
51908         unlink: Respect rules for use of AC_LIBOBJ.
51909         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51910         * modules/unlink (configure.ac): ... to here.
51912 2011-05-22  Bruno Haible  <bruno@clisp.org>
51914         uname: Move AC_LIBOBJ invocations to module description.
51915         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51916         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51917         here...
51918         * modules/uname (configure.ac): ... to here.
51920 2011-05-22  Bruno Haible  <bruno@clisp.org>
51922         ttyname_r: Move AC_LIBOBJ invocations to module description.
51923         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51924         gl_PREREQ_TTYNAME_R invocations from here...
51925         * modules/ttyname_r (configure.ac): ... to here.
51927 2011-05-22  Bruno Haible  <bruno@clisp.org>
51929         tsearch: Move AC_LIBOBJ invocations to module description.
51930         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51931         invocations from here...
51932         * modules/tsearch (configure.ac): ... to here.
51934 2011-05-22  Bruno Haible  <bruno@clisp.org>
51936         towctrans: Move AC_LIBOBJ invocations to module description.
51937         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51938         AC_LIBOBJ invocation from here...
51939         * modules/towctrans (configure.ac): ... to here.
51941 2011-05-22  Bruno Haible  <bruno@clisp.org>
51943         tmpfile: Move AC_LIBOBJ invocations to module description.
51944         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51945         invocations from here...
51946         * modules/tmpfile (configure.ac): ... to here.
51948 2011-05-22  Bruno Haible  <bruno@clisp.org>
51950         times: Move AC_LIBOBJ invocations to module description.
51951         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51952         * modules/times (configure.ac): ... to here.
51954 2011-05-22  Bruno Haible  <bruno@clisp.org>
51956         time_r: Move AC_LIBOBJ invocations to module description.
51957         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51958         invocations from here...
51959         * modules/time_r (configure.ac): ... to here.
51961 2011-05-22  Bruno Haible  <bruno@clisp.org>
51963         timegm: Move AC_LIBOBJ invocations to module description.
51964         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51965         invocations from here...
51966         * modules/timegm (configure.ac): ... to here.
51968 2011-05-22  Bruno Haible  <bruno@clisp.org>
51970         tcgetsid: Move AC_LIBOBJ invocations to module description.
51971         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51972         and gl_PREREQ_TCGETSID invocations from here...
51973         * modules/tcgetsid (configure.ac): ... to here.
51974         (Depends-on): Update conditions.
51976 2011-05-22  Bruno Haible  <bruno@clisp.org>
51978         symlinkat: Move AC_LIBOBJ invocations to module description.
51979         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51980         here...
51981         * modules/symlinkat (configure.ac): ... to here.
51983 2011-05-22  Bruno Haible  <bruno@clisp.org>
51985         symlink: Move AC_LIBOBJ invocations to module description.
51986         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51987         here...
51988         * modules/symlink (configure.ac): ... to here.
51990 2011-05-22  Bruno Haible  <bruno@clisp.org>
51992         strverscmp: Move AC_LIBOBJ invocations to module description.
51993         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51995         from here...
51996         * modules/strverscmp (configure.ac): ... to here.
51998 2011-05-22  Bruno Haible  <bruno@clisp.org>
52000         strtok_r: Move AC_LIBOBJ invocations to module description.
52001         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
52002         and gl_PREREQ_STRTOK_R invocations from here...
52003         * modules/strtok_r (configure.ac): ... to here.
52004         (Depends-on): Update conditions.
52006 2011-05-22  Bruno Haible  <bruno@clisp.org>
52008         strtoumax: Move AC_LIBOBJ invocations to module description.
52009         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
52010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
52011         from here...
52012         * modules/strtoumax (configure.ac): ... to here.
52014 2011-05-22  Bruno Haible  <bruno@clisp.org>
52016         strtoimax: Move AC_LIBOBJ invocations to module description.
52017         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
52018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
52019         from here...
52020         * modules/strtoimax (configure.ac): ... to here.
52022 2011-05-22  Bruno Haible  <bruno@clisp.org>
52024         strtoull: Move AC_LIBOBJ invocations to module description.
52025         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
52026         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
52027         from here...
52028         * modules/strtoull (configure.ac): ... to here.
52030 2011-05-22  Bruno Haible  <bruno@clisp.org>
52032         strtoll: Move AC_LIBOBJ invocations to module description.
52033         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
52034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
52035         here...
52036         * modules/strtoll (configure.ac): ... to here.
52038 2011-05-22  Bruno Haible  <bruno@clisp.org>
52040         strtoul: Move AC_LIBOBJ invocations to module description.
52041         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
52042         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52043         * modules/strtoul (configure.ac): ... to here.
52045 2011-05-22  Bruno Haible  <bruno@clisp.org>
52047         strtol: Move AC_LIBOBJ invocations to module description.
52048         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
52049         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
52050         * modules/strtol (configure.ac): ... to here.
52052 2011-05-22  Bruno Haible  <bruno@clisp.org>
52054         strtod: Move AC_LIBOBJ invocations to module description.
52055         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
52056         invocations from here...
52057         * modules/strtod (configure.ac): ... to here.
52059 2011-05-22  Bruno Haible  <bruno@clisp.org>
52061         strstr*: Move AC_LIBOBJ invocations to module description.
52062         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
52063         invocations from here...
52064         * modules/strstr-simple (configure.ac): ... to here.
52065         * modules/strstr (configure.ac): ... and here.
52067 2011-05-22  Bruno Haible  <bruno@clisp.org>
52069         strsignal: Move AC_LIBOBJ invocations to module description.
52070         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
52071         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
52072         * modules/strsignal (configure.ac): ... to here.
52073         (Depends-on): Update conditions.
52075 2011-05-22  Bruno Haible  <bruno@clisp.org>
52077         strsep: Move AC_LIBOBJ invocations to module description.
52078         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
52079         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
52080         here...
52081         * modules/strsep (configure.ac): ... to here.
52083 2011-05-22  Bruno Haible  <bruno@clisp.org>
52085         strptime: Move AC_LIBOBJ invocations to module description.
52086         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
52087         gl_PREREQ_STRPTIME invocations from here...
52088         * modules/strptime (configure.ac): ... to here.
52090 2011-05-22  Bruno Haible  <bruno@clisp.org>
52092         strpbrk: Move AC_LIBOBJ invocations to module description.
52093         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
52094         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
52095         here...
52096         * modules/strpbrk (configure.ac): ... to here.
52098 2011-05-22  Bruno Haible  <bruno@clisp.org>
52100         strnlen: Move AC_LIBOBJ invocations to module description.
52101         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
52102         invocations from here...
52103         * modules/strnlen (configure.ac): ... to here.
52105 2011-05-22  Bruno Haible  <bruno@clisp.org>
52107         strndup: Move AC_LIBOBJ invocations to module description.
52108         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
52109         invocations from here...
52110         * modules/strndup (configure.ac): ... to here.
52111         (Depends-on): Update conditions.
52113 2011-05-22  Bruno Haible  <bruno@clisp.org>
52115         strncat: Move AC_LIBOBJ invocations to module description.
52116         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
52117         invocations from here...
52118         * modules/strncat (configure.ac): ... to here.
52120 2011-05-22  Bruno Haible  <bruno@clisp.org>
52122         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
52123         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
52124         invocations from here...
52125         * modules/strdup (configure.ac): ... to here.
52126         * modules/strdup-posix (configure.ac): ... and here.
52128 2011-05-22  Bruno Haible  <bruno@clisp.org>
52130         strcspn: Move AC_LIBOBJ invocations to module description.
52131         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
52132         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
52133         here...
52134         * modules/strcspn (configure.ac): ... to here.
52136 2011-05-22  Bruno Haible  <bruno@clisp.org>
52138         strchrnul: Move AC_LIBOBJ invocations to module description.
52139         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
52140         gl_PREREQ_STRCHRNUL invocations from here...
52141         * modules/strchrnul (configure.ac): ... to here.
52143 2011-05-22  Bruno Haible  <bruno@clisp.org>
52145         strcasestr*: Move AC_LIBOBJ invocations to module description.
52146         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
52147         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
52148         * modules/strcasestr-simple (configure.ac): ... to here.
52149         * modules/strcasestr (configure.ac): ... and here.
52151 2011-05-22  Bruno Haible  <bruno@clisp.org>
52153         strcase: Move AC_LIBOBJ invocations to module description.
52154         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
52155         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
52156         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
52157         gl_PREREQ_STRNCASECMP invocations from here...
52158         * modules/strcase (configure.ac): ... to here.
52160 2011-05-22  Bruno Haible  <bruno@clisp.org>
52162         stpncpy: Move AC_LIBOBJ invocations to module description.
52163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
52164         here...
52165         * modules/stpncpy (configure.ac): ... to here.
52167 2011-05-22  Bruno Haible  <bruno@clisp.org>
52169         stpcpy: Move AC_LIBOBJ invocations to module description.
52170         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
52171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
52172         here...
52173         * modules/stpcpy (configure.ac): ... to here.
52175 2011-05-21  Bruno Haible  <bruno@clisp.org>
52177         stat: Move AC_LIBOBJ invocations to module description.
52178         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
52179         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
52180         here...
52181         * modules/stat (configure.ac): ... to here.
52183 2011-05-21  Bruno Haible  <bruno@clisp.org>
52185         sleep: Move AC_LIBOBJ invocations to module description.
52186         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
52187         * modules/sleep (configure.ac): ... to here.
52189 2011-05-21  Bruno Haible  <bruno@clisp.org>
52191         signbit: Move AC_LIBOBJ invocations to module description.
52192         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
52193         * modules/signbit (configure.ac): ... to here.
52195 2011-05-21  Bruno Haible  <bruno@clisp.org>
52197         sigprocmask: Move AC_LIBOBJ invocations to module description.
52198         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
52199         gl_PREREQ_SIGPROMASK invocations from here...
52200         * modules/sigprocmask (configure.ac): ... to here.
52202 2011-05-21  Bruno Haible  <bruno@clisp.org>
52204         sigaction: Move AC_LIBOBJ invocations to module description.
52205         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
52206         gl_PREREQ_SIGACTION invocations from here...
52207         * modules/sigaction (configure.ac): ... to here.
52209 2011-05-21  Bruno Haible  <bruno@clisp.org>
52211         sig2str: Move AC_LIBOBJ invocations to module description.
52212         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
52213         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
52214         here...
52215         * modules/sig2str (configure.ac): ... to here.
52217 2011-05-21  Bruno Haible  <bruno@clisp.org>
52219         setlocale: Move AC_LIBOBJ invocations to module description.
52220         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
52221         gl_PREREQ_SETLOCALE invocations from here...
52222         * modules/setlocale (configure.ac): ... to here.
52224 2011-05-21  Bruno Haible  <bruno@clisp.org>
52226         unsetenv: Move AC_LIBOBJ invocations to module description.
52227         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
52228         and gl_PREREQ_UNSETENV invocations from here...
52229         * modules/unsetenv (configure.ac): ... to here.
52230         (Depends-on): Update.
52232 2011-05-21  Bruno Haible  <bruno@clisp.org>
52234         setenv: Move AC_LIBOBJ invocations to module description.
52235         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
52236         here...
52237         * modules/setenv (configure.ac): ... to here.
52239 2011-05-21  Bruno Haible  <bruno@clisp.org>
52241         selinux-h: Move AC_LIBOBJ invocations to module description.
52242         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
52243         AC_LIBOBJ invocation from here...
52244         * modules/selinux-h (configure.ac): ... to here.
52246 2011-05-21  Bruno Haible  <bruno@clisp.org>
52248         select: Respect rules for use of AC_LIBOBJ.
52249         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
52250         here...
52251         * modules/select (configure.ac): ... to here.
52253 2011-05-21  Bruno Haible  <bruno@clisp.org>
52255         scandir: Move AC_LIBOBJ invocations to module description.
52256         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52257         invocations from here...
52258         * modules/scandir (configure.ac): ... to here.
52260 2011-05-21  Bruno Haible  <bruno@clisp.org>
52262         rpmatch: Move AC_LIBOBJ invocations to module description.
52263         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52264         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52265         here...
52266         * modules/rpmatch (configure.ac): ... to here.
52268 2011-05-21  Bruno Haible  <bruno@clisp.org>
52270         rmdir: Respect rules for use of AC_LIBOBJ.
52271         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52272         * modules/rmdir (configure.ac): ... to here.
52274 2011-05-21  Bruno Haible  <bruno@clisp.org>
52276         renameat: Move AC_LIBOBJ invocations to module description.
52277         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52278         here...
52279         * modules/renameat (configure.ac): ... to here.
52281 2011-05-21  Bruno Haible  <bruno@clisp.org>
52283         rename: Respect rules for use of AC_LIBOBJ.
52284         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52285         here...
52286         * modules/rename (configure.ac): ... to here.
52288 2011-05-21  Bruno Haible  <bruno@clisp.org>
52290         remove: Move AC_LIBOBJ invocations to module description.
52291         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52292         here...
52293         * modules/remove (configure.ac): ... to here.
52295 2011-05-21  Bruno Haible  <bruno@clisp.org>
52297         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52298         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52299         macro.
52300         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52301         * modules/relocatable-lib (configure.ac): ... to here.
52302         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52303         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52305 2011-05-21  Bruno Haible  <bruno@clisp.org>
52307         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52308         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52309         here...
52310         * modules/relocatable-prog (configure.ac): ... to here.
52312 2011-05-21  Bruno Haible  <bruno@clisp.org>
52314         regex: Move AC_LIBOBJ invocations to module description.
52315         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52316         invocations from here...
52317         * modules/regex (configure.ac): ... to here.
52319 2011-05-21  Bruno Haible  <bruno@clisp.org>
52321         realloc-*: Move AC_LIBOBJ invocations to module description.
52322         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52323         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52324         AC_LIBOBJ invocations from here...
52325         * modules/realloc-gnu (configure.ac): ... to here.
52326         * modules/realloc-posix (configure.ac): ... and here.
52328 2011-05-21  Bruno Haible  <bruno@clisp.org>
52330         readutmp: Move AC_LIBOBJ invocations to module description.
52331         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52332         * modules/readutmp (configure.ac): ... to here.
52334 2011-05-21  Bruno Haible  <bruno@clisp.org>
52336         readlinkat: Move AC_LIBOBJ invocations to module description.
52337         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52338         here...
52339         * modules/readlinkat (configure.ac): ... to here.
52341 2011-05-21  Bruno Haible  <bruno@clisp.org>
52343         readlink: Move AC_LIBOBJ invocations to module description.
52344         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52345         gl_PREREQ_READLINK invocations from here...
52346         * modules/readlink (configure.ac): ... to here.
52348 2011-05-21  Bruno Haible  <bruno@clisp.org>
52350         readline: Move AC_LIBOBJ invocations to module description.
52351         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52352         gl_PREREQ_READLINE invocations from here...
52353         * modules/readline (configure.ac): ... to here.
52355 2011-05-21  Bruno Haible  <bruno@clisp.org>
52357         read: Move AC_LIBOBJ invocations to module description.
52358         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52359         * modules/read (configure.ac): ... to here.
52361 2011-05-21  Bruno Haible  <bruno@clisp.org>
52363         rawmemchr: Move AC_LIBOBJ invocations to module description.
52364         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52366         from here...
52367         * modules/rawmemchr (configure.ac): ... to here.
52369 2011-05-21  Bruno Haible  <bruno@clisp.org>
52371         random_r: Move AC_LIBOBJ invocations to module description.
52372         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52373         gl_PREREQ_RANDOM_R invocations from here...
52374         * modules/random_r (configure.ac): ... to here.
52376 2011-05-21  Bruno Haible  <bruno@clisp.org>
52378         pwrite: Move AC_LIBOBJ invocations to module description.
52379         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52380         * modules/pwrite (configure.ac): ... to here.
52382 2011-05-21  Bruno Haible  <bruno@clisp.org>
52384         putenv: Move AC_LIBOBJ invocations to module description.
52385         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52386         * modules/putenv (configure.ac): ... to here.
52388 2011-05-21  Bruno Haible  <bruno@clisp.org>
52390         login_tty: Move AC_LIBOBJ invocations to module description.
52391         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52392         * modules/login_tty (configure.ac): ... to here.
52394 2011-05-21  Bruno Haible  <bruno@clisp.org>
52396         openpty: Move AC_LIBOBJ invocations to module description.
52397         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52398         * modules/openpty (configure.ac): ... to here.
52400 2011-05-21  Bruno Haible  <bruno@clisp.org>
52402         forkpty: Move AC_LIBOBJ invocations to module description.
52403         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52404         * modules/forkpty (configure.ac): ... to here.
52406 2011-05-21  Bruno Haible  <bruno@clisp.org>
52408         ptsname: Move AC_LIBOBJ invocations to module description.
52409         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52410         invocations from here...
52411         * modules/ptsname (configure.ac): ... to here.
52413 2011-05-21  Bruno Haible  <bruno@clisp.org>
52415         pread: Move AC_LIBOBJ invocations to module description.
52416         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52417         * modules/pread (configure.ac): ... to here.
52419 2011-05-21  Bruno Haible  <bruno@clisp.org>
52421         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52422         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52423         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52424         * modules/posix_spawn (configure.ac): ... to here.
52425         * modules/posix_spawnp (configure.ac): ... and here.
52427 2011-05-21  Bruno Haible  <bruno@clisp.org>
52429         popen: Move AC_LIBOBJ invocations to module description.
52430         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52431         invocations from here...
52432         * modules/popen (configure.ac): ... to here.
52434 2011-05-21  Bruno Haible  <bruno@clisp.org>
52436         poll: Move AC_LIBOBJ invocations to module description.
52437         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52438         invocations from here...
52439         * modules/poll (configure.ac): ... to here.
52441 2011-05-21  Bruno Haible  <bruno@clisp.org>
52443         pipe-posix: Move AC_LIBOBJ invocations to module description.
52444         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52445         * modules/pipe-posix (configure.ac): ... to here.
52447 2011-05-21  Bruno Haible  <bruno@clisp.org>
52449         openat: Respect rules for use of AC_LIBOBJ.
52450         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52451         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52452         * modules/openat (configure.ac): ... to here.
52454 2011-05-21  Bruno Haible  <bruno@clisp.org>
52456         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52457         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52458         invocation from here...
52459         * modules/obstack-printf (configure.ac): ... to here.
52460         * modules/obstack-printf-posix (configure.ac): ... and here.
52462 2011-05-21  Bruno Haible  <bruno@clisp.org>
52464         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52465         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52466         from here...
52467         * modules/nl_langinfo (configure.ac): ... to here.
52469 2011-05-21  Bruno Haible  <bruno@clisp.org>
52471         nanosleep: Move AC_LIBOBJ invocations to module description.
52472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52473         gl_PREREQ_NANOSLEEP invocations from here...
52474         * modules/nanosleep (configure.ac): ... to here.
52476 2011-05-21  Bruno Haible  <bruno@clisp.org>
52478         mountlist: Move AC_LIBOBJ invocations to module description.
52479         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52480         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52481         * modules/mountlist (configure.ac): ... to here.
52483 2011-05-21  Bruno Haible  <bruno@clisp.org>
52485         mktime: Respect rules for use of AC_LIBOBJ.
52486         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52487         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52488         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52489         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52490         * modules/mktime (configure.ac): ... to here.
52491         * modules/mktime-internal (configure.ac): ... and here.
52492         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52494 2011-05-21  Bruno Haible  <bruno@clisp.org>
52496         mkstemps: Move AC_LIBOBJ invocations to module description.
52497         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52498         here...
52499         * modules/mkstemps (configure.ac): ... to here.
52501 2011-05-21  Bruno Haible  <bruno@clisp.org>
52503         mkstemp: Move AC_LIBOBJ invocations to module description.
52504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52505         gl_PREREQ_MKSTEMP invocations from here...
52506         * modules/mkstemp (configure.ac): ... to here.
52508 2011-05-21  Bruno Haible  <bruno@clisp.org>
52510         mkostemps: Move AC_LIBOBJ invocations to module description.
52511         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52512         here...
52513         * modules/mkostemps (configure.ac): ... to here.
52515 2011-05-21  Bruno Haible  <bruno@clisp.org>
52517         mkostemp: Move AC_LIBOBJ invocations to module description.
52518         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52519         gl_PREREQ_MKOSTEMP invocations from here...
52520         * modules/mkostemp (configure.ac): ... to here.
52522 2011-05-21  Bruno Haible  <bruno@clisp.org>
52524         mknod: Move AC_LIBOBJ invocations to module description.
52525         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52526         * modules/mknod (configure.ac): ... to here.
52528 2011-05-21  Bruno Haible  <bruno@clisp.org>
52530         mkfifoat: Move AC_LIBOBJ invocations to module description.
52531         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52532         here...
52533         * modules/mkfifoat (configure.ac): ... to here.
52535 2011-05-21  Bruno Haible  <bruno@clisp.org>
52537         mkfifo: Respect rules for use of AC_LIBOBJ.
52538         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52539         here...
52540         * modules/mkfifo (configure.ac): ... to here.
52542 2011-05-21  Bruno Haible  <bruno@clisp.org>
52544         mkdtemp: Move AC_LIBOBJ invocations to module description.
52545         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52546         invocations from here...
52547         * modules/mkdtemp (configure.ac): ... to here.
52549 2011-05-21  Bruno Haible  <bruno@clisp.org>
52551         mkdir: Move AC_LIBOBJ invocations to module description.
52552         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52553         * modules/mkdir (configure.ac): ... to here.
52555 2011-05-21  Bruno Haible  <bruno@clisp.org>
52557         memset: Move AC_LIBOBJ invocations to module description.
52558         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52559         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52560         here...
52561         * modules/memset (configure.ac): ... to here.
52563 2011-05-21  Bruno Haible  <bruno@clisp.org>
52565         memrchr: Move AC_LIBOBJ invocations to module description.
52566         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52568         here...
52569         * modules/memrchr (configure.ac): ... to here.
52571 2011-05-21  Bruno Haible  <bruno@clisp.org>
52573         mempcpy: Move AC_LIBOBJ invocations to module description.
52574         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52576         here...
52577         * modules/mempcpy (configure.ac): ... to here.
52579 2011-05-21  Bruno Haible  <bruno@clisp.org>
52581         memmove: Move AC_LIBOBJ invocations to module description.
52582         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52584         here...
52585         * modules/memmove (configure.ac): ... to here.
52587 2011-05-21  Bruno Haible  <bruno@clisp.org>
52589         memmem*: Move AC_LIBOBJ invocations to module description.
52590         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52591         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52592         here...
52593         (gl_FUNC_MEMMEM): ... and here...
52594         * modules/memmem-simple (configure.ac): ... to here.
52595         * modules/memmem (configure.ac): ... and here.
52597 2011-05-21  Bruno Haible  <bruno@clisp.org>
52599         memcpy: Move AC_LIBOBJ invocations to module description.
52600         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52601         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52602         here...
52603         * modules/memcpy (configure.ac): ... to here.
52605 2011-05-21  Bruno Haible  <bruno@clisp.org>
52607         memcmp: Simplify autoconf macro.
52608         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52609         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52610         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52612 2011-05-21  Bruno Haible  <bruno@clisp.org>
52614         memcmp: Move AC_LIBOBJ invocations to module description.
52615         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52616         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52617         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52618         * modules/memcmp (configure.ac): ... to here.
52619         (Depends-on): Update conditions.
52621 2011-05-21  Bruno Haible  <bruno@clisp.org>
52623         memchr: Respect rules for use of AC_LIBOBJ.
52624         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52625         invocations from here...
52626         * modules/memchr (configure.ac): ... to here.
52628 2011-05-21  Bruno Haible  <bruno@clisp.org>
52630         mbtowc: Move AC_LIBOBJ invocations to module description.
52631         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52632         invocations from here...
52633         * modules/mbtowc (configure.ac): ... to here.
52635 2011-05-21  Bruno Haible  <bruno@clisp.org>
52637         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52638         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52639         gl_PREREQ_MBSRTOWCS invocations from here...
52640         * modules/mbsrtowcs (configure.ac): ... to here.
52642 2011-05-21  Bruno Haible  <bruno@clisp.org>
52644         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52645         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52646         gl_PREREQ_MBSNRTOWCS invocations from here...
52647         * modules/mbsnrtowcs (configure.ac): ... to here.
52649 2011-05-21  Bruno Haible  <bruno@clisp.org>
52651         mbsinit: Move AC_LIBOBJ invocations to module description.
52652         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52653         invocations from here...
52654         * modules/mbsinit (configure.ac): ... to here.
52656 2011-05-21  Bruno Haible  <bruno@clisp.org>
52658         mbrlen: Move AC_LIBOBJ invocations to module description.
52659         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52660         invocations from here...
52661         * modules/mbrlen (configure.ac): ... to here.
52663 2011-05-21  Bruno Haible  <bruno@clisp.org>
52665         mbrtowc: Respect rules for use of AC_LIBOBJ.
52666         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52667         invocations from here...
52668         * modules/mbrtowc (configure.ac): ... to here.
52670 2011-05-21  Bruno Haible  <bruno@clisp.org>
52672         malloc-*: Move AC_LIBOBJ invocations to module description.
52673         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52674         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52675         AC_LIBOBJ invocations from here...
52676         * modules/malloc-gnu (configure.ac): ... to here.
52677         * modules/malloc-posix (configure.ac): ... and here.
52679 2011-05-21  Bruno Haible  <bruno@clisp.org>
52681         lstat, openat: Respect rules for use of AC_LIBOBJ.
52682         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52683         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52684         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52685         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52686         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52687         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52688         here.
52689         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52691 2011-05-21  Bruno Haible  <bruno@clisp.org>
52693         lseek: Move AC_LIBOBJ invocations to module description.
52694         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52695         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52696         * modules/lseek (configure.ac): ... to here.
52698 2011-05-21  Bruno Haible  <bruno@clisp.org>
52700         linkat: Move AC_LIBOBJ invocations to module description.
52701         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52702         here...
52703         * modules/linkat (configure.ac): ... to here.
52705 2011-05-21  Bruno Haible  <bruno@clisp.org>
52707         link: Respect rules for use of AC_LIBOBJ.
52708         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52709         * modules/link (configure.ac): ... to here.
52711 2011-05-21  Bruno Haible  <bruno@clisp.org>
52713         lchown: Move AC_LIBOBJ invocations to module description.
52714         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52715         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52716         * modules/lchown (configure.ac): ... to here.
52718 2011-05-21  Bruno Haible  <bruno@clisp.org>
52720         iswctype: Move AC_LIBOBJ invocations to module description.
52721         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52722         here...
52723         * modules/iswctype (configure.ac): ... to here.
52725 2011-05-21  Bruno Haible  <bruno@clisp.org>
52727         iswblank: Move AC_LIBOBJ invocations to module description.
52728         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52729         here...
52730         * modules/iswblank (configure.ac): ... to here.
52732 2011-05-21  Bruno Haible  <bruno@clisp.org>
52734         atanl: Move AC_LIBOBJ invocations to module description.
52735         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52736         * modules/atanl (configure.ac): ... to here.
52738 2011-05-21  Bruno Haible  <bruno@clisp.org>
52740         acosl: Move AC_LIBOBJ invocations to module description.
52741         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52742         * modules/acosl (configure.ac): ... to here.
52744 2011-05-21  Bruno Haible  <bruno@clisp.org>
52746         asinl: Respect rules for use of AC_LIBOBJ.
52747         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52748         * modules/asinl (configure.ac): ... to here.
52750 2011-05-21  Bruno Haible  <bruno@clisp.org>
52752         tanl: Move AC_LIBOBJ invocations to module description.
52753         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52754         * modules/tanl (configure.ac): ... to here.
52756 2011-05-21  Bruno Haible  <bruno@clisp.org>
52758         cosl: Move AC_LIBOBJ invocations to module description.
52759         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52760         * modules/cosl (configure.ac): ... to here.
52762 2011-05-21  Bruno Haible  <bruno@clisp.org>
52764         sinl: Move AC_LIBOBJ invocations to module description.
52765         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52766         * modules/sinl (configure.ac): ... to here.
52768 2011-05-21  Bruno Haible  <bruno@clisp.org>
52770         logl: Move AC_LIBOBJ invocations to module description.
52771         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52772         * modules/logl (configure.ac): ... to here.
52774 2011-05-21  Bruno Haible  <bruno@clisp.org>
52776         expl: Move AC_LIBOBJ invocations to module description.
52777         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52778         * modules/expl (configure.ac): ... to here.
52780 2011-05-21  Bruno Haible  <bruno@clisp.org>
52782         roundl: Move AC_LIBOBJ invocations to module description.
52783         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52784         * modules/roundl (configure.ac): ... to here.
52786 2011-05-21  Bruno Haible  <bruno@clisp.org>
52788         round: Move AC_LIBOBJ invocations to module description.
52789         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52790         * modules/round (configure.ac): ... to here.
52792 2011-05-21  Bruno Haible  <bruno@clisp.org>
52794         roundf: Move AC_LIBOBJ invocations to module description.
52795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52796         * modules/roundf (configure.ac): ... to here.
52798 2011-05-21  Bruno Haible  <bruno@clisp.org>
52800         truncl: Move AC_LIBOBJ invocations to module description.
52801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52802         * modules/truncl (configure.ac): ... to here.
52804 2011-05-21  Bruno Haible  <bruno@clisp.org>
52806         trunc: Move AC_LIBOBJ invocations to module description.
52807         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52808         * modules/trunc (configure.ac): ... to here.
52810 2011-05-21  Bruno Haible  <bruno@clisp.org>
52812         truncf: Move AC_LIBOBJ invocations to module description.
52813         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52814         * modules/truncf (configure.ac): ... to here.
52816 2011-05-21  Bruno Haible  <bruno@clisp.org>
52818         ceill: Move AC_LIBOBJ invocations to module description.
52819         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52820         * modules/ceill (configure.ac): ... to here.
52822 2011-05-21  Bruno Haible  <bruno@clisp.org>
52824         ceil: Move AC_LIBOBJ invocations to module description.
52825         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52826         * modules/ceil (configure.ac): ... to here.
52828 2011-05-21  Bruno Haible  <bruno@clisp.org>
52830         ceilf: Move AC_LIBOBJ invocations to module description.
52831         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52832         * modules/ceilf (configure.ac): ... to here.
52834 2011-05-21  Bruno Haible  <bruno@clisp.org>
52836         floorl: Respect rules for use of AC_LIBOBJ.
52837         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52838         * modules/floorl (configure.ac): ... to here.
52840 2011-05-21  Bruno Haible  <bruno@clisp.org>
52842         floor: Respect rules for use of AC_LIBOBJ.
52843         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52844         * modules/floor (configure.ac): ... to here.
52846 2011-05-21  Bruno Haible  <bruno@clisp.org>
52848         floorf: Move AC_LIBOBJ invocations to module description.
52849         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52850         * modules/floorf (configure.ac): ... to here.
52852 2011-05-20  Bruno Haible  <bruno@clisp.org>
52854         sqrtl: Respect rules for use of AC_LIBOBJ.
52855         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52856         * modules/sqrtl (configure.ac): ... to here.
52858 2011-05-20  Bruno Haible  <bruno@clisp.org>
52860         ldexpl: Respect rules for use of AC_LIBOBJ.
52861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52862         * modules/ldexpl (configure.ac): ... to here.
52864 2011-05-20  Bruno Haible  <bruno@clisp.org>
52866         frexpl*: Respect rules for use of AC_LIBOBJ.
52867         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52868         invocation from here...
52869         * modules/frexpl (configure.ac): ... to here.
52870         * modules/frexpl-nolibm (configure.ac): ... and here.
52872 2011-05-20  Bruno Haible  <bruno@clisp.org>
52874         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52875         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52876         invocation from here...
52877         * modules/frexp (configure.ac): ... to here.
52878         * modules/frexp-nolibm (configure.ac): ... and here.
52880 2011-05-20  Bruno Haible  <bruno@clisp.org>
52882         isnan: Respect rules for use of AC_LIBOBJ.
52883         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52884         invocations here.
52885         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52886         REPLACE_ISNAN.
52887         * modules/isnand (configure.ac): Likewise.
52888         * modules/isnanl (configure.ac): Likewise.
52890 2011-05-20  Bruno Haible  <bruno@clisp.org>
52892         isnanl*: Respect rules for use of AC_LIBOBJ.
52893         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52894         invocation from here...
52895         * modules/isnanl (configure.ac): ... to here.
52896         * modules/isnanl-nolibm (configure.ac): ... and here.
52898 2011-05-20  Bruno Haible  <bruno@clisp.org>
52900         isnand*: Move AC_LIBOBJ invocations to module description.
52901         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52902         invocation from here...
52903         * modules/isnand (configure.ac): ... to here.
52904         * modules/isnand-nolibm (configure.ac): ... and here.
52906 2011-05-20  Bruno Haible  <bruno@clisp.org>
52908         isnanf*: Move AC_LIBOBJ invocations to module description.
52909         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52910         invocation from here...
52911         * modules/isnanf (configure.ac): ... to here.
52912         * modules/isnanf-nolibm (configure.ac): ... and here.
52914 2011-05-20  Bruno Haible  <bruno@clisp.org>
52916         isnan*: Separate the AC_LIBOBJ invocations.
52917         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52918         AC_LIBOBJ invocation.
52919         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52920         here.
52921         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52922         AC_LIBOBJ invocation.
52923         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52924         here.
52925         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52926         AC_LIBOBJ invocation.
52927         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52928         here.
52929         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52931 2011-05-08  Bruno Haible  <bruno@clisp.org>
52933         isinf: Move AC_LIBOBJ invocations to module description.
52934         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52935         * modules/isinf (configure.ac): ... to here.
52937 2011-05-08  Bruno Haible  <bruno@clisp.org>
52939         isfinite: Move AC_LIBOBJ invocations to module description.
52940         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52941         * modules/isfinite (configure.ac): ... to here.
52943 2011-05-08  Bruno Haible  <bruno@clisp.org>
52945         isblank: Move AC_LIBOBJ invocations to module description.
52946         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52947         here...
52948         * modules/isblank (configure.ac): ... to here.
52950 2011-05-08  Bruno Haible  <bruno@clisp.org>
52952         isapipe: Move AC_LIBOBJ invocations to module description.
52953         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52954         gl_PREREQ_ISAPIPE invocations from here...
52955         * modules/isapipe (configure.ac): ... to here.
52956         (Depends-on): Update condition.
52958 2011-05-08  Bruno Haible  <bruno@clisp.org>
52960         ioctl: Move AC_LIBOBJ invocations to module description.
52961         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52962         invocations from here...
52963         * modules/ioctl (configure.ac): ... to here.
52964         (Depends-on): Update condition.
52966 2011-05-08  Bruno Haible  <bruno@clisp.org>
52968         imaxdiv: Move AC_LIBOBJ invocations to module description.
52969         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52970         invocations from here...
52971         * modules/imaxdiv (configure.ac): ... to here.
52973 2011-05-08  Bruno Haible  <bruno@clisp.org>
52975         imaxabs: Move AC_LIBOBJ invocations to module description.
52976         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52977         invocations from here...
52978         * modules/imaxabs (configure.ac): ... to here.
52980 2011-05-08  Bruno Haible  <bruno@clisp.org>
52982         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52984         AC_LIBOBJ invocations from here...
52985         * modules/getaddrinfo (configure.ac): ... to here.
52986         (Depends-on): Add conditions.
52988 2011-05-08  Bruno Haible  <bruno@clisp.org>
52990         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52991         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52992         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52993         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52994         (gl_PREREQ_INET_PTON): ... from here.
52995         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52996         gl_PREREQ_INET_PTON here.
52997         (Depends-on): Update condition.
52999 2011-05-08  Bruno Haible  <bruno@clisp.org>
53001         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
53002         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
53003         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
53004         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
53005         (gl_PREREQ_INET_NTOP): ... from here.
53006         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
53007         gl_PREREQ_INET_NTOP here.
53008         (Depends-on): Update condition.
53010 2011-05-08  Bruno Haible  <bruno@clisp.org>
53012         iconv_open: Move AC_LIBOBJ invocations to module description.
53013         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
53014         AC_LIBOBJ invocations from here...
53015         * modules/iconv_open (configure.ac): ... to here.
53017 2011-05-08  Bruno Haible  <bruno@clisp.org>
53019         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
53020         If module 'iconv_open' is among the main modules and module
53021         'iconv_open-utf' is among the tests dependencies, then
53022         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
53023         return the special iconv_t values. Therefore iconv() and iconv_close()
53024         must support these special iconv_t values, already in lib, not only in
53025         tests.
53026         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
53027         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
53028         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
53029         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
53030         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
53031         (Depends-on): Add the dependencies of iconv_open-utf.
53032         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
53033         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
53034         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
53036 2011-05-08  Bruno Haible  <bruno@clisp.org>
53038         group-member: Move AC_LIBOBJ invocations to module description.
53039         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
53040         gl_PREREQ_GROUP_MEMBER invocations from here...
53041         * modules/group-member (configure.ac): ... to here.
53043 2011-05-08  Bruno Haible  <bruno@clisp.org>
53045         grantpt: Move AC_LIBOBJ invocations to module description.
53046         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
53047         invocations from here...
53048         * modules/grantpt (configure.ac): ... to here.
53050 2011-05-08  Bruno Haible  <bruno@clisp.org>
53052         glob: Move AC_LIBOBJ invocations to module description.
53053         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
53054         from here...
53055         * modules/glob (configure.ac): ... to here.
53057 2011-05-08  Bruno Haible  <bruno@clisp.org>
53059         getusershell: Move AC_LIBOBJ invocations to module description.
53060         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
53061         Move AC_LIBOBJ invocation from here...
53062         * modules/getusershell (configure.ac): ... to here.
53063         (Depends-on): Update condition.
53065 2011-05-08  Bruno Haible  <bruno@clisp.org>
53067         gettimeofday: Move AC_LIBOBJ invocations to module description.
53068         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53069         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
53070         gl_PREREQ_GETTIMEOFDAY invocations from here...
53071         * modules/gettimeofday (configure.ac): ... to here.
53073 2011-05-08  Bruno Haible  <bruno@clisp.org>
53075         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
53076         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
53077         just gl_FUNC_TZSET.
53078         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
53079         (gl_FUNC_TZSET_CLOBBER): Remove actions.
53080         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
53081         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
53083 2011-05-08  Bruno Haible  <bruno@clisp.org>
53085         getsubopt: Move AC_LIBOBJ invocations to module description.
53086         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
53087         gl_PREREQ_GETSUBOPT invocations from here...
53088         * modules/getsubopt (configure.ac): ... to here.
53090 2011-05-08  Bruno Haible  <bruno@clisp.org>
53092         getpass-gnu: Move AC_LIBOBJ invocations to module description.
53093         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
53094         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
53095         * modules/getpass-gnu (configure.ac): ... to here.
53097 2011-05-08  Bruno Haible  <bruno@clisp.org>
53099         getpass: Move AC_LIBOBJ invocations to module description.
53100         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
53101         gl_PREREQ_GETPASS invocations from here...
53102         * modules/getpass (configure.ac): ... to here.
53104 2011-05-08  Bruno Haible  <bruno@clisp.org>
53106         getpagesize: Move AC_LIBOBJ invocations to module description.
53107         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
53108         from here...
53109         * modules/getpagesize (configure.ac): ... to here.
53111 2011-05-08  Bruno Haible  <bruno@clisp.org>
53113         getopt: Move AC_LIBOBJ invocations to module description.
53114         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
53115         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
53116         invocations from here...
53117         * modules/getopt-gnu (configure.ac): ... to here.
53118         * modules/getopt-posix (configure.ac): ... and here.
53119         (Depends-on): Update condition.
53121 2011-05-08  Bruno Haible  <bruno@clisp.org>
53123         getopt, argp: Respect rules for use of AC_LIBOBJ.
53124         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
53125         (gl_REPLACE_GETOPT_ALWAYS): New macro.
53126         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
53127         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
53129 2011-05-08  Bruno Haible  <bruno@clisp.org>
53131         getlogin_r: Move AC_LIBOBJ invocations to module description.
53132         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
53133         gl_PREREQ_GETLOGIN_R invocations from here...
53134         * modules/getlogin_r (configure.ac): ... to here.
53136 2011-05-08  Bruno Haible  <bruno@clisp.org>
53138         getlogin: Move AC_LIBOBJ invocations to module description.
53139         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
53140         here...
53141         * modules/getlogin (configure.ac): ... to here.
53143 2011-05-08  Bruno Haible  <bruno@clisp.org>
53145         getloadavg: Move AC_LIBOBJ invocations to module description.
53146         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
53147         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
53148         * modules/getloadavg (configure.ac): ... to here.
53150 2011-05-08  Bruno Haible  <bruno@clisp.org>
53152         gethrxtime: Move AC_LIBOBJ invocations to module description.
53153         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
53154         LIB_GETHRXTIME from here...
53155         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
53156         invocations from here...
53157         * modules/gethrxtime (configure.ac): ... to here.
53159 2011-05-08  Bruno Haible  <bruno@clisp.org>
53161         gethostname: Move AC_LIBOBJ invocations to module description.
53162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
53163         gl_PREREQ_GETHOSTNAME invocations from here...
53164         * modules/gethostname (configure.ac): ... to here.
53166 2011-05-08  Bruno Haible  <bruno@clisp.org>
53168         getgroups: Move AC_LIBOBJ invocations to module description.
53169         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
53170         here...
53171         * modules/getgroups (configure.ac): ... to here.
53173 2011-05-08  Bruno Haible  <bruno@clisp.org>
53175         getdtablesize: Move AC_LIBOBJ invocations to module description.
53176         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
53177         invocation from here...
53178         * modules/getdtablesize (configure.ac): ... to here.
53180 2011-05-08  Bruno Haible  <bruno@clisp.org>
53182         getdomainname: Move AC_LIBOBJ invocations to module description.
53183         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
53184         gl_PREREQ_GETDOMAINNAME invocations from here...
53185         * modules/getdomainname (configure.ac): ... to here.
53187 2011-05-08  Bruno Haible  <bruno@clisp.org>
53189         getline: Move AC_LIBOBJ invocations to module description.
53190         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
53191         invocations from here...
53192         * modules/getline (configure.ac): ... to here.
53194 2011-05-08  Bruno Haible  <bruno@clisp.org>
53196         getline: Simplify.
53197         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
53198         It's already handled through the module dependency.
53200 2011-05-08  Bruno Haible  <bruno@clisp.org>
53202         getdelim: Move AC_LIBOBJ invocations to module description.
53203         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
53204         and gl_PREREQ_GETDELIM invocations from here...
53205         * modules/getdelim (configure.ac): ... to here.
53206         (Depends-on): Fix condition.
53208 2011-05-08  Bruno Haible  <bruno@clisp.org>
53210         getcwd: Move AC_LIBOBJ invocations to module description.
53211         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
53212         invocations from here...
53213         * modules/getcwd (configure.ac): ... to here.
53215 2011-05-08  Bruno Haible  <bruno@clisp.org>
53217         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
53218         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
53219         here...
53220         * modules/getcwd-lgpl (configure.ac): ... to here.
53222 2011-05-07  Bruno Haible  <bruno@clisp.org>
53224         crypto/gc: Move AC_LIBOBJ invocations to module description.
53225         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
53226         * modules/crypto/gc (configure.ac): ... to here.
53228 2011-05-07  Bruno Haible  <bruno@clisp.org>
53230         fwriting: Move AC_LIBOBJ invocations to module description.
53231         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
53232         here...
53233         * modules/fwriting (configure.ac): ... to here.
53235 2011-05-07  Bruno Haible  <bruno@clisp.org>
53237         fwritable: Move AC_LIBOBJ invocations to module description.
53238         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53239         here...
53240         * modules/fwritable (configure.ac): ... to here.
53242 2011-05-07  Bruno Haible  <bruno@clisp.org>
53244         futimens: Move AC_LIBOBJ invocations to module description.
53245         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
53246         here...
53247         * modules/futimens (configure.ac): ... to here.
53249 2011-05-07  Bruno Haible  <bruno@clisp.org>
53251         ftruncate: Move AC_LIBOBJ invocations to module description.
53252         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
53253         gl_PREREQ_FTRUNCATE invocations from here...
53254         * modules/ftruncate (configure.ac): ... to here.
53256 2011-05-07  Bruno Haible  <bruno@clisp.org>
53258         fsync: Move AC_LIBOBJ invocations to module description.
53259         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53260         invocations from here...
53261         * modules/fsync (configure.ac): ... to here.
53263 2011-05-07  Bruno Haible  <bruno@clisp.org>
53265         fsusage: Move AC_LIBOBJ invocations to module description.
53266         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53267         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53268         * modules/fsusage (configure.ac): ... to here.
53270 2011-05-07  Bruno Haible  <bruno@clisp.org>
53272         freopen: Move AC_LIBOBJ invocations to module description.
53273         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53274         invocations from here...
53275         * modules/freopen (configure.ac): ... to here.
53277 2011-05-07  Bruno Haible  <bruno@clisp.org>
53279         free: Move AC_LIBOBJ invocations to module description.
53280         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53281         invocations from here...
53282         * modules/free (configure.ac): ... to here.
53284 2011-05-07  Bruno Haible  <bruno@clisp.org>
53286         freadable: Move AC_LIBOBJ invocations to module description.
53287         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53288         here...
53289         * modules/freadable (configure.ac): ... to here.
53291 2011-05-07  Bruno Haible  <bruno@clisp.org>
53293         fpurge: Move AC_LIBOBJ invocations to module description.
53294         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53295         invocations from here...
53296         * modules/fpurge (configure.ac): ... to here.
53298 2011-05-07  Bruno Haible  <bruno@clisp.org>
53300         fpending: Move AC_LIBOBJ invocations to module description.
53301         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53302         gl_FUNC_FPENDING.
53303         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53304         invocations from here...
53305         * modules/fpending (configure.ac): ... to here.
53307 2011-05-07  Bruno Haible  <bruno@clisp.org>
53309         fopen: Move AC_LIBOBJ invocations to module description.
53310         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53311         invocations from here...
53312         * modules/fopen (configure.ac): ... to here.
53314 2011-05-07  Bruno Haible  <bruno@clisp.org>
53316         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53317         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53318         gl_FUNC_FNMATCH_POSIX.
53319         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53320         invocations from here...
53321         * modules/fnmatch (configure.ac): ... to here.
53322         * modules/fnmatch-gnu (configure.ac): ... and here.
53324 2011-05-07  Bruno Haible  <bruno@clisp.org>
53326         flock: Move AC_LIBOBJ invocations to module description.
53327         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53328         invocations from here...
53329         * modules/flock (configure.ac): ... to here.
53331 2011-05-07  Bruno Haible  <bruno@clisp.org>
53333         fileblocks: Move AC_LIBOBJ invocations to module description.
53334         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53335         gl_PREREQ_FILEBLOCKS invocations from here...
53336         * modules/fileblocks (configure.ac): ... to here.
53338 2011-05-06  Bruno Haible  <bruno@clisp.org>
53340         fflush: Move AC_LIBOBJ invocations to module description.
53341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53342         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53343         invocations from here...
53344         * modules/fflush (configure.ac): ... to here.
53346 2011-05-06  Bruno Haible  <bruno@clisp.org>
53348         fdopendir: Move AC_LIBOBJ invocations to module description.
53349         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53350         here...
53351         * modules/fdopendir (configure.ac): ... to here.
53352         (Depends-on): Improve conditions.
53354 2011-05-06  Bruno Haible  <bruno@clisp.org>
53356         _Exit: Move AC_LIBOBJ invocations to module description.
53357         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53358         invocations from here...
53359         * modules/_Exit (configure.ac): ... to here.
53361 2011-05-21  Bruno Haible  <bruno@clisp.org>
53363         euidaccess: Respect rules for use of AC_LIBOBJ.
53364         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53366         from here...
53367         * modules/euidaccess (configure.ac): ... to here.
53369 2011-05-06  Bruno Haible  <bruno@clisp.org>
53371         error: Move AC_LIBOBJ invocations to module description.
53372         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53373         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53374         invocations from here...
53375         * modules/error (configure.ac): ... to here.
53377 2011-05-06  Bruno Haible  <bruno@clisp.org>
53379         duplocale: Move AC_LIBOBJ invocations to module description.
53380         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53381         gl_PREREQ_DUPLOCALE invocations from here...
53382         * modules/duplocale (configure.ac): ... to here.
53384 2011-05-05  Bruno Haible  <bruno@clisp.org>
53386         dirfd: Move AC_LIBOBJ invocations to module description.
53387         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53388         gl_FUNC_DIRFD.
53389         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53390         here...
53391         * modules/dirfd (configure.ac): ... to here.
53392         (Depends-on): Fix condition.
53394 2011-05-05  Bruno Haible  <bruno@clisp.org>
53396         chown: Respect rules for use of AC_LIBOBJ.
53397         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53398         * modules/chown (configure.ac): ... to here.
53400 2011-05-05  Bruno Haible  <bruno@clisp.org>
53402         chdir-long: Move AC_LIBOBJ invocations to module description.
53403         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53404         gl_PREREQ_CHDIR_LONG invocations from here...
53405         * modules/chdir-long (configure.ac): ... to here.
53407 2011-05-05  Bruno Haible  <bruno@clisp.org>
53409         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53410         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53411         from here...
53412         * modules/canonicalize-lgpl (configure.ac): ... to here.
53414 2011-05-05  Bruno Haible  <bruno@clisp.org>
53416         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53417         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53418         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53419         REPLACE_CALLOC.
53420         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53421         * modules/calloc-gnu (configure.ac): Likewise.
53423 2011-05-05  Bruno Haible  <bruno@clisp.org>
53425         btowc: Move AC_LIBOBJ invocations to module description.
53426         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53427         invocations from here...
53428         * modules/btowc (configure.ac): ... to here.
53430 2011-05-21  Bruno Haible  <bruno@clisp.org>
53432         atexit: Move AC_LIBOBJ invocations to module description.
53433         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53434         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53435         here...
53436         * modules/atexit (configure.ac): ... to here.
53438 2011-05-05  Bruno Haible  <bruno@clisp.org>
53440         atoll: Move AC_LIBOBJ invocations to module description.
53441         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53442         invocations from here...
53443         * modules/atoll (configure.ac): ... to here.
53445 2011-05-05  Bruno Haible  <bruno@clisp.org>
53447         argz: Move AC_LIBOBJ invocations to module description.
53448         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53449         * modules/argz (configure.ac): ... to here.
53451 2011-05-05  Bruno Haible  <bruno@clisp.org>
53453         alphasort: Move AC_LIBOBJ invocations to module description.
53454         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53455         gl_PREREQ_ALPHASORT invocations from here...
53456         * modules/alphasort (configure.ac): ... to here.
53458 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53460         verify: new macro verify_expr; verify_true deprecated
53461         * NEWS: Mention this.
53462         * doc/verify.texi (Compile-time Assertions): Document this.
53463         * lib/verify.h (verify_true): Deprecate.
53464         (verify_expr): New macro.
53465         * tests/test-verify.c (function): Test verify_expr.
53467 2011-06-14  Jim Meyering  <meyering@redhat.com>
53469         init.sh: give more portable redirection-related advice in a comment
53470         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53471         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53472         for lots of discussion.  Stefano Lattarini suggested the solution
53473         of putting "9>&2" after the command.  Reported by Bruno Haible.
53475 2011-06-13  Bruno Haible  <bruno@clisp.org>
53477         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53478         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53479         'none'.
53481 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53483         ftoastr: use strtof only if HAVE_STRTOF
53484         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53485         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53486         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53487         * modules/ftoastr (configure.ac): Check for strtof.
53489 2011-06-13  Bruno Haible  <bruno@clisp.org>
53491         gnulib-tool: Addendum to 2011-06-08 commit.
53492         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53493         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53495 2011-06-13  Bruno Haible  <bruno@clisp.org>
53497         fseeko: Provide a non-inline replacement of fseek().
53498         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53499         * modules/fseeko (Depends-on): Add fseek.
53500         * modules/fseek (License): Change to LGPLv2+.
53502 2011-06-13  Bruno Haible  <bruno@clisp.org>
53504         ftello: Provide a non-inline replacement of ftell().
53505         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53506         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53507         not have ftello() (such as on mingw).
53508         * modules/ftello (Depends-on): Add ftell.
53509         * modules/ftell (License): Change to LGPLv2+.
53511 2011-05-07  Bruno Haible  <bruno@clisp.org>
53513         ftell: Move AC_LIBOBJ invocations to module description.
53514         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53515         * modules/ftell (configure.ac): ... to here.
53517 2011-05-07  Bruno Haible  <bruno@clisp.org>
53519         ftello: Respect rules for use of AC_LIBOBJ.
53520         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53521         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53522         here...
53523         * modules/ftello (configure.ac): ... to here.
53525 2011-05-07  Bruno Haible  <bruno@clisp.org>
53527         fseeko: Simplify.
53528         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53529         (gl_FUNC_FSEEKO): Inline it here.
53531 2011-05-07  Bruno Haible  <bruno@clisp.org>
53533         fseek: Move AC_LIBOBJ invocations to module description.
53534         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53535         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53536         * modules/fseek (configure.ac): ... to here.
53538 2011-05-07  Bruno Haible  <bruno@clisp.org>
53540         fseek: Respect rules for use of AC_LIBOBJ.
53541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53542         here...
53543         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53545 2011-05-07  Bruno Haible  <bruno@clisp.org>
53547         fseeko: Respect rules for use of AC_LIBOBJ.
53548         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53549         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53550         here...
53551         * modules/fseeko (configure.ac): ... to here.
53553 2011-06-13  Bruno Haible  <bruno@clisp.org>
53555         gnulib-tool: Allow comments in the 'Depends-on' section.
53556         * doc/gnulib.texi (Module description): Mention comment syntax in the
53557         Depends-on section.
53558         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53560 2011-06-13  Bruno Haible  <bruno@clisp.org>
53562         file-set.h: guard __attibute__ use, now that it's not always defined
53563         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53564         versions that support it.  This fixes a coreutils build failure with
53565         the vendor cc on HP-UX 11.31.
53567 2011-06-12  Bruno Haible  <bruno@clisp.org>
53569         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53570         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53571         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53572         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53573         (acl, aclsort): New declarations.
53574         (aclv_nontrivial): New declaration.
53575         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53576         (file_has_acl): Read also the second kind of HP-UX ACLs.
53577         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53578         kind of HP-UX ACLs if the first kind fails.
53579         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53580         second kind of HP-UX ACLs.
53581         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53582         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53583         agree.
53584         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53585         hpuxjfs.
53586         Handle hpuxjfs.
53587         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53588         hpuxjfs.
53589         Handle hpuxjfs.
53590         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53591         (func_test_same_acls): Use both lsacl and getacl.
53592         Handle hpuxjfs.
53593         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53594         (func_test_same_acls): Use both lsacl and getacl.
53595         Handle hpuxjfs.
53597 2011-06-12  Bruno Haible  <bruno@clisp.org>
53599         acl: Complete the 2010-08-10 fix.
53600         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53601         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53602         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53603         explicitly.
53604         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53605         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53607 2011-06-12  Bruno Haible  <bruno@clisp.org>
53609         spawn-pipe tests: Comments.
53610         * tests/test-spawn-pipe-child.c (main): Update comment.
53611         Reported by James Youngman <jay@gnu.org>.
53613 2011-06-11  James Youngman  <jay@gnu.org>
53615         New module 'stat-size'.
53616         * modules/stat-size: New module.  Provides macros for accessing
53617         file size information in instances of struct stat.  Depends on the
53618         fileblocks module because it calls st_blocks.
53619         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53620         * doc/gnulib.texi: Include stat-size.texi.
53621         * doc/stat-size.texi: Documentation for this module.
53622         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53623         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53624         AC_STRUCT_ST_BLOCKS.
53626 2011-06-09  Bruno Haible  <bruno@clisp.org>
53628         thread: Support pthreads-win32.
53629         * lib/glthread/thread.h (gl_thread_self): Define differently on
53630         pthreads-win32.
53631         (gl_null_thread): New declaration.
53632         (gl_thread_self_pointer): New macro.
53633         * lib/glthread/thread.c (gl_null_thread): New constant.
53634         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53635         gl_thread_self.
53636         * tests/test-tls.c: Likewise.
53637         Suggested by Paul Eggert. Reported by Eric Blake.
53639 2011-06-09  Bruno Haible  <bruno@clisp.org>
53641         thread: Fix confusion between NULL and 0.
53642         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53643         Reported by Paul Eggert.
53645 2011-06-09  Bruno Haible  <bruno@clisp.org>
53647         spawn-pipe tests: Avoid test failure on HP-UX 11.
53648         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53649         is closed.
53651 2011-06-09  Bruno Haible  <bruno@clisp.org>
53653         acl tests: Fix compilation error on HP-UX 11.
53654         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53656 2011-06-09  Bruno Haible  <bruno@clisp.org>
53658         rmdir: Avoid test failure on HP-UX 10.20.
53659         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53660         EEXIST.
53662 2011-06-08  Eric Blake  <eblake@redhat.com>
53664         perror: fix test on mingw
53665         * modules/perror-tests (Depends-on): Add dup2.
53667         strerror_r-posix: fix on MacOS
53668         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53669         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53670         logic bug.
53671         * lib/strerror_r.c (strerror_r): Fix the bug.
53672         * lib/strerror.c (strerror): Likewise.
53673         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53674         problem.
53675         * doc/posix-functions/strerror.texi (strerror): Likewise.
53676         * doc/posix-functions/perror.texi (perror): Likewise.
53677         * tests/test-strerror.c (main): Enhance test.
53678         * tests/test-strerror_r.c (main): Likewise.
53680 2011-06-08  Bruno Haible  <bruno@clisp.org>
53682         gnulib-tool: Better isolation between different gnulib-tool invocations.
53683         * gnulib-tool: New option --witness-c-macro.
53684         (witness_c_macro): New variable.
53685         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53686         AM_CPPFLAGS define it as a C macro.
53687         (func_emit_tests_Makefile_am): Likewise.
53688         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53689         read it from there.
53690         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53691         m4_define, not AC_DEFUN.
53692         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53693         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53694         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53695         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53696         s|...|...|, to substitute the values of the GNULIB_* module indicator
53697         variables.
53698         * modules/dirent (Makefile.am): Likewise.
53699         * modules/fcntl-h (Makefile.am): Likewise.
53700         * modules/iconv-h (Makefile.am): Likewise.
53701         * modules/langinfo (Makefile.am): Likewise.
53702         * modules/locale (Makefile.am): Likewise.
53703         * modules/math (Makefile.am): Likewise.
53704         * modules/netdb (Makefile.am): Likewise.
53705         * modules/poll-h (Makefile.am): Likewise.
53706         * modules/pty (Makefile.am): Likewise.
53707         * modules/search (Makefile.am): Likewise.
53708         * modules/signal (Makefile.am): Likewise.
53709         * modules/spawn (Makefile.am): Likewise.
53710         * modules/stdio (Makefile.am): Likewise.
53711         * modules/stdlib (Makefile.am): Likewise.
53712         * modules/string (Makefile.am): Likewise.
53713         * modules/sys_ioctl (Makefile.am): Likewise.
53714         * modules/sys_select (Makefile.am): Likewise.
53715         * modules/sys_socket (Makefile.am): Likewise.
53716         * modules/sys_stat (Makefile.am): Likewise.
53717         * modules/sys_times (Makefile.am): Likewise.
53718         * modules/sys_utsname (Makefile.am): Likewise.
53719         * modules/sys_wait (Makefile.am): Likewise.
53720         * modules/termios (Makefile.am): Likewise.
53721         * modules/time (Makefile.am): Likewise.
53722         * modules/unistd (Makefile.am): Likewise.
53723         * modules/wchar (Makefile.am): Likewise.
53725 2011-06-08  Eric Blake  <eblake@redhat.com>
53727         strerror: simplify replacement
53728         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53729         * modules/strerror (configure.ac): No prereqs needed here...
53730         * modules/strerror-override (configure.ac): ...but this needs it.
53731         (Files): Add file for needed prereq macro.
53733 2011-06-08  Bruno Haible  <bruno@clisp.org>
53735         strerror_r-posix: Tweaks.
53736         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53737         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53738         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53739         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53740         (gl_FUNC_STRERROR_R): ... to here.
53741         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53743 2011-06-07  Eric Blake  <eblake@redhat.com>
53745         perror: document fixed bugs
53746         * doc/posix-functions/perror.texi (perror): Document recent
53747         patches.
53749 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53751         stat-time: get_stat_birthtime failure is better-defined
53752         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53753         return a timestamp whose tv_sec and tv_nsec values are both -1.
53754         Previously, the spec said only that the tv_nsec value was negative.
53755         This upward-compatible change simplifies GNU tar a bit.
53757 2011-06-07  Eric Blake  <eblake@redhat.com>
53759         strerror_r-posix: work around cygwin 1.7.9
53760         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53761         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53762         bug without replacing strerror_r.
53763         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53764         strerror_r is buggy, but without requiring strerror_r compilation.
53765         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53767         test-perror: relax test to ignore cygwin bug
53768         * tests/test-perror2.c (main): Relax test on requiring detection
53769         of stream errors, and use unbuffered stream.
53770         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53771         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53772         * doc/posix-functions/fputc.texi (fputc): Likewise.
53773         * doc/posix-functions/fputs.texi (fputs): Likewise.
53774         * doc/posix-functions/fputws.texi (fputws): Likewise.
53775         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53776         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53777         * doc/posix-functions/getopt.texi (getopt): Likewise.
53778         * doc/posix-functions/perror.texi (perror): Likewise.
53779         * doc/posix-functions/printf.texi (printf): Likewise.
53780         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53781         * doc/posix-functions/psignal.texi (psignal): Likewise.
53782         * doc/posix-functions/putc.texi (putc): Likewise.
53783         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53784         Likewise.
53785         * doc/posix-functions/putchar.texi (putchar): Likewise.
53786         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53787         Likewise.
53788         * doc/posix-functions/puts.texi (puts): Likewise.
53789         * doc/posix-functions/putwc.texi (putwc): Likewise.
53790         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53791         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53792         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53793         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53794         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53795         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53796         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53797         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53799 2011-05-22  Bruno Haible  <bruno@clisp.org>
53801         strerror: Move AC_LIBOBJ invocations to module description.
53802         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53803         gl_PREREQ_STRERROR invocations from here...
53804         * modules/strerror (configure.ac): ... to here.
53806 2011-05-21  Bruno Haible  <bruno@clisp.org>
53808         perror: Use common idiom.
53809         * modules/perror (configure.ac): Reorder statements.
53811 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53813         tests: fix usage message in 'mktempd_'
53814         * tests/init.sh (mktempd_): In the usage message, use literal
53815         'mktempd_', not '$ME' (which is even undefined), as the name of
53816         the subroutine.
53818 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53820         tests init: new function 'fatal_', for hard errors
53821         Before this patch, the only way offered by tests/init.sh to
53822         properly signal a hard error was the `framework_failure_'
53823         function.  But the error message issued by that function,
53824         as its name would suggest, refers to a set-up failure in the
53825         testsuite, while hard errors can obviously also be due to
53826         other reasons.  The best way to fix this inconsistency is to
53827         introduce a new function with a more general error message.
53828         * tests/init.sh (fatal_): New function.
53830 2011-06-06  Eric Blake  <eblake@redhat.com>
53832         canonicalize-lgpl: use common idiom
53833         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53834         over newer POSIX -Rf.
53835         Reported by Bruno Haible.
53837         canonicalize-lgpl: work around AIX realpath bug
53838         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53839         * doc/posix-functions/realpath.texi (realpath): Document it.
53840         Reported by Bruno Haible.
53842         strerror: work around FreeBSD bug
53843         * lib/strerror.c (strerror): Special case 0.
53844         Reported by Bruno Haible.
53846         strerror-override: avoid bloating errno module
53847         * modules/errno (Files, configure.ac): Move replacement strings...
53848         * modules/strerror-override: ...to new module.
53849         * modules/strerror (Depends-on): Add strerror-override.
53850         * modules/strerror_r-posix (Depends-on): Likewise.
53851         * MODULES.html.sh: Document new module.
53852         Reported by Bruno Haible.
53854 2011-06-06  Bruno Haible  <bruno@clisp.org>
53856         spawn-pipe tests: Rename program.
53857         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53858         * tests/test-spawn-pipe-child.c: Update comment.
53859         * tests/test-spawn-pipe.sh: Update.
53860         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53862         spawn-pipe tests: Link the child program only against libc.
53863         * tests/test-spawn-pipe-child.c: New file, extracted from
53864         tests/test-spawn-pipe.c.
53865         (main): Expect only one argument.
53866         (is_open): New function, copied from tests/test-pipe.c.
53867         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53868         (child_main): Remove function.
53869         (test_pipe): Pass only one argument to the child program.
53870         (main): Remove child process code. Expect the child program's name as
53871         first argument.
53872         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53873         argument.
53874         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53875         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53876         test-spawn-pipe-child against no libraries.
53878 2011-06-06  Bruno Haible  <bruno@clisp.org>
53880         careadlinkat: Avoid mismatch between ssize_t and int.
53881         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53882         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53884 2011-06-06  Jim Meyering  <meyering@redhat.com>
53886         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53887         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53888         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53890 2011-06-05  Bruno Haible  <bruno@clisp.org>
53892         ansi-c++-opt: Interoperability with libtool.
53893         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53894         set the variable to "no", not to ":".
53895         * NEWS: Mention the change.
53897 2011-06-05  Bruno Haible  <bruno@clisp.org>
53899         acl: Fix test failure on AIX 7.
53900         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53901         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53903 2011-06-05  Bruno Haible  <bruno@clisp.org>
53905         pipe-filter-ii: Fix test failure on AIX and IRIX.
53906         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53907         with EAGAIN, retry with a smaller buffer size.
53909 2011-06-05  Bruno Haible  <bruno@clisp.org>
53911         localename: Fix link dependencies.
53912         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53913         * modules/localename-tests (Makefile.am): Link test-localename with
53914         $(LIBTHREAD).
53916 2011-06-05  Bruno Haible  <bruno@clisp.org>
53918         error: Avoid gcc warning.
53919         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53921 2011-06-05  Bruno Haible  <bruno@clisp.org>
53923         unsetenv: Avoid gcc warning.
53924         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53926 2011-06-05  Bruno Haible  <bruno@clisp.org>
53928         setenv: Avoid gcc warning.
53929         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53931 2011-06-05  Bruno Haible  <bruno@clisp.org>
53933         sys_select: Ensure memset is declared also on AIX 7.
53934         * lib/sys_select.in.h: Include <string.h> also on AIX.
53935         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53936         self-contained also on AIX 7.1.
53938 2011-06-04  Jim Meyering  <meyering@redhat.com>
53940         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53941         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53942         function name, "error".
53943         (_gl_translatable_diag_func_re): New configurable variable.
53945 2011-06-04  Bruno Haible  <bruno@clisp.org>
53947         getopt: Avoid gcc warning.
53948         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53950 2011-06-04  Bruno Haible  <bruno@clisp.org>
53952         strerror_r: Fix comments.
53953         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53954         commit.
53956 2011-06-04  Bruno Haible  <bruno@clisp.org>
53958         perror: Fix compilation error.
53959         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53960         Undefine fprintf, not sprintf.
53961         * modules/perror (Depends-on): Remove intprops, verify.
53963 2011-06-04  Bruno Haible  <bruno@clisp.org>
53965         setlocale: Enable replacement on Cygwin 1.5.
53966         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53967         Cygwin 1.5.x.
53968         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53969         LC_CTYPE category also exists on Cygwin 1.5.x.
53971 2011-06-04  Bruno Haible  <bruno@clisp.org>
53973         strerror-override: Don't disable symbol renamings.
53974         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53975         * lib/strerror-override.c: Include config.h.
53976         (strerror_override): Don't undefine.
53978 2011-06-03  Bruno Haible  <bruno@clisp.org>
53980         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53981         * lib/localename.h: Update copyright header.
53982         * lib/localename.c: Likewise.
53983         * lib/relocatable.h: Likewise.
53984         * lib/relocatable.c: Likewise.
53986 2011-06-02  Bruno Haible  <bruno@clisp.org>
53988         doc: Fix a module name.
53989         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53991 2011-06-02  Bruno Haible  <bruno@clisp.org>
53993         pipe2: Remove dependency on 'nonblocking' module.
53994         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53995         O_NONBLOCK is defined by gnulib.
53996         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53997         is zero.
53998         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53999         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
54000         defined by gnulib.
54001         (get_nonblocking_flag): New function.
54002         (main): Test O_NONBLOCK flag only if it is nonzero.
54003         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
54005 2011-06-03  Jim Meyering  <meyering@redhat.com>
54007         maint: three new prohibit-header-without-use rules
54008         Prohibit use of cloexec.h, posixver.h, same.h without use.
54009         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
54010         (sc_prohibit_posixver_without_use): Likewise.
54011         (sc_prohibit_same_without_use): Likewise.
54013 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
54015         allocator: 'die' routine is now given requested size
54016         * lib/allocator.h (struct allocator.die): New size arg.
54017         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
54018         If the actual problem is an ssize_t limitation, not a size_t or
54019         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
54021 2011-06-01  Eric Blake  <eblake@redhat.com>
54023         strerror: drop strerror_r dependency
54024         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
54025         * lib/strerror-override.c (strerror_override): ...to new file.
54026         * lib/strerror-override.h: Add prototype.
54027         * lib/strerror-impl.h: Delete.
54028         * lib/strerror.c (strerror): New implementation.
54029         * modules/errno (Files): Add new files.
54030         (configure.ac): Compile new file as appropriate.
54031         * modules/strerror (Files): Drop unused file.
54032         (Depends-on): Drop strerror_r-posix.
54033         * MODULES.html.sh: Document strerror_r-posix.
54034         Requested by Sam Steingold.
54036         perror: call strerror_r directly
54037         * modules/perror (Files): Drop strerror-impl.h.
54038         * lib/perror.c (perror): Use our own stack buffer, rather than
54039         calling a wrapper that uses static storage.
54040         * doc/posix-functions/perror.texi (perror): Document a limitation
54041         of our replacement.
54043         strerror_r: fix includes for FreeBSD
54044         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
54045         since we use abort on some platforms.
54046         Reported by Matthias Bolte.
54048 2011-05-31  Bruno Haible  <bruno@clisp.org>
54050         Fix link errors in tests: openat-die uses gettext-h.
54051         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
54052         against $(LIBINTL).
54053         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
54054         against $(LIBINTL).
54055         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
54056         $(LIBINTL).
54057         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
54058         against $(LIBINTL).
54059         * modules/linkat-tests (Makefile.am): Link test-linkat against
54060         $(LIBINTL).
54061         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
54062         $(LIBINTL).
54063         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
54064         against $(LIBINTL).
54065         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
54066         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
54067         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
54068         $(LIBINTL).
54069         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
54070         $(LIBINTL).
54071         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
54072         $(LIBINTL).
54073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54075 2011-05-31  Bruno Haible  <bruno@clisp.org>
54077         Fix link errors in tests: wait-process uses gettext-h.
54078         * modules/nonblocking-pipe-tests (Makefile.am): Set
54079         test_nonblocking_pipe_main_LDADD.
54080         * modules/nonblocking-socket-tests (Makefile.am): Link
54081         test-nonblocking-socket-main against $(LIBINTL).
54082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54084 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
54086         assert-h: work around 'verify' incompatibility
54087         * lib/verify.h: Use @...@ directives, not ifdef.
54088         * modules/assert-h (assert.h): Implement the directives.
54089         (assert.h): Substitute the symbol-prefix more consistently.
54091 2011-05-29  Jim Meyering  <meyering@redhat.com>
54093         trim: remove three superfluous assignments
54094         * lib/trim.c (trim2): Remove three superfluous assignments
54095         and correct brace positioning.
54097 2011-05-29  Bruno Haible  <bruno@clisp.org>
54099         wctype-h: Avoid namespace pollution on Solaris 2.6.
54100         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
54101         identifiers.
54102         * doc/posix-headers/wctype.texi: Mention the problem.
54103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54105 2011-05-28  Jim Meyering  <meyering@redhat.com>
54107         parse-datetime.y: accommodate -Wstrict-overflow
54108         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
54109         placate -Wstrict-overflow.
54111         trim: avoid a warning from -O2 -Wstrict-overflow
54112         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
54114 2011-05-29  Bruno Haible  <bruno@clisp.org>
54116         gnulib-tool: Fix bug in yesterday's commit.
54117         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
54118         twice.
54120 2011-05-29  Bruno Haible  <bruno@clisp.org>
54122         Allow multiple gnulib generated include files to be combined.
54123         * gnulib-tool (func_compute_include_guard_prefix): New function.
54124         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
54125         ${gl_include_guard_prefix} references.
54126         (func_import, func_create_testdir): Invoke
54127         func_compute_include_guard_prefix.
54128         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
54129         * lib/ctype.in.h: Likewise.
54130         * lib/dirent.in.h: Likewise.
54131         * lib/errno.in.h: Likewise.
54132         * lib/fcntl.in.h: Likewise.
54133         * lib/float.in.h: Likewise.
54134         * lib/getopt.in.h: Likewise.
54135         * lib/iconv.in.h: Likewise.
54136         * lib/langinfo.in.h: Likewise.
54137         * lib/locale.in.h: Likewise.
54138         * lib/math.in.h: Likewise.
54139         * lib/netdb.in.h: Likewise.
54140         * lib/netinet_in.in.h: Likewise.
54141         * lib/poll.in.h: Likewise.
54142         * lib/pthread.in.h: Likewise.
54143         * lib/pty.in.h: Likewise.
54144         * lib/sched.in.h: Likewise.
54145         * lib/se-selinux.in.h: Likewise.
54146         * lib/search.in.h: Likewise.
54147         * lib/signal.in.h: Likewise.
54148         * lib/spawn.in.h: Likewise.
54149         * lib/stdarg.in.h: Likewise.
54150         * lib/stddef.in.h: Likewise.
54151         * lib/stdint.in.h: Likewise.
54152         * lib/stdio.in.h: Likewise.
54153         * lib/stdlib.in.h: Likewise.
54154         * lib/string.in.h: Likewise.
54155         * lib/strings.in.h: Likewise.
54156         * lib/sys_file.in.h: Likewise.
54157         * lib/sys_ioctl.in.h: Likewise.
54158         * lib/sys_select.in.h: Likewise.
54159         * lib/sys_socket.in.h: Likewise.
54160         * lib/sys_stat.in.h: Likewise.
54161         * lib/sys_time.in.h: Likewise.
54162         * lib/sys_times.in.h: Likewise.
54163         * lib/sys_uio.in.h: Likewise.
54164         * lib/sys_utsname.in.h: Likewise.
54165         * lib/sys_wait.in.h: Likewise.
54166         * lib/sysexits.in.h: Likewise.
54167         * lib/termios.in.h: Likewise.
54168         * lib/time.in.h: Likewise.
54169         * lib/unistd.in.h: Likewise.
54170         * lib/wchar.in.h: Likewise.
54171         * lib/wctype.in.h: Likewise.
54172         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
54173         * modules/ctype (Makefile.am): Likewise.
54174         * modules/dirent (Makefile.am): Likewise.
54175         * modules/errno (Makefile.am): Likewise.
54176         * modules/fcntl-h (Makefile.am): Likewise.
54177         * modules/float (Makefile.am): Likewise.
54178         * modules/getopt-posix (Makefile.am): Likewise.
54179         * modules/iconv-h (Makefile.am): Likewise.
54180         * modules/langinfo (Makefile.am): Likewise.
54181         * modules/locale (Makefile.am): Likewise.
54182         * modules/math (Makefile.am): Likewise.
54183         * modules/netdb (Makefile.am): Likewise.
54184         * modules/netinet_in (Makefile.am): Likewise.
54185         * modules/poll-h (Makefile.am): Likewise.
54186         * modules/pthread (Makefile.am): Likewise.
54187         * modules/pty (Makefile.am): Likewise.
54188         * modules/sched (Makefile.am): Likewise.
54189         * modules/search (Makefile.am): Likewise.
54190         * modules/selinux-h (Makefile.am): Likewise.
54191         * modules/signal (Makefile.am): Likewise.
54192         * modules/spawn (Makefile.am): Likewise.
54193         * modules/stdarg (Makefile.am): Likewise.
54194         * modules/stddef (Makefile.am): Likewise.
54195         * modules/stdint (Makefile.am): Likewise.
54196         * modules/stdio (Makefile.am): Likewise.
54197         * modules/stdlib (Makefile.am): Likewise.
54198         * modules/string (Makefile.am): Likewise.
54199         * modules/strings (Makefile.am): Likewise.
54200         * modules/sys_file (Makefile.am): Likewise.
54201         * modules/sys_ioctl (Makefile.am): Likewise.
54202         * modules/sys_select (Makefile.am): Likewise.
54203         * modules/sys_socket (Makefile.am): Likewise.
54204         * modules/sys_stat (Makefile.am): Likewise.
54205         * modules/sys_time (Makefile.am): Likewise.
54206         * modules/sys_times (Makefile.am): Likewise.
54207         * modules/sys_uio (Makefile.am): Likewise.
54208         * modules/sys_utsname (Makefile.am): Likewise.
54209         * modules/sys_wait (Makefile.am): Likewise.
54210         * modules/sysexits (Makefile.am): Likewise.
54211         * modules/termios (Makefile.am): Likewise.
54212         * modules/time (Makefile.am): Likewise.
54213         * modules/unistd (Makefile.am): Likewise.
54214         * modules/wchar (Makefile.am): Likewise.
54215         * modules/wctype-h (Makefile.am): Likewise.
54216         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
54218 2011-05-29  Bruno Haible  <bruno@clisp.org>
54220         assert-h: Allow multiple gnulib generated replacements to coexist.
54221         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
54223 2011-05-29  Bruno Haible  <bruno@clisp.org>
54225         argp: Allow coexistence with strerror_r-posix module.
54226         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
54227         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
54228         by gnulib's <string.h> replacement), assume it has the POSIX signature,
54229         not the glibc signature.
54231 2011-05-28  Bruno Haible  <bruno@clisp.org>
54233         gnulib-tool: Alternative structure of testdirs, similar to --import.
54234         * gnulib-tool: New option --single-configure.
54235         (func_usage): Document it.
54236         (single_configure): New variable.
54237         (func_modules_transitive_closure_separately,
54238         func_modules_transitive_closure_separately,
54239         func_determine_use_libtests, func_modules_add_dummy_separately,
54240         func_modules_to_filelist_separately): New functions, extracted from
54241         func_import.
54242         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
54243         (func_import): Use the new functions.
54244         (func_create_testdir): Set final_modules. Handle $single_configure =
54245         true case.
54247 2011-05-28  Bruno Haible  <bruno@clisp.org>
54249         getloadavg: Remove an unreliable safety check.
54250         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
54251         getloadavg.c is in place.
54252         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
54253         Reported by Sam Steingold <sds@gnu.org>.
54255 2011-05-28  Bruno Haible  <bruno@clisp.org>
54257         doc: Cleanup yet another file produced by texinfo.tex.
54258         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54260 2011-05-28  Bruno Haible  <bruno@clisp.org>
54262         Finish the conditional dependencies mechanism.
54263         * gnulib-tool: New option --no-conditional-dependencies.
54264         (func_usage): Document it. Don't mark --conditional-dependencies as
54265         experimental.
54266         (cond_dependencies): The possible values can now be true, false, empty.
54267         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54268         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54269         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54271 2011-05-28  Bruno Haible  <bruno@clisp.org>
54273         doc: Use a recent texinfo.tex.
54274         * doc/Makefile (tex_opts): New variable.
54275         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54277 2011-05-28  Jim Meyering  <meyering@redhat.com>
54279         intprops.h: adjust comment to match code change
54280         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54281         only once, it *may* have side effects.  Also fix an unrelated typo.
54282         (_GL_INT_SIGNED): Likewise.
54284 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54286         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54288 2011-05-26  Bruno Haible  <bruno@clisp.org>
54290         mbsrchr: Avoid collision with system function on Interix.
54291         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54292         Reported by Markus Duft <mduft@gentoo.org>.
54294 2011-05-15  James Youngman  <jay@gnu.org>
54296         getopt: for ambiguous options, enumerate the possibilities.
54297         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54298         the ambiguous options when an ambiguous prefix is given. This was
54299         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54300         glibc change was
54301         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54303 2011-05-25  Eric Blake  <eblake@redhat.com>
54305         getcwd: work around mingw bug
54306         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54307         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54308         Reported by Matthias Bolte.
54310 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54312         test-intprops: disable -Wtype-limits diagnostics
54313         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54314         diagnostics.  Otherwise, the integer overflow macros generate many
54315         diagnostics.  Reported by Jim Meyering in
54316         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54318         intprops: shorten, to pacify gcc -Woverlength-strings
54319         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54320         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54321         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54322         likely to run afoul of C compiler limits for string constant lengths.
54323         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54325 2011-05-24  Eric Blake  <eblake@redhat.com>
54327         docs: document recently fixed glibc printf bug
54328         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54329         * doc/posix-functions/printf.texi (printf): Likewise.
54330         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54331         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54333         closein-tests: convert to init.sh
54334         * modules/closein-tests (Files): Add init.sh
54335         * tests/test-closein.sh Use it.
54337         yesno-tests: convert to init.sh
54338         * modules/yesno-tests (Files): Add init.sh.
54339         * tests/test-yesno.sh: Use it.
54341         atexit-tests: ensure reliable exit status
54342         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54343         Reported by Bruno Haible.
54345 2011-05-24  Bruno Haible  <bruno@clisp.org>
54347         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54348         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54349         gl_PREREQ_STRERROR_R invocations from here...
54350         * modules/strerror_r-posix (configure.ac): ... to here.
54352 2011-05-24  Eric Blake  <eblake@redhat.com>
54354         strerror_r: fix missing header
54355         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54357         strerror_r: fix AIX test failures
54358         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54359         ERANGE failure.
54361         strerror_r: fix Solaris test failures
54362         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54363         failures.
54364         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54366         strerror_r: enforce POSIX recommendations
54367         * lib/strerror_r.c (safe_copy): New helper method.
54368         (strerror_r): Guarantee a non-empty string.
54369         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54370         recent POSIX rulings and to match our strerror guarantees.
54371         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54373 2011-05-24  Jim Meyering  <meyering@redhat.com>
54375         test-perror2.c: avoid warning about unused variable
54376         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54378 2011-05-24  Eric Blake  <eblake@redhat.com>
54380         perror: avoid spurious test failure on HP-UX
54381         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54383         tests: fix logic bug in init.sh
54384         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54385         shell.
54387 2011-05-24  Jim Meyering  <meyering@redhat.com>
54389         utimensat: do not reference an out-of-scope buffer
54390         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54391         declared in an inner scope, yet "times" would be dereferenced outside
54392         the scope in which "ts" was valid.
54393         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54394         of ts[2] "out/up", so that the use of aliased "times" (via
54395         "times = ts;") does not end up referencing an out-of-scope "ts"
54397         opendir-safer.c: don't clobber errno; don't close negative FD
54398         * lib/opendir-safer.c (opendir_safer):
54399         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54400         file descriptor, and more importantly, don't clobber the
54401         offending errno value with EINVAL.  Before, upon failure
54402         of dup_safer, we would pass the negative file descriptor to
54403         fdopendir, which would clobber errno.
54405 2011-05-23  Bruno Haible  <bruno@clisp.org>
54407         idcache: Fix module description.
54408         * modules/idcache (Include): Set to "idcache.h".
54410 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54412         gnulib-tool: fix portability problem with MacOS sed
54413         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54414         before the "}".  Problem reported by Leo in
54415         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54416         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54417         sed_extract_condition1, sed_extract_condition2.
54419 2011-05-23  Bruno Haible  <bruno@clisp.org>
54421         hash: Simplify autoconf macro.
54422         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54424 2011-05-23  Bruno Haible  <bruno@clisp.org>
54426         getugroups: Fix module description.
54427         * modules/getugroups (Include): Set to "getugroups.h".
54429 2011-05-23  Bruno Haible  <bruno@clisp.org>
54431         linkat: Simplify autoconf macro.
54432         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54434 2011-05-23  Bruno Haible  <bruno@clisp.org>
54435             Eric Blake  <eblake@redhat.com>
54437         linkat, renameat: Update dependencies.
54438         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54439         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54440         symlinkat.
54442 2011-05-23  Jim Meyering  <meyering@redhat.com>
54444         maint.mk: more tight_scope improvements
54445         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54446         (_gl_TS_headers): Define only in if-0'd block.
54447         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54448         sometimes we must *not* use it.  Adjust uses accordingly.
54449         (sc_tight_scope): Use much simpler grep-based test to determine
54450         whether we skip this rule.
54452         maint.mk: generalize/improve the tight-scope rule
54453         * top/maint.mk: Emit a warning when the test is skipped.
54454         (_gl_TS_dir): Add $(srcdir)/ prefix.
54455         (_gl_TS_function_match): Simplify, rather than trying
54456         to enumerate common types.  Otherwise, it would fail to match an
54457         "extern unsigned char const *" declaration in idutils.
54458         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54459         a way to support use of that type of macro.
54460         (_gl_TS_var_match): Simplify regexp.
54461         (_gl_TS_obj_files): New configurable variable.
54462         (_gl_TS_headers): Likewise.
54464 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54466         verify: fix bug when gnulib <assert.h> is also included
54467         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54468         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54469         Perhaps there's a better way, but this fixes the immediate problem.
54470         Problem reported by Bruno Haible in
54471         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54473 2011-05-22  Bruno Haible  <bruno@clisp.org>
54475         xgetcwd: Simplify autoconf macro.
54476         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54478 2011-05-22  Bruno Haible  <bruno@clisp.org>
54480         New module 'mktime-internal'.
54481         * modules/mktime-internal: New file.
54482         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54483         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54484         mktime_internal as a C macro if libc has __mktime_internal.
54485         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54486         conditions.
54487         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54489 2011-05-22  Bruno Haible  <bruno@clisp.org>
54491         timegm: Correct mktime replacement statements.
54492         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54493         defining mktime as a C macro. This completes a 2009-07-28 commit.
54495 2011-05-22  Bruno Haible  <bruno@clisp.org>
54497         timegm: Simplify autoconf macro.
54498         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54500 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54502         clock-time: change to LGPLv2+.
54503         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54504         BSD-like but we have no mark for that; this is good enough for now.
54506 2011-05-21  Bruno Haible  <bruno@clisp.org>
54508         strerror_r: Fix comments.
54509         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54511 2011-05-21  Bruno Haible  <bruno@clisp.org>
54513         relocatable-prog-wrapper: Fix possible link error.
54514         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54515         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54516         (gl_FUNC_SETENV): ... to here.
54517         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54518         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54520 2011-05-21  Bruno Haible  <bruno@clisp.org>
54522         relocatable-prog-wrapper: Assume strerror() exists.
54523         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54524         m4/strerror.m4.
54525         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54526         * lib/relocwrapper.c: Remove mention of strerror module.
54527         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54528         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54529         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54530         C macro.
54532 2011-05-21  Bruno Haible  <bruno@clisp.org>
54534         select: Simplify replacement idiom.
54535         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54536         Win32 platforms.
54537         * lib/sys_select.in.h (select): Simplify accordingly.
54538         * modules/select (Depends-on): Likewise.
54540 2011-05-21  Bruno Haible  <bruno@clisp.org>
54542         mkdir-p: Simplify autoconf macro.
54543         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54544         gl_FUNC_LCHOWN.
54546 2011-05-21  Eric Blake  <eblake@redhat.com>
54548         strerror_r: avoid clobbering strerror on cygwin
54549         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54550         fall back instead to sys_errlist.
54551         * modules/strerror (configure.ac): Add witness.
54552         * tests/test-strerror_r.c (main): Enhance test.
54553         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54554         * tests/test-perror2.c (main): Free memory before exit.
54556 2011-05-21  Bruno Haible  <bruno@clisp.org>
54558         mkdtemp: Use gnulib naming conventions.
54559         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54560         * modules/mkdtemp (configure.ac): Update.
54562 2011-05-20  Eric Blake  <eblake@redhat.com>
54564         strerror_r: avoid corrupting errno on Solaris
54565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54566         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54568         strerror_r: avoid compiler warning
54569         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54571         strerror_r: simplify AIX code
54572         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54574         test-perror: avoid spurious failure on FreeBSD
54575         * modules/perror-tests (Depends-on): Add strerror, now that
54576         strerror_r no longer pulls it in.
54578 2011-05-20  Bruno Haible  <bruno@clisp.org>
54580         strerror_r-posix: Remove unused dependencies.
54581         * modules/strerror_r-posix (Depends-on): Remove strerror.
54582         Reported by Eric Blake.
54584 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54586         intprops: remove assumption about A|B representation
54587         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54588         is a valid integer if both A and B are.  Although this is true for
54589         all known practical hosts, the C standard doesn't guarantee it,
54590         and the code need not assume it.  Also, this change may work around
54591         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54592         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54594 2011-05-20  Eric Blake  <eblake@redhat.com>
54596         perror: work around FreeBSD bug
54597         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54598         is broken.  Move AC_LIBOBJ...
54599         * modules/perror (configure.ac): Here.
54600         * doc/posix-functions/perror.texi (perror): Document this.
54601         * tests/test-perror2.c (main): Enhance test.
54603         test-perror: check for strerror interactions
54604         * tests/macros.h (STREQ): Add macro.
54605         * modules/perror-tests (Files): Add second test.
54606         * tests/test-perror2.c (main): New file.
54607         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54609         test-perror: rewrite to use init script
54610         * modules/perror-tests (Files): Add init.sh.
54611         * tests/test-perror.sh: Use temporary directory.
54613 2011-05-20  Jim Meyering  <meyering@redhat.com>
54615         maint: replace misused "a" with "an"
54616         * doc/intprops.texi: "a integer"
54617         * doc/regex.texi: "a explanation"
54618         * lib/alignof.h: "a object"
54619         * lib/argmatch.h: "a explanation"
54620         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54621         * lib/stdint.in.h: "a integer"
54622         * lib/userspec.c: "a owner"
54623         * doc/gnulib.texi: Fix "a idea", and reword.
54625 2011-05-19  Jim Meyering  <meyering@redhat.com>
54627         maint: correct misuse of "a" and "an"
54628         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54629         * lib/argp-help.c: "an docum...": s/an/a/
54630         * lib/argp-parse.c: "An vector": s/An/A/
54631         * lib/execute.c: "an native": s/an/a/
54632         * lib/spawn-pipe.c: Likewise.
54633         * lib/gc.h: "an Gc_rc": s/an/a/
54634         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54635         * lib/fts.c: "an stat.st_dev": s/an/a/
54637 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54639         intprops-tests: work around HP-UX 11.23 cc bug with constants
54640         * tests/test-intprops.c (VERIFY): New macro.
54641         (main): Use it, instead of verify, to work around the compiler bug; see
54642         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54644         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54645         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54646         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54647         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54648         (_GL_REMAINDER_OVERFLOW): Use it.
54650         intprops-tests: revert unsigned part of previous change
54651         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54652         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54653         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54654         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54656 2011-05-19  Bruno Haible  <bruno@clisp.org>
54658         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54659         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54660         strerror_r() returned without filling the buffer.
54661         Reported by Eric Blake.
54663 2011-05-19  Eric Blake  <eblake@redhat.com>
54665         strerror_r: guarantee unchanged errno
54666         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54667         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54668         failure.
54669         * tests/test-strerror_r.c (main): Enhance test.
54671 2011-05-19  Bruno Haible  <bruno@clisp.org>
54673         strerror_r: Reorder #if blocks.
54674         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54675         for consistency with the previous commit.
54677 2011-05-19  Bruno Haible  <bruno@clisp.org>
54679         perror: Avoid clobbering the strerror buffer when possible.
54680         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54681         * lib/strerror.c: Include it.
54682         * modules/strerror (Files): Add lib/strerror-impl.h.
54683         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54684         (my_strerror): New function, defined through lib/strerror-impl.h.
54685         (perror): Use it instead of strerror.
54686         * modules/perror (Files): Add lib/strerror-impl.h.
54687         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54689 2011-05-19  Eric Blake  <eblake@redhat.com>
54691         strerror_r: fix on newer cygwin
54692         * lib/strerror_r.c (strerror_r): Cygwin now has
54693         __xpg_strerror_r, use it.
54695 2011-05-19  Bruno Haible  <bruno@clisp.org>
54697         strerror_r: Avoid clobbering the strerror buffer when possible.
54698         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54699         (sys_nerr, sys_errlist): New declarations.
54700         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54701         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54702         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54704 2011-05-19  Bruno Haible  <bruno@clisp.org>
54706         strerror_r: Fix test failure on mingw.
54707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54708         EXTEND_STRERROR_R.
54709         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54710         macros from errno.in.h instead.
54712 2011-05-19  Eric Blake  <eblake@redhat.com>
54714         strerror: relax test for Solaris
54715         * tests/test-strerror.c (main): Permit Solaris behavior.
54716         * tests/test-strerror_r.c (main): Likewise.
54718         strerror: enforce POSIX ruling on strerror(0)
54719         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54721         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54722         * doc/posix-functions/strerror.texi (strerror): Document it.
54723         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54724         * tests/test-strerror.c (main): Strengthen test.
54725         * tests/test-strerror_r.c (main): Likewise.
54727 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54729         intprop-tests: port to older and more-pedantic compilers
54730         * modules/intprops-tests (Files): Add tests/macros.h.
54731         * tests/test-intprops.c: Include macros.h.
54732         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54733         it's no longer documented to expand to an integer constant expression.
54734         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54735         argument is floating point, as it's no longer documented to expand
54736         to an integer constant expression in that case.
54737         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54738         compiler bugs reported by Bruno Haible.  See
54739         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54740         (U0, U1): New constants, to work around the same bugs.  Also,
54741         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54743         intprops: work around C compiler bugs
54744         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54745         bug in Sun C 5.11 2010/08/13 and other compilers; see
54746         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54748         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54749         * doc/intprops.texi (Integer Type Determination): Fix
54750         documentation for TYPE_IS_INTEGER: it returns an constant
54751         expression, not an integer constant expression.  Fix doc for
54752         TYPE_SIGNED: it returns an integer constant expression only if its
54753         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54754         hardly worth documented that way....)
54756 2011-05-18  Bruno Haible  <bruno@clisp.org>
54758         strerror_r: Avoid clobbering the strerror buffer when possible.
54759         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54760         Handle gnulib defined errno values here. When strerror() returns NULL
54761         or an empty string, return EINVAL.
54762         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54763         gnulib defined errno values here.
54764         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54766 2011-05-18  Eric Blake  <eblake@redhat.com>
54768         fnmatch: avoid compiler warning
54769         * lib/fnmatch_loop.c (FCT): Use correct type.
54770         Reported by Matthias Bolte.
54772 2011-05-13  Jim Meyering  <meyering@redhat.com>
54774         maint.mk: three new prohibit_<HDR>_without_use rules
54775         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54776         (sc_prohibit_stdio-safer_without_use): Likewise.
54777         (sc_prohibit_xfreopen_without_use): Likewise.
54779 2011-05-17  Jim Meyering  <meyering@redhat.com>
54781         announce-gen: fail if the NEWS delta is empty
54782         If there's nothing noteworthy in NEWS, then either you forgot
54783         or you shouldn't be releasing.
54784         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54786 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54788         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54789         reserved symbols starting with double underscore from the check.
54791 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54793         intprops: add doc
54794         * doc/intprops.texi: New file, documenting intprops.
54795         * doc/gnulib.texi (Particular Modules): Include it.
54797         verify: add doc to gnulib manual and fix example
54798         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54799         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54800         (Compile-time Assertions): Fix example so it can't overflow.
54802 2011-05-17  Jim Meyering  <meyering@redhat.com>
54804         warnings.m4: don't usurp save_CPPFLAGS variable name
54805         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54807         doc: fix typo
54808         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54810 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54811             Bruno Haible  <bruno@clisp.org>
54813         doc: Tweak recent change.
54814         * README (Portability guidelines): Tweak new text.
54815         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54816         Interix 6.1.
54818 2011-05-16  Eric Blake  <eblake@redhat.com>
54820         inttypes: avoid autoconf warning
54821         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54822         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54824 2011-05-16  Sam Steingold  <sds@gnu.org>
54825         and Eric Blake  <eblake@redhat.com>
54827         vc-list-files: accept multiple directory operands
54828         * build-aux/vc-list-files: Iterate over all remaining operands.
54830 2011-05-16  Bruno Haible  <bruno@clisp.org>
54832         Fix confusion regarding deprecated modules.
54833         * modules/calloc (Status, Notice): Mark module as deprecated, not
54834         obsolete.
54835         * modules/fnmatch-posix (Status, Notice): Likewise.
54836         * modules/getdate (Status, Notice): Likewise.
54837         * modules/getopt (Status, Notice): Likewise.
54838         * modules/malloc (Status, Notice): Likewise.
54839         * modules/pipe (Status, Notice): Likewise.
54840         * modules/realloc (Status, Notice): Likewise.
54841         * modules/rename-dest-slash (Status, Notice): Likewise.
54842         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54843         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54844         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54845         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54846         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54848 2011-05-16  Bruno Haible  <bruno@clisp.org>
54850         doc: List the target platforms.
54851         * doc/gnulib-intro.texi (Target Platforms): New section.
54852         * doc/gnulib.texi (Introduction): Update menu.
54853         * README (Portability guidelines): Refer to the new section. Update
54854         statement about oldest supported environment. Remove rationale why
54855         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54856         unportable C89 function.
54857         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54858         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54860 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54862         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54864 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54866         intprops-tests: new module
54867         * modules/intprops-tests, tests/test-intprops.c: New files.
54869         intprops: add safe, portable integer overflow checking
54870         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54871         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54872         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54873         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54874         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54875         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54876         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54877         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54878         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54879         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54880         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54882 2011-05-12  James Youngman  <jay@gnu.org>
54884         Add a test for glibc's Bugzilla bug #12378.
54885         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54886         doesn't allow the literal matching of a lone "[" (which is
54887         required by POSIX).
54888         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54890 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54892         Sync glibc change fixing Bugzilla bug #12378.
54893         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54894         beginning and fall back to matching as normal character if the
54895         string ends before the matching ']' is found.  This is what POSIX
54896         requires.
54898 2011-05-13  Eric Blake  <eblake@redhat.com>
54900         getcwd-lgpl: relax test for FreeBSD
54901         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54902         issue.
54903         * tests/test-getcwd-lgpl.c (main): Relax test.
54904         Reported by Matthias Bolte.
54906 2011-05-11  Eric Blake  <eblake@redhat.com>
54908         test-fflush: silence compiler warning
54909         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54911 2011-05-11  Bruno Haible  <bruno@clisp.org>
54913         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54914         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54915         * modules/canonicalize (Depends-on): Add 'nocrash'.
54916         * modules/canonicalize-lgpl (Depends-on): Likewise.
54917         * doc/posix-functions/realpath.texi: Update platforms list.
54918         Reported by Ryan Schmidt <ryandesign@macports.org>.
54920 2011-05-11  Bruno Haible  <bruno@clisp.org>
54922         group-member: Declare function in <unistd.h>.
54923         * lib/unistd.in.h (group_member): New declaration.
54924         * lib/group-member.h: Remove file.
54925         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54926         * tests/test-unistd-c++.cc: Check signature of group_member.
54927         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54928         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54929         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54930         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54931         HAVE_GROUP_MEMBER.
54932         * modules/group-member (Files): Remove lib/group-member.h.
54933         (Depends-on): Add unistd. Specify conditions.
54934         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54935         (Include): Change to <unistd.h>.
54936         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54937         HAVE_GROUP_MEMBER.
54938         * NEWS: Mention the change.
54939         * lib/euidaccess.c: Don't include group-member.h.
54941 2011-05-11  Bruno Haible  <bruno@clisp.org>
54943         group-member: Document module.
54944         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54945         module.
54947 2011-05-11  Bruno Haible  <bruno@clisp.org>
54949         fclose: Fix mistake earlier today.
54950         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54952 2011-05-11  Eric Blake  <eblake@redhat.com>
54954         fclose: preserve fflush errors
54955         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54956         Reported by Jim Meyering.
54958         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54959         * build-aux/bootstrap (check_versions): When no specific version
54960         is required, merely check that the app produces an exit status
54961         that indicates its existence.
54963         maint.mk: drop redundant check
54964         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54965         the same but better.
54967 2011-05-11  Bruno Haible  <bruno@clisp.org>
54969         fclose: Fix possible link error.
54970         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54971         unregister_shadow_fd. Improve comments.
54972         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54973         Eric Blake.
54975 2011-05-11  Jim Meyering  <meyering@redhat.com>
54977         maint.mk: improve "can not" detection and generalize rule name
54978         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54979         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54980         Use the same technique as in sc_prohibit_doubled_word, so that
54981         we recognize "can not" also when the words are separated by a newline.
54982         Suggested by Eric Blake.
54983         (perl_filename_lineno_text_): Define.  Factored out of...
54984         (prohibit_doubled_word_): ...here.  Use the new definition.
54985         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54986         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54987         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54989 2011-05-10  Eric Blake  <eblake@redhat.com>
54991         fclose: avoid double close race when possible
54992         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54993         all but WINDOWS_SOCKETS.
54995 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54997         openat: correct new comment
54998         * lib/openat-proc.c (openat_proc_name): Correct the comment.
55000 2011-05-10  Jim Meyering  <meyering@redhat.com>
55002         openat: add comments
55003         * lib/openat-proc.c (openat_proc_name): Add comments,
55004         mostly from Eric Blake.
55006 2011-05-09  Eric Blake  <eblake@redhat.com>
55008         openat: reduce syscalls in first probe of /proc
55009         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
55010         be a directory.  Simplify the probe for .. bugs.
55011         * modules/openat (Depends-on): Drop same-inode.
55012         Reported by Bastien ROUCARIES.
55014 2011-05-09  Jim Meyering  <meyering@redhat.com>
55016         maint.mk: change semantics/name of tight_scope variables
55017         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
55018         Rename variables to align with semantics that make them more useful.
55020         maint.mk: tweak new rule's name not to impinge
55021         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
55022         (sc_tight_scope): Use new rule name rather than $@-0.
55024         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
55025         * top/maint.mk (sc_tight_scope): New rule.
55026         (sc_tight_scope-0): New rule, ifdef'd out.
55027         (_gl_TS_dir): Default.
55028         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
55029         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
55031 2011-05-09  Simon Josefsson  <simon@josefsson.org>
55033         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
55034         Haible <bruno@clisp.org>.
55036 2011-05-08  Bruno Haible  <bruno@clisp.org>
55038         Comments.
55039         * m4/isnanf.m4: Add comment.
55040         * m4/isnanl.m4: Likewise.
55042 2011-05-08  Bruno Haible  <bruno@clisp.org>
55044         glob: Remove obsolete macro.
55045         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
55047 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
55049         intprops: Sun C 5.11 supports __typeof__
55050         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
55051         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
55052         which is new.
55053         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
55055         intprops: switch to usual gnulib indenting and naming
55056         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
55057         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
55059         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
55061 2011-05-08  Jim Meyering  <meyering@redhat.com>
55063         maint.mk: suppress "Entering/Leaving directory" diag in announcement
55064         * top/maint.mk (release-prep): Use make's --no-print-directory
55065         option when generating the announcement.  This eliminates the
55066         pesky "make[2]: Entering/Leaving directory" diagnostics in the
55067         generated announcement template.
55069 2011-05-08  Bruno Haible  <bruno@clisp.org>
55071         tzset: Fix gettimeofday wrapper on Solaris 2.6.
55072         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
55073         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
55075 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
55077         ignore-value, verify: Omit include files from lib_SOURCES.
55078         * modules/ignore-value, modules/verify (Makefile.am):
55079         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
55080         that leads Automake to duplicate use of am__objects_... variables
55081         in Makefile.in.  See
55082         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
55084 2011-05-07  Bruno Haible  <bruno@clisp.org>
55086         fclose: Simplify autoconf macro.
55087         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
55088         defined.
55090 2011-05-07  Bruno Haible  <bruno@clisp.org>
55092         canonicalize-lgpl: Fix autoconf macro ordering bug.
55093         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
55094         gl_STDLIB_H_DEFAULTS.
55096 2011-05-06  Eric Blake  <eblake@redhat.com>
55098         maintainer-makefile: make sc_po_check easier to tune
55099         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
55100         to probe for strings, such as an alternate location for gnulib.
55102         fclose: guarantee behavior on seekable stdin
55103         * modules/fclose (Depends-on): Add fflush.
55104         * doc/posix-functions/fclose.texi (fclose): Document this.
55105         * tests/test-fclose.c (main): Make test for this unconditional.
55107 2011-05-06  Bruno Haible  <bruno@clisp.org>
55109         fflush, fpurge: Relicense under LGPLv2+.
55110         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
55111         * modules/fpurge (License): Likewise.
55112         With permission from Eric Blake and Jim Meyering.
55113         Suggested by Eric Blake.
55115 2011-05-06  Karl Berry  <karl@gnu.org>
55117         * MODULES.html.sh (func_all_modules): remove exit.
55119 2011-05-06  Jim Meyering  <meyering@redhat.com>
55121         maint.mk: use info-gnu@ as the default only for a stable release
55122         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
55123         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
55124         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
55125         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
55127 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
55129         assert-h: new module, which supports C1X-style static_assert
55130         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
55131         * lib/verify.h: Revamp so that this can be copied into assert.h,
55132         while retaining the ability to use it standalone as before.
55133         Rename private identifiers so as not to encroach on the
55134         standard C namespace, since this is now used by assert.h.
55135         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
55136         the old verify_true.
55137         (_GL_VERIFY_TRUE): New macro, with much of the contents of
55138         the old verify_true.  Use _GL_VERIFY_TYPE.
55139         (_GL_VERIFY): New macro, with much of the contents of the old verify.
55140         (static_assert): New macro, if _GL_STATIC_ASSERT_H
55141         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
55142         defined when this file is copied into the replacement assert.h.
55143         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
55144         and _Static_assert is not built in.
55145         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
55146         defined, and use the new macros mentioned above.
55147         * doc/posix-headers/assert.texi: Document this.
55149 2011-05-05  Bruno Haible  <bruno@clisp.org>
55151         fclose, fflush: Respect rules for use of AC_LIBOBJ.
55152         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
55153         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
55154         gl_REPLACE_FCLOSE here.
55155         * modules/fflush (Depends-on): Remove fclose.
55156         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
55157         combination with module 'fclose'.
55159 2011-05-05  Bruno Haible  <bruno@clisp.org>
55161         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
55162         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
55163         gl_FUNC_FFLUSH.
55164         (gl_FUNC_FFLUSH): Use it.
55165         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
55166         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
55167         gl_REPLACE_FSEEKO here.
55169 2011-05-05  Bruno Haible  <bruno@clisp.org>
55171         tzset: Relicense under LGPL.
55172         * modules/tzset (License): Change to LGPL.
55173         No agreement needed; it's a no-op.
55175         strtoimax, strtoumax: Relicense under LGPL.
55176         * modules/strtoimax (License): Change to LGPL.
55177         * modules/strtoumax (License): Likewise.
55178         With permission from Jim Meyering, Paul Eggert:
55179         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
55180         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
55182         getgroups: Relicense under LGPL.
55183         * modules/getgroups (License): Change to LGPL.
55184         With permission from Jim Meyering, Paul Eggert, Eric Blake:
55185         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55186         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55187         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55189         nanosleep: Relicense under LGPL.
55190         * modules/nanosleep (License): Change to LGPL.
55191         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
55192         Haible:
55193         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
55194         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
55195         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55196         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55198         futimens: Relicense under LGPL.
55199         * modules/futimens (License): Change to LGPL.
55200         With permission from Eric Blake:
55201         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55203         fflush: Relicense under LGPL.
55204         * modules/fflush (License): Change to LGPL.
55205         With permission from Eric Blake, Bruno Haible, Jim Meyering:
55206         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
55207         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
55208         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
55210         tmpfile: Relicense under LGPL.
55211         * modules/tmpfile (License): Change to LGPL.
55212         With permission from Ben Pfaff:
55213         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55215         isfinite: Relicense under LGPL.
55216         * modules/isfinite (License): Change to LGPL.
55217         With permission from Ben Pfaff, Bruno Haible:
55218         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
55219         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
55221         acosl..tanl: Relicense under LGPL.
55222         * modules/acosl (License): Change to LGPL.
55223         * modules/asinl (License): Likewise.
55224         * modules/atanl (License): Likewise.
55225         * modules/cosl (License): Likewise.
55226         * modules/expl (License): Likewise.
55227         * modules/logl (License): Likewise.
55228         * modules/sinl (License): Likewise.
55229         * modules/sqrtl (License): Likewise.
55230         * modules/tanl (License): Likewise.
55231         Source code originally from glibc and Paolo Bonzini. Agreements:
55232         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
55233         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
55235 2011-05-05  Bruno Haible  <bruno@clisp.org>
55237         signal: Define sighandler_t.
55238         * lib/signal.in.h (sighandler_t): New type.
55239         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
55240         whether sighandler_t is defined.
55241         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
55242         * modules/signal (Depends-on): Add extensions.
55243         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
55244         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
55245         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
55247 2011-05-05  Eric Blake  <eblake@redhat.com>
55249         maint: remove useless REPLACE_*_H macros
55250         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
55251         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
55252         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
55253         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55254         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55255         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55256         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55257         * m4/btowc.m4: Update callers.
55258         * m4/dirfd.m4: Likewise.
55259         * m4/duplocale.m4: Likewise.
55260         * m4/fchdir.m4: Likewise.
55261         * m4/fdopendir.m4: Likewise.
55262         * m4/inet_ntop.m4: Likewise.
55263         * m4/inet_pton.m4: Likewise.
55264         * m4/ioctl.m4: Likewise.
55265         * m4/mbrlen.m4: Likewise.
55266         * m4/mbrtowc.m4: Likewise.
55267         * m4/mbsinit.m4: Likewise.
55268         * m4/mbsnrtowcs.m4: Likewise.
55269         * m4/mbsrtowcs.m4: Likewise.
55270         * m4/poll.m4: Likewise.
55271         * m4/setlocale.m4: Likewise.
55272         * m4/wcrtomb.m4: Likewise.
55273         * m4/wcsnrtombs.m4: Likewise.
55274         * m4/wcsrtombs.m4: Likewise.
55275         * m4/wctob.m4: Likewise.
55276         * m4/wcwidth.m4: Likewise.
55277         * modules/posix_spawn: Likewise.
55278         * modules/posix_spawn_file_actions_addclose: Likewise.
55279         * modules/posix_spawn_file_actions_adddup2: Likewise.
55280         * modules/posix_spawn_file_actions_addopen: Likewise.
55281         * modules/posix_spawn_file_actions_destroy: Likewise.
55282         * modules/posix_spawn_file_actions_init: Likewise.
55283         * modules/posix_spawnattr_destroy: Likewise.
55284         * modules/posix_spawnattr_getflags: Likewise.
55285         * modules/posix_spawnattr_getpgroup: Likewise.
55286         * modules/posix_spawnattr_getschedparam: Likewise.
55287         * modules/posix_spawnattr_getschedpolicy: Likewise.
55288         * modules/posix_spawnattr_getsigdefault: Likewise.
55289         * modules/posix_spawnattr_getsigmask: Likewise.
55290         * modules/posix_spawnattr_init: Likewise.
55291         * modules/posix_spawnattr_setflags: Likewise.
55292         * modules/posix_spawnattr_setpgroup: Likewise.
55293         * modules/posix_spawnattr_setschedparam: Likewise.
55294         * modules/posix_spawnattr_setschedpolicy: Likewise.
55295         * modules/posix_spawnattr_setsigdefault: Likewise.
55296         * modules/posix_spawnattr_setsigmask: Likewise.
55297         * modules/posix_spawnp: Likewise.
55299 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55301         Add option to do-release-commit-and-tag to specify branch.
55302         * build-aux/do-release-commit-and-tag: Add --branch.
55304 2011-05-03  Bruno Haible  <bruno@clisp.org>
55306         Avoid unnecessary compilation units, through conditional dependencies.
55307         * modules/accept (Depends-on): Add conditions to the dependencies.
55308         * modules/acosl (Depends-on): Likewise.
55309         * modules/argz (Depends-on): Likewise.
55310         * modules/asinl (Depends-on): Likewise.
55311         * modules/atanl (Depends-on): Likewise.
55312         * modules/atoll (Depends-on): Likewise.
55313         * modules/bind (Depends-on): Likewise.
55314         * modules/btowc (Depends-on): Likewise.
55315         * modules/canonicalize-lgpl (Depends-on): Likewise.
55316         * modules/ceil (Depends-on): Likewise.
55317         * modules/ceilf (Depends-on): Likewise.
55318         * modules/ceill (Depends-on): Likewise.
55319         * modules/chdir-long (Depends-on): Likewise.
55320         * modules/chown (Depends-on): Likewise.
55321         * modules/close (Depends-on): Likewise.
55322         * modules/connect (Depends-on): Likewise.
55323         * modules/cosl (Depends-on): Likewise.
55324         * modules/dirfd (Depends-on): Likewise.
55325         * modules/dprintf (Depends-on): Likewise.
55326         * modules/dprintf-posix (Depends-on): Likewise.
55327         * modules/error (Depends-on): Likewise.
55328         * modules/euidaccess (Depends-on): Likewise.
55329         * modules/expl (Depends-on): Likewise.
55330         * modules/faccessat (Depends-on): Likewise.
55331         * modules/fchdir (Depends-on): Likewise.
55332         * modules/fclose (Depends-on): Likewise.
55333         * modules/fcntl (Depends-on): Likewise.
55334         * modules/fdopendir (Depends-on): Likewise.
55335         * modules/fflush (Depends-on): Likewise.
55336         * modules/floor (Depends-on): Likewise.
55337         * modules/floorf (Depends-on): Likewise.
55338         * modules/floorl (Depends-on): Likewise.
55339         * modules/fnmatch (Depends-on): Likewise.
55340         * modules/fopen (Depends-on): Likewise.
55341         * modules/fprintf-posix (Depends-on): Likewise.
55342         * modules/frexp (Depends-on): Likewise.
55343         * modules/frexp-nolibm (Depends-on): Likewise.
55344         * modules/frexpl (Depends-on): Likewise.
55345         * modules/frexpl-nolibm (Depends-on): Likewise.
55346         * modules/fseek (Depends-on): Likewise.
55347         * modules/fsusage (Depends-on): Likewise.
55348         * modules/ftell (Depends-on): Likewise.
55349         * modules/ftello (Depends-on): Likewise.
55350         * modules/futimens (Depends-on): Likewise.
55351         * modules/getcwd (Depends-on): Likewise.
55352         * modules/getcwd-lgpl (Depends-on): Likewise.
55353         * modules/getdelim (Depends-on): Likewise.
55354         * modules/getdomainname (Depends-on): Likewise.
55355         * modules/getgroups (Depends-on): Likewise.
55356         * modules/gethostname (Depends-on): Likewise.
55357         * modules/getline (Depends-on): Likewise.
55358         * modules/getlogin_r (Depends-on): Likewise.
55359         * modules/getopt-posix (Depends-on): Likewise.
55360         * modules/getpeername (Depends-on): Likewise.
55361         * modules/getsockname (Depends-on): Likewise.
55362         * modules/getsockopt (Depends-on): Likewise.
55363         * modules/getsubopt (Depends-on): Likewise.
55364         * modules/getusershell (Depends-on): Likewise.
55365         * modules/glob (Depends-on): Likewise.
55366         * modules/grantpt (Depends-on): Likewise.
55367         * modules/iconv_open (Depends-on): Likewise.
55368         * modules/iconv_open-utf (Depends-on): Likewise.
55369         * modules/inet_ntop (Depends-on): Likewise.
55370         * modules/inet_pton (Depends-on): Likewise.
55371         * modules/ioctl (Depends-on): Likewise.
55372         * modules/isapipe (Depends-on): Likewise.
55373         * modules/isfinite (Depends-on): Likewise.
55374         * modules/isinf (Depends-on): Likewise.
55375         * modules/lchown (Depends-on): Likewise.
55376         * modules/ldexpl (Depends-on): Likewise.
55377         * modules/link (Depends-on): Likewise.
55378         * modules/linkat (Depends-on): Likewise.
55379         * modules/listen (Depends-on): Likewise.
55380         * modules/logl (Depends-on): Likewise.
55381         * modules/lstat (Depends-on): Likewise.
55382         * modules/mbrlen (Depends-on): Likewise.
55383         * modules/mbrtowc (Depends-on): Likewise.
55384         * modules/mbsinit (Depends-on): Likewise.
55385         * modules/mbsnrtowcs (Depends-on): Likewise.
55386         * modules/mbsrtowcs (Depends-on): Likewise.
55387         * modules/mbtowc (Depends-on): Likewise.
55388         * modules/memcmp (Depends-on): Likewise.
55389         * modules/mkdir (Depends-on): Likewise.
55390         * modules/mkdtemp (Depends-on): Likewise.
55391         * modules/mkfifo (Depends-on): Likewise.
55392         * modules/mkfifoat (Depends-on): Likewise.
55393         * modules/mknod (Depends-on): Likewise.
55394         * modules/mkostemp (Depends-on): Likewise.
55395         * modules/mkostemps (Depends-on): Likewise.
55396         * modules/mkstemp (Depends-on): Likewise.
55397         * modules/mkstemps (Depends-on): Likewise.
55398         * modules/mktime (Depends-on): Likewise.
55399         * modules/nanosleep (Depends-on): Likewise.
55400         * modules/open (Depends-on): Likewise.
55401         * modules/openat (Depends-on): Likewise.
55402         * modules/perror (Depends-on): Likewise.
55403         * modules/poll (Depends-on): Likewise.
55404         * modules/popen (Depends-on): Likewise.
55405         * modules/posix_spawn (Depends-on): Likewise.
55406         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55407         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55408         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55409         * modules/posix_spawnp (Depends-on): Likewise.
55410         * modules/pread (Depends-on): Likewise.
55411         * modules/printf-posix (Depends-on): Likewise.
55412         * modules/ptsname (Depends-on): Likewise.
55413         * modules/putenv (Depends-on): Likewise.
55414         * modules/pwrite (Depends-on): Likewise.
55415         * modules/readline (Depends-on): Likewise.
55416         * modules/readlink (Depends-on): Likewise.
55417         * modules/readlinkat (Depends-on): Likewise.
55418         * modules/recv (Depends-on): Likewise.
55419         * modules/recvfrom (Depends-on): Likewise.
55420         * modules/regex (Depends-on): Likewise.
55421         * modules/remove (Depends-on): Likewise.
55422         * modules/rename (Depends-on): Likewise.
55423         * modules/renameat (Depends-on): Likewise.
55424         * modules/rmdir (Depends-on): Likewise.
55425         * modules/round (Depends-on): Likewise.
55426         * modules/roundf (Depends-on): Likewise.
55427         * modules/roundl (Depends-on): Likewise.
55428         * modules/rpmatch (Depends-on): Likewise.
55429         * modules/select (Depends-on): Likewise.
55430         * modules/send (Depends-on): Likewise.
55431         * modules/sendto (Depends-on): Likewise.
55432         * modules/setenv (Depends-on): Likewise.
55433         * modules/setlocale (Depends-on): Likewise.
55434         * modules/setsockopt (Depends-on): Likewise.
55435         * modules/shutdown (Depends-on): Likewise.
55436         * modules/sigaction (Depends-on): Likewise.
55437         * modules/signbit (Depends-on): Likewise.
55438         * modules/sigprocmask (Depends-on): Likewise.
55439         * modules/sinl (Depends-on): Likewise.
55440         * modules/sleep (Depends-on): Likewise.
55441         * modules/snprintf (Depends-on): Likewise.
55442         * modules/snprintf-posix (Depends-on): Likewise.
55443         * modules/socket (Depends-on): Likewise.
55444         * modules/sprintf-posix (Depends-on): Likewise.
55445         * modules/sqrtl (Depends-on): Likewise.
55446         * modules/stat (Depends-on): Likewise.
55447         * modules/strchrnul (Depends-on): Likewise.
55448         * modules/strdup-posix (Depends-on): Likewise.
55449         * modules/strerror (Depends-on): Likewise.
55450         * modules/strerror_r-posix (Depends-on): Likewise.
55451         * modules/strndup (Depends-on): Likewise.
55452         * modules/strnlen (Depends-on): Likewise.
55453         * modules/strptime (Depends-on): Likewise.
55454         * modules/strsep (Depends-on): Likewise.
55455         * modules/strsignal (Depends-on): Likewise.
55456         * modules/strstr-simple (Depends-on): Likewise.
55457         * modules/strtod (Depends-on): Likewise.
55458         * modules/strtoimax (Depends-on): Likewise.
55459         * modules/strtok_r (Depends-on): Likewise.
55460         * modules/strtoumax (Depends-on): Likewise.
55461         * modules/symlink (Depends-on): Likewise.
55462         * modules/symlinkat (Depends-on): Likewise.
55463         * modules/tanl (Depends-on): Likewise.
55464         * modules/tcgetsid (Depends-on): Likewise.
55465         * modules/tmpfile (Depends-on): Likewise.
55466         * modules/trunc (Depends-on): Likewise.
55467         * modules/truncf (Depends-on): Likewise.
55468         * modules/truncl (Depends-on): Likewise.
55469         * modules/uname (Depends-on): Likewise.
55470         * modules/unlink (Depends-on): Likewise.
55471         * modules/unlockpt (Depends-on): Likewise.
55472         * modules/unsetenv (Depends-on): Likewise.
55473         * modules/usleep (Depends-on): Likewise.
55474         * modules/utimensat (Depends-on): Likewise.
55475         * modules/vasprintf (Depends-on): Likewise.
55476         * modules/vdprintf (Depends-on): Likewise.
55477         * modules/vdprintf-posix (Depends-on): Likewise.
55478         * modules/vfprintf-posix (Depends-on): Likewise.
55479         * modules/vprintf-posix (Depends-on): Likewise.
55480         * modules/vsnprintf (Depends-on): Likewise.
55481         * modules/vsnprintf-posix (Depends-on): Likewise.
55482         * modules/vsprintf-posix (Depends-on): Likewise.
55483         * modules/wcrtomb (Depends-on): Likewise.
55484         * modules/wcscasecmp (Depends-on): Likewise.
55485         * modules/wcscspn (Depends-on): Likewise.
55486         * modules/wcsdup (Depends-on): Likewise.
55487         * modules/wcsncasecmp (Depends-on): Likewise.
55488         * modules/wcsnrtombs (Depends-on): Likewise.
55489         * modules/wcspbrk (Depends-on): Likewise.
55490         * modules/wcsrtombs (Depends-on): Likewise.
55491         * modules/wcsspn (Depends-on): Likewise.
55492         * modules/wcsstr (Depends-on): Likewise.
55493         * modules/wcstok (Depends-on): Likewise.
55494         * modules/wcswidth (Depends-on): Likewise.
55495         * modules/wctob (Depends-on): Likewise.
55496         * modules/wctomb (Depends-on): Likewise.
55497         * modules/wctype (Depends-on): Likewise.
55498         * modules/wcwidth (Depends-on): Likewise.
55499         * modules/write (Depends-on): Likewise.
55501 2011-05-03  Bruno Haible  <bruno@clisp.org>
55503         Support for conditional dependencies.
55504         * doc/gnulib.texi (Module description): Document the syntax of
55505         conditional dependencies.
55506         * gnulib-tool: New option --conditional-dependencies.
55507         (func_usage): Document it.
55508         (cond_dependencies): New variable.
55509         (func_get_automake_snippet_conditional,
55510         func_get_automake_snippet_unconditional): New functions, extracted from
55511         func_get_automake_snippet.
55512         (func_get_automake_snippet): Use them.
55513         (sed_first_32_chars): New variable.
55514         (func_module_shellfunc_name): New function.
55515         (func_module_shellvar_name): New function.
55516         (func_module_conditional_name): New function.
55517         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55518         func_cond_module_condition): New functions.
55519         (func_modules_transitive_closure): Add support for conditional
55520         dependencies.
55521         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55522         conditional automake snippet in an automake conditional.
55523         (func_emit_autoconf_snippets): Emit shell functions that contain the
55524         code for conditional modules.
55525         (func_import, func_create_testdir): Update specification.
55527 2011-05-03  Eric Blake  <eblake@redhat.com>
55529         test-getaddrinfo: report error information
55530         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55532 2011-05-03  Jim Meyering  <meyering@redhat.com>
55534         bootstrap: avoid build failure when $GZIP is set
55535         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55536         program name.  If defined at all, it is supposed to list gzip options.
55537         Reported by Alan Curry in http://debbugs.gnu.org/8609
55539 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55541         readme-release: new module with release instructions
55542         * modules/readme-release: New module.
55543         * top/README-release: New file, from coreutils, grep, diffutils.
55544         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55546 2011-05-02  Eric Blake  <eblake@redhat.com>
55548         fflush: also replace fclose when fixing fflush
55549         * modules/fflush (Depends-on): Add fclose.
55550         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55551         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55552         memstreams with no backing fd.
55553         * doc/posix-functions/fclose.texi (fclose): Document the use of
55554         fflush module to fix the bug.
55555         * tests/test-fclose.c (main): Relax test when fclose is used in
55556         isolation.
55558         fclose: add some tests
55559         * modules/fclose-tests: New test module.
55560         * tests/test-fclose.c: New file.
55561         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55563         fclose: reduced dependencies
55564         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55565         simpler lseek.
55566         * lib/fclose.c (rpl_fclose): Likewise.
55567         Reported by Simon Josefsson.
55569         exit: drop remaining clients
55570         * modules/argmatch (Depends-on): Replace exit with stdlib.
55571         * modules/copy-file (Depends-on): Likewise.
55572         * modules/execute (Depends-on): Likewise.
55573         * modules/exitfail (Depends-on): Likewise.
55574         * modules/obstack (Depends-on): Likewise.
55575         * modules/pagealign_alloc (Depends-on): Likewise.
55576         * modules/pipe-filter-gi (Depends-on): Likewise.
55577         * modules/pipe-filter-ii (Depends-on): Likewise.
55578         * modules/savewd (Depends-on): Likewise.
55579         * modules/spawn-pipe (Depends-on): Likewise.
55580         * modules/wait-process (Depends-on): Likewise.
55581         * modules/xsetenv (Depends-on): Likewise.
55582         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55583         * modules/git-merge-changelog (Depends-on): Likewise.
55584         * modules/long-options (Depends-on): Likewise.
55585         * modules/pt_chown (Depends-on): Likewise.
55586         * modules/sysexits (Depends-on): Likewise.
55588         freading: relax license from LGPLv3+ to LGPLv2+
55589         * modules/freading (License): Relax LGPL version.
55591 2011-05-02  Bruno Haible  <bruno@clisp.org>
55593         fchdir: Remove unused dependencies.
55594         * modules/fchdir (Depends-on): Remove include_next.
55596 2011-05-02  Bruno Haible  <bruno@clisp.org>
55598         gnulib-tool: Refactor.
55599         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55600         from func_emit_autoconf_snippets.
55601         (func_emit_autoconf_snippets): Use it.
55603 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55605         * NEWS: Document removal of 'exit'.
55606         * modules/exit: Remove file.
55608 2011-05-01  Bruno Haible  <bruno@clisp.org>
55610         Update DEPENDENCIES.
55611         * DEPENDENCIES (gettext): Recommend the newest release.
55612         Reported by Simon Josefsson.
55614 2011-05-01  Bruno Haible  <bruno@clisp.org>
55616         gnulib-tool: Reduce code duplication.
55617         * gnulib-tool (func_emit_autoconf_snippets): New function.
55618         (func_import, func_create_testdir): Use it.
55620 2011-04-30  Eric Blake  <eblake@redhat.com>
55622         fclose: don't fail on non-seekable input stream
55623         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55624         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55625         since fflush is allowed to fail in that case.
55627 2011-04-30  Bruno Haible  <bruno@clisp.org>
55629         dup3: cleanup
55630         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55632 2011-04-30  Bruno Haible  <bruno@clisp.org>
55634         netdb: Make it work in C++ mode.
55635         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55636         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55637         module.
55638         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55639         gl_MODULE_INDICATOR_FOR_TESTS.
55640         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55641         * modules/netdb-c++-tests: New file.
55642         * tests/test-netdb-c++.cc: New file.
55644 2011-04-30  Bruno Haible  <bruno@clisp.org>
55646         New modules 'vfscanf', 'vscanf'.
55647         * modules/vfscanf: New file.
55648         * modules/vscanf: New file.
55649         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55650         here.
55651         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55652         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55654 2011-04-30  Bruno Haible  <bruno@clisp.org>
55656         passfd: Add comments.
55657         * lib/passfd.c: Add comments about platforms.
55659 2011-04-30  Bruno Haible  <bruno@clisp.org>
55661         sys_uio: Make <sys/uio.h> self-contained.
55662         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55663         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55665 2011-04-30  Bruno Haible  <bruno@clisp.org>
55667         sys_socket: Ensure 'struct iovec' definition.
55668         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55669         <sys/socket.h>.
55670         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55672 2011-04-30  Bruno Haible  <bruno@clisp.org>
55674         sys_uio: Protect definition of 'struct iovec'.
55675         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55676         it as a C struct.
55678 2011-04-30  Bruno Haible  <bruno@clisp.org>
55680         manywarnings: fix indentation
55681         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55683 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55685         manywarnings: add -Wno-missing-field-initializers if needed.
55686         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55687         option if it's needed to allow initialization with { 0, }
55689 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55691         announce-gen: cosmetic improvement
55692         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55694 2011-04-29  Jim Meyering  <meyering@redhat.com>
55696         vc-list-files: indent with spaces, not TABs
55697         * build-aux/vc-list-files: Convert leading TABs to spaces,
55698         to match the style of most other files in gnulib.
55700         announce-gen: indent with spaces, not TABs
55701         * build-aux/announce-gen: Convert all TABs to spaces, to match
55702         the style of most other files in gnulib.
55704 2011-04-29  Eric Blake  <eblake@redhat.com>
55706         quotearg: avoid uninitialized variable use
55707         * lib/quotearg.c (quoting_options_from_style): Initialize
55708         remaining fields, and ensure that custom styles are only used via
55709         quoting_options rather than quoting_style.
55711 2011-04-29  Jim Meyering  <meyering@redhat.com>
55713         maint.mk: remove unused VC-tag variable
55714         * top/maint.mk (VC-tag): Remove unused variable.
55716 2011-04-29  Bruno Haible  <bruno@clisp.org>
55718         netdb: fix gai_strerror replacements
55719         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55720         * modules/netdb: Substitute it.
55722 2011-04-29  Jim Meyering  <meyering@redhat.com>
55724         test-getcwd.c: avoid new set-but-not-used warning
55725         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55726         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55727         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55728         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55730         test-hash.c: avoid a new shadowing warning
55731         * tests/test-hash.c (main): Don't shadow "dup".
55733 2011-04-28  Eric Blake  <eblake@redhat.com>
55735         getaddrinfo: fix gai_strerror signature
55736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55737         and work around mingw with UNICODE defined.
55738         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55739         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55740         * modules/netdb (Makefile.am): Substitute it.
55741         * lib/netdb.in.h (gai_strerror): Declare replacement.
55742         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55743         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55744         the fix.
55746         getsockopt: avoid compiler warning
55747         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55748         Reported by Matthias Bolte.
55750         tests: drop unused link dependency
55751         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55752         * modules/dirent-safer-tests (Makefile.am): Likewise.
55753         * modules/fdopendir-tests (Makefile.am): Likewise.
55754         * modules/mkfifoat-tests (Makefile.am): Likewise.
55755         * modules/openat-safer-tests (Makefile.am): Likewise.
55756         * modules/openat-tests (Makefile.am): Likewise.
55757         * modules/readlinkat-tests (Makefile.am): Likewise.
55758         * modules/symlinkat-tests (Makefile.am): Likewise.
55759         * modules/linkat-tests (Makefile.am): Likewise.
55760         (Depends-on): Switch to filenamecat-lgpl.
55761         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55762         LIBINTL.
55763         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55764         * tests/test-linkat.c (main): Don't require xalloc.
55766         hash, mgetgroups: drop xalloc dependency
55767         * lib/hash.c (includes): Adjust includes.
55768         * lib/mgetgroups.c (includes): Likewise.
55769         (xgetgroups): Move...
55770         * lib/xgetgroups.c: ...to new file.
55771         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55772         * modules/xgetgroups: New file, split from...
55773         * modules/mgetgroups: ...here.
55774         (Depends-on): Add xalloc-oversized.
55775         * modules/hash (Depends-on): Likewise.
55776         * modules/hash-tests (Depends-on): Drop xalloc.
55777         (test_hash_LDADD): Drop unused library.
55778         * tests/test-hash.c (main): Break xalloc dependency.
55779         (includes): Drop unused include.
55781         xalloc-oversized: new module
55782         * modules/xalloc-oversized: New module.
55783         * modules/xalloc (Depends-on): Add it.
55784         * lib/xalloc.h (xalloc_oversized): Move...
55785         * lib/xalloc-oversized.h: ...into new file.
55787         utimecmp: drop dependency on xmalloc
55788         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55789         due to memory pressure.
55790         * modules/utimecmp (Depends-on): Drop xalloc.
55792 2011-04-27  Eric Blake  <eblake@redhat.com>
55794         getcwd: fix mingw bugs
55795         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55796         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55797         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55799 2011-04-27  Bruno Haible  <bruno@clisp.org>
55801         mkstemps: Ensure declaration on MacOS X 10.5.
55802         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55803         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55804         MacOS X.
55806 2011-04-27  Bruno Haible  <bruno@clisp.org>
55808         mkstemp: More documentation.
55809         * doc/posix-functions/mkstemp.texi: Document header file problem on
55810         MacOS X.
55812 2011-04-27  Bruno Haible  <bruno@clisp.org>
55814         mkstemp: Tweak configure message when cross-compiling.
55815         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55816         result as a guess.
55818 2011-04-27  Bruno Haible  <bruno@clisp.org>
55820         clean-temp: Clarify what it does.
55821         * lib/clean-temp.h: Add more comments.
55822         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55823         module.
55824         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55825         * doc/glibc-functions/mkstemps.texi: Likewise.
55826         * doc/glibc-functions/mkostemps.texi: Likewise.
55828 2011-04-27  Eric Blake  <eblake@redhat.com>
55830         fchdir: avoid extra chdir and fix test
55831         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55832         getcwd-lgpl.
55833         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55834         have to be canonical.
55835         (canonicalize_file_name): Drop unused macro.
55836         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55838         filenamecat-lgpl: fix licence
55839         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55840         when it was first created.
55842         linkat, renameat: add missing dependency
55843         * modules/linkat (Depends-on): Require getcwd-lgpl.
55844         * modules/renameat (Depends-on): Likewise.
55846         tests: reduce dependencies
55847         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55848         * tests/test-renameat.c (main): Likewise.
55849         * modules/linkat-tests (Depends-on): Relax dependency.
55850         * modules/renameat-tests (Depends-on): Likewise.
55851         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55852         dependency explicit.
55854         save-cwd: reduce default dependency
55855         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55856         * lib/save-cwd.c: Update comments.
55857         * NEWS: Document the semantic change.
55859         getcwd: enhance tests
55860         * tests/test-getcwd-lgpl.c: New file, taken from...
55861         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55862         repeat long path stress tests from m4 probe.
55863         * modules/getcwd-lgpl-tests: New module.
55864         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55865         * m4/getcwd-abort-bug.m4: Update comment.
55866         * m4/getcwd-path-max.m4: Likewise.
55868         getcwd-lgpl: new module
55869         * modules/getcwd-lgpl: New module.
55870         * lib/getcwd-lgpl.c: New file.
55871         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55872         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55873         * modules/getcwd (configure.ac): Set C witness.
55874         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55876         getcwd: tweak comments
55877         * m4/getcwd-abort-bug.m4: Fix comments.
55878         * m4/getcwd-path-max.m4: Likewise.
55879         * m4/getcwd.m4: Likewise.
55881 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55882         and Eric Blake  <eblake@redhat.com>
55884         mkstemp: replace if system version uses wrong permissions
55885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55886         read/write mode bits set in file created by mkstemp.
55887         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55889 2011-04-27  Eric Blake  <eblake@redhat.com>
55891         passfd: avoid compiler warning
55892         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55893         Reported by Laine Stump.
55895 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55897         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55898         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55900 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55901         and Eric Blake  <eblake@redhat.com>
55903         mkstemp: mention clean-temp module
55904         * lib/mkstemp.c: Add comment.
55905         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55907 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55909         inttypes: also provide default values for 32-bit tests
55910         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55911         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55913 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55915         strtoumax: remove dependency on strtoimax
55916         This is like the strtoull change of yesterday.
55917         * modules/strtoumax (Files): Add lib/strtoimax.c.
55918         (Depends-on): Remove strtoimax and add verify.
55920         inttypes-incomplete: new module
55921         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55922         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55923         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55924         of gl_INTTYPES_H.
55925         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55926         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55927         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55928         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55929         * modules/strtoumax, modules/xstrtol (Depends-on):
55930         Depend on inttypes-incomplete, not inttypes.
55931         * modules/inttypes-incomplete: New module, containing the contents
55932         of the old modules/inttypes module, except that the Files: section
55933         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55934         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55935         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55936         (Depends-on): Depend only on inttypes-incomplete.
55937         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55939         inttypes: omit now-redundant strtoimax and strtoumax work
55940         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55941         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55943         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55944         This supports apps that need pointers to strtoimax and strtoumax,
55945         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55946         nonexistent functions.  See
55947         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55948         et seq.
55949         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55950         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55951         a macro.
55952         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55954 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55956         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55958 2011-04-25  Bruno Haible  <bruno@clisp.org>
55960         strtol, strtoul: Mark modules as obsolete.
55961         * modules/strtol (Status, Notice): New sections.
55962         * modules/strtoul (Status, Notice): New sections.
55964 2011-04-25  Bruno Haible  <bruno@clisp.org>
55966         strtod: Remove check for strtod, unless supporting old platforms.
55967         * modules/strtod-obsolete: New file.
55968         * m4/strtod-obsolete.m4: New file.
55969         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55970         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55971         * modules/strtod (Depends-on): Add strtod-obsolete.
55972         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55974 2011-04-25  Bruno Haible  <bruno@clisp.org>
55976         strcase: Make module obsolete.
55977         * modules/strcase (Status, Notice): New sections.
55979 2011-04-25  Bruno Haible  <bruno@clisp.org>
55981         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55982         * modules/dup2-obsolete: New file.
55983         * m4/dup2-obsolete.m4: New file.
55984         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55985         gl_FUNC_DUP2_OBSOLETE is not also defined.
55986         * modules/dup2 (Depends-on): Add dup2-obsolete.
55987         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55989 2011-04-25  Bruno Haible  <bruno@clisp.org>
55991         strnlen: Avoid memchr related link error on old obsolete platforms.
55992         * modules/memchr-obsolete: New file.
55993         * m4/memchr-obsolete.m4: New file.
55994         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55995         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55996         * modules/memchr (Depends-on): Add memchr-obsolete.
55997         * modules/strnlen (Depends-on): Likewise.
55998         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
56000 2011-04-25  Jim Meyering  <meyering@redhat.com>
56002         maint.mk: makefile_at_at_check extend and clean up
56003         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
56004         in addition to */Makefile.am.
56005         Exempt legitimate uses of @VAR@ notation, e.g.,
56006         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
56007         Remove obsolete coreutils-specific comment.
56008         Prompted by discussion here:
56009         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
56011 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
56013         strtoul: remove dependency on strtol
56014         This is so that 'configure' need not check for strtol merely because
56015         the application needs strtoul.
56016         * modules/strtoul (Files): Add lib/strtol.c.
56017         (Depends-on): Remove strtol.
56019         strtoull: remove dependency on strtoul
56020         This is like the strtoll change.
56021         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
56022         (Depends-on): Remove strtoul.
56024         strtoll: remove dependency on strtol
56025         This is so that 'configure' need not check for strtol merely because
56026         the application needs strtoll.
56027         * modules/strtoll (Files): Add lib/strtol.c.
56028         (Depends-on): Remove strtol.
56030 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56032         inttypes: Move some configure check to module 'imaxdiv'.
56033         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
56034         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
56035         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
56037 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56039         inttypes: Move some configure check to module 'imaxabs'.
56040         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
56041         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
56042         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
56044 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56046         inttypes: Remove configure tests that are not needed since 2009-12-31.
56047         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
56048         gl_cv_header_working_inttypes_h.
56050 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
56052         * modules/strnlen (Depends-on): Remove memchr.
56053         The strnlen implementation doesn't need the memchr module's fixes; see
56054         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
56056         strtol: remove dependency on wchar
56057         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
56058         * modules/strtol (Depends-on): Remove wchar.
56060 2011-04-21  Eric Blake  <eblake@redhat.com>
56062         passfd: fix test regression on Linux
56063         * modules/passfd-tests (configure.ac): Correct socketpair check.
56065         passfd: speed up configure and drop unused code
56066         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
56067         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
56068         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
56069         Instead of probing at configure for unix_scm_rights_bsd44_way,
56070         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
56071         check to a struct member probe.
56072         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
56073         (sendfd, recvfd): Update preprocessor checks.
56074         * modules/passfd (Files): Reflect rename, and drop unused file.
56075         (Depends-on): Drop unused dependency.
56077         passfd: allow compilation on mingw
56078         * modules/sys_socket (Depends-on): Add sys_uio.
56079         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
56080         iovec and a minimal struct msghdr.
56081         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
56082         * tests/test-sys_socket.c (main): Enhance test.
56083         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
56084         guaranteed to provide what we need.
56085         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
56086         * modules/passfd-tests (Depends-on): Add sys_wait.
56087         * tests/test-passfd.c (main): Skip test on mingw, for now.
56088         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
56089         partial 'struct msghdr' implementation.
56091         sys_uio: new module
56092         * modules/sys_uio: New module.
56093         * modules/sys_uio-tests: Likewise.
56094         * lib/sys_uio.in.h: New file.
56095         * m4/sys_uio_h.m4: Likewise.
56096         * tests/test-sys_uio.c: Likewise.
56097         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
56098         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
56100 2011-04-20  Jim Meyering  <meyering@redhat.com>
56102         useless-if-before-free: avoid false-positive
56103         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
56104         disjunct so that it too requires a terminating ";".  Without that,
56105         this script would identify as useless one statement from gcc that
56106         was not:
56107           if (aligned_ptr)
56108             free (((void **) aligned_ptr) [-1]);
56110 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
56112         doc: update users.txt.
56113         * users.txt: Add barcode.
56115 2011-04-19  Bruno Haible  <bruno@clisp.org>
56117         ioctl: Remove link dependency on native Windows.
56118         * lib/fd-hook.h: Renamed from lib/close-hook.h.
56119         (gl_close_fn, gl_ioctl_fn): New types.
56120         (struct fd_hook): Renamed from struct close_hook. Change type of
56121         private_close_fn field. Add private_ioctl_fn field.
56122         (close_hook_fn): Add parameter for primary close method.
56123         (execute_close_hooks, execute_all_close_hooks): Likewise.
56124         (ioctl_hook_fn): New type.
56125         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
56126         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56127         argument.
56128         (unregister_fd_hook): Renamed from unregister_close_hook.
56129         * lib/fd-hook.c: Renamed from lib/close-hook.c.
56130         Don't include <unistd.h>.
56131         (close): Remove undef.
56132         (anchor): Update.
56133         (execute_close_hooks): Add argument for primary close method.
56134         (execute_all_close_hooks): Likewise.
56135         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
56136         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
56137         argument. Allow each argument to be NULL.
56138         (unregister_fd_hook): Renamed from unregister_close_hook.
56139         * lib/close.c (rpl_close): Pass 'close' function pointer to
56140         execute_all_close_hooks.
56141         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
56142         (primary_ioctl): New function.
56143         (ioctl): Don't call ioctlsocket here. Instead, call
56144         execute_all_ioctl_hooks.
56145         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
56146         close method.
56147         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
56148         (fd_sockets_hook): Renamed from close_sockets_hook.
56149         (gl_sockets_startup, gl_sockets_cleanup): Update.
56150         * modules/fd-hook: Renamed from modules/close-hook. Update.
56151         * modules/close (Depends-on): Add fd-hook, remove close-hook.
56152         * modules/sockets (Depends-on): Likewise.
56153         * modules/ioctl (Depends-on): Add fd-hook.
56154         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
56155         GNULIB_SOCKET.
56157 2011-04-19  Bruno Haible  <bruno@clisp.org>
56159         Move the support of O_NONBLOCK in open() to the 'open' module.
56160         * modules/nonblocking (Depends-on): Remove 'open'.
56161         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
56162         gl_cv_have_open_O_NONBLOCK.
56163         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
56164         O_NONBLOCK support.
56165         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
56167 2011-04-17  Bruno Haible  <bruno@clisp.org>
56169         pipe2: Simplify code.
56170         * lib/pipe2.c (pipe2): Reduce code duplication.
56172 2011-04-17  Bruno Haible  <bruno@clisp.org>
56174         nonblocking: Add comment.
56175         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
56177 2011-04-17  Bruno Haible  <bruno@clisp.org>
56179         nonblocking: Add tests for sockets.
56180         * tests/test-nonblocking-socket.sh: New file.
56181         * tests/test-nonblocking-socket-main.c: New file.
56182         * tests/test-nonblocking-socket-child.c: New file.
56183         * tests/test-nonblocking-socket.h: New file.
56184         * tests/socket-server.h: New file.
56185         * tests/socket-client.h: New file.
56186         * modules/nonblocking-socket-tests: New file.
56187         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
56189 2011-04-17  Bruno Haible  <bruno@clisp.org>
56191         nonblocking: Add tests for pipes.
56192         * tests/test-nonblocking-pipe.sh: New file.
56193         * tests/test-nonblocking-pipe-main.c: New file.
56194         * tests/test-nonblocking-pipe-child.c: New file.
56195         * tests/test-nonblocking-pipe.h: New file.
56196         * tests/test-nonblocking-writer.h: New file.
56197         * tests/test-nonblocking-reader.h: New file.
56198         * tests/test-nonblocking-misc.h: New file.
56199         * modules/nonblocking-pipe-tests: New file.
56200         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
56202 2011-04-16  Bruno Haible  <bruno@clisp.org>
56204         gettext: Clarify the needed programmer actions.
56205         * modules/gettext (Notice): New field.
56206         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
56208 2011-04-16  Bruno Haible  <bruno@clisp.org>
56210         strchrnul: Tweak last commit.
56211         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
56212         bug.
56213         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
56214         as in _GL_FUNCDECL_SYS.
56215         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
56216         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
56218 2011-04-15  Eric Blake  <eblake@redhat.com>
56220         strchrnul: work around cygwin bug
56221         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
56222         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
56223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
56224         * modules/string (Makefile.am): Substitute it.
56225         * lib/string.in.h (strchrnul): Use it.
56227 2011-04-15  Bruno Haible  <bruno@clisp.org>
56229         Don't require lib/stdio-write.c when only module 'stdio' is used.
56230         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
56231         invocation.
56232         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
56234 2011-04-14  Bruno Haible  <bruno@clisp.org>
56236         Support non-blocking pipe I/O in read() on native Windows.
56237         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
56238         (read): New declaration.
56239         * lib/read.c: New file.
56240         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
56241         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
56242         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
56243         vscanf): New declarations.
56244         * lib/stdio-read.c: New file.
56245         * m4/read.m4: New file.
56246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
56247         REPLACE_READ.
56248         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
56249         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56250         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
56251         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
56252         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
56253         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56254         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56255         * modules/read: New file.
56256         * modules/nonblocking (Files): Add lib/stdio-read.c.
56257         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56258         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56259         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56260         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56261         * modules/pread (Depends-on): Add read.
56262         * modules/safe-read (Depends-on): Likewise.
56263         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56264         gets, scanf, vfscanf, vscanf): Verify signatures.
56265         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56266         problem with non-blocking pipes.
56267         * doc/posix-functions/fgetc.texi: Likewise.
56268         * doc/posix-functions/fgets.texi: Likewise.
56269         * doc/posix-functions/fread.texi: Likewise.
56270         * doc/posix-functions/fscanf.texi: Likewise.
56271         * doc/posix-functions/getc.texi: Likewise.
56272         * doc/posix-functions/getchar.texi: Likewise.
56273         * doc/posix-functions/gets.texi: Likewise.
56274         * doc/posix-functions/scanf.texi: Likewise.
56275         * doc/posix-functions/vfscanf.texi: Likewise.
56276         * doc/posix-functions/vscanf.texi: Likewise.
56278 2011-04-14  Bruno Haible  <bruno@clisp.org>
56280         Support non-blocking pipe I/O in write() on native Windows.
56281         * lib/write.c (rpl_write): Split a write request that failed merely
56282         because the byte count was larger than the pipe buffer's size.
56283         * doc/posix-functions/write.texi: Mention the problem with large byte
56284         counts.
56286 2011-04-14  Bruno Haible  <bruno@clisp.org>
56288         wchar: Ensure that wchar_t gets defined on uClibc.
56289         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56290         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56292 2011-04-13  Bruno Haible  <bruno@clisp.org>
56294         safe-write, full-read: Avoid unnecessary compilation units.
56295         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56296         (Depends-on): Remove safe-read. Add ssize_t.
56297         * modules/full-read (Files): Add lib/full-write.c.
56298         (Depends-on): Add full-write.
56300 2011-04-13  Bruno Haible  <bruno@clisp.org>
56302         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56303         * modules/pwrite (Depends-on): Add 'write'.
56305 2011-04-13  Bruno Haible  <bruno@clisp.org>
56307         Support non-blocking pipe I/O in write() on native Windows.
56308         * lib/unistd.in.h (write): Enable replacement also if
56309         GNULIB_UNISTD_H_NONBLOCKING is 1.
56310         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56311         (rpl_write): When failing to write on a non-blocking pipe, change
56312         errno from ENOSPC to EAGAIN.
56313         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56314         putchar, puts, vfprintf, vprintf): Enable replacement also if
56315         GNULIB_STDIO_H_NONBLOCKING is 1.
56316         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56317         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56318         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56319         CALL_WITH_SIGPIPE_EMULATION.
56320         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56321         * m4/nonblocking.m4: New file.
56322         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56323         for non-blocking I/O support.
56324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56325         GNULIB_UNISTD_H_NONBLOCKING.
56326         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56327         required for non-blocking I/O support.
56328         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56329         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56330         lib/stdio-write.c, m4/asm-underscore.m4.
56331         (Depends-on): Add stdio, unistd.
56332         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56333         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56334         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56335         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56336         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56337         problem with non-blocking pipes.
56338         * doc/posix-functions/fputc.texi: Likewise.
56339         * doc/posix-functions/fputs.texi: Likewise.
56340         * doc/posix-functions/fwrite.texi: Likewise.
56341         * doc/posix-functions/printf.texi: Likewise.
56342         * doc/posix-functions/putc.texi: Likewise.
56343         * doc/posix-functions/putchar.texi: Likewise.
56344         * doc/posix-functions/puts.texi: Likewise.
56345         * doc/posix-functions/vfprintf.texi: Likewise.
56346         * doc/posix-functions/vprintf.texi: Likewise.
56347         * doc/posix-functions/write.texi: Likewise.
56349 2011-04-10  Jim Meyering  <meyering@redhat.com>
56351         maint.mk: prohibit doubled words
56352         Detect them also when they're separated by a newline.
56353         There are 3 ways to customize it:
56354           - disable the test on a per file basis, as usual with rules using
56355             $(VC_LIST_EXCEPT)
56356           - replace the default doubled-word-selecting regexp (affects all files)
56357           - ignore a particular file-vs-doubled-word match
56358         I nearly used that last one to ignore the "is is" match in
56359         coreutils' NEWS file, since the text was "ls -is is ..."
56360         To do that, I would have added this line to cfg.mk:
56361           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56362         but it would have ignored any "is is" match in NEWS.
56363         Low probability, but still...
56364         Instead, I changed the text, slightly:
56365           -  ls -is is now consistent with ls -lis in ignoring values returned
56366           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56367         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56368         (prohibit_doubled_word_): Define.
56369         (sc_prohibit_doubled_word): New rule.
56370         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56372 2011-04-10  Jim Meyering  <meyering@redhat.com>
56374         maint: fix doubled-word typo in comment
56375         * m4/gethostname.m4: s/is is/it is/
56376         * m4/getdomainname.m4: Likewise.
56378 2011-04-10  Jim Meyering  <meyering@redhat.com>
56380         maint: remove doubled word: s/it it/it/
56381         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56383 2011-04-10  Jim Meyering  <meyering@redhat.com>
56385         maint.mk: remove useless semicolon and backslash
56386         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56387         semicolon and backslash.
56389 2011-04-10  Bruno Haible  <bruno@clisp.org>
56391         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56392         * modules/stdint-tests (Depends-on): Add wchar.
56394 2011-04-10  Jim Meyering  <meyering@redhat.com>
56396         maint: remove doubled words in comments, e.g., s/a a/a/
56397         * lib/strptime.c (day_of_the_week): s/the the/the/
56398         * tests/test-chown.h (test_chown): s/a a/a/
56400         test-chown.h: correct a cast
56401         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56402         when the destination is a stat.st_gid.
56404 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56406         getaddrinfo: Fix test for sa_len member.
56407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56408         include <sys/types.h> before <sys/socket.h>.
56410 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56412         maint: change "can not" to "cannot"
56413         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56414         boundaries.
56416 2011-04-09  Jim Meyering  <meyering@redhat.com>
56418         maint: change "a a" to "a"
56419         * tests/test-lchown.h (test_lchown): s/a a/a/
56421         maint.mk: prohibit \<the the\>
56422         * top/maint.mk (sc_prohibit_the_the): New rule.
56424         maint: fix "the the" in comment
56425         * lib/count-one-bits.h: s/the the/the/
56427         maint: change "can not" to "cannot"
56428         But do not change the occurrences in maintain.texi or in
56429         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56430         * doc/gnulib-tool.texi: s/can not/cannot/
56431         * doc/posix-functions/accept.texi (accept): Likewise.
56432         * doc/posix-functions/socket.texi (socket): Likewise.
56433         * lib/mbrtowc.c: Likewise.
56435         maint.mk: prohibit use of "can not"
56436         * top/maint.mk (sc_prohibit_can_not): New rule.
56437         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56439 2011-04-09  Bruno Haible  <bruno@clisp.org>
56441         careadlinkat: Guard against misuse of careadlinkatcwd.
56442         * lib/careadlinkat.c: Include <stdlib.h>.
56443         (careadlinkatcwd): Check that the fd argument is as expected.
56445 2011-04-09  Bruno Haible  <bruno@clisp.org>
56447         careadlinkat: Use common coding style.
56448         * lib/careadlinkat.c: Move gnulib includes after system includes.
56450 2011-04-09  Bruno Haible  <bruno@clisp.org>
56452         careadlinkat: Clarify specification.
56453         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56454         (careadlinkatcwd): Add comment.
56455         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56457 2011-04-09  Bruno Haible  <bruno@clisp.org>
56459         areadlinkat: Avoid link error on many platforms.
56460         * modules/areadlinkat (Depends-on): Add areadlink.
56462 2011-04-09  Bruno Haible  <bruno@clisp.org>
56464         allocator, careadlinkat: Fix double-inclusion guard.
56465         * lib/allocator.h: Fix double-inclusion guard.
56466         * lib/careadlinkat.h: Likewise.
56468 2011-04-09  Bruno Haible  <bruno@clisp.org>
56470         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56471         * lib/relocwrapper.c: Update dependencies hierarchy.
56472         * build-aux/install-reloc: Update list of files to be compiled.
56473         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56474         lib/allocator.[hc].
56476 2011-04-08  Eric Blake  <eblake@redhat.com>
56478         strftime: silence gnulib-tool warning
56479         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56481 2011-04-08  Bruno Haible  <bruno@clisp.org>
56483         verify: Fix syntax error with GCC 4.6 in C++ mode.
56484         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56485         (HAVE_STATIC_ASSERT): New macro.
56486         (verify_true, verify): Use 'static_assert' if it is supported and
56487         '_Static_assert' is not supported.
56489 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56491         allocator: New module.
56492         * modules/allocator, lib/allocator.c: New files.
56493         * lib/allocator.h (stdlib_allocator): New decl.
56494         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56495         Remove.  Do not include <stdlib.h>.
56496         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56497         * modules/careadlinkat (Files): Remove lib/allocator.h.
56498         (Depends-on): Add allocator.
56500         stdlib: let modules use system malloc, realloc
56501         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56502         if !_GL_USE_STDLIB_ALLOC.
56503         (malloc, realloc): Limit this change to a smaller scope.
56505         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56506         (malloc, realloc): Don't #undef; no longer needed.
56507         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56508         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56509         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56510         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56511         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56512         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56513         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56514         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56516         careadlinkat: rename members to avoid problem
56517         * lib/allocator.h (struct allocator): Rename members from
56518         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56519         and realloc are #define'd.  Reported by Eric Blake in
56520         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56521         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56523 2011-04-08  Eric Blake  <eblake@redhat.com>
56525         nonblocking: reduce dependency
56526         * tests/test-nonblocking.c: Only test sockets when in use.
56527         * modules/nonblocking-tests (Depends-on): Drop socket.
56528         (Makefile.am): Link even if sockets are not present.
56529         * modules/pipe2-tests (Makefile.am): Likewise.
56530         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56532         pipe2: fix O_NONBLOCK support on mingw
56533         * modules/pipe2 (Depends-on): Add nonblocking.
56534         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56535         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56536         * tests/test-nonblocking.c (main): Likewise.
56537         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56539         fcntl-h: fix O_ACCMODE on cygwin
56540         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56541         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56543         pipe-filter: drop O_NONBLOCK workarounds
56544         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56545         * modules/pipe-filter-ii (Depends-on): Likewise.
56546         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56548         nonblocking: provide O_NONBLOCK for mingw
56549         * modules/nonblocking (Depends-on): Add open.
56550         (configure.ac): Set new witness macro.
56551         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56552         * modules/fcntl-h (Makefile.am): Substitute it.
56553         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56554         nonblocking module is in use.
56555         * lib/nonblocking.c: Adjust portability test.
56556         * lib/open.c (open): Don't let native open see gnulib flag.
56557         * tests/test-fcntl-h.c (main): Enhance test.
56558         * tests/test-open.h (test_open): Likewise.
56559         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56561         careadlinkat: fix compilation error on mingw
56562         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56563         within struct allocator.
56565 2011-04-06  Eric Blake  <eblake@redhat.com>
56567         binary-io: relicense under LGPLv2+
56568         * modules/binary-io (License): Relax to LGPLv2+.
56569         Requested for libvirt, and required by pipe2.
56571 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56573         verify: use _Static_assert if available
56574         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56575         (verify_true, verify): Use it if available.  This generates better
56576         diagnostics with GCC 4.6.0 and later.
56578 2011-04-05  Bruno Haible  <bruno@clisp.org>
56580         Remove leftover generated .h files after config.status changed.
56582         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56583         GL_GENERATE_ALLOCA_H.
56584         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56585         GL_GENERATE_ALLOCA_H evaluates to false.
56587         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56588         GL_GENERATE_ARGZ_H.
56589         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56590         evaluates to false.
56592         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56593         GL_GENERATE_BYTESWAP_H.
56594         * modules/byteswap (Makefile.am): Remove byteswap.h if
56595         GL_GENERATE_BYTESWAP_H evaluates to false.
56597         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56598         GL_GENERATE_ERRNO_H.
56599         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56600         evaluates to false.
56602         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56603         GL_GENERATE_FLOAT_H.
56604         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56605         evaluates to false.
56607         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56608         GL_GENERATE_FNMATCH_H.
56609         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56610         GL_GENERATE_FNMATCH_H evaluates to false.
56612         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56613         GL_GENERATE_GLOB_H.
56614         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56615         evaluates to false.
56617         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56618         automake conditional GL_GENERATE_ICONV_H.
56619         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56620         evaluates to false.
56622         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56623         GL_GENERATE_NETINET_IN_H.
56624         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56625         GL_GENERATE_NETINET_IN_H evaluates to false.
56627         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56628         conditional GL_GENERATE_PTHREAD_H.
56629         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56630         * modules/pthread (Makefile.am): Remove pthread.h if
56631         GL_GENERATE_PTHREAD_H evaluates to false.
56633         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56634         GL_GENERATE_SCHED_H.
56635         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56636         evaluates to false.
56638         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56639         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56640         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56641         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56643         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56644         GL_GENERATE_STDARG_H.
56645         * modules/stdarg (Makefile.am): Remove stdarg.h if
56646         GL_GENERATE_STDARG_H evaluates to false.
56648         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56649         GL_GENERATE_STDBOOL_H.
56650         * modules/stdbool (Makefile.am): Remove stdbool.h if
56651         GL_GENERATE_STDBOOL_H evaluates to false.
56653         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56654         conditional GL_GENERATE_STDDEF_H.
56655         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56656         * modules/stddef (Makefile.am): Remove stddef.h if
56657         GL_GENERATE_STDDEF_H evaluates to false.
56659         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56660         GL_GENERATE_STDINT_H.
56661         * modules/stdint (Makefile.am): Remove stdint.h if
56662         GL_GENERATE_STDINT_H evaluates to false.
56664         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56665         GL_GENERATE_SYSEXITS_H.
56666         * modules/sysexits (Makefile.am): Remove sysexits.h if
56667         GL_GENERATE_SYSEXITS_H evaluates to false.
56669         Reported by Karl Berry and Ralf Wildenhues.
56671 2011-04-05  Bruno Haible  <bruno@clisp.org>
56673         Ensure to rebuild generated .h files when config.status has changed.
56674         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56675         config.status.
56676         * modules/ctype (Makefile.am): Likewise.
56677         * modules/dirent (Makefile.am): Likewise.
56678         * modules/errno (Makefile.am): Likewise.
56679         * modules/fcntl-h (Makefile.am): Likewise.
56680         * modules/float (Makefile.am): Likewise.
56681         * modules/getopt-posix (Makefile.am): Likewise.
56682         * modules/glob (Makefile.am): Likewise.
56683         * modules/iconv-h (Makefile.am): Likewise.
56684         * modules/inttypes (Makefile.am): Likewise.
56685         * modules/langinfo (Makefile.am): Likewise.
56686         * modules/locale (Makefile.am): Likewise.
56687         * modules/math (Makefile.am): Likewise.
56688         * modules/netdb (Makefile.am): Likewise.
56689         * modules/netinet_in (Makefile.am): Likewise.
56690         * modules/poll-h (Makefile.am): Likewise.
56691         * modules/pthread (Makefile.am): Likewise.
56692         * modules/pty (Makefile.am): Likewise.
56693         * modules/sched (Makefile.am): Likewise.
56694         * modules/search (Makefile.am): Likewise.
56695         * modules/selinux-h (Makefile.am): Likewise.
56696         * modules/signal (Makefile.am): Likewise.
56697         * modules/spawn (Makefile.am): Likewise.
56698         * modules/stdarg (Makefile.am): Likewise.
56699         * modules/stdbool (Makefile.am): Likewise.
56700         * modules/stddef (Makefile.am): Likewise.
56701         * modules/stdint (Makefile.am): Likewise.
56702         * modules/stdio (Makefile.am): Likewise.
56703         * modules/stdlib (Makefile.am): Likewise.
56704         * modules/string (Makefile.am): Likewise.
56705         * modules/strings (Makefile.am): Likewise.
56706         * modules/sys_file (Makefile.am): Likewise.
56707         * modules/sys_ioctl (Makefile.am): Likewise.
56708         * modules/sys_select (Makefile.am): Likewise.
56709         * modules/sys_socket (Makefile.am): Likewise.
56710         * modules/sys_stat (Makefile.am): Likewise.
56711         * modules/sys_time (Makefile.am): Likewise.
56712         * modules/sys_times (Makefile.am): Likewise.
56713         * modules/sys_utsname (Makefile.am): Likewise.
56714         * modules/sys_wait (Makefile.am): Likewise.
56715         * modules/sysexits (Makefile.am): Likewise.
56716         * modules/termios (Makefile.am): Likewise.
56717         * modules/time (Makefile.am): Likewise.
56718         * modules/unistd (Makefile.am): Likewise.
56719         * modules/wchar (Makefile.am): Likewise.
56720         * modules/wctype-h (Makefile.am): Likewise.
56721         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56723 2011-04-05  Bruno Haible  <bruno@clisp.org>
56725         pipe2: Relicense under LGPLv2+.
56726         * modules/pipe2 (License): Change to LGPLv2+.
56727         Requested by Eric Blake, for libvirt.
56729 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56731         bootstrap: compute gnulib_extra_files after updating build_aux
56732         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56733         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56735 2011-04-05  Eric Blake  <eblake@redhat.com>
56737         bootstrap: preserve git whitelist item sorting
56738         * build-aux/bootstrap (sort_patterns): New function.
56739         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56741 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56743         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56744         sc_space_tab check.
56746 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56748         areadlink, areadlinkat: rewrite in terms of careadlinkat
56749         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56750         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56751         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56752         (malloc, realloc): Remove #undefs.
56753         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56754         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56755         readlink, ssize_t, stdint, unistd.
56756         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56757         areadlink, stdint.
56759         careadlinkat: new module
56760         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56761         * modules/careadlinkat: New files, written by me with
56762         a review and feedback from Ben Pfaff in
56763         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56765 2011-04-01  Bruno Haible  <bruno@clisp.org>
56767         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56768         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56769         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56770         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56771         Reported by Bruce Korb <bruce.korb@gmail.com>.
56773 2011-04-01  Bruno Haible  <bruno@clisp.org>
56775         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56776         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56777         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56778         * modules/wcpcpy (Depends-on): Add extensions.
56779         * modules/wcpncpy (Depends-on): Likewise.
56780         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56781         systems.
56782         * doc/posix-functions/wcpncpy.texi: Likewise.
56783         * doc/posix-functions/wcwidth.texi: Likewise.
56785 2011-03-31  Eric Blake  <eblake@redhat.com>
56787         nonblocking: fix mingw test failures
56788         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56789         non-blocking flag on regular file.
56790         (get_nonblocking_flag): Set errno on invalid fd.
56791         * tests/test-nonblocking.c (main): Avoid test failure on
56792         directories if fchdir is not active.
56793         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56795 2011-03-31  Bruno Haible  <bruno@clisp.org>
56797         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56798         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56799         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56800         Reported by Simon Josefsson <simon@josefsson.org>.
56802 2011-03-31  Bruno Haible  <bruno@clisp.org>
56803         and Eric Blake  <eblake@redhat.com>
56805         nonblocking: new module
56806         * modules/nonblocking: New module.
56807         * modules/nonblocking-tests: Likewise.
56808         * lib/nonblocking.h: New file.
56809         * lib/nonblocking.c: Likewise.
56810         * tests/test-nonblocking.c: New test.
56811         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56813 2011-03-30  Bruno Haible  <bruno@clisp.org>
56815         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56816         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56817         instead of 'printf' format for GCC >= 4.4.
56818         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56819         (fprintf, printf, vfprintf, vprintf): Declare with
56820         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56821         the system's vfprintf() function.
56822         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56824 2011-03-30  Eric Blake  <eblake@redhat.com>
56826         passfd: fix scoping bug
56827         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56828         before sendmsg/recvmsg.
56830         passfd: standardize coding conventions
56831         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56832         can be learned at compile time.
56833         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56834         ifdefs.
56835         (sendfd, recvfd): Follow gnulib code conventions.
56837         passfd: fix incorrect sendmsg arguments
56838         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56839         incorrect msg_controllen value.
56840         * modules/passfd-tests (Depends-on): Check for alarm.
56841         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56842         Reported by Bastien ROUCARIES.
56844 2011-03-30  Bruno Haible  <bruno@clisp.org>
56846         c-strcasestr: Relicense under LGPLv2+.
56847         * modules/c-strcasestr (License): Change to LGPLv2+.
56848         Requested by Eric Blake, for libvirt.
56850 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56852         * users.txt: Add libidn2.  Fix libtasn1 link.
56854 2011-03-30  Jim Meyering  <meyering@redhat.com>
56856         tests: readlink* ("",... fails with EINVAL on newer kernels
56857         readlink and readlinkat have typically failed with ENOENT for
56858         the invalid, empty file name,  "".  However, with the advent
56859         of linux-2.6.39, they fail with EINVAL.
56860         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56861         when operating on the empty file name.
56862         * tests/test-readlink.h (test_readlink): Likewise.
56864 2011-03-29  Bruno Haible  <bruno@clisp.org>
56866         Relicense some modules under LGPLv2+, for libidn2.
56867         * modules/array-mergesort (License): Change to LGPLv2+.
56868         * modules/c-strcaseeq (License): Likewise.
56869         * modules/striconveh (License): Likewise.
56870         * modules/striconveha (License): Likewise.
56871         * modules/uniconv/base (License): Likewise.
56872         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56873         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56874         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56875         * modules/unictype/base (License): Likewise.
56876         * modules/unictype/bidiclass-of (License): Likewise.
56877         * modules/unictype/category-M (License): Likewise.
56878         * modules/unictype/category-none (License): Likewise.
56879         * modules/unictype/category-of (License): Likewise.
56880         * modules/unictype/category-test (License): Likewise.
56881         * modules/unictype/category-test-withtable (License): Likewise.
56882         * modules/unictype/combining-class (License): Likewise.
56883         * modules/unictype/joiningtype-of (License): Likewise.
56884         * modules/unictype/scripts (License): Likewise.
56885         * modules/uninorm/base (License): Likewise.
56886         * modules/uninorm/canonical-decomposition (License): Likewise.
56887         * modules/uninorm/composition (License): Likewise.
56888         * modules/uninorm/decompose-internal (License): Likewise.
56889         * modules/uninorm/decomposition-table (License): Likewise.
56890         * modules/uninorm/nfc (License): Likewise.
56891         * modules/uninorm/nfd (License): Likewise.
56892         * modules/uninorm/u32-normalize (License): Likewise.
56893         * modules/unistr/base (License): Likewise.
56894         * modules/unistr/u32-cpy (License): Likewise.
56895         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56896         * modules/unistr/u32-to-u8 (License): Likewise.
56897         * modules/unistr/u32-uctomb (License): Likewise.
56898         * modules/unistr/u8-check (License): Likewise.
56899         * modules/unistr/u8-mblen (License): Likewise.
56900         * modules/unistr/u8-mbtouc (License): Likewise.
56901         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56902         * modules/unistr/u8-mbtoucr (License): Likewise.
56903         * modules/unistr/u8-prev (License): Likewise.
56904         * modules/unistr/u8-strlen (License): Likewise.
56905         * modules/unistr/u8-to-u32 (License): Likewise.
56906         * modules/unistr/u8-uctomb (License): Likewise.
56907         * modules/unitypes (License): Likewise.
56908         Requested by Simon Josefsson.
56910 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56912         lib-symbol-visibility: Add a notice.
56913         * modules/lib-symbol-visibility (Notice): New field.
56915 2011-03-29  Bruno Haible  <bruno@clisp.org>
56917         getaddrinfo: Doc fix.
56918         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56919         section "fixed in Gnulib".
56921 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56923         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56924         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56926 2011-03-26  Bruno Haible  <bruno@clisp.org>
56928         unictype/property-byname: Reduce the number of load-time relocations.
56929         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56930         (UC_PROPERTY_INDEX_*): New enumeration values.
56931         (uc_property_byname): Convert an index from the lookup table to an
56932         uc_property_t.
56933         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56934         values.
56936 2011-03-26  Bruno Haible  <bruno@clisp.org>
56938         unictype/property-byname: Allow omitted word separators and aliases.
56939         * lib/unictype/pr_byname.gperf: Add property names without word
56940         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56941         for 'space'.
56943 2011-03-26  Bruno Haible  <bruno@clisp.org>
56945         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56946         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56947         also hyphens to space.
56948         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56949         without spaces.
56950         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56952 2011-03-26  Bruno Haible  <bruno@clisp.org>
56954         unictype/joiningtype-byname: Recognize long names as well.
56955         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56956         a long name.
56957         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56958         unictype/joiningtype_byname.h.
56959         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56960         * lib/unictype/joiningtype_byname.gperf: New file.
56961         * modules/unictype/joiningtype-byname (Files): Add
56962         lib/unictype/joiningtype_byname.gperf.
56963         (Depends-on): Add gperf.
56964         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56965         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56966         long names.
56968         Tests for module 'unictype/joiningtype-longname'.
56969         * modules/unictype/joiningtype-longname-tests: New file.
56970         * tests/unictype/test-joiningtype_longname.c: New file.
56972         New module 'unictype/joiningtype-longname'.
56973         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56974         * lib/unictype/joiningtype_longname.c: New file.
56975         * modules/unictype/joiningtype-longname: New file.
56976         * modules/unictype/joiningtype-all (Depends-on): Add
56977         unictype/joiningtype-longname.
56979 2011-03-26  Bruno Haible  <bruno@clisp.org>
56981         unictype/bidiclass-byname: Recognize long names as well.
56982         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56983         name.
56984         * lib/unictype/bidi_byname.c: Include <string.h>,
56985         unictype/bidi_byname.h.
56986         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56987         * lib/unictype/bidi_byname.gperf: New file.
56988         * modules/unictype/bidiclass-byname (Files): Add
56989         lib/unictype/bidi_byname.gperf.
56990         (Depends-on): Add gperf.
56991         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56992         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56993         long names.
56995         Tests for module 'unictype/bidiclass-longname'.
56996         * modules/unictype/bidiclass-longname-tests: New file.
56997         * tests/unictype/test-bidi_longname.c: New file.
56999         New module 'unictype/bidiclass-longname'.
57000         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
57001         * lib/unictype/bidi_longname.c: New file.
57002         * modules/unictype/bidiclass-longname: New file.
57003         * modules/unictype/bidiclass-all (Depends-on): Add
57004         unictype/bidiclass-longname.
57006 2011-03-26  Bruno Haible  <bruno@clisp.org>
57008         unictype/bidi*: Rename modules.
57009         * modules/unictype/bidiclass-all: Renamed from
57010         modules/unictype/bidicategory-all.
57011         * modules/unictype/bidiclass-name: Renamed from
57012         modules/unictype/bidiclass-name.
57013         (Description): Update.
57014         * modules/unictype/bidiclass-name-tests: Renamed from
57015         modules/unictype/bidicategory-name-tests.
57016         * modules/unictype/bidiclass-byname: Renamed from
57017         modules/unictype/bidicategory-byname.
57018         (Description): Update.
57019         * modules/unictype/bidiclass-byname-tests: Renamed from
57020         modules/unictype/bidicategory-byname-tests.
57021         * modules/unictype/bidiclass-of: Renamed from
57022         modules/unictype/bidicategory-of.
57023         (Description): Update.
57024         * modules/unictype/bidiclass-of-tests: Renamed from
57025         modules/unictype/bidicategory-of-tests.
57026         * modules/unictype/bidiclass-test: Renamed from
57027         modules/unictype/bidicategory-test.
57028         (Description): Update.
57029         * modules/unictype/bidiclass-test-tests: Renamed from
57030         modules/unictype/bidicategory-test-tests.
57031         * modules/unictype/bidicategory-all: New file, a simple redirection.
57032         * modules/unictype/bidicategory-name: Likewise.
57033         * modules/unictype/bidicategory-byname: Likewise.
57034         * modules/unictype/bidicategory-of: Likewise.
57035         * modules/unictype/bidicategory-test: Likewise.
57036         * modules/unictype/property-bidi-* (Dependencies): Update.
57037         * lib/unictype/bidi_*.c: Update comment.
57039 2011-03-26  Bruno Haible  <bruno@clisp.org>
57041         unictype/bidi*: Rename functions, part 2.
57042         * modules/unictype/bidicategory-name (configure.ac): Update required
57043         libunistring version.
57044         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
57046 2011-03-25  Bruno Haible  <bruno@clisp.org>
57048         New module 'unictype/combining-class-all'.
57049         * modules/unictype/combining-class-all: New file.
57051         Tests for module 'unictype/combining-class-byname'.
57052         * modules/unictype/combining-class-byname-tests: New file.
57053         * tests/unictype/test-combiningclass_byname.c: New file.
57055         New module 'unictype/combining-class-byname'.
57056         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
57057         * lib/unictype/combiningclass_byname.c: New file.
57058         * lib/unictype/combiningclass_byname.gperf: New file.
57059         * modules/unictype/combining-class-byname: New file.
57061         Tests for module 'unictype/combining-class-longname'.
57062         * modules/unictype/combining-class-longname-tests: New file.
57063         * tests/unictype/test-combiningclass_longname.c: New file.
57065         New module 'unictype/combining-class-longname'.
57066         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
57067         * lib/unictype/combiningclass_longname.c: New file.
57068         * modules/unictype/combining-class-longname: New file.
57070         Tests for module 'unictype/combining-class-name'.
57071         * modules/unictype/combining-class-name-tests: New file.
57072         * tests/unictype/test-combiningclass_name.c: New file.
57074         New module 'unictype/combining-class-name'.
57075         * lib/unictype.in.h (uc_combining_class_name): New declaration.
57076         * lib/unictype/combiningclass_name.c: New file.
57077         * modules/unictype/combining-class-name: New file.
57079 2011-03-25  Bruno Haible  <bruno@clisp.org>
57081         unictype/combining-class: Rename source files.
57082         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
57083         of unictype/combining.h.
57084         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
57085         Update.
57086         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
57087         * modules/unictype/combining-class (Description): Fix.
57088         (Files, Makefile.am): Update.
57089         * tests/unictype/test-combiningclass.c: Renamed from
57090         tests/unictype/test-combining.c.
57091         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
57093 2011-03-25  Bruno Haible  <bruno@clisp.org>
57095         unictype: Update list of canonical combining classes.
57096         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
57098 2011-03-25  Bruno Haible  <bruno@clisp.org>
57100         unictype/category-byname: Recognize long names as well.
57101         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
57102         a long name.
57103         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
57104         unictype/categ_byname.h.
57105         (UC_CATEGORY_INDEX_*): New enumeration values.
57106         (uc_general_category_byname): Use uc_general_category_lookup and
57107         convert from index to value.
57108         * lib/unictype/categ_byname.gperf: New file.
57109         * modules/unictype/category-byname (Files): Add
57110         lib/unictype/categ_byname.gperf.
57111         (Depends-on): Add gperf.
57112         (Makefile.am): Add rule for generating unictype/categ_byname.h.
57113         * tests/unictype/test-categ_byname.c (main): Test the recognition of
57114         long names.
57116         Tests for module 'unictype/category-longname'.
57117         * modules/unictype/category-longname-tests: New file.
57118         * tests/unictype/test-categ_longname.c: New file.
57120         New module 'unictype/category-longname'.
57121         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
57122         * lib/unictype/categ_longname.c: New file.
57123         * modules/unictype/category-longname: New file.
57124         * modules/unictype/category-all (Depends-on): Add it.
57126 2011-03-25  Bruno Haible  <bruno@clisp.org>
57128         Tests for module 'unictype/category-LC'.
57129         * modules/unictype/category-LC-tests: New file.
57130         * tests/unictype/test-categ_LC.c: New file, automatically generated.
57132         New module 'unictype/category-LC'.
57133         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
57134         (UC_CATEGORY_LC): New declaration.
57135         (UC_CASED_LETTER): New macro.
57136         * lib/gen-uni-tables.c (is_category_LC): New function.
57137         (output_categories): Also handle category LC.
57138         (UC_CATEGORY_MASK_LC): New enumeration value.
57139         (general_category_byname): Also handle category LC.
57140         * lib/unictype/categ_LC.c: New file.
57141         * lib/unictype/categ_LC.h: New file, automatically generated.
57142         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
57143         category LC.
57144         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
57145         * modules/unictype/category-LC: New file.
57146         * modules/unictype/category-byname (Depends-on): Add
57147         unictype/category-LC.
57148         * modules/unictype/category-all (Depends-on): Likewise.
57150 2011-03-25  Eric Blake  <eblake@redhat.com>
57152         xmalloc: revert yesterday's regression
57153         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
57154         realloc's underlying behavior (allowing allocation of zero-size
57155         objects, especially if malloc-gnu is also in use).
57157 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
57159         maint.mk: add missing version to VC-tag
57160         * top/maint.mk: git tag was missing actual tag name; add it.
57162         valgrind: do leak checking, and exit with code 1 on error (not 0)
57163         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
57164         to VALGRIND.
57166 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
57168         posix-modules: say what it does.
57169         * posix-modules: Add a line to the --help output saying what it does.
57171 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
57173         xmalloc: Do not leak if underlying realloc is C99 compatible.
57174         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
57175         This avoids a leak on C99-based systems.  See
57176         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
57178 2011-03-24  Eric Blake  <eblake@redhat.com>
57180         realloc: document portability problem
57181         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
57182         passing 0 size to realloc.
57184 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
57186         doc: update users.txt
57187         * users.txt: Add cvsps, tmpwatch
57189 2011-03-23  Matt Rice  <ratmice@gmail.com>
57191         doc: update users.txt
57192         * users.txt: Add gdb.
57194 2011-03-23  Jim Meyering  <meyering@redhat.com>
57196         doc: update users.txt
57197         Looking through matches up to the following URL (there are still
57198         several more pages), I found several projects that use gnulib:
57199         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
57200         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
57201         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
57203 2011-03-22  Bruno Haible  <bruno@clisp.org>
57205         unictype/bidi*: Rename functions.
57206         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
57207         uc_bidi_class, uc_is_bidi_class): New declarations.
57208         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
57209         uc_bidi_category_byname.
57210         (uc_bidi_category_byname): New function.
57211         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
57212         u_bidi_category_name.
57213         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
57214         (uc_bidi_category_name): New function.
57215         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
57216         uc_bidi_category.
57217         (uc_bidi_category): New function.
57218         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
57219         uc_is_bidi_category. Invoke uc_bidi_class.
57220         (uc_is_bidi_category): New function.
57221         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
57222         instead of uc_bidi_category_byname.
57223         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
57224         instead of uc_bidi_category_name.
57225         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
57226         uc_bidi_category.
57227         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
57228         instead of uc_is_bidi_category.
57230 2011-03-21  Bruno Haible  <bruno@clisp.org>
57232         New module 'unictype/joininggroup-all'.
57233         * modules/unictype/joininggroup-all: New file.
57235         Tests for module 'unictype/joininggroup-of'.
57236         * modules/unictype/joininggroup-of-tests: New file.
57237         * tests/unictype/test-joininggroup_of.c: New file.
57238         * tests/unictype/test-joininggroup_of.h: New file, automatically
57239         generated by gen-uni-tables.
57241         New module 'unictype/joininggroup-of'.
57242         * modules/unictype/joininggroup-of: New file.
57243         * lib/unictype/joininggroup_of.c: New file.
57244         * lib/unictype/joininggroup_of.h: New file, automatically generated by
57245         gen-uni-tables.
57247         Tests for module 'unictype/joininggroup-byname'.
57248         * modules/unictype/joininggroup-byname-tests: New file.
57249         * tests/unictype/test-joininggroup_byname.c: New file.
57251         New module 'unictype/joininggroup-byname'.
57252         * modules/unictype/joininggroup-byname: New file.
57253         * lib/unictype/joininggroup_byname.c: New file.
57254         * lib/unictype/joininggroup_byname.gperf: New file.
57256         Tests for module 'unictype/joininggroup-name'.
57257         * modules/unictype/joininggroup-name-tests: New file.
57258         * tests/unictype/test-joininggroup_name.c: New file.
57260         New module 'unictype/joininggroup-name'.
57261         * modules/unictype/joininggroup-name: New file.
57262         * lib/unictype/joininggroup_name.c: New file.
57263         * lib/unictype/joininggroup_name.h: New file.
57265         New module 'unictype/joiningtype-all'.
57266         * modules/unictype/joiningtype-all: New file.
57268         Tests for module 'unictype/joiningtype-of'.
57269         * modules/unictype/joiningtype-of-tests: New file.
57270         * tests/unictype/test-joiningtype_of.c: New file.
57271         * tests/unictype/test-joiningtype_of.h: New file, automatically
57272         generated by gen-uni-tables.
57274         New module 'unictype/joiningtype-of'.
57275         * modules/unictype/joiningtype-of: New file.
57276         * lib/unictype/joiningtype_of.c: New file.
57277         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57278         gen-uni-tables.
57280         Tests for module 'unictype/joiningtype-byname'.
57281         * modules/unictype/joiningtype-byname-tests: New file.
57282         * tests/unictype/test-joiningtype_byname.c: New file.
57284         New module 'unictype/joiningtype-byname'.
57285         * modules/unictype/joiningtype-byname: New file.
57286         * lib/unictype/joiningtype_byname.c: New file.
57288         Tests for module 'unictype/joiningtype-name'.
57289         * modules/unictype/joiningtype-name-tests: New file.
57290         * tests/unictype/test-joiningtype_name.c: New file.
57292         New module 'unictype/joiningtype-name'.
57293         * modules/unictype/joiningtype-name: New file.
57294         * lib/unictype/joiningtype_name.c: New file.
57296         unictype: Add support for Arabic shaping properties.
57297         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57298         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57299         declarations.
57300         (UC_JOINING_GROUP_*): New enumeration values.
57301         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57302         declarations.
57303         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57304         (unicode_joining_type): New variable.
57305         (UC_JOINING_GROUP_*): New enumeration values.
57306         (unicode_joining_group): New variable.
57307         (fill_arabicshaping, joining_type_as_c_identifier,
57308         output_joining_type_test, output_joining_type,
57309         joining_group_as_c_identifier, output_joining_group_test,
57310         output_joining_group): New functions.
57311         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57312         fill_arabicshaping and output_joining_type_test, output_joining_type,
57313         output_joining_group_test, output_joining_group.
57314         Reported by Simon Josefsson.
57316 2011-03-21  Jim Meyering  <meyering@redhat.com>
57318         strftime: fix a bug in yesterday's change
57319         * lib/strftime.c (add): Accommodate width's initial value of -1.
57320         Otherwise, nstrftime would copy uninitialized data into
57321         the result buffer.
57323 2011-03-21  Jim Meyering  <meyering@redhat.com>
57325         tests: add strftime-tests module
57326         * tests/test-strftime.c: New file.
57327         * modules/strftime-tests: New module.
57329 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57331         strftime: don't assume a byte count fits in 'int'
57332         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57333         found this problem by static analysis, using gcc -Wstrict-overflow
57334         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57335         on an integer overflow having undefined behavior, but it turns out
57336         that the argument is a size, which might not fit in 'int' anyway,
57338 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57340         stdio: don't require ignore_value around fwrite
57342         This patch works around libc bug 11959
57343         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57344         Without this patch, applications must often write
57345         ignore_value (fwrite (...)) even though the ignore_value is
57346         not helpful here.  It's common to write many objects, using
57347         fwrite/printf/etc., and then use ferror to detect output error.
57349         I considered making this patch optional, but decided against it,
57350         because libc is obviously being inconsistent here: there is no
57351         reason libc should insist that user code must inspect fwrite
57352         return's value without also insisting that it inspect printf's,
57353         putchar's, etc.  If user code wants to have a strict style where
57354         all these functions' values are checked (so that ferror need not
57355         be checked), we could add support for that style in a new gnulib
57356         module, but in the meantime it's better to be consistent and to
57357         support common usage.
57359         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57360         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57361         that we are compiling in checking mode, and if not C++, and
57362         if not already wrapping fwrite for some other reason.
57363         (fwrite): #define to rpl_fwrite if the latter is defined.
57365 2011-03-20  Bruno Haible  <bruno@clisp.org>
57367         verror: Fix compilation error introduced on 2011-02-13.
57368         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57369         instead of __attribute__.
57370         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57372 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57373             Bruno Haible  <bruno@clisp.org>
57375         socklen: do not depend on sys_socket
57376         While trying to modify Emacs to use gnulib's socklen module,
57377         I discovered a circular dependency: socklen depends on sys_socket
57378         and vice versa.  Emacs can use socklen, but it does not need
57379         sys_socket because it has its own substitute for sys/socket.h.
57380         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57381         gl_TYPE_SOCKLEN_T.
57382         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57383         gl_PREREQ_SYS_H_SOCKET.
57384         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57385         gl_PREREQ_SYS_H_SOCKET.
57386         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57387         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57388         * modules/socklen (Depends-on): Do not depend on sys_socket.
57389         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57391 2011-03-20  Jim Meyering  <meyering@redhat.com>
57393         maint.mk: sort file names *after* new transformation
57394         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57395         prefix would have led to an unwarranted failure in GNU parted.
57396         Sort after that transformation.
57398 2011-03-19  Jim Meyering  <meyering@redhat.com>
57400         maint.mk: fix po-file syntax-check rule
57401         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57402         Patch by Bruno Haible.
57404 2011-03-19  Bruno Haible  <bruno@clisp.org>
57406         socklen: Update comment.
57407         * m4/socklen.m4: Update comment about platforms.
57409 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57410             Bruno Haible  <bruno@clisp.org>
57412         inet_ntop, inet_pton: Simplify.
57413         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57414         documented to provide socklen_t and we already depend on sys_socket.
57415         * modules/inet_pton (Depends-on): Likewise.
57416         * lib/arpa_inet.in.h: Adjust comment.
57418 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57419             Bruno Haible  <bruno@clisp.org>
57421         netdb: Simplify.
57422         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57423         documented to provide socklen_t and we already depend on sys_socket.
57424         * lib/netdb.in.h: Adjust comment.
57426 2011-03-19  Bruno Haible  <bruno@clisp.org>
57428         sys_socket, netdb: Document problem with socklen_t.
57429         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57430         platforms.
57431         * doc/posix-headers/netdb.texi: Likewise.
57433 2011-03-18  Eric Blake  <eblake@redhat.com>
57435         maint.mk: let po check work in VPATH build
57436         * top/maint.mk (po_file): Allow cfg.mk override.
57437         (sc_po_check): Allow VPATH use.
57438         Reported by Jiri Denemark.
57440 2011-03-16  Jim Meyering  <meyering@redhat.com>
57442         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57443         Before, you would have had to create one .x-sc_ file per rule in order
57444         to exempt offending files.  Now, you may instead use a Make variable --
57445         usually defined in cfg.mk -- whose name identifies the affected rule.
57446         * top/maint.mk (_sc_excl): Define.
57447         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57448         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57450 2011-03-13  Bruno Haible  <bruno@clisp.org>
57452         ignore-value tests: Avoid warnings.
57453         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57454         empty for gcc < 3.4.
57456 2011-03-13  Bruno Haible  <bruno@clisp.org>
57458         passfd: Fix link error on Solaris.
57459         * modules/passfd (Description): Correct.
57460         (Depends-on): Add socketlib.
57461         (Link): New section.
57462         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57464 2011-03-13  Bruno Haible  <bruno@clisp.org>
57466         passfd: Fix link error on AIX 5.2.
57467         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57469 2011-03-13  Bruno Haible  <bruno@clisp.org>
57471         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57472         * lib/sys_socket.in.h: Include <stddef.h>.
57473         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57474         CMSG_FIRSTHDR. Remove unused variable.
57476 2011-03-13  Bruno Haible  <bruno@clisp.org>
57478         passfd: Fix compilation error on OpenBSD.
57479         * lib/passfd.c: Include <sys/uio.h>.
57481 2011-03-13  Bruno Haible  <bruno@clisp.org>
57483         passfd test: Fix warnings.
57484         * tests/test-passfd.c: Include <sys/wait.h>.
57485         (main): Fix typo.
57487 2011-03-13  Bruno Haible  <bruno@clisp.org>
57489         passfd module, part 4, tweaks.
57490         * tests/test-passfd.c: Reorder includes.
57491         (main): Fix perror and printf calls.
57493 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57495         passfd module, part 4.
57496         * modules/passfd-tests: New file.
57497         * tests/test-passfd.c: New file.
57499 2011-03-13  Jim Meyering  <meyering@redhat.com>
57501         Makefile: rely on GNU make; derive syntax-check rule names
57502         Rather than requiring that each sc_ rule be listed as a dependent
57503         of "check", use features of GNU make to derive the list.
57504         * Makefile (syntax-check-rules): Define.
57505         (check): Depend on the new variable, not the hard-coded list.
57507 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57508             Bruno Haible  <bruno@clisp.org>
57510         passfd module, part 3.
57511         * lib/passfd.h (recvfd): Add a flags argument.
57512         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57513         (recvfd): Add a flags argument.
57514         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57515         exists.
57516         * modules/passfd (Depends-on): Add cloexec.
57517         Suggested by Eric Blake.
57519 2011-03-13  Bruno Haible  <bruno@clisp.org>
57521         passfd module, part 2, tweaks.
57522         * modules/passfd (Files): Reorder.
57523         (Depends-on): Remove errno.
57524         (Include): Remove <sys/socket.h>, <sys/un.h>.
57525         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57526         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57527         specification header. Include <sys/socket.h> always. Don't include
57528         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57529         (sendfd): Clarify that it sets errno when it fails.
57530         (recvfd): Fix specification.
57532 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57534         passfd module, part 2.
57535         * modules/passfd: New file.
57536         * lib/passfd.h: New file.
57537         * lib/passfd.c: New file.
57539 2011-03-12  Bruno Haible  <bruno@clisp.org>
57541         wcswidth, mbswidth: Avoid integer overflow.
57542         * lib/wcswidth.c: Include <limits.h>.
57543         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57544         * lib/mbswidth.c: Include <limits.h>.
57545         (mbsnwidth): Avoid 'int' overflow.
57546         Reported by Jim Meyering.
57548 2011-03-12  Bruno Haible  <bruno@clisp.org>
57550         futimens, utimensat: Avoid endless recursion on Solaris 10.
57551         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57552         Solaris.
57553         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57554         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57556 2011-03-11  Jim Meyering  <meyering@redhat.com>
57558         maint.mk: relax a regexp to accommodate other formatting styles
57559         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57560         between "ngettext" and the following "(".
57562 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57564         maint.mk: suppress a false positive warning
57565         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57566         diagnostics are marked with ngettext.
57568 2011-03-10  Eric Blake  <eblake@redhat.com>
57570         wchar: add explicit dependencies, for Tru64
57571         * modules/mbmemcasecoll (Depends-on): Add wchar.
57572         * modules/mbtowc (Depends-on): Likewise.
57573         * modules/vasnprintf (Depends-on): Likewise.
57574         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57575         * modules/wctomb (Depends-on): Likewise.
57576         Reported by Peter O'Gorman.
57578 2011-03-08  Bruno Haible  <bruno@clisp.org>
57580         passfd module, part 1, tweaks.
57581         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57582         Improve indentation. Improve AC_MSG_CHECKING messages.
57583         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57584         gl_SOCKET_FAMILIES.
57586 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57588         passfd module, part 1.
57589         * m4/afunix.m4: New file.
57590         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57591         sockets.
57593 2011-03-08  Bruno Haible  <bruno@clisp.org>
57595         regex-quote: New API.
57596         * lib/regex-quote.h: Include <stdbool.h>.
57597         (struct regex_quote_spec): New type.
57598         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57599         New declarations.
57600         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57601         'const struct regex_quote_spec *' argument.
57602         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57603         (pcre_special): New constant.
57604         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57605         New functions.
57606         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57607         'const struct regex_quote_spec *' argument.
57608         * modules/regex-quote (Depends-on): Add stdbool.
57609         * tests/test-regex-quote.c (check): Update for new API. Add test for
57610         anchored results.
57611         * NEWS: Mention the API change.
57612         Reported by Reuben Thomas and Eric Blake.
57614 2011-03-06  Bruno Haible  <bruno@clisp.org>
57616         regex-quote: Fix creation of POSIX extended regular expressions.
57617         * lib/regex-quote.c (ere_special): Add grouping and alternation
57618         operators.
57620 2011-03-05  Bruno Haible  <bruno@clisp.org>
57622         doc: Improve doc regarding autopoint vs. gnulib.
57623         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57624         disable autopoint while running autoreconf.
57625         Suggested by Ralf Wildenhues.
57627 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57629         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57630         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57632 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57634         parse-duration: remove xalloc.h dependency
57635         * lib/parse-duration.c (parse_period): handle NULL return from
57636         strdup instead of calling xstrdup().
57637         * modules/parse-duration: remove "xalloc" dependency
57639 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57641         bootstrap: honor m4_base when running aclocal
57642         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57644 2011-03-02  Jim Meyering  <meyering@redhat.com>
57646         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57647         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57648         on request from Matt Booth.
57650 2011-03-01  Eric Blake  <eblake@redhat.com>
57652         test-link: work on Hurd
57653         * tests/test-link.h (test_link): Hurd rejects linking directories
57654         with EISDIR instead of the POSIX-mandated EPERM.
57656 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57658         stdio: simplify by moving files to printf-posix, sigpipe
57659         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57660         since this symbol is needed only if printf is replaced.
57661         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57662         Require gl_ASM_SYMBOL_PREFIX.
57663         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57664         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57665         (Depends-on): Add 'raise'.
57666         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57667         * modules/stdio (Files): Remove lib/stdio-write.c,
57668         m4/asm-underscore.m4.
57669         (Depends-on): Remove 'raise'.
57671         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57672         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57673         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57674         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57676 2011-02-28  Bruno Haible  <bruno@clisp.org>
57678         localcharset: Assume ANSI C behaviour of free().
57679         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57680         calling free().
57681         Suggested by Simon Josefsson <simon@josefsson.org>.
57683 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57684             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57685             Bruno Haible  <bruno@clisp.org>  (tiny change)
57687         On Cygwin, use /proc file system instead of win32 API.
57688         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57689         Win32 file names.
57690         (DllMain): Simplify by removing Cygwin specific code.
57691         (find_shared_library_fullname): Use Linux specific implementation also
57692         for Cygwin.
57693         (get_shared_library_fullname): Update accordingly.
57694         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57695         Win32 file names.
57696         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57697         Cygwin specific code.
57699 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57700             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57702         Fix OpenMP flag detection for various Fortran compilers.
57703         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57704         OpenMP-conditional compilation construct, to force compile
57705         failure with missing OpenMP flag.
57706         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57708 2011-02-25  Eric Blake  <eblake@redhat.com>
57710         strstr: expand test coverage
57711         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57712         compilation.
57713         * tests/test-memmem.c (main): Duplicate tests.
57714         * tests/test-strcasestr.c (main): Likewise.
57715         * tests/test-c-strcasestr.c (main): Likewise.
57717 2011-02-25  Jim Meyering  <meyering@redhat.com>
57719         maint.mk: detect missing-NL-at-EOF, too
57720         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57721         it also detects when a file lacks a newline at EOF.
57722         (require_exactly_one_NL_at_EOF_): Renamed from
57723         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57724         since people may well have .x-sc_... file names tied to the
57725         existing name.  Suggested by Eric Blake.
57727 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57729         dirname: move m4/dos.m4 functionality into lib/dosname.h
57731         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57732         extracts symbols from it, puts them into config.h; but it's much
57733         easier to use the symbols directly.  filename.h already does this,
57734         but it disagrees with dos.m4 in some respects.  This patch
57735         introduces a different include file dosname.h that packages up
57736         dos.m4, and then later we can work on merging filename.h and
57737         dosname.h.  Applications that need only the easy-to-configure
57738         symbols should consider including dosname.h rather than dirname.h.
57739         * NEWS: Mention incompatible changes.
57740         * m4/dos.m4: Remove.
57741         * lib/dosname.h, modules/dosname: New files.
57742         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57743         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57744         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57745         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57746         Include dosname.h, not dirname.h.
57747         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57748         Include dosname.h, for definitions of symbols like ISSLASH
57749         that used to be in config.h.
57750         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57751         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57752         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57753         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57754         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57755         * modules/rmdir (Files): Likewise.
57756         * modules/stat (Files): Likewise.
57757         * modules/unlink (Files): Likewise.
57758         * modules/dirname-lgpl (Depends-on): Add dosname.
57759         * modules/lstat (Depends-on): Likewise.
57760         * modules/openat (Depends-on): Likewise.
57761         * modules/rmdir (Depends-on): Likewise.
57762         * modules/savewd (Depends-on): Likewise.
57763         * modules/stat (Depends-on): Likewise.
57764         * modules/unlink (Depends-on): Likewise.
57765         * modules/openat (Depends-on): Remove dirname-lgpl.
57766         * modules/savewd (Depends-on): Likewise.
57767         * tests/test-dirname.c: Do not use removed symbols like
57768         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57769         the remaining symbols, e.g., ISSLASH ('\\').
57771 2011-02-25  Eric Blake  <eblake@redhat.com>
57773         strstr: revert patches that introduced bug and pessimization
57774         * lib/str-two-way.h: Add another reference.
57775         (two_way_short_needle, two_way_long_needle): Revert changes from
57776         2011-02-24; they pessimize search speed.
57777         (critical_factorization): Partially revert changes from
57778         2010-06-22; they violate the requirement that the left half of the
57779         needle be smaller than the period of the needle.
57781 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57783         filenamecat: remove unnecessary dependency on dirname-lgpl
57784         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57785         is no direct dependency, just an indirect one via filenamecat-lgpl.
57787         remove: remove unnecessary use of m4/dos.m4
57788         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57789         * modules/remove (FILES): Remove m4/dos.m4.
57791         * lib/openat-proc.c: Don't include dirname.h; not needed.
57793         backupfile: remove unnecessary use of m4/dos.m4
57794         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57795         of its symbols are used by the backupfile code.  backupfile.c does
57796         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57797         for the rare case of programs that want all their backup file
57798         names to live within 8+3 limits, and dos.m4 doesn't address that.
57799         * modules/backupfile (Files): Remove m4/dos.m4.
57801 2011-02-24  Jim Meyering  <meyering@redhat.com>
57803         strstr: fix a bug whereby strstr would mistakenly return NULL
57804         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57805         in period calculation.
57806         (two_way_long_needle): Likewise.
57807         The original problem was reported by Mike Stump in
57808         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57809         Ralf Wildenhues provided the short needle and haystack.
57810         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57811         Add a more involved test to trigger the bug in two_way_long_needle.
57813 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57815         gnulib-tool: remove use of bold display in help screen
57816         * gnulib-tool (func_usage): Do not use bold display anymore in the
57817         help screen.  That was just meant to be a temporary emphasis for a
57818         backward-incompatible change.
57820 2011-02-23  Bruno Haible  <bruno@clisp.org>
57822         Fix misindentation of preprocessor directives.
57823         * lib/argp-namefrob.h: Reindent preprocessor directives.
57824         * lib/getopt_int.h (struct _getopt_data): Likewise.
57825         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57826         * lib/vasnprintf.c (decode_long_double): Likewise.
57827         * tests/test-argmatch.c: Insert blank lines, for clarity.
57828         * tests/test-exclude.c: Likewise.
57830 2011-02-22  Bruno Haible  <bruno@clisp.org>
57832         ioctl: Fix for MacOS X in 64-bit mode.
57833         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57834         value.
57835         Suggested by Eric Blake.
57836         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57838 2011-02-22  Jim Meyering  <meyering@redhat.com>
57840         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57841         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57842         in lib/.
57844 2011-02-22  Eric Blake  <eblake@redhat.com>
57846         maint: avoid any CDPATH issue
57847         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57849         maint: adjust cpp indentation for my modules, as well
57850         * Makefile (sc_cpp_indent_check): Add my name.
57851         * lib/fbufmode.c: Filter through cppi.
57852         * lib/fpurge.c: Likewise.
57853         * lib/freadable.c: Likewise.
57854         * lib/freading.c: Likewise.
57855         * lib/fwritable.c: Likewise.
57856         * lib/fwriting.c: Likewise.
57857         * lib/sigaction.c: Likewise.
57859 2011-02-22  Jim Meyering  <meyering@redhat.com>
57861         maint: adjust cpp indentation to reflect nesting depth
57862         I.e., in a block of code that begins with an unnested "#if",
57863         put one space between the "#" in column 1 and following token.
57864         For example,
57865         -#include <sys/vfs.h>
57866         +# include <sys/vfs.h>
57867         Do this only in .c files that are part of a module I maintain.
57868         * lib/linkat.c: Filter through cppi.
57869         * lib/nanosleep.c: Likewise.
57870         * lib/openat.c: Likewise.
57871         * lib/openat-die.c: Likewise.
57872         * lib/dup3.c: Likewise.
57873         * lib/fchownat.c: Likewise.
57874         * lib/flock.c: Likewise.
57875         * lib/fsync.c: Likewise.
57876         * lib/fts.c: Likewise.
57877         * lib/getpass.c: Likewise.
57878         * lib/gettimeofday.c: Likewise.
57879         * lib/userspec.c: Likewise.
57880         * Makefile (sc_cpp_indent_check): New rule, to check this.
57882 2011-02-22  Bruno Haible  <bruno@clisp.org>
57884         New module 'wctomb'.
57885         * lib/stdlib.in.h (wctomb): New declaration.
57886         * lib/wctomb.c: New file.
57887         * lib/wctomb-impl.h: New file.
57888         * m4/wctomb.m4: New file.
57889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57890         REPLACE_WCTOMB.
57891         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57892         REPLACE_WCTOMB.
57893         * modules/wctomb: New file.
57894         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57895         * doc/posix-functions/wctomb.texi: Mention the new module.
57896         * modules/wctob (Depends-on): Add wctomb.
57898 2011-02-22  Bruno Haible  <bruno@clisp.org>
57900         New module 'mbtowc'.
57901         * lib/stdlib.in.h (mbtowc): New declaration.
57902         * lib/mbtowc.c: New file.
57903         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57904         * m4/mbtowc.m4: New file.
57905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57906         REPLACE_MBTOWC.
57907         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57908         REPLACE_MBTOWC.
57909         * modules/mbtowc: New file.
57910         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57911         * doc/posix-functions/mbtowc.texi: Mention the new module.
57912         * modules/btowc (Depends-on): Add mbtowc.
57914 2011-02-22  Bruno Haible  <bruno@clisp.org>
57916         wcrtomb: Add more tests for native Windows platforms.
57917         * tests/test-wcrtomb-w32-1.sh: New file.
57918         * tests/test-wcrtomb-w32-2.sh: New file.
57919         * tests/test-wcrtomb-w32-3.sh: New file.
57920         * tests/test-wcrtomb-w32-4.sh: New file.
57921         * tests/test-wcrtomb-w32-5.sh: New file.
57922         * tests/test-wcrtomb-w32.c: New file.
57923         * modules/wcrtomb-tests (Files): Add them.
57924         (Makefile.am): Arrange to run these tests.
57925         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57926         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57928 2011-02-20  Bruno Haible  <bruno@clisp.org>
57930         wcrtomb: Enhance test.
57931         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57933 2011-02-20  Bruno Haible  <bruno@clisp.org>
57935         mbrtowc: Tiny optimization.
57936         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57938 2011-02-20  Jim Meyering  <meyering@redhat.com>
57940         test-exclude.c: remove unmatched #endif
57941         * tests/test-exclude.c: Remove stray #endif, left over from
57942         the change of a week ago.
57944 2011-02-19  Jim Meyering  <meyering@redhat.com>
57946         git-version-gen: skip "-dirty" check when appropriate
57947         * build-aux/git-version-gen: Don't run any git commands when the
57948         version string comes from .tarball-version.  Prior to this, we
57949         would run git update-index --refresh even from a just-unpacked
57950         tarball directory, and that could affect a .git/ directory in a
57951         parent of the build directory.  Reported by Mike Frysinger.
57953 2011-02-19  Bruno Haible  <bruno@clisp.org>
57955         unictype/property-byname: Reduce the size of the 'data' segment.
57956         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57958 2011-02-19  Bruno Haible  <bruno@clisp.org>
57960         unictype/scripts: Reduce the size of the 'data' segment.
57961         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57962         '%pic'.
57963         * lib/unictype/scripts_byname.gperf: Regenerated.
57965 2011-02-19  Bruno Haible  <bruno@clisp.org>
57967         stdint: Update documentation.
57968         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57970 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57972         stdint: omit redundant check for wchar.h
57973         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57974         always tests whether wchar.h exists, so remove the now-redundant test.
57976 2011-02-18  Bruno Haible  <bruno@clisp.org>
57978         stdint: Cut dependency to module 'wchar'.
57979         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57980         include the necessary prerequisites.
57981         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57982         * modules/stdint (Depends-on): Remove wchar.
57983         (Makefile.am): Substitute HAVE_WCHAR_H.
57984         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57986 2011-02-18  Eric Blake  <eblake@redhat.com>
57988         longlong: skip, rather than fail, on cross-compilation
57989         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57990         when cross-compiling; regression from 2011-02-16.
57992 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57994         * NEWS: Mention 2011-02-08 change to stdlib.
57996 2011-02-17  Bruno Haible  <bruno@clisp.org>
57998         getloadavg: Add comments about platforms.
57999         * m4/getloadavg.m4: Add comment.
58000         * lib/getloadavg.c: Likewise.
58002 2011-02-17  Bruno Haible  <bruno@clisp.org>
58004         getloadavg: Fix link error on Solaris 2.6.
58005         * modules/getloadavg (Link): New section.
58006         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
58007         linking test-getloadavg.
58008         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
58009         getloadavg.
58011 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
58013         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
58014         It was 'int', but this doesn't match the IRIX 6.5 manual.
58015         Suggested by Bruno Haible in
58016         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
58018 2011-02-17  Bruno Haible  <bruno@clisp.org>
58020         havelib: Fix comments.
58021         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
58022         change.
58024 2011-02-17  Bruno Haible  <bruno@clisp.org>
58026         havelib: Update config.rpath.
58027         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
58029 2011-02-17  Bruno Haible  <bruno@clisp.org>
58031         getloadavg test: Add some plausibility checks.
58032         * tests/test-getloadavg.c (check_avg): Print a warning when the value
58033         is improbable.
58035 2011-02-16  Eric Blake  <eblake@redhat.com>
58037         maintainer-makefile: make syntax-check a no-op from tarballs
58038         * top/maint.mk (no-vc-detected): New rule.
58039         (local-checks-available): Use it to avoid hanging if someone tries
58040         'make syntax-check' from a tarball.  Also append to any non-syntax
58041         checks already defined in cfg.mk.
58043 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
58045         longlong: tune, particularly for common case of c99
58047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
58048         or running anything if c99, or if unsigned long long int does not
58049         work.  In either case, we know the answer without further tests.
58050         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
58051         it at most once, and use its results for both long long int and
58052         unsigned long long int.  This is more likely to be efficient in
58053         the common case where the program wants to check for both long
58054         long int and unsigned long long int.
58055         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
58056         since the answer is already known.
58058 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
58060         getloadavg: set errno
58061         * lib/getloadavg.c: Set errno when returning -1.  If no other
58062         error number looks appropriate, set it to ENOSYS if the getloadavg
58063         looks like it can't possibly ever work, ENOTSUP otherwise.
58064         Suggested by Bruno Haible in
58065         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
58067         getloadavg: trim unused parts and speed up 'configure'
58068         * NEWS: Document this.
58069         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
58070         always compiled if getloadavg is absent.
58071         Move test code to ...
58072         * tests/test-getloadavg.c: New file, containing previous
58073         contents of test from lib/getloadavg.c.  It also contains
58074         suggestions by Bruno Haible in
58075         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
58076         * modules/getloadavg-tests: New file.
58077         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
58078         Do tests in the same order as they're needed for getloadavg.c.
58079         Omit setgid-related tests that generate symbols KMEM_GROUP,
58080         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
58081         Do only the tests that are needed to see whether the system has
58082         getloadavg, moving the other tests into ...
58083         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
58084         NLIST_NAME_UNION; nobody should be using it.  Do not define
58085         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
58086         relevant, as the user of this module shouldn't care how getloadavg
58087         is implemented.
58089         getloadavg: omit unused var
58090         * lib/getloadavg.c (getloadavg): Omit unused local variable.
58092 2011-02-15  Jim Meyering  <meyering@redhat.com>
58094         doc: update users.txt
58095         * users.txt: Update iwhd's URL.
58097 2011-02-13  Bruno Haible  <bruno@clisp.org>
58099         Consistent macro naming for macros that use GCC __attribute__.
58100         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
58101         _ATTRIBUTE_NONNULL_.
58102         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
58103         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
58104         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
58105         ATTRIBUTE_DEPRECATED.
58106         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
58107         ATTRIBUTE_NORETURN.
58108         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58109         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58110         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58111         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
58112         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
58113         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
58114         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
58115         ATTRIBUTE_SENTINEL.
58116         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
58117         ATTRIBUTE_RETURN_CHECK.
58118         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
58119         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
58120         ATTRIBUTE_NORETURN.
58121         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
58122         Reported by Paul Eggert.
58124 2011-02-13  Bruno Haible  <bruno@clisp.org>
58126         Don't interfere with a program's definition of __attribute__.
58127         * lib/argp.h (__attribute__): Remove definition.
58128         (_GL_ATTRIBUTE_FORMAT): New macro.
58129         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
58130         * lib/argp-fmtstream.h (__attribute__): Remove definition.
58131         (_GL_ATTRIBUTE_FORMAT): New macro.
58132         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
58133         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
58134         GCC 3 or newer.
58135         * lib/error.h (__attribute__): Remove definition.
58136         (_GL_ATTRIBUTE_FORMAT): New macro.
58137         (error, error_at_line): Use it.
58138         * lib/hash.h (__attribute__): Remove definition.
58139         (ATTRIBUTE_WUR): Update definition. Define always.
58140         * lib/openat.h (__attribute__): Remove definition.
58141         (ATTRIBUTE_NORETURN): Update definition. Define always.
58142         * lib/sigpipe-die.h (__attribute__): Remove definition.
58143         (ATTRIBUTE_NORETURN): Update definition. Define always.
58144         * lib/vasnprintf.h (__attribute__): Remove definition.
58145         (_GL_ATTRIBUTE_FORMAT): New macro.
58146         (asnprintf, vasnprintf): Use it.
58147         * lib/xalloc.h (__attribute__): Remove definition.
58148         (ATTRIBUTE_NORETURN): Update definition. Define always.
58149         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
58150         * lib/xmemdup0.h (__attribute__): Remove definition.
58151         (ATTRIBUTE_NORETURN): Update definition. Define always.
58152         * lib/xprintf.h (__attribute__): Remove definition.
58153         (_GL_ATTRIBUTE_FORMAT): New macro.
58154         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
58155         * lib/xstrtol.h (__attribute__): Remove definition.
58156         (ATTRIBUTE_NORETURN): Update definition. Define always.
58157         * lib/xvasprintf.h (__attribute__): Remove definition.
58158         (_GL_ATTRIBUTE_FORMAT): New macro.
58159         (xasprintf, xvasprintf): Use it.
58160         * tests/test-argmatch.c (__attribute__): Remove definition.
58161         (ATTRIBUTE_NORETURN): Update definition. Define always.
58162         * tests/test-exclude.c (__attribute__): Remove definition.
58163         (ATTRIBUTE_NORETURN): Update definition. Define always.
58164         Reported by Paul Eggert.
58166 2011-02-13  Bruno Haible  <bruno@clisp.org>
58168         mbrtowc: Add more tests for native Windows platforms.
58169         * tests/test-mbrtowc-w32-1.sh: New file.
58170         * tests/test-mbrtowc-w32-2.sh: New file.
58171         * tests/test-mbrtowc-w32-3.sh: New file.
58172         * tests/test-mbrtowc-w32-4.sh: New file.
58173         * tests/test-mbrtowc-w32-5.sh: New file.
58174         * tests/test-mbrtowc-w32.c: New file.
58175         * modules/mbrtowc-tests (Files): Add them.
58176         (Makefile.am): Arrange to run these tests.
58177         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
58178         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
58180 2011-02-13  Bruno Haible  <bruno@clisp.org>
58182         mbrtowc: Work around native Windows bug.
58183         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
58184         guess when no suitable locale for testing was found.
58185         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
58187 2011-02-13  Bruno Haible  <bruno@clisp.org>
58189         mbsinit: Work around mingw bug.
58190         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
58191         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
58192         Windows.
58193         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
58195 2011-02-13  Bruno Haible  <bruno@clisp.org>
58197         mbsinit: Don't crash for a NULL argument.
58198         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
58199         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
58201 2011-02-13  Bruno Haible  <bruno@clisp.org>
58203         Don't interfere with a program's definition of __attribute__.
58204         * lib/stdio.in.h (__attribute__): Remove definition.
58205         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
58206         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
58207         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
58208         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
58209         * lib/string.in.h (__attribute__): Remove definition.
58210         Reported by Paul Eggert.
58212 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58214         stdlib: don't get in the way of non-GCC __attribute__
58215         See thread starting at
58216         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
58217         Revert previous stdlib change, installing the following instead:
58218         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
58219         to get in the way of a non-GCC compiler that supports __attribute__.
58220         (_GL_ATTRIBUTE_RETURN): New macro.
58221         (_Exit): Use it instead of __attribute__.
58223 2011-02-12  Bruno Haible  <bruno@clisp.org>
58225         quotearg test: Avoid test failure on mingw.
58226         * tests/test-quotearg.sh: Convert the locale identifier from native
58227         Windows syntax to Unix syntax.
58229 2011-02-12  Bruno Haible  <bruno@clisp.org>
58231         setlocale: Prefer gnulib's override over libintl's override.
58232         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
58233         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
58234         GNULIB_defined_setlocale is set.
58236 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
58238         stdlib: support non-GCC __attribute__
58240         Fix a serious and tricky problem encountered when attempting to
58241         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
58242         5.5, but it crashed due to memory corruption on Solaris 10 with
58243         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
58244         bits that are otherwise zero.  This tagging is optional inside
58245         Emacs but is preferred and is used when __attribute__ ((__aligned
58246         (8))) works, as it does with both recent-enough GCC and with Sun C
58247         5.11.  However, Sun C 5.11 is not GCC and does not #define
58248         __GNUC__ and __GNUC_MINOR__.
58250         When I added the getloadavg module to Emacs, it brought in
58251         stdlib.in.h, which contained this fragment:
58253            #ifndef __attribute__
58254            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58255            #  define __attribute__(Spec)   /* empty */
58256            # endif
58257            #endif
58259         When files that include <stdlib.h> were compiled with Sun C 5.11,
58260         the above code disabled __attribute__ ((__aligned (8))), which
58261         caused variables to not be properly aligned, which eventually led
58262         to the pointer corruption mentioned above.  (This was a bit hard
58263         to diagnose, unfortunately.)
58265         Several "#define __attribute__(X) /* empty */" code snippets need
58266         to be eradicated from Gnulib to work with non-GCC compilers that
58267         support __attribute__.  The Autoconf way to do this is to test for
58268         each kind of attribute that we want support for, and selectively
58269         enable that in source code.
58271         Fix this problem just for stdlib.h, by adding a test for the
58272         __noreturn__ attribute, and change stdlib.in.h to use that test
58273         when needed.  This technique can be easily generalized to the
58274         other *.in.h files and attributes, and a similar technique can be
58275         used for *.h and *.c files.  This patch is enough to solve the
58276         problem for Emacs + getloadavg, and I thought I'd publish it for
58277         feedback before undertaking further, similar fixes in other
58278         modules.
58280         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58281         because it's not needed for stdlib.h.  It merely substitutes the
58282         value directly into stdlib.h.  We may well need to #define it, or
58283         similar symbols, for other modules, but it's nice to also have an
58284         option to not #define it for applications like Emacs that do not
58285         need it.
58287         * lib/stdlib.in.h (__attribute__): Do not #define.
58288         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58289         be defined only if the _Exit module is also used.
58290         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58292         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58293         platforms.
58294         * modules/_Exit (Files): Add m4/attribute.m4.
58295         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58296         * m4/attribute.m4: New file.
58298 2011-02-12  Bruno Haible  <bruno@clisp.org>
58300         wcsrtombs: Work around bug on native Windows.
58301         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58302         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58303         instead of len.
58304         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58306 2011-02-12  Bruno Haible  <bruno@clisp.org>
58308         mbsrtowcs: Work around bug on native Windows.
58309         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58310         against mingw bug.
58311         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58313 2011-02-12  Bruno Haible  <bruno@clisp.org>
58315         Avoid setlocale bugs in tests.
58316         * modules/btowc (Dependencies): Add setlocale.
58317         * modules/c-strcase (Dependencies): Likewise.
58318         * modules/mbmemcasecmp (Dependencies): Likewise.
58319         * modules/mbmemcasecoll (Dependencies): Likewise.
58320         * modules/mbrtowc (Dependencies): Likewise.
58321         * modules/mbscasecmp (Dependencies): Likewise.
58322         * modules/mbscasestr (Dependencies): Likewise.
58323         * modules/mbschr (Dependencies): Likewise.
58324         * modules/mbscspn (Dependencies): Likewise.
58325         * modules/mbsinit (Dependencies): Likewise.
58326         * modules/mbsncasecmp (Dependencies): Likewise.
58327         * modules/mbsnrtowcs (Dependencies): Likewise.
58328         * modules/mbspbrk (Dependencies): Likewise.
58329         * modules/mbspcasecmp (Dependencies): Likewise.
58330         * modules/mbsrchr (Dependencies): Likewise.
58331         * modules/mbsrtowcs (Dependencies): Likewise.
58332         * modules/mbsspn (Dependencies): Likewise.
58333         * modules/mbsstr (Dependencies): Likewise.
58334         * modules/nl_langinfo (Dependencies): Likewise.
58335         * modules/quotearg (Dependencies): Likewise.
58336         * modules/unicase/locale-language (Dependencies): Likewise.
58337         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58338         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58339         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58340         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58341         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58342         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58343         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58344         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58345         * modules/vasnprintf-posix (Dependencies): Likewise.
58346         * modules/wcrtomb (Dependencies): Likewise.
58347         * modules/wcsnrtombs (Dependencies): Likewise.
58348         * modules/wcsrtombs (Dependencies): Likewise.
58350 2011-02-12  Bruno Haible  <bruno@clisp.org>
58352         setlocale: Workaround native Windows bug.
58353         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58354         succeeds but sets LC_CTYPE to "C", report a failure.
58355         * tests/test-setlocale2.sh: New file.
58356         * tests/test-setlocale2.c: New file.
58357         * modules/setlocale-tests (Files): Add the new files.
58358         (Makefile.am): Enable test-setlocale2.sh test.
58359         * doc/posix-functions/setlocale.texi: Mention workaround.
58361 2011-02-11  Bruno Haible  <bruno@clisp.org>
58363         Tests for module 'setlocale'.
58364         * modules/setlocale-tests: New file.
58365         * tests/test-setlocale1.sh: New file.
58366         * tests/test-setlocale1.c: New file.
58368         New module 'setlocale'.
58369         * lib/locale.in.h (setlocale): New declaration.
58370         * lib/setlocale.c: New file, based on
58371         gettext/gettext-runtime/intl/setlocale.c.
58372         * m4/setlocale.m4: New file.
58373         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58374         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58375         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58376         REPLACE_SETLOCALE.
58377         * modules/setlocale: New file.
58378         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58379         * doc/posix-functions/setlocale.texi: Mention the new module.
58381 2011-02-11  Bruno Haible  <bruno@clisp.org>
58383         Prepare for locale dependent tests on mingw.
58384         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58385         because it has the wrong locale encoding.
58386         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58387         French_France.1252 instead of "fr".
58388         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58389         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58390         because it has the wrong locale encoding.
58391         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58392         native Windows, try Turkish_Turkey.65001.
58393         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58394         Chinese_China.54936.
58396         Prepare for locale dependent tests on mingw.
58397         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58398         differently.
58399         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58400         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58401         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58402         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58404 2011-02-11  Eric Blake  <eblake@redhat.com>
58406         strptime: avoid compiler warnings
58407         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58408         compiler warnings about dead code.
58409         Reported by Daniel P. Berrange.
58411 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58413         doc: update users.txt
58414         * users.txt: Add rcs.
58416 2011-02-10  John W. Eaton  <jwe@gnu.org>
58418         doc: update users.txt
58419         * users.txt: Add octave.
58421 2011-02-10  Jim Meyering  <meyering@redhat.com>
58423         doc: update users.txt
58424         * users.txt: Add iwhd.
58426 2011-02-09  Bruno Haible  <bruno@clisp.org>
58428         gnulib-tool: Make copyright notice adjustment more robust.
58429         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58430         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58431         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58432         License".
58433         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58435 2011-02-06  Bruno Haible  <bruno@clisp.org>
58437         New module 'towctrans'.
58438         * modules/towctrans: New file.
58439         * lib/wctype.in.h (towctrans): New declaration.
58440         * lib/towctrans.c: New file.
58441         * lib/towctrans-impl.h: New file.
58442         * m4/towctrans.m4: New file.
58443         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58444         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58445         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58446         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58447         * doc/posix-functions/towctrans.texi: Mention the new module.
58449 2011-02-06  Bruno Haible  <bruno@clisp.org>
58451         New module 'wctrans'.
58452         * modules/wctrans: New file.
58453         * lib/wctype.in.h (wctrans): New declaration.
58454         * lib/wctrans.c: New file.
58455         * lib/wctrans-impl.h: New file.
58456         * m4/wctrans.m4: New file.
58457         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58458         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58459         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58460         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58461         * doc/posix-functions/wctrans.texi: Mention the new module.
58463 2011-02-06  Bruno Haible  <bruno@clisp.org>
58465         New module 'iswctype'.
58466         * modules/iswctype: New file.
58467         * lib/wctype.in.h (iswctype): New declaration.
58468         * lib/iswctype.c: New file.
58469         * lib/iswctype-impl.h: New file.
58470         * m4/iswctype.m4: New file.
58471         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58472         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58473         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58474         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58475         * doc/posix-functions/iswctype.texi: Mention the new module and the
58476         HP-UX 11.00 problem.
58478 2011-02-06  Bruno Haible  <bruno@clisp.org>
58480         New module 'wctype'.
58481         * modules/wctype: Change to represent the wctype() substitute.
58482         * lib/wctype.in.h (wctype): New declaration.
58483         * lib/wctype.c: New file.
58484         * lib/wctype-impl.h: New file.
58485         * m4/wctype.m4: New file.
58486         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58487         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58488         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58489         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58490         * doc/posix-functions/wctype.texi: Mention the new module and the
58491         HP-UX 11.00 problem.
58493 2011-02-06  Bruno Haible  <bruno@clisp.org>
58495         wctype-h: Ensure wctype_t and wctrans_t are defined.
58496         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58497         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58498         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58499         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58500         HAVE_WCTRANS_T.
58501         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58503 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58505         flock: fix license typo
58507         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58508         omitted.
58510 2011-02-08  Bruno Haible  <bruno@clisp.org>
58512         Split large sed scripts, for HP-UX sed.
58513         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58514         to avoid HP-UX limit of 99 commands, in the near future.
58515         * modules/stdlib (Makefile.am): Likewise.
58516         * modules/unistd (Makefile.am): Likewise.
58517         * modules/wchar (Makefile.am): Likewise.
58518         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58519         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58520         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58522 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58523             Bruno Haible  <bruno@clisp.org>
58525         stdlib: improve random_r modularization
58526         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58527         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58528         you also need the random_r module to get this material right.
58529         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58530         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58531         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58533 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58535         stdlib: don't depend on stdint
58536         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58537         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58538         be independent of whether stdint.h is needed.
58539         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58540         here, instead of ...
58541         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58542         struct random_data should be using the random_r module, not just
58543         the stdlib module (which wouldn't make sense: what package needs
58544         just struct random_data without also needing random_r?).
58545         * modules/stdlib (Depends-on): Remove stdint.
58547         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58548         See the thread rooted at
58549         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58550         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58551         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58552         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58553         __VMS)); previously it was always included (via fcntl--.h).
58554         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58555         hand; this is good enough for load averages.  Also, do not use
58556         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58557         flags directly if available and don't bother otherwise.  (Packages
58558         that need the extra reliability should use the modules that define
58559         these flags on older platforms that lack them.)
58560         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58561         fcntl-safer.
58563 2011-02-08  Jim Meyering  <meyering@redhat.com>
58565         di-set.h, ino-map.h: add multiple-inclusion guard
58566         Technically, the guard is required only for ino-map.h, due to its
58567         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58568         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58569         * lib/ino-map.h: Likewise.
58571 2011-02-06  Bruno Haible  <bruno@clisp.org>
58573         iswblank: Ensure declaration on glibc systems.
58574         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58575         * modules/iswblank (Dependencies): Add 'extensions'.
58576         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58578 2011-02-06  Bruno Haible  <bruno@clisp.org>
58580         New module 'iswblank'.
58581         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58582         * modules/iswblank: New file.
58583         * modules/wctype-h (Files): Remove lib/iswblank.c.
58584         (Makefile.am): Substitute GNULIB_ISWBLANK.
58585         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58586         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58587         (gl_WCTYPE_H_DEFAULTS): New macro.
58588         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58589         * modules/iswblank-tests: New file.
58590         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58591         * tests/test-wctype-h.c (main): Remove iswblank tests.
58592         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58593         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58594         of 'wctype-h'.
58595         * NEWS: Mention the change.
58596         * modules/mbchar (Depends-on): Add iswblank.
58598 2011-02-08  Bruno Haible  <bruno@clisp.org>
58600         di-set tests: Refactor.
58601         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58602         unnecessary includes.
58603         (ASSERT): Remove macro.
58604         (main): Make C90 compliant by avoiding variable declaration after
58605         statement.
58606         * modules/di-set-tests (Files): Add tests/macros.h.
58608 2011-02-08  Bruno Haible  <bruno@clisp.org>
58610         ino-map tests: Refactor.
58611         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58612         unnecessary includes.
58613         (ASSERT): Remove macro.
58614         (main): Make C90 compliant by avoiding variable declaration after
58615         statement.
58616         * modules/ino-map-tests (Files): Add tests/macros.h.
58618 2011-02-08  Jim Meyering  <meyering@redhat.com>
58620         di-set: add "const" to a cast
58621         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58622         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58624 2011-02-06  Bruno Haible  <bruno@clisp.org>
58626         Rename module 'wctype' to 'wctype-h'.
58627         * modules/wctype-h: Renamed from modules/wctype.
58628         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58629         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58630         (Files, Depends-on, Makefile.am): Update.
58631         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58632         (Files, Makefile.am): Update.
58633         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58634         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58635         * doc/posix-headers/wctype.texi: Update.
58636         * doc/posix-functions/iswalnum.texi: Update.
58637         * doc/posix-functions/iswalpha.texi: Update.
58638         * doc/posix-functions/iswblank.texi: Update.
58639         * doc/posix-functions/iswcntrl.texi: Update.
58640         * doc/posix-functions/iswdigit.texi: Update.
58641         * doc/posix-functions/iswgraph.texi: Update.
58642         * doc/posix-functions/iswlower.texi: Update.
58643         * doc/posix-functions/iswprint.texi: Update.
58644         * doc/posix-functions/iswpunct.texi: Update.
58645         * doc/posix-functions/iswspace.texi: Update.
58646         * doc/posix-functions/iswupper.texi: Update.
58647         * doc/posix-functions/iswxdigit.texi: Update.
58648         * doc/posix-functions/towlower.texi: Update.
58649         * doc/posix-functions/towupper.texi: Update.
58650         * NEWS: Mention the change.
58651         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58652         * modules/mbchar (Dependencies): Likewise.
58653         * modules/mbswidth (Dependencies): Likewise.
58654         * modules/quotearg (Dependencies): Likewise.
58655         * modules/regex (Dependencies): Likewise.
58656         * modules/wcscasecmp (Dependencies): Likewise.
58657         * modules/wcsncasecmp (Dependencies): Likewise.
58658         * modules/wcwidth (Dependencies): Likewise.
58660 2011-02-06  Bruno Haible  <bruno@clisp.org>
58662         New module 'wcswidth'.
58663         * modules/wcswidth: New file.
58664         * lib/wchar.in.h (wcswidth): New declaration.
58665         * lib/wcswidth.c: New file.
58666         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58667         * m4/wcswidth.m4: New file.
58668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58670         REPLACE_WCSWIDTH.
58671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58672         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58673         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58674         * doc/posix-functions/wcswidth.texi: Mention the new module.
58676 2011-02-06  Bruno Haible  <bruno@clisp.org>
58678         New module 'wcstok'.
58679         * modules/wcstok: New file.
58680         * lib/wchar.in.h (wcstok): New declaration.
58681         * lib/wcstok.c: New file.
58682         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58683         * m4/wcstok.m4: New file.
58684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58687         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58688         * doc/posix-functions/wcstok.texi: Mention the new module.
58690 2011-02-06  Bruno Haible  <bruno@clisp.org>
58692         New module 'wcsstr'.
58693         * modules/wcsstr: New file.
58694         * lib/wchar.in.h (wcsstr): New declaration.
58695         * lib/wcsstr.c: New file.
58696         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58697         * m4/wcsstr.m4: New file.
58698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58701         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58702         * doc/posix-functions/wcsstr.texi: Mention the new module.
58704 2011-02-06  Bruno Haible  <bruno@clisp.org>
58706         New module 'wcspbrk'.
58707         * modules/wcspbrk: New file.
58708         * lib/wchar.in.h (wcspbrk): New declaration.
58709         * lib/wcspbrk.c: New file.
58710         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58711         * m4/wcspbrk.m4: New file.
58712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58715         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58716         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58718 2011-02-06  Bruno Haible  <bruno@clisp.org>
58720         New module 'wcsspn'.
58721         * modules/wcsspn: New file.
58722         * lib/wchar.in.h (wcsspn): New declaration.
58723         * lib/wcsspn.c: New file.
58724         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58725         * m4/wcsspn.m4: New file.
58726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58729         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58730         * doc/posix-functions/wcsspn.texi: Mention the new module.
58732 2011-02-06  Bruno Haible  <bruno@clisp.org>
58734         New module 'wcscspn'.
58735         * modules/wcscspn: New file.
58736         * lib/wchar.in.h (wcscspn): New declaration.
58737         * lib/wcscspn.c: New file.
58738         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58739         * m4/wcscspn.m4: New file.
58740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58743         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58744         * doc/posix-functions/wcscspn.texi: Mention the new module.
58746 2011-02-06  Bruno Haible  <bruno@clisp.org>
58748         New module 'wcsrchr'.
58749         * modules/wcsrchr: New file.
58750         * lib/wchar.in.h (wcsrchr): New declaration.
58751         * lib/wcsrchr.c: New file.
58752         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58753         * m4/wcsrchr.m4: New file.
58754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58757         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58758         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58760 2011-02-06  Bruno Haible  <bruno@clisp.org>
58762         New module 'wcschr'.
58763         * modules/wcschr: New file.
58764         * lib/wchar.in.h (wcschr): New declaration.
58765         * lib/wcschr.c: New file.
58766         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58767         * m4/wcschr.m4: New file.
58768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58771         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58772         * doc/posix-functions/wcschr.texi: Mention the new module.
58774 2011-02-06  Bruno Haible  <bruno@clisp.org>
58776         New module 'wcsdup'.
58777         * modules/wcsdup: New file.
58778         * lib/wchar.in.h (wcsdup): New declaration.
58779         * lib/wcsdup.c: New file.
58780         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58781         * m4/wcsdup.m4: New file.
58782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58785         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58786         * doc/posix-functions/wcsdup.texi: Mention the new module.
58788 2011-02-06  Bruno Haible  <bruno@clisp.org>
58790         New module 'wcsxfrm'.
58791         * modules/wcsxfrm: New file.
58792         * lib/wchar.in.h (wcsxfrm): New declaration.
58793         * lib/wcsxfrm.c: New file.
58794         * lib/wcsxfrm-impl.h: New file.
58795         * m4/wcsxfrm.m4: New file.
58796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58799         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58800         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58802 2011-02-06  Bruno Haible  <bruno@clisp.org>
58804         New module 'wcscoll'.
58805         * modules/wcscoll: New file.
58806         * lib/wchar.in.h (wcscoll): New declaration.
58807         * lib/wcscoll.c: New file.
58808         * lib/wcscoll-impl.h: New file.
58809         * m4/wcscoll.m4: New file.
58810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58813         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58814         * doc/posix-functions/wcscoll.texi: Mention the new module.
58816 2011-02-06  Bruno Haible  <bruno@clisp.org>
58818         New module 'wcsncasecmp'.
58819         * modules/wcsncasecmp: New file.
58820         * lib/wchar.in.h (wcsncasecmp): New declaration.
58821         * lib/wcsncasecmp.c: New file.
58822         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58823         * m4/wcsncasecmp.m4: New file.
58824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58827         HAVE_WCSNCASECMP.
58828         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58829         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58831 2011-02-06  Bruno Haible  <bruno@clisp.org>
58833         New module 'wcscasecmp'.
58834         * modules/wcscasecmp: New file.
58835         * lib/wchar.in.h (wcscasecmp): New declaration.
58836         * lib/wcscasecmp.c: New file.
58837         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58838         * m4/wcscasecmp.m4: New file.
58839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58842         HAVE_WCSCASECMP.
58843         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58844         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58846 2011-02-05  Bruno Haible  <bruno@clisp.org>
58848         New module 'wcsncmp'.
58849         * modules/wcsncmp: New file.
58850         * lib/wchar.in.h (wcsncmp): New declaration.
58851         * lib/wcsncmp.c: New file.
58852         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58853         * m4/wcsncmp.m4: New file.
58854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58857         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58858         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58860 2011-02-05  Bruno Haible  <bruno@clisp.org>
58862         New module 'wcscmp'.
58863         * modules/wcscmp: New file.
58864         * lib/wchar.in.h (wcscmp): New declaration.
58865         * lib/wcscmp.c: New file.
58866         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58867         * m4/wcscmp.m4: New file.
58868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58871         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58872         * doc/posix-functions/wcscmp.texi: Mention the new module.
58874 2011-02-05  Bruno Haible  <bruno@clisp.org>
58876         New module 'wcsncat'.
58877         * modules/wcsncat: New file.
58878         * lib/wchar.in.h (wcsncat): New declaration.
58879         * lib/wcsncat.c: New file.
58880         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58881         * m4/wcsncat.m4: New file.
58882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58885         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58886         * doc/posix-functions/wcsncat.texi: Mention the new module.
58888 2011-02-05  Bruno Haible  <bruno@clisp.org>
58890         New module 'wcscat'.
58891         * modules/wcscat: New file.
58892         * lib/wchar.in.h (wcscat): New declaration.
58893         * lib/wcscat.c: New file.
58894         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58895         * m4/wcscat.m4: New file.
58896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58899         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58900         * doc/posix-functions/wcscat.texi: Mention the new module.
58902 2011-02-05  Bruno Haible  <bruno@clisp.org>
58904         New module 'wcpncpy'.
58905         * modules/wcpncpy: New file.
58906         * lib/wchar.in.h (wcpncpy): New declaration.
58907         * lib/wcpncpy.c: New file.
58908         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58909         * m4/wcpncpy.m4: New file.
58910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58912         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58913         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58914         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58916 2011-02-05  Bruno Haible  <bruno@clisp.org>
58918         New module 'wcsncpy'.
58919         * modules/wcsncpy: New file.
58920         * lib/wchar.in.h (wcsncpy): New declaration.
58921         * lib/wcsncpy.c: New file.
58922         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58923         * m4/wcsncpy.m4: New file.
58924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58927         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58928         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58930 2011-02-05  Bruno Haible  <bruno@clisp.org>
58932         New module 'wcpcpy'.
58933         * modules/wcpcpy: New file.
58934         * lib/wchar.in.h (wcpcpy): New declaration.
58935         * lib/wcpcpy.c: New file.
58936         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58937         * m4/wcpcpy.m4: New file.
58938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58940         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58941         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58942         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58944 2011-02-05  Bruno Haible  <bruno@clisp.org>
58946         New module 'wcscpy'.
58947         * modules/wcscpy: New file.
58948         * lib/wchar.in.h (wcscpy): New declaration.
58949         * lib/wcscpy.c: New file.
58950         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58951         * m4/wcscpy.m4: New file.
58952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58955         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58956         * doc/posix-functions/wcscpy.texi: Mention the new module.
58958 2011-02-05  Bruno Haible  <bruno@clisp.org>
58960         New module 'wcsnlen'.
58961         * modules/wcsnlen: New file.
58962         * lib/wchar.in.h (wcsnlen): New declaration.
58963         * lib/wcsnlen.c: New file.
58964         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58965         * m4/wcsnlen.m4: New file.
58966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58969         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58970         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58972 2011-02-05  Bruno Haible  <bruno@clisp.org>
58974         New module 'wcslen'.
58975         * modules/wcslen: New file.
58976         * lib/wchar.in.h (wcslen): New declaration.
58977         * lib/wcslen.c: New file.
58978         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58979         * m4/wcslen.m4: New file.
58980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58983         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58984         * doc/posix-functions/wcslen.texi: Mention the new module.
58986 2011-02-05  Bruno Haible  <bruno@clisp.org>
58988         New module 'wmemset'.
58989         * modules/wmemset: New file.
58990         * lib/wchar.in.h (wmemset): New declaration.
58991         * lib/wmemset.c: New file.
58992         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58993         * m4/wmemset.m4: New file.
58994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58996         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58997         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58998         * doc/posix-functions/wmemset.texi: Mention the new module.
59000 2011-02-05  Bruno Haible  <bruno@clisp.org>
59002         New module 'wmemmove'.
59003         * modules/wmemmove: New file.
59004         * lib/wchar.in.h (wmemmove): New declaration.
59005         * lib/wmemmove.c: New file.
59006         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
59007         * m4/wmemmove.m4: New file.
59008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
59009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
59010         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
59011         HAVE_WMEMMOVE.
59012         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
59013         * doc/posix-functions/wmemmove.texi: Mention the new module.
59015 2011-02-05  Bruno Haible  <bruno@clisp.org>
59017         New module 'wmemcpy'.
59018         * modules/wmemcpy: New file.
59019         * lib/wchar.in.h (wmemcpy): New declaration.
59020         * lib/wmemcpy.c: New file.
59021         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
59022         * m4/wmemcpy.m4: New file.
59023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
59024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
59025         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
59026         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
59027         * doc/posix-functions/wmemcpy.texi: Mention the new module.
59029 2011-02-05  Bruno Haible  <bruno@clisp.org>
59031         New module 'wmemcmp'.
59032         * modules/wmemcmp: New file.
59033         * lib/wchar.in.h (wmemcmp): New declaration.
59034         * lib/wmemcmp.c: New file.
59035         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
59036         * m4/wmemcmp.m4: New file.
59037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
59038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
59039         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
59040         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
59041         * doc/posix-functions/wmemcmp.texi: Mention the new module.
59043 2011-02-07  Jim Meyering  <meyering@redhat.com>
59045         di-set, ino-map: new modules, from coreutils
59046         * lib/di-set.c: New file.
59047         * lib/di-set.h: Likewise.
59048         * lib/ino-map.c: Likewise.
59049         * lib/ino-map.h: Likewise.
59050         * modules/di-set: Likewise.
59051         * modules/di-set-tests: Likewise.
59052         * modules/ino-map: Likewise.
59053         * modules/ino-map-tests: Likewise.
59054         * tests/test-di-set.c: Likewise.
59055         * tests/test-ino-map.c: Likewise.
59057 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
59059         getloadavg: merge minor changes from Emacs
59061         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
59062         (getloadavg): Use memset, not bzero.
59064         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
59065         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
59066         clash (bug#86).
59068 2010-11-14  Bruno Haible  <bruno@clisp.org>
59070         Allow multiple gnulib generated replacements to coexist.
59071         * lib/getopt.in.h (struct option): Avoid identical redefinition.
59072         * lib/inttypes.in.h (imaxdiv_t): Likewise.
59073         * lib/langinfo.in.h (nl_item): Likewise.
59074         * lib/math.in.h (_NaN, NAN): Likewise.
59075         * lib/netdb.in.h (struct addrinfo): Likewise.
59076         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
59077         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
59078         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
59079         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
59080         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
59081         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
59082         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
59083         pthread_mutexattr_init, pthread_mutexattr_settype,
59084         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
59085         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
59086         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
59087         pthread_spin_trylock, pthread_spin_unlock): Likewise.
59088         * lib/sched.in.h (struct sched_param): Likewise.
59089         * lib/se-selinux.in.h (security_class_t, security_context_t,
59090         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
59091         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
59092         lsetfilecon, fsetfilecon, security_check_context,
59093         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
59094         Likewise.
59095         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
59096         Likewise.
59097         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
59098         _gl_function_taking_int_returning_void_t, union sigval,
59099         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
59100         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
59101         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
59102         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
59103         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
59104         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
59105         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
59106         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
59107         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
59108         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
59109         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
59110         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
59111         socklen_t, rpl_fd_isset): Likewise.
59112         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
59113         * lib/sys_time.in.h (struct timeval): Likewise.
59114         * lib/sys_times.in.h (struct tms): Likewise.
59115         * lib/sys_utsname.in.h (struct utsname):
59116         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
59117         * lib/unistd.in.h (getpagesize): Likewise.
59118         * lib/wchar.in.h (mbstate_t): Likewise.
59119         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59120         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
59121         towlower, towupper): Likewise.
59122         Reported by Sam Steingold <sds@gnu.org>.
59124 2011-02-05  Eric Blake  <eblake@redhat.com>
59126         unsetenv: work around Haiku issues
59127         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
59128         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
59130 2010-12-30  Bruce Korb  <bkorb@gnu.org>
59132         libposix: avoid calling error() within libposix
59133         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
59134         is defined.
59136 2011-02-05  Eric Blake  <eblake@redhat.com>
59138         strerror_r-posix: port to cygwin
59139         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
59140         implementation.
59141         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
59142         * tests/test-strerror_r.c (main): Fix test.
59143         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
59144         issue.
59146 2011-02-05  Bruno Haible  <bruno@clisp.org>
59148         New module 'wmemchr'.
59149         * modules/wmemchr: New file.
59150         * lib/wchar.in.h (wmemchr): New declaration.
59151         * lib/wmemchr.c: New file.
59152         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
59153         * m4/wmemchr.m4: New file.
59154         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
59155         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
59156         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
59157         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
59158         * doc/posix-functions/wmemchr.texi: Mention the new module.
59160 2011-02-04  Eric Blake  <eblake@redhat.com>
59162         fdopendir: detect FreeBSD bug
59163         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
59164         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
59166 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59168         stdbool: do not define HAVE_STDBOOL_H
59169         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
59170         AC_HEADER_STDBOOL.  All uses changed.  Do not define
59171         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
59172         imported from the latest Autoconf git.  It was motivated by Emacs,
59173         which uses gnulib but does not need HAVE_STDBOOL_H.
59175 2011-02-04  Bruno Haible  <bruno@clisp.org>
59177         wcsnrtombs: Prepare for new module wwcsnrtombs.
59178         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
59179         * lib/wcsnrtombs.c: Include it.
59180         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
59182         wcsrtombs: Prepare for new module wwcsrtombs.
59183         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
59184         * lib/wcsrtombs.c: Include it.
59185         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
59187         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
59188         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
59189         * lib/mbsnrtowcs.c: Include it.
59190         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
59192         mbsrtowcs: Prepare for new module mbsrtowwcs.
59193         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
59194         * lib/mbsrtowcs.c: Include it.
59195         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
59197 2011-02-04  Bruno Haible  <bruno@clisp.org>
59199         vasnprintf: Reduce use of malloc for small format strings.
59200         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
59201         (arguments): Add room for the first 7 arguments.
59202         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
59203         (char_directives, u8_directives, u16_directives, u32_directives): Add
59204         room for the first 7 directives.
59205         * lib/printf-parse.c: Include <string.h>.
59206         (PRINTF_PARSE): Change memory handling code so that it uses the first
59207         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
59208         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
59209         Reported by Pádraig Brady <P@draigbrady.com>.
59211 2011-01-31  Eric Blake  <eblake@redhat.com>
59213         dup2: work around Haiku bug
59214         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
59215         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
59216         * doc/posix-functions/dup2.texi (dup2): Document the bug.
59217         * tests/test-dup2.c (main): Enhance test.
59219 2011-01-31  Simon Josefsson  <simon@josefsson.org>
59221         doc: off_t is not available in eglibc 2.11.2 stdio.h.
59222         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
59223         declared by eglibc 2.11.2.
59224         * lib/stdio.in.h: Likewise.
59226 2011-01-31  Eric Blake  <eblake@redhat.com>
59228         ignore-value: add missing test dependency
59229         * tests/test-ignore-value.c: Revert previous change; stdio.h
59230         provides off_t.
59231         * modules/ignore-value-tests (Depends-on): Add missing dependency.
59233 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
59235         mktime: clarify long_int width checking
59236         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
59237         the top level, to make it clearer that the assumption about
59238         long_int width is being checked.  See
59239         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
59241 2011-01-30  Simon Josefsson  <simon@josefsson.org>
59243         ignore-value: Fix self-test.
59244         * tests/test-ignore-value.c: Include sys/types.h for off_t.
59246 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59248         TYPE_MAXIMUM: avoid theoretically undefined behavior
59249         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
59250         negative number, which the C Standard says has undefined behavior.
59251         In practice this is not a problem, but might as well do it by the book.
59252         Reported by Rich Felker and Eric Blake; see
59253         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59254         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59255         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59257         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59258         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59259         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59261         mktime: #undef mktime before #defining it
59262         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59264         mktime: systematically normalize tm_isdst comparisons
59265         * lib/mktime.c (isdst_differ): New function.
59266         (__mktime_internal): Use it systematically for all isdst comparisons.
59267         This completes the fix for libc BZ #6723, and removes the need for
59268         normalizing tm_isdst.  See
59269         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59270         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59272         mktime: fix some integer overflow issues and sidestep the rest
59274         This was prompted by a bug report by Benjamin Lindner for MinGW
59275         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59276         His bug is due to signed integer overflow (0 - INT_MIN), and I
59277         I scanned through mktime.c looking for other integer overflow
59278         problems, fixing all the bugs I found.
59280         Although the C Standard says the resulting code is still not safe
59281         in the presence of integer overflow, in practice it should be good
59282         enough for all real-world two's-complement implementations, except
59283         for debugging environments that deliberately trap on integer
59284         overflow (e.g., gcc -ftrapv).
59286         * lib/mktime.c (WRAPV): New macro.
59287         (SHR): Also check that long_int and time_t shift right in the
59288         usual way, before using the fast-but-unportable method.
59289         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59290         used.  The code already assumed two's complement, so there's
59291         no need to test for alternatives.  All uses removed.
59292         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59293         the C standard.  Problem reported by Rich Felker in
59294         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59295         (twos_complement_arithmetic): Also check long_int and time_t.
59296         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59297         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59298         (__mktime_internal): Avoid integer overflow with unary subtraction
59299         in two instances where -1 - X is an adequate replacement for -X,
59300         since the calculations are approximate.
59302 2011-01-29  Eric Blake  <eblake@redhat.com>
59304         mktime: avoid infinite loop
59305         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59306         type; behavior is still undefined but portable to all known targets.
59307         Reported by Rich Felker.
59309 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59311         rename, unlink, same-inode: Relicense.
59312         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59313         * modules/unlink (License): Likewise.
59314         * modules/same-inode (License): Likewise.
59316 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59318         mktime: avoid problems on NetBSD 5 / i386
59319         * lib/mktime.c (long_int): New type.  This works around a problem
59320         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59321         but time_t is 64 bits, and where I expect the existing code is
59322         wrong in some cases.
59323         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59324         (ydhms_diff): Bring back the compile-time check for wide-enough
59325         year and yday.
59327         mktime: fix misspelling in comment
59328         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59329         This merges all recent glibc changes of importance.
59331 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59333         move-if-change: cope with concurrent mv of identical file.
59334         * build-aux/move-if-change (CMPPROG): Accept environment
59335         variable as an override for `cmp'.
59336         (usage): Document CMPPROG.
59337         Adjust comparison to drop stdout.  Cope with failure of mv if
59338         the target file exists and is identical to the source, for
59339         parallel builds.
59340         Report from H.J. Lu against binutils in PR binutils/12283.
59342 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59344         * users.txt: Mention sharutils.
59346 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59348         * users.txt: Mention OATH Toolkit.
59350 2011-01-27  Bruno Haible  <bruno@clisp.org>
59352         Prepare for supporting FreeBSD 10.
59353         * build-aux/config.libpath: Remove handling of freebsd1*.
59355 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59357         Prepare for supporting FreeBSD 10.
59358         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59359         match FreeBSD 10.0.
59361 2011-01-27  Bruno Haible  <bruno@clisp.org>
59363         vma-iter, get-rusage-as: Add OpenBSD support.
59364         * modules/vma-iter (configure.ac): Test for mquery.
59365         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59366         * lib/vma-iter.c: Include <sys/mman.h>.
59367         (vma_iterate): Add an implementation based on mquery().
59368         * lib/resource-ext.h (get_rusage_as): Update comments.
59369         * lib/get-rusage-as.c: Likewise.
59370         * lib/get-rusage-data.c: Likewise.
59372 2011-01-26  Karl Berry  <karl@gnu.org>
59374         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59375         variables to make it easier to override the makeinfo program used.
59377 2011-01-26  Eric Blake  <eblake@redhat.com>
59379         fcntl: work around Haiku F_DUPFD bugs
59380         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59381         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59382         cloexec bit on duplication.
59383         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59385 2011-01-26  Bruno Haible  <bruno@clisp.org>
59387         Enable memory leak tests on AIX.
59388         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59389         * tests/test-fprintf-posix3.c (main): Likewise.
59391 2011-01-26  Bruno Haible  <bruno@clisp.org>
59393         Tests for module 'get-rusage-data'.
59394         * modules/get-rusage-data-tests: New file.
59395         * tests/test-get-rusage-data.c: New file.
59397         New module 'get-rusage-data'.
59398         * lib/resource-ext.h (get_rusage_data): New declaration.
59399         * lib/get-rusage-data.c: New file.
59400         * modules/get-rusage-data: New file.
59402 2011-01-25  Bruno Haible  <bruno@clisp.org>
59404         get-rusage-as: Allow for easier testing.
59405         * lib/resource-ext.h (get_rusage_as): Add comment.
59406         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59407         (main): New function for interactive testing.
59409 2011-01-25  Bruno Haible  <bruno@clisp.org>
59411         vma-iter: Treat Haiku like BeOS.
59412         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59413         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59415 2011-01-25  Eric Blake  <eblake@redhat.com>
59417         c-stack: fix regression on cygwin when libsigsegv is present
59418         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59420 2011-01-24  Bruno Haible  <bruno@clisp.org>
59422         vma-iter: Avoid empty intervals.
59423         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59424         on an empty interval.
59426 2011-01-24  Jim Meyering  <meyering@redhat.com>
59428         u64: remove unnecessary #include
59429         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59431 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59433         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59434         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59436 2011-01-23  Bruno Haible  <bruno@clisp.org>
59438         New module 'vma-iter'.
59439         * lib/vma-iter.h: New file.
59440         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59441         * modules/vma-iter: New file.
59442         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59443         for get_rusage_as_via_iterator.
59444         (vma_iterate_callback): New function.
59445         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59446         * modules/get-rusage-as (Depends-on): Add vma-iter.
59448 2011-01-23  Bruno Haible  <bruno@clisp.org>
59450         uninorm: Tweak includes.
59451         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59452         Reported by Jim Meyering.
59454 2011-01-23  Bruno Haible  <bruno@clisp.org>
59456         get-rusage-as: Improve on NetBSD.
59457         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59458         /proc, like on FreeBSD.
59460 2011-01-23  Jim Meyering  <meyering@redhat.com>
59462         xreadlink.h: remove unnecessary #include
59463         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59465         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59466         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59468 2011-01-23  Bruno Haible  <bruno@clisp.org>
59470         get-rusage-as: Fix bug.
59471         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59472         original limit when aborting the first loop.
59474 2011-01-23  Bruno Haible  <bruno@clisp.org>
59476         wctype: Ensure valid C syntax.
59477         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59478         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59480 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59482         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59484         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59485         as they are needed only for configure's test case.
59486         This removes two unnecessary symbols from config.h.
59488         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59489         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59490         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59491         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59492         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59493         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59494         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59495         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59496         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59497         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59498         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59499         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59500         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59501         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59502         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59503         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59504         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59505         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59507 2011-01-21  Eric Blake  <eblake@redhat.com>
59509         maintainer-makefile: work with older git for submodule check
59510         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59511         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59512         Reported by Matthias Bolte.
59514         bootstrap: minor portability fixes
59515         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59516         (usage): Omit leading capital and trailing . on help phrases, per
59517         GNU Coding Standards.
59518         (check_versions, top level): Prefix messages with script name.
59520 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59522         bootstrap: support --no-git option
59523         * build-aux/bootstrap: Add --no-git option, to be used when
59524         --gnulib-srcdir points to the exact desired checkout.
59526 2011-01-21  Eric Blake  <eblake@redhat.com>
59528         strerror_r-posix: work with glibc 2.13
59529         * lib/strerror_r.c (strerror_r): Fix return type.
59531 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59532             Bruno Haible  <bruno@clisp.org>
59534         uN_strstr: New unit tests.
59535         * modules/unistr/u8-strstr-tests: New file.
59536         * modules/unistr/u16-strstr-tests: New file.
59537         * modules/unistr/u32-strstr-tests: New file.
59538         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59539         * tests/unistr/test-u8-strstr.c: New file.
59540         * tests/unistr/test-u16-strstr.c: New file.
59541         * tests/unistr/test-u32-strstr.c: New file.
59543 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59544             Bruno Haible  <bruno@clisp.org>
59546         Make uN_strstr functions O(n) worst-case.
59547         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59548         16-bit and 32-bit unit cases, use the unibyte algorithm from
59549         lib/mbsstr.c.
59550         * lib/unistr/u8-strstr.c: Include <string.h>.
59551         (UNIT_IS_UINT8_T): New macro.
59552         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59553         (U_STRLEN, U_STRNLEN): New macros.
59554         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59555         (U_STRLEN, U_STRNLEN): New macros.
59556         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59557         (configure.ac): Update required libunistring version.
59558         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59559         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59560         malloca.
59561         (configure.ac): Update required libunistring version.
59562         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59563         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59564         malloca.
59565         (configure.ac): Update required libunistring version.
59567 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59568             Bruno Haible  <bruno@clisp.org>
59570         Prepare for faster uN_strstr functions.
59571         * lib/str-kmp.h: Support definable UNITs.
59572         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59573         needle_len argument.
59574         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59575         * lib/mbscasestr.c (mbscasestr): Likewise.
59577 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59579         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59580         * tests/test-malloca.c (main): Unset the environment variable
59581         to greatly speed up the test.
59582         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59583         * modules/malloca-tests: Depend on unsetenv.
59585 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59587         ignore-value: remove stdint dependency
59588         * lib/ignore-value.h: Remove <stdint.h>
59589         * modules/ignore-value: Remove stdint dependency.
59591 2011-01-21  Jim Meyering  <meyering@redhat.com>
59593         maint.mk: adjust variable name to be consistent with other gl_ vars
59594         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59595         to be lower case.
59597 2011-01-20  Jim Meyering  <meyering@redhat.com>
59599         maint.mk: make "check" depend on public-submodule-commit by default
59600         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59602 2011-01-20  Bruno Haible  <bruno@clisp.org>
59604         mbfile, mbiter: Complete change from 2008-12-21.
59605         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59606         * m4/mbiter.m4 (gl_MBITER): Likewise.
59608 2011-01-20  Jim Meyering  <meyering@redhat.com>
59610         init.sh: insert space between each function name and "()"
59611         * tests/init.sh: Make it a little easier to see that a function's
59612         name is "warn_", and not "warn" when looking at the first part of
59613         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59615 2011-01-20  Jim Meyering  <meyering@redhat.com>
59617         mountlist: clean up code formatting
59618         * lib/mountlist.c (read_file_system_list): Split a long line,
59619         correct bracing style, use NULL in place of "(struct statfs *)0",
59620         don't parenthesize return value, add spaces around "=" and after
59621         ";-in-for-stmt".
59623 2011-01-14  Markus Duft  <mduft@gentoo.org>
59625         mountlist: add support for Interix
59626         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59627         Apply statvfs to all entries of /dev/fs.
59628         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59629         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59631 2011-01-20  Jim Meyering  <meyering@redhat.com>
59633         maint.mk: improve the public-submodule-commit rule
59634         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59635         to suppress printing of its commands... unless V=1.
59636         Add git submodule's --quiet option to suppress printing of e.g.,
59637         "Entering gnulib" output.
59638         "cd" into $(srcdir) before running git submodule.
59640 2011-01-20  Bruno Haible  <bruno@clisp.org>
59642         include_next: Fix bug introduced on 2011-01-18.
59643         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59644         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59645         ac_cv_header_... variable if the second argument is not 'check'.
59646         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59647         gl_NEXT_HEADERS_INTERNAL.
59649 2011-01-20  Bruno Haible  <bruno@clisp.org>
59651         Allow the user to avoid the GNULIB_TEST_* macros.
59652         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59653         Suggested by Paul Eggert.
59655 2011-01-14  Jim Meyering  <meyering@redhat.com>
59657         bootstrap: avoid failure when there is no .gitmodules file
59658         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59659         has been assigned to, even when its value is the empty string.
59660         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59661         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59662         Reported by John W. Eaton <jwe@gnu.org>.
59664 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59666         assume <ctype.h>, ..., <time.h> exist
59667         For years gnulib has been assuming the existence of the headers
59668         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59669         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59670         them, since they don't appear to be needed.
59671         * README (Portability guidelines): Document this.
59672         * lib/flock.c: Assume <fcntl.h> exists.
59673         * lib/regex_internal.h: Assume <locale.h> exists.
59674         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59675         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59676         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59677         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59678         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59679         * m4/regex.m4 (gl_REGEX): Likewise.
59680         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59681         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59682         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59683         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59684         * tests/test-argp.c: Likewise.
59685         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59687         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59688         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59689         AA_APPLE_UNIVERSAL_BUILD.  See
59690         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59691         * NEWS: Document this.
59693 2011-01-19  Eric Blake  <eblake@redhat.com>
59695         c-stack: assume stack overflow if SA_SIGINFO unsupported
59696         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59697         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59698         sigaction will work.
59699         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59700         behavior match Linux.
59701         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59703         stdbool-tests: accommodate Haiku
59704         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59706         binary-io: fix O_TEXT on Haiku
59707         * modules/binary-io (Depends-on): Add fcntl-h.
59708         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59709         than blindly undefining O_TEXT.
59710         Reported by Scott McCreary.
59712 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59714         include_next: do not check for standard headers like stddef.h
59716         I found this problem when modifying Emacs to use gnulib.
59717         I noticed that it added HAVE_STDDEF_H to config.h, even though
59718         gnulib always assumes <stddef.h> exists as per README and this
59719         symbol is unnecessary.
59720         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59721         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59722         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59723         faster for headers like stddef.h that are known to exist.
59724         (gl_CHECK_NEXT_HEADERS): Use it.
59725         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59726         rather than gl_CHECK_NEXT_HEADERS.
59727         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59728         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59730 2011-01-18  Eric Blake  <eblake@redhat.com>
59732         ansi-c++-opt: skip C++ dependency style if C++ is unused
59733         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59734         tests when we know C++ compilation is not desired.
59735         Reported by Scott McCreary.
59737 2011-01-18  Bruno Haible  <bruno@clisp.org>
59739         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59740         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59741         (main): Perform test also when getrlimit and setrlimit don't exist or
59742         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59743         limiting the address space size using setrlimit, compare the address
59744         space size before and after the test.
59745         * tests/test-dprintf-posix2.c: Likewise.
59746         * tests/test-fprintf-posix3.sh: Update skip messages.
59747         * tests/test-dprintf-posix2.sh: Likewise.
59748         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59749         * modules/dprintf-posix-tests (Depends-on): Likewise.
59750         Reported by Bruce Korb <bkorb@gnu.org> and
59751         Gary V. Vaughan <gary@gnu.org>.
59753 2011-01-18  Bruno Haible  <bruno@clisp.org>
59755         get-rusage-as: Improvement for Cygwin.
59756         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59757         areas that are merely reserved.
59759 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59761         strftime: remove dependencies on multibyte modules
59763         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59764         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59765         only if __osf__ is defined, and I suspect OSF doesn't need these
59766         other modules.  If my guess is wrong, we'll need to come up with a
59767         variant of strftime that doesn't need the multibyte modules.
59769         I discovered this problem when attempting modify Emacs to use the
59770         strftime module.  With the previous gnulib, this caused Emacs to
59771         need 31 new files, ranging from lib/config.charset to
59772         m4/wint_t.m4.  This was overkill and I expect would be offputting
59773         to the Emacs maintainers.  After this change, only 6 new files are
59774         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59775         stdbool.m4, and tm_gmtoff.m4.
59777         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59778         Suggested by Bruno Haible in
59779         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59780         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59781         and do not check for wchar.h.
59782         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59783         (Depends-on): Remove mbrlen, mbsinit, wchar.
59785 2011-01-18  Bruno Haible  <bruno@clisp.org>
59787         Tests for module 'get-rusage-as'.
59788         * modules/get-rusage-as-tests: New file.
59789         * tests/test-get-rusage-as.c: New file.
59791         New module 'get-rusage-as'.
59792         * modules/get-rusage-as: New file.
59793         * lib/resource-ext.h: New file.
59794         * lib/get-rusage-as.c: New file.
59796 2011-01-17  Eric Blake  <eblake@redhat.com>
59798         sigaction: relax license from LGPLv3+ to LGPLv2+
59799         * modules/sigaction (License): Relax to LGPLv2+.
59801 2011-01-14  Bruno Haible  <bruno@clisp.org>
59803         filemode: Make function declarations usable in C++ mode.
59804         * lib/filemode.h: Enclose function declarations in extern "C" block.
59805         Reported by John W. Eaton <jwe@gnu.org>.
59807 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59809         save-cwd: no longer include "xgetcwd.h"
59810         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59811         This avoids a compilation failure in projects that use save-cwd
59812         without also using the xgetcwd module.
59814 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59816         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59817         This is so that a program like Emacs, which needs only dtoastr,
59818         does not have to bother with distributing and compiling ftoastr
59819         and ldtoastr.
59820         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59821         * modules/dtoastr, modules/ldtoastr: New files.
59822         * modules/ftoastr: Now works just for 'float'.
59823         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59824         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59825         dtoastr.c, ldtoastr.c.
59827 2011-01-11  Jim Meyering  <meyering@redhat.com>
59829         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59830         There is no need to work around the lack of the fchdir function,
59831         since gnulib can now provide a replacement when required.
59832         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59833         * modules/save-cwd (Depends-on): Add fchdir.
59835 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59837         openat, save-cwd: avoid xmalloc
59839         This removes a direct (but undocumented) dependency of openat on
59840         xalloc, along with an indirect dependency via save-cwd.  It also
59841         removes a dependency of save-cwd on xgetcwd, and thereby
59842         indirectly on xalloc.  This change causes the openat substitute
59843         to fall back on save_cwd when memory is tight, and for save_cwd to
59844         fail instead of dying when memory is tight, but that's good enough.
59845         Problem and initial idea for fix reported by Bastien Roucaries in
59846         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59848         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59849         xalloc.h (for xmalloc).
59850         (openat_proc_name): Use malloc, not xmalloc.
59851         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59852         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59854         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59855         This avoids heap allocation for file names whose lengths are in
59856         the range 512..1023, with the upper bound increasing to at most
59857         4031 depending on the platform's PATH_MAX.  (We do not want
59858         pathmax.h here as it might supply a non-constant PATH_MAX.)
59859         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59860         Perhaps they should be moved to malloca.h?
59861         (OPENAT_BUFFER_SIZE): Use them.
59863 2011-01-10  Bruno Haible  <bruno@clisp.org>
59865         doc: Update users.txt.
59866         * users.txt: Add recutils.
59868 2011-01-09  Karl Berry  <karl@gnu.org>
59870         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59872         * doc/configmake.texi: New file.
59873         * doc/gnulib.texi: Include it.
59874         * modules/configmake: Move documentation from here.
59876 2011-01-09  Bruno Haible  <bruno@clisp.org>
59878         Update to Unicode 6.0.0.
59879         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59880         (get_lbp): Update for Unicode 6.0.0.
59881         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59882         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59883         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59884         U+11001, U+11038..U+11046. Remove U+06DE.
59885         (uc_width): Fix bounds of planes.
59886         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59887         lib/uniwidth/width.c.
59888         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59889         trailing whitespace removed.
59890         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59891         without comments, but with the original copyright notice.
59892         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59893         * lib/unicase/ignorable.h: Likewise.
59894         * lib/unicase/tocasefold.h: Likewise.
59895         * lib/unicase/tolower.h: Likewise.
59896         * lib/unicase/totitle.h: Likewise.
59897         * lib/unicase/toupper.h: Likewise.
59898         * lib/unictype/bidi_of.h: Likewise.
59899         * lib/unictype/blocks.h: Likewise.
59900         * lib/unictype/categ_C.h: Likewise.
59901         * lib/unictype/categ_Cn.h: Likewise.
59902         * lib/unictype/categ_L.h: Likewise.
59903         * lib/unictype/categ_Ll.h: Likewise.
59904         * lib/unictype/categ_Lm.h: Likewise.
59905         * lib/unictype/categ_Lo.h: Likewise.
59906         * lib/unictype/categ_Lu.h: Likewise.
59907         * lib/unictype/categ_M.h: Likewise.
59908         * lib/unictype/categ_Mc.h: Likewise.
59909         * lib/unictype/categ_Me.h: Likewise.
59910         * lib/unictype/categ_Mn.h: Likewise.
59911         * lib/unictype/categ_N.h: Likewise.
59912         * lib/unictype/categ_Nd.h: Likewise.
59913         * lib/unictype/categ_No.h: Likewise.
59914         * lib/unictype/categ_P.h: Likewise.
59915         * lib/unictype/categ_Po.h: Likewise.
59916         * lib/unictype/categ_S.h: Likewise.
59917         * lib/unictype/categ_Sc.h: Likewise.
59918         * lib/unictype/categ_Sk.h: Likewise.
59919         * lib/unictype/categ_Sm.h: Likewise.
59920         * lib/unictype/categ_So.h: Likewise.
59921         * lib/unictype/categ_of.h: Likewise.
59922         * lib/unictype/combining.h: Likewise.
59923         * lib/unictype/ctype_alnum.h: Likewise.
59924         * lib/unictype/ctype_alpha.h: Likewise.
59925         * lib/unictype/ctype_graph.h: Likewise.
59926         * lib/unictype/ctype_lower.h: Likewise.
59927         * lib/unictype/ctype_print.h: Likewise.
59928         * lib/unictype/ctype_punct.h: Likewise.
59929         * lib/unictype/ctype_upper.h: Likewise.
59930         * lib/unictype/decdigit.h: Likewise.
59931         * lib/unictype/digit.h: Likewise.
59932         * lib/unictype/numeric.h: Likewise.
59933         * lib/unictype/pr_alphabetic.h: Likewise.
59934         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59935         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59936         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59937         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59938         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59939         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59940         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59941         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59942         * lib/unictype/pr_case_ignorable.h: Likewise.
59943         * lib/unictype/pr_cased.h: Likewise.
59944         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59945         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59946         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59947         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59948         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59949         * lib/unictype/pr_combining.h: Likewise.
59950         * lib/unictype/pr_composite.h: Likewise.
59951         * lib/unictype/pr_currency_symbol.h: Likewise.
59952         * lib/unictype/pr_decimal_digit.h: Likewise.
59953         * lib/unictype/pr_deprecated.h: Likewise.
59954         * lib/unictype/pr_format_control.h: Likewise.
59955         * lib/unictype/pr_grapheme_base.h: Likewise.
59956         * lib/unictype/pr_grapheme_extend.h: Likewise.
59957         * lib/unictype/pr_grapheme_link.h: Likewise.
59958         * lib/unictype/pr_id_continue.h: Likewise.
59959         * lib/unictype/pr_id_start.h: Likewise.
59960         * lib/unictype/pr_ideographic.h: Likewise.
59961         * lib/unictype/pr_lowercase.h: Likewise.
59962         * lib/unictype/pr_math.h: Likewise.
59963         * lib/unictype/pr_numeric.h: Likewise.
59964         * lib/unictype/pr_other_alphabetic.h: Likewise.
59965         * lib/unictype/pr_other_id_continue.h: Likewise.
59966         * lib/unictype/pr_other_math.h: Likewise.
59967         * lib/unictype/pr_punctuation.h: Likewise.
59968         * lib/unictype/pr_sentence_terminal.h: Likewise.
59969         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59970         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59971         * lib/unictype/pr_unified_ideograph.h: Likewise.
59972         * lib/unictype/pr_uppercase.h: Likewise.
59973         * lib/unictype/pr_xid_continue.h: Likewise.
59974         * lib/unictype/pr_xid_start.h: Likewise.
59975         * lib/unictype/scripts.h: Likewise.
59976         * lib/unictype/scripts_byname.gperf: Likewise.
59977         * lib/unictype/sy_java_ident.h: Likewise.
59978         * lib/unigbrk/gbrkprop.h: Likewise.
59979         * lib/unilbrk/lbrkprop1.h: Likewise.
59980         * lib/unilbrk/lbrkprop2.h: Likewise.
59981         * lib/uninorm/decomposition-table2.h: Likewise.
59982         * lib/uniwbrk/wbrkprop.h: Likewise.
59983         * tests/unicase/test-cased.c: Likewise.
59984         * tests/unicase/test-ignorable.c: Likewise.
59985         * tests/unicase/test-uc_tolower.c: Likewise.
59986         * tests/unicase/test-uc_totitle.c: Likewise.
59987         * tests/unicase/test-uc_toupper.c: Likewise.
59988         * tests/unictype/test-categ_C.c: Likewise.
59989         * tests/unictype/test-categ_Cn.c: Likewise.
59990         * tests/unictype/test-categ_L.c: Likewise.
59991         * tests/unictype/test-categ_Ll.c: Likewise.
59992         * tests/unictype/test-categ_Lm.c: Likewise.
59993         * tests/unictype/test-categ_Lo.c: Likewise.
59994         * tests/unictype/test-categ_Lu.c: Likewise.
59995         * tests/unictype/test-categ_M.c: Likewise.
59996         * tests/unictype/test-categ_Mc.c: Likewise.
59997         * tests/unictype/test-categ_Me.c: Likewise.
59998         * tests/unictype/test-categ_Mn.c: Likewise.
59999         * tests/unictype/test-categ_N.c: Likewise.
60000         * tests/unictype/test-categ_Nd.c: Likewise.
60001         * tests/unictype/test-categ_No.c: Likewise.
60002         * tests/unictype/test-categ_P.c: Likewise.
60003         * tests/unictype/test-categ_Po.c: Likewise.
60004         * tests/unictype/test-categ_S.c: Likewise.
60005         * tests/unictype/test-categ_Sc.c: Likewise.
60006         * tests/unictype/test-categ_Sk.c: Likewise.
60007         * tests/unictype/test-categ_Sm.c: Likewise.
60008         * tests/unictype/test-categ_So.c: Likewise.
60009         * tests/unictype/test-ctype_alnum.c: Likewise.
60010         * tests/unictype/test-ctype_alpha.c: Likewise.
60011         * tests/unictype/test-ctype_graph.c: Likewise.
60012         * tests/unictype/test-ctype_lower.c: Likewise.
60013         * tests/unictype/test-ctype_print.c: Likewise.
60014         * tests/unictype/test-ctype_punct.c: Likewise.
60015         * tests/unictype/test-ctype_upper.c: Likewise.
60016         * tests/unictype/test-decdigit.h: Likewise.
60017         * tests/unictype/test-digit.h: Likewise.
60018         * tests/unictype/test-numeric.h: Likewise.
60019         * tests/unictype/test-pr_alphabetic.c: Likewise.
60020         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60021         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60022         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60023         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60024         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60025         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60026         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60027         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60028         * tests/unictype/test-pr_case_ignorable.c: Likewise.
60029         * tests/unictype/test-pr_cased.c: Likewise.
60030         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
60031         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
60032         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
60033         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
60034         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
60035         * tests/unictype/test-pr_combining.c: Likewise.
60036         * tests/unictype/test-pr_composite.c: Likewise.
60037         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60038         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60039         * tests/unictype/test-pr_deprecated.c: Likewise.
60040         * tests/unictype/test-pr_format_control.c: Likewise.
60041         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60042         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60043         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60044         * tests/unictype/test-pr_id_continue.c: Likewise.
60045         * tests/unictype/test-pr_id_start.c: Likewise.
60046         * tests/unictype/test-pr_ideographic.c: Likewise.
60047         * tests/unictype/test-pr_lowercase.c: Likewise.
60048         * tests/unictype/test-pr_math.c: Likewise.
60049         * tests/unictype/test-pr_numeric.c: Likewise.
60050         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60051         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60052         * tests/unictype/test-pr_other_math.c: Likewise.
60053         * tests/unictype/test-pr_punctuation.c: Likewise.
60054         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60055         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60056         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60057         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60058         * tests/unictype/test-pr_uppercase.c: Likewise.
60059         * tests/unictype/test-pr_xid_continue.c: Likewise.
60060         * tests/unictype/test-pr_xid_start.c: Likewise.
60061         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60062         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60063         changes.
60064         * lib/unictype/categ_Cc.h: Likewise.
60065         * lib/unictype/categ_Cf.h: Likewise.
60066         * lib/unictype/categ_Co.h: Likewise.
60067         * lib/unictype/categ_Cs.h: Likewise.
60068         * lib/unictype/categ_Lt.h: Likewise.
60069         * lib/unictype/categ_Nl.h: Likewise.
60070         * lib/unictype/categ_Pc.h: Likewise.
60071         * lib/unictype/categ_Pd.h: Likewise.
60072         * lib/unictype/categ_Pe.h: Likewise.
60073         * lib/unictype/categ_Pf.h: Likewise.
60074         * lib/unictype/categ_Pi.h: Likewise.
60075         * lib/unictype/categ_Ps.h: Likewise.
60076         * lib/unictype/categ_Z.h: Likewise.
60077         * lib/unictype/categ_Zl.h: Likewise.
60078         * lib/unictype/categ_Zp.h: Likewise.
60079         * lib/unictype/categ_Zs.h: Likewise.
60080         * lib/unictype/ctype_blank.h: Likewise.
60081         * lib/unictype/ctype_cntrl.h: Likewise.
60082         * lib/unictype/ctype_digit.h: Likewise.
60083         * lib/unictype/ctype_space.h: Likewise.
60084         * lib/unictype/ctype_xdigit.h: Likewise.
60085         * lib/unictype/mirror.h: Likewise.
60086         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60087         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60088         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60089         * lib/unictype/pr_bidi_control.h: Likewise.
60090         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60091         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60092         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60093         * lib/unictype/pr_bidi_pdf.h: Likewise.
60094         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60095         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60096         * lib/unictype/pr_dash.h: Likewise.
60097         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60098         * lib/unictype/pr_diacritic.h: Likewise.
60099         * lib/unictype/pr_extender.h: Likewise.
60100         * lib/unictype/pr_hex_digit.h: Likewise.
60101         * lib/unictype/pr_hyphen.h: Likewise.
60102         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60103         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60104         * lib/unictype/pr_ignorable_control.h: Likewise.
60105         * lib/unictype/pr_iso_control.h: Likewise.
60106         * lib/unictype/pr_join_control.h: Likewise.
60107         * lib/unictype/pr_left_of_pair.h: Likewise.
60108         * lib/unictype/pr_line_separator.h: Likewise.
60109         * lib/unictype/pr_logical_order_exception.h: Likewise.
60110         * lib/unictype/pr_non_break.h: Likewise.
60111         * lib/unictype/pr_not_a_character.h: Likewise.
60112         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60113         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60114         * lib/unictype/pr_other_id_start.h: Likewise.
60115         * lib/unictype/pr_other_lowercase.h: Likewise.
60116         * lib/unictype/pr_other_uppercase.h: Likewise.
60117         * lib/unictype/pr_paired_punctuation.h: Likewise.
60118         * lib/unictype/pr_paragraph_separator.h: Likewise.
60119         * lib/unictype/pr_pattern_syntax.h: Likewise.
60120         * lib/unictype/pr_pattern_white_space.h: Likewise.
60121         * lib/unictype/pr_private_use.h: Likewise.
60122         * lib/unictype/pr_quotation_mark.h: Likewise.
60123         * lib/unictype/pr_radical.h: Likewise.
60124         * lib/unictype/pr_soft_dotted.h: Likewise.
60125         * lib/unictype/pr_space.h: Likewise.
60126         * lib/unictype/pr_titlecase.h: Likewise.
60127         * lib/unictype/pr_variation_selector.h: Likewise.
60128         * lib/unictype/pr_white_space.h: Likewise.
60129         * lib/unictype/pr_zero_width.h: Likewise.
60130         * lib/unictype/sy_c_ident.h: Likewise.
60131         * lib/unictype/sy_c_whitespace.h: Likewise.
60132         * lib/unictype/sy_java_whitespace.h: Likewise.
60133         * lib/uninorm/composition-table.gperf: Likewise.
60134         * lib/uninorm/decomposition-table1.h: Likewise.
60135         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
60136         LB8.
60137         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60138         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60139         * modules/unictype/*: Bump version number of expected libunistring
60140         version.
60142 2011-01-09  Bruno Haible  <bruno@clisp.org>
60144         Update to Unicode 5.2.0.
60145         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
60146         trailing whitespace removed.
60148 2011-01-09  Bruno Haible  <bruno@clisp.org>
60150         New Unicode character properties, from Unicode 5.2.0.
60151         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
60152         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
60153         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
60154         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
60155         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
60156         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
60157         uc_is_property_cased, uc_is_property_case_ignorable,
60158         uc_is_property_changes_when_lowercased,
60159         uc_is_property_changes_when_uppercased,
60160         uc_is_property_changes_when_titlecased,
60161         uc_is_property_changes_when_casefolded,
60162         uc_is_property_changes_when_casemapped): New declarations.
60163         * lib/unictype/pr_byname.gperf: Add the new properties.
60164         * modules/unictype/property-byname (Depends-on): Depend on the new
60165         properties modules.
60166         * modules/unictype/property-all (Depends-on): Likewise.
60167         * MODULES.html.sh (Unicode string functions): Add
60168         unictype/property-case-ignorable, unictype/property-cased,
60169         unictype/property-changes-when-casefolded,
60170         unictype/property-changes-when-casemapped,
60171         unictype/property-changes-when-lowercased,
60172         unictype/property-changes-when-titlecased,
60173         unictype/property-changes-when-uppercased.
60175         New module 'unictype/property-changes-when-casemapped'.
60176         * modules/unictype/property-changes-when-casemapped: New file.
60177         * lib/unictype/pr_changes_when_casemapped.c: New file.
60178         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
60179         generated by gen-uni-tables.
60180         * modules/unictype/property-changes-when-casemapped-tests: New file.
60181         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
60182         automatically generated by gen-uni-tables.
60184         New module 'unictype/property-changes-when-casefolded'.
60185         * modules/unictype/property-changes-when-casefolded: New file.
60186         * lib/unictype/pr_changes_when_casefolded.c: New file.
60187         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
60188         generated by gen-uni-tables.
60189         * modules/unictype/property-changes-when-casefolded-tests: New file.
60190         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
60191         automatically generated by gen-uni-tables.
60193         New module 'unictype/property-changes-when-titlecased'.
60194         * modules/unictype/property-changes-when-titlecased: New file.
60195         * lib/unictype/pr_changes_when_titlecased.c: New file.
60196         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
60197         generated by gen-uni-tables.
60198         * modules/unictype/property-changes-when-titlecased-tests: New file.
60199         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
60200         automatically generated by gen-uni-tables.
60202         New module 'unictype/property-changes-when-uppercased'.
60203         * modules/unictype/property-changes-when-uppercased: New file.
60204         * lib/unictype/pr_changes_when_uppercased.c: New file.
60205         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
60206         generated by gen-uni-tables.
60207         * modules/unictype/property-changes-when-uppercased-tests: New file.
60208         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
60209         automatically generated by gen-uni-tables.
60211         New module 'unictype/property-changes-when-lowercased'.
60212         * modules/unictype/property-changes-when-lowercased: New file.
60213         * lib/unictype/pr_changes_when_lowercased.c: New file.
60214         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
60215         generated by gen-uni-tables.
60216         * modules/unictype/property-changes-when-lowercased-tests: New file.
60217         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
60218         automatically generated by gen-uni-tables.
60220         New module 'unictype/property-case-ignorable'.
60221         * modules/unictype/property-case-ignorable: New file.
60222         * lib/unictype/pr_case_ignorable.c: New file.
60223         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
60224         by gen-uni-tables.
60225         * modules/unictype/property-case-ignorable-tests: New file.
60226         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
60227         generated by gen-uni-tables.
60229         New module 'unictype/property-cased'.
60230         * modules/unictype/property-cased: New file.
60231         * lib/unictype/pr_cased.c: New file.
60232         * lib/unictype/pr_cased.h: New file, automatically generated by
60233         gen-uni-tables.
60234         * modules/unictype/property-cased-tests: New file.
60235         * tests/unictype/test-pr_cased.c: New file, automatically generated by
60236         gen-uni-tables.
60238 2011-01-09  Bruno Haible  <bruno@clisp.org>
60240         Update to Unicode 5.2.0.
60241         * lib/gen-uni-tables.c (output_predicate, output_category,
60242         output_combclass, output_bidi_category, output_decimal_digit_test,
60243         output_decimal_digit, output_digit_test, output_digit,
60244         output_numeric_test, output_numeric, output_mirror, output_scripts,
60245         output_scripts_byname, output_blocks, output_ident_category): Fix
60246         comment header.
60247         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
60248         get_wbp.
60249         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
60250         items.
60251         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
60252         Changes_When_Lowercased, Changes_When_Uppercased,
60253         Changes_When_Titlecased, Changes_When_Casefolded,
60254         Changes_When_Casemapped.
60255         (is_property_alphabetic, is_property_default_ignorable_code_point):
60256         Update for Unicode 5.2.0.
60257         (is_property_cased, is_property_case_ignorable,
60258         is_property_changes_when_lowercased,
60259         is_property_changes_when_uppercased,
60260         is_property_changes_when_titlecased,
60261         is_property_changes_when_casefolded,
60262         is_property_changes_when_casemapped): New functions.
60263         (output_properties): Output also the properties cased, case_ignorable,
60264         changes_when_lowercased, changes_when_uppercased,
60265         changes_when_titlecased, changes_when_casefolded,
60266         changes_when_casemapped.
60267         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60268         Unicode TR#11 revision 17 -> 19.
60269         (LBP_CP): New enumeration value.
60270         (LBP_*): Adjust values accordingly.
60271         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60272         TR#14 revision 22 -> 24.
60273         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60274         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60275         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60276         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60277         is_WBP_MIDLETTER.
60278         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60279         the code1 and code2 of each composition rule.
60280         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60281         * lib/unicase/ignorable.h: Likewise.
60282         * lib/unicase/tocasefold.h: Likewise.
60283         * lib/unicase/tolower.h: Likewise.
60284         * lib/unicase/totitle.h: Likewise.
60285         * lib/unicase/toupper.h: Likewise.
60286         * lib/unictype/bidi_of.h: Likewise.
60287         * lib/unictype/blocks.h: Likewise.
60288         * lib/unictype/categ_C.h: Likewise.
60289         * lib/unictype/categ_Cf.h: Likewise.
60290         * lib/unictype/categ_Cn.h: Likewise.
60291         * lib/unictype/categ_L.h: Likewise.
60292         * lib/unictype/categ_Ll.h: Likewise.
60293         * lib/unictype/categ_Lm.h: Likewise.
60294         * lib/unictype/categ_Lo.h: Likewise.
60295         * lib/unictype/categ_Lu.h: Likewise.
60296         * lib/unictype/categ_M.h: Likewise.
60297         * lib/unictype/categ_Mc.h: Likewise.
60298         * lib/unictype/categ_Mn.h: Likewise.
60299         * lib/unictype/categ_N.h: Likewise.
60300         * lib/unictype/categ_Nd.h: Likewise.
60301         * lib/unictype/categ_Nl.h: Likewise.
60302         * lib/unictype/categ_No.h: Likewise.
60303         * lib/unictype/categ_P.h: Likewise.
60304         * lib/unictype/categ_Pd.h: Likewise.
60305         * lib/unictype/categ_Po.h: Likewise.
60306         * lib/unictype/categ_S.h: Likewise.
60307         * lib/unictype/categ_Sc.h: Likewise.
60308         * lib/unictype/categ_So.h: Likewise.
60309         * lib/unictype/categ_of.h: Likewise.
60310         * lib/unictype/combining.h: Likewise.
60311         * lib/unictype/ctype_alnum.h: Likewise.
60312         * lib/unictype/ctype_alpha.h: Likewise.
60313         * lib/unictype/ctype_graph.h: Likewise.
60314         * lib/unictype/ctype_lower.h: Likewise.
60315         * lib/unictype/ctype_print.h: Likewise.
60316         * lib/unictype/ctype_punct.h: Likewise.
60317         * lib/unictype/ctype_upper.h: Likewise.
60318         * lib/unictype/decdigit.h: Likewise.
60319         * lib/unictype/digit.h: Likewise.
60320         * lib/unictype/numeric.h: Likewise.
60321         * lib/unictype/pr_alphabetic.h: Likewise.
60322         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60323         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60324         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60325         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60326         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60327         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60328         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60329         * lib/unictype/pr_combining.h: Likewise.
60330         * lib/unictype/pr_composite.h: Likewise.
60331         * lib/unictype/pr_currency_symbol.h: Likewise.
60332         * lib/unictype/pr_dash.h: Likewise.
60333         * lib/unictype/pr_decimal_digit.h: Likewise.
60334         * lib/unictype/pr_deprecated.h: Likewise.
60335         * lib/unictype/pr_diacritic.h: Likewise.
60336         * lib/unictype/pr_extender.h: Likewise.
60337         * lib/unictype/pr_grapheme_base.h: Likewise.
60338         * lib/unictype/pr_grapheme_extend.h: Likewise.
60339         * lib/unictype/pr_grapheme_link.h: Likewise.
60340         * lib/unictype/pr_id_continue.h: Likewise.
60341         * lib/unictype/pr_id_start.h: Likewise.
60342         * lib/unictype/pr_ideographic.h: Likewise.
60343         * lib/unictype/pr_ignorable_control.h: Likewise.
60344         * lib/unictype/pr_logical_order_exception.h: Likewise.
60345         * lib/unictype/pr_lowercase.h: Likewise.
60346         * lib/unictype/pr_numeric.h: Likewise.
60347         * lib/unictype/pr_other_alphabetic.h: Likewise.
60348         * lib/unictype/pr_punctuation.h: Likewise.
60349         * lib/unictype/pr_sentence_terminal.h: Likewise.
60350         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60351         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60352         * lib/unictype/pr_unified_ideograph.h: Likewise.
60353         * lib/unictype/pr_uppercase.h: Likewise.
60354         * lib/unictype/pr_xid_continue.h: Likewise.
60355         * lib/unictype/pr_xid_start.h: Likewise.
60356         * lib/unictype/pr_zero_width.h: Likewise.
60357         * lib/unictype/scripts.h: Likewise.
60358         * lib/unictype/scripts_byname.gperf: Likewise.
60359         * lib/unictype/sy_java_ident.h: Likewise.
60360         * lib/unigbrk/gbrkprop.h: Likewise.
60361         * lib/unilbrk/lbrkprop1.h: Likewise.
60362         * lib/unilbrk/lbrkprop2.h: Likewise.
60363         * lib/unilbrk/lbrktables.h: Likewise.
60364         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60365         LBP_CP. Implement rule LB30.
60366         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60367         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60368         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60369         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60370         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60371         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60372         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60373         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60374         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60375         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60376         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60377         bits instead of 16 bits in the code1 and code2 of each composition
60378         rule.
60379         (uc_composition): Update for Unicode 5.2.0.
60380         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60381         * lib/uninorm/decomposition-table2.h: Likewise.
60382         * lib/uniwbrk/wbrkprop.h: Likewise.
60383         * tests/unicase/test-cased.c: Likewise.
60384         * tests/unicase/test-ignorable.c: Likewise.
60385         * tests/unicase/test-uc_tolower.c: Likewise.
60386         * tests/unicase/test-uc_totitle.c: Likewise.
60387         * tests/unicase/test-uc_toupper.c: Likewise.
60388         * tests/unictype/test-categ_C.c: Likewise.
60389         * tests/unictype/test-categ_Cf.c: Likewise.
60390         * tests/unictype/test-categ_Cn.c: Likewise.
60391         * tests/unictype/test-categ_L.c: Likewise.
60392         * tests/unictype/test-categ_Ll.c: Likewise.
60393         * tests/unictype/test-categ_Lm.c: Likewise.
60394         * tests/unictype/test-categ_Lo.c: Likewise.
60395         * tests/unictype/test-categ_Lu.c: Likewise.
60396         * tests/unictype/test-categ_M.c: Likewise.
60397         * tests/unictype/test-categ_Mc.c: Likewise.
60398         * tests/unictype/test-categ_Mn.c: Likewise.
60399         * tests/unictype/test-categ_N.c: Likewise.
60400         * tests/unictype/test-categ_Nd.c: Likewise.
60401         * tests/unictype/test-categ_Nl.c: Likewise.
60402         * tests/unictype/test-categ_No.c: Likewise.
60403         * tests/unictype/test-categ_P.c: Likewise.
60404         * tests/unictype/test-categ_Pd.c: Likewise.
60405         * tests/unictype/test-categ_Po.c: Likewise.
60406         * tests/unictype/test-categ_S.c: Likewise.
60407         * tests/unictype/test-categ_Sc.c: Likewise.
60408         * tests/unictype/test-categ_So.c: Likewise.
60409         * tests/unictype/test-ctype_alnum.c: Likewise.
60410         * tests/unictype/test-ctype_alpha.c: Likewise.
60411         * tests/unictype/test-ctype_graph.c: Likewise.
60412         * tests/unictype/test-ctype_lower.c: Likewise.
60413         * tests/unictype/test-ctype_print.c: Likewise.
60414         * tests/unictype/test-ctype_punct.c: Likewise.
60415         * tests/unictype/test-ctype_upper.c: Likewise.
60416         * tests/unictype/test-decdigit.h: Likewise.
60417         * tests/unictype/test-digit.h: Likewise.
60418         * tests/unictype/test-numeric.h: Likewise.
60419         * tests/unictype/test-pr_alphabetic.c: Likewise.
60420         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60421         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60422         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60423         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60424         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60425         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60426         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60427         * tests/unictype/test-pr_combining.c: Likewise.
60428         * tests/unictype/test-pr_composite.c: Likewise.
60429         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60430         * tests/unictype/test-pr_dash.c: Likewise.
60431         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60432         * tests/unictype/test-pr_deprecated.c: Likewise.
60433         * tests/unictype/test-pr_diacritic.c: Likewise.
60434         * tests/unictype/test-pr_extender.c: Likewise.
60435         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60436         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60437         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60438         * tests/unictype/test-pr_id_continue.c: Likewise.
60439         * tests/unictype/test-pr_id_start.c: Likewise.
60440         * tests/unictype/test-pr_ideographic.c: Likewise.
60441         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60442         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60443         * tests/unictype/test-pr_lowercase.c: Likewise.
60444         * tests/unictype/test-pr_numeric.c: Likewise.
60445         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60446         * tests/unictype/test-pr_punctuation.c: Likewise.
60447         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60448         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60449         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60450         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60451         * tests/unictype/test-pr_uppercase.c: Likewise.
60452         * tests/unictype/test-pr_xid_continue.c: Likewise.
60453         * tests/unictype/test-pr_xid_start.c: Likewise.
60454         * tests/unictype/test-pr_zero_width.c: Likewise.
60455         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60456         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60457         changed behaviour: line breaking is now disallowed between a letter
60458         or '=' and '('.
60459         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60460         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60461         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60462         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60463         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60464         lib/uniwidth/width.c.
60465         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60466         without comments, but with the original copyright notice.
60467         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60468         changes.
60469         * lib/unictype/categ_Cc.h: Likewise.
60470         * lib/unictype/categ_Co.h: Likewise.
60471         * lib/unictype/categ_Cs.h: Likewise.
60472         * lib/unictype/categ_Lt.h: Likewise.
60473         * lib/unictype/categ_Me.h: Likewise.
60474         * lib/unictype/categ_Pc.h: Likewise.
60475         * lib/unictype/categ_Pe.h: Likewise.
60476         * lib/unictype/categ_Pf.h: Likewise.
60477         * lib/unictype/categ_Pi.h: Likewise.
60478         * lib/unictype/categ_Ps.h: Likewise.
60479         * lib/unictype/categ_Sk.h: Likewise.
60480         * lib/unictype/categ_Sm.h: Likewise.
60481         * lib/unictype/categ_Z.h: Likewise.
60482         * lib/unictype/categ_Zl.h: Likewise.
60483         * lib/unictype/categ_Zp.h: Likewise.
60484         * lib/unictype/categ_Zs.h: Likewise.
60485         * lib/unictype/ctype_blank.h: Likewise.
60486         * lib/unictype/ctype_cntrl.h: Likewise.
60487         * lib/unictype/ctype_digit.h: Likewise.
60488         * lib/unictype/ctype_space.h: Likewise.
60489         * lib/unictype/ctype_xdigit.h: Likewise.
60490         * lib/unictype/mirror.h: Likewise.
60491         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60492         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60493         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60494         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60495         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60496         * lib/unictype/pr_bidi_control.h: Likewise.
60497         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60498         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60499         * lib/unictype/pr_bidi_pdf.h: Likewise.
60500         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60501         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60502         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60503         * lib/unictype/pr_format_control.h: Likewise.
60504         * lib/unictype/pr_hex_digit.h: Likewise.
60505         * lib/unictype/pr_hyphen.h: Likewise.
60506         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60507         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60508         * lib/unictype/pr_iso_control.h: Likewise.
60509         * lib/unictype/pr_join_control.h: Likewise.
60510         * lib/unictype/pr_left_of_pair.h: Likewise.
60511         * lib/unictype/pr_line_separator.h: Likewise.
60512         * lib/unictype/pr_math.h: Likewise.
60513         * lib/unictype/pr_non_break.h: Likewise.
60514         * lib/unictype/pr_not_a_character.h: Likewise.
60515         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60516         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60517         * lib/unictype/pr_other_id_continue.h: Likewise.
60518         * lib/unictype/pr_other_id_start.h: Likewise.
60519         * lib/unictype/pr_other_lowercase.h: Likewise.
60520         * lib/unictype/pr_other_math.h: Likewise.
60521         * lib/unictype/pr_other_uppercase.h: Likewise.
60522         * lib/unictype/pr_paired_punctuation.h: Likewise.
60523         * lib/unictype/pr_paragraph_separator.h: Likewise.
60524         * lib/unictype/pr_pattern_syntax.h: Likewise.
60525         * lib/unictype/pr_pattern_white_space.h: Likewise.
60526         * lib/unictype/pr_private_use.h: Likewise.
60527         * lib/unictype/pr_quotation_mark.h: Likewise.
60528         * lib/unictype/pr_radical.h: Likewise.
60529         * lib/unictype/pr_soft_dotted.h: Likewise.
60530         * lib/unictype/pr_space.h: Likewise.
60531         * lib/unictype/pr_titlecase.h: Likewise.
60532         * lib/unictype/pr_variation_selector.h: Likewise.
60533         * lib/unictype/pr_white_space.h: Likewise.
60534         * lib/unictype/sy_c_ident.h: Likewise.
60535         * lib/unictype/sy_c_whitespace.h: Likewise.
60536         * lib/unictype/sy_java_whitespace.h: Likewise.
60537         * modules/uni*/*: Bump version number of expected libunistring version.
60538         Reported by Simon Josefsson.
60540 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60542         useless-if-before-free: fix typo in --help and make the internal,
60543         automatic version date update process work once again.
60544         --help output contained a NUL character instead of the
60545         backslash-zero that was intended.  Also, the "must lie within
60546         the first 8 lines" line is on line 9, and hence not getting
60547         automatically updated.
60548         * build-aux/useless-if-before-free: Fix the former by adding a
60549         backslash, and the latter by condensing the three lines of what-it-does
60550         to a single line, leaving one line of slack for the future.
60552 2011-01-09  Bruno Haible  <bruno@clisp.org>
60554         uniwidth/width: Fix width of U+1D173..U+1D17A.
60555         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60556         symbolic_width, output_width_property_test): New functions.
60557         (main): Invoke output_nonspacing_property, output_width_property_test.
60558         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60559         U+1D173..U+1D17A.
60560         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60561         1.
60562         * modules/uniwidth/*: Bump version number of expected libunistring
60563         version.
60564         * modules/unilbrk/*: Likewise.
60566 2011-01-08  Bruno Haible  <bruno@clisp.org>
60568         uninorm tests: Preserve copyright of Unicode data file.
60569         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60570         Mention modifications.
60572 2011-01-08  Bruno Haible  <bruno@clisp.org>
60574         gen-uni-tables: Prepare for Unicode 5.2.0.
60575         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60576         (debug_output_lbp, output_lbp): Update.
60578 2011-01-08  Bruno Haible  <bruno@clisp.org>
60580         unilbrk: Clarify gen-uni-tables.c code.
60581         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60582         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60583         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60585 2011-01-07  Bruno Haible  <bruno@clisp.org>
60587         strtod: Restore errno when successfully parsing Infinity or NaN.
60588         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60589         restore the original errno.
60591 2011-01-07  Bruno Haible  <bruno@clisp.org>
60593         remove test: Avoid failure on HP-UX 11.
60594         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60596 2011-01-07  Bruno Haible  <bruno@clisp.org>
60598         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60599         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60600         error code.
60602 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60604         ignore-value: fixup comments, and add Eric Blake
60605         as an author since he rewrote the macros.
60606         * lib/ignore-value.h (ignore_value):  State that
60607         we now support aggregates.  Also specify exactly
60608         when the GCC warn_unused_result feature was added.
60610 2011-01-06  Eric Blake  <eblake@redhat.com>
60612         ignore-value: support aggregate types
60613         * lib/ignore-value.h (ignore_value): Provide separate gcc
60614         definition.
60615         * modules/ignore-value-tests: New test module.
60616         * tests/test-ignore-value.c: New test.
60618         maint.mk: improve sc_prohibit_strcmp regex
60619         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60620         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60621         definition of STRNEQ.
60623         signal: work around Haiku issue with SIGBUS
60624         * lib/siglist.h: Add comment.
60625         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60626         strsignal's favoring of SIGSEGV.
60627         * tests/test-signal.c (main): Avoid test failure.
60628         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60629         Reported by Scott McCreary.
60631         maint.mk: add pre-release check to ensure submodule commits are public
60632         * top/maint.mk (public-submodule-commit): New rule.
60633         (submodule-checks): New variable.
60634         (alpha beta stable): Depend on the variable.
60636 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60637         and Jim Meyering  <meyering@redhat.com>
60639         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60640         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60641         (ATTRIBUTE_DEPRECATED): Define.
60642         (_ignore_case): New function.
60643         (ignore_value): New macro, to replace the old function.
60644         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60645         * modules/ignore-value (Depends-on): Add stdint.
60647 2011-01-04  Eric Blake  <eblake@redhat.com>
60649         doc: regenerate INSTALL
60650         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60651         @firstparagraphindent support, now that autoconf dropped it.
60652         (INSTALL_PRELUDE): Reinstate old macro.
60653         * doc/install.texi: Resync from autoconf.
60654         * doc/INSTALL: Reflect recent autoconf update.
60655         * doc/INSTALL.ISO: Likewise.
60656         * doc/INSTALL.UTF-8: Likewise.
60657         Reported by Karl Berry.
60659 2011-01-04  Bruce Korb  <address@hidden>
60661         git-version-gen: avoid a sub-shell
60662         * build-aux/git-version-gen: Redirect stderr in `...` via
60663         "exec 2>...", rather than via an added sub-shell.
60665 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60667         git-version-gen: use (...) rather than sh -c '...'
60668         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60669         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60671 2011-01-03  Jim Meyering  <meyering@redhat.com>
60673         git-version-gen: convert leading TABs to spaces
60674         * build-aux/git-version-gen: Expand leading TABs.
60676         git-version-gen: handle failed "git rev-list"
60677         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60678         from git and proceeding as if it had succeeded but printed no SHA1
60679         checksums, suppress the diagnostic and handle the failure.
60680         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60682         git-version-gen: include command name in one more diagnostic
60683         * build-aux/git-version-gen: When the required .tarball-version file
60684         was missing or unreadable, you might see the diagnostic from "cat",
60685         but no trace of the name of the invoking script.  Now, you still see
60686         the diagnostic from cat, but also get one from "git-version-gen: ".
60687         Inspired by a patch from Bruce Korb.
60689         update-copyright: adjust test to match changed code
60690         * tests/test-update-copyright.sh: Change test's expected output
60691         to match new actual output.
60693 2011-01-02  Bruno Haible  <bruno@clisp.org>
60695         getlogin_r: Avoid test failure on HP-UX 11.
60696         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60697         ERANGE when the second argument is zero.
60698         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60699         portability problem.
60701 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60703         * build-aux/update-copyright: doc Simon's changes
60705 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60707         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60708         environment variable.
60710 2011-01-02  Bruno Haible  <bruno@clisp.org>
60712         unigbrk: Avoid gcc warnings.
60713         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60714         unused variable.
60715         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60716         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60717         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60718         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60719         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60720         Change type of first argument to 'const char *'.
60721         (main): Remove unused variable.
60722         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60723         type of first argument to 'const char *'.
60724         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60725         Likewise.
60726         (main): Change type of variable 's'.
60727         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60728         to 'int'.
60730 2011-01-02  Bruno Haible  <bruno@clisp.org>
60732         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60733         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60734         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60735         bug.
60736         * lib/pwrite.c: Undo 2010-12-31 patch.
60737         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60739 2011-01-02  Bruno Haible  <bruno@clisp.org>
60741         pread: Fix test whether it works.
60742         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60744 2011-01-02  Bruno Haible  <bruno@clisp.org>
60746         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60747         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60748         ends in "6". Don't require a specific month name. Try also the locale
60749         names found on HP-UX 11 and Solaris 7.
60751 2011-01-02  Bruno Haible  <bruno@clisp.org>
60753         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60754         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60755         C linkage.
60756         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60758 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60760         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60761         for consistency, since the "cluster" term is not used elsewhere.
60762         * lib/unigbrk.in.h: Update name.
60763         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60764         * lib/unigbrk/u16-grapheme-next.c: Update name.
60765         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60766         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60767         * lib/unigbrk/u32-grapheme-next.c: Update name.
60768         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60769         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60770         * lib/unigbrk/u8-grapheme-next.c: Update name.
60771         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60772         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60773         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60774         Suggested by Bruno Haible.
60776 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60778         Remove module 'u8-grapheme-len' as too redundant with
60779         'u8-grapheme-next'.
60780         * modules/unigbrk/u8-grapheme-len: Delete file.
60781         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60782         * lib/unigbrk.in.h: Remove prototype for deleted function.
60783         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60784         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60786         Remove module 'u16-grapheme-len' as too redundant with
60787         'u16-grapheme-next'.
60788         * modules/unigbrk/u16-grapheme-len: Delete file.
60789         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60790         * lib/unigbrk.in.h: Remove prototype for deleted function.
60791         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60792         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60794         Remove module 'u32-grapheme-len' as too redundant with
60795         'u32-grapheme-next'.
60796         * modules/unigbrk/u32-grapheme-len: Delete file.
60797         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60798         * lib/unigbrk.in.h: Remove prototype for deleted function.
60799         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60800         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60802         Suggested by Bruno Haible.
60804 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60806         * unigbrk.in.h: Fix typo: "ben" => "been".
60807         Reported by Bruno Haible.
60809 2011-01-01  Jim Meyering  <meyering@redhat.com>
60811         maint: update almost all copyright ranges to include 2011
60812         Run the new "make update-copyright" rule.
60814 2011-01-01  Jim Meyering  <meyering@redhat.com>
60816         maint: update-copyright: exempt doc/INSTALL*
60817         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60818         since they are generated.  Suggested by Bruno Haible.
60820 2011-01-01  Jim Meyering  <meyering@redhat.com>
60822         maint: refine the update-copyright rule
60823         * Makefile (update-copyright): Also exclude any file that includes
60824         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60825         code that merely generates the comment.
60827 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60829         New module 'u8-grapheme-len'.
60830         * modules/unigbrk/u8-grapheme-len: New file.
60831         * modules/unigbrk/u8-grapheme-len-tests: New file.
60832         * lib/unigbrk.in.h: Add prototype for new function.
60833         * lib/unigbrk/u8-grapheme-len.c: New file.
60834         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60836         New module 'u16-grapheme-len'.
60837         * modules/unigbrk/u16-grapheme-len: New file.
60838         * modules/unigbrk/u16-grapheme-len-tests: New file.
60839         * lib/unigbrk.in.h: Add prototype for new function.
60840         * lib/unigbrk/u16-grapheme-len.c: New file.
60841         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60843         New module 'u32-grapheme-len'.
60844         * modules/unigbrk/u32-grapheme-len: New file.
60845         * modules/unigbrk/u32-grapheme-len-tests: New file.
60846         * lib/unigbrk.in.h: Add prototype for new function.
60847         * lib/unigbrk/u32-grapheme-len.c: New file.
60848         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60850         New module 'u8-grapheme-next'.
60851         * modules/unigbrk/u8-grapheme-next: New file.
60852         * modules/unigbrk/u8-grapheme-next-tests: New file.
60853         * lib/unigbrk.in.h: Add prototype for new function.
60854         * lib/unigbrk/u8-grapheme-next.c: New file.
60855         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60857         New module 'u16-grapheme-next'.
60858         * modules/unigbrk/u16-grapheme-next: New file.
60859         * modules/unigbrk/u16-grapheme-next-tests: New file.
60860         * lib/unigbrk.in.h: Add prototype for new function.
60861         * lib/unigbrk/u16-grapheme-next.c: New file.
60862         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60864         New module 'u32-grapheme-next'.
60865         * modules/unigbrk/u32-grapheme-next: New file.
60866         * modules/unigbrk/u32-grapheme-next-tests: New file.
60867         * lib/unigbrk.in.h: Add prototype for new function.
60868         * lib/unigbrk/u32-grapheme-next.c: New file.
60869         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60871         New module 'u8-grapheme-prev'.
60872         * modules/unigbrk/u8-grapheme-prev: New file.
60873         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60874         * lib/unigbrk.in.h: Add prototype for new function.
60875         * lib/unigbrk/u8-grapheme-prev.c: New file.
60876         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60878         New module 'u16-grapheme-prev'.
60879         * modules/unigbrk/u16-grapheme-prev: New file.
60880         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60881         * lib/unigbrk.in.h: Add prototype for new function.
60882         * lib/unigbrk/u16-grapheme-prev.c: New file.
60883         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60885         New module 'u32-grapheme-prev'.
60886         * modules/unigbrk/u32-grapheme-prev: New file.
60887         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60888         * lib/unigbrk.in.h: Add prototype for new function.
60889         * lib/unigbrk/u32-grapheme-prev.c: New file.
60890         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60892         New module 'u8-grapheme-breaks'.
60893         * modules/unigbrk/u8-grapheme-breaks: New file.
60894         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60895         * lib/unigbrk.in.h: Add prototype for new function.
60896         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60897         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60899         New module 'u16-grapheme-breaks'.
60900         * modules/unigbrk/u16-grapheme-breaks: New file.
60901         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60902         * lib/unigbrk.in.h: Add prototype for new function.
60903         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60904         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60906         New module 'u32-grapheme-breaks'.
60907         * modules/unigbrk/u32-grapheme-breaks: New file.
60908         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60909         * lib/unigbrk.in.h: Add prototype for new function.
60910         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60911         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60913         New module 'ulc-grapheme-breaks'.
60914         * modules/unigbrk/ulc-grapheme-breaks: New file.
60915         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60916         * m4/locale-ar.m4: New file.
60917         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60918         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60919         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60921 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60923         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60924         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60925         modified how this file was generated before I initially submitted
60926         the module, but failed to regenerate it.  This meant that several
60927         of the level2 entries were wrong.
60928         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60929         Remove the division-by-2 that is folded into the table now that
60930         gbrkprop.h has been regenerated properly.  Now -1 entries are
60931         handled correctly.
60933         New module 'unigbrk/uc-gbrk-prop-tests'.
60934         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60935         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60936         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60937         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60939 2011-01-01  Bruno Haible  <bruno@clisp.org>
60941         Avoid use of hexadecimal escapes.
60942         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60943         instead of hexadecimal escapes.
60945 2011-01-01  Jim Meyering  <meyering@redhat.com>
60947         maint: new rule to update copyright year ranges
60948         * Makefile (update-copyright): New rule.
60950         maint: indent with TABs in Makefile
60951         * Makefile: Expand leading sequences of spaces to TABs
60953         version-etc: update the copyright year it reports
60954         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60956 2010-12-31  Bruno Haible  <bruno@clisp.org>
60958         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60959         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60960         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60961         zero.
60963 2010-12-31  Bruno Haible  <bruno@clisp.org>
60965         pwrite: Work around HP-UX 11.11 bug.
60966         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60967         works and set REPLACE_PWRITE if not.
60968         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60969         function.
60970         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60972 2010-12-31  Bruno Haible  <bruno@clisp.org>
60974         pread: Work around HP-UX 11 bugs.
60975         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60976         and set REPLACE_PREAD if not.
60977         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60979 2010-12-31  Eric Blake  <eblake@redhat.com>
60981         nl_langinfo: fix YESEXPR on Irix 6.5
60982         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60983         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60984         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60985         it.
60987 2010-12-31  Bruno Haible  <bruno@clisp.org>
60989         iconv: Document HP-UX 11 bug.
60990         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60992 2010-12-31  Bruno Haible  <bruno@clisp.org>
60994         ldexpl: Fix link error on HP-UX 11.
60995         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60996         LDEXPL_LIBM, using $ISNANL_LIBM.
60998 2010-12-31  Eric Blake  <eblake@redhat.com>
61000         ftello: avoid compilation failure with SunStudio c89
61001         * lib/ftello.c (ftello): Use lseek, not llseek.
61003         tests: avoid failing coreutils tests on cygwin
61004         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
61005         (create_exe_shims_): Return 0 when skipping.
61007 2010-12-31  Bruno Haible  <bruno@clisp.org>
61009         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
61010         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
61012 2010-12-31  Bruno Haible  <bruno@clisp.org>
61014         waitpid: Fix link error in C++ mode.
61015         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
61017 2010-12-31  Bruno Haible  <bruno@clisp.org>
61019         isnan: Use GCC built-ins when possible.
61020         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
61021         __builtin_isnan.
61022         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
61023         (isnan): Define using GCC built-ins for GCC >= 4.0.
61025 2010-12-31  Bruno Haible  <bruno@clisp.org>
61027         isnand: Fix mistake.
61028         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
61029         __builtin_isnand.
61031 2010-12-31  Bruno Haible  <bruno@clisp.org>
61033         open: Avoid C++ error on HP-UX 11.
61034         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
61036 2010-12-31  Bruno Haible  <bruno@clisp.org>
61038         time_r: Add missing declarations on HP-UX 11.
61039         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
61040         instead of HAVE_LOCALTIME_R.
61041         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
61042         HAVE_LOCALTIME_R always.
61043         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
61044         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
61045         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
61046         HAVE_LOCALTIME_R.
61047         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
61048         * doc/posix-functions/localtime_r.texi: Likewise.
61050 2010-12-29  Eric Blake  <eblake@redhat.com>
61052         mountlist: tweak previous commit
61053         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
61054         Reported by Paul Eggert.
61056         mountlist: fix local drive detection on cygwin
61057         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
61058         that works for cygwin.
61060 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61062         ftoastr, snprintf: ftoastr + snprintf module
61063         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
61064         since the snprintf module now should be good enough here.
61065         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
61066         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
61067         and gl_MODULE_INDICATOR([snprintf]), but the former enables
61068         GNULIB_SNPRINTF only for the test directory, and the latter
61069         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
61070         seems to suffice by itself.
61072 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61074         alloca: one step towards thread-safety
61075         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
61076         need for a static variable.  All callers changed.  This does not
61077         make the alloca replacement thread-safe, but it's one step.
61079         tests: minor indenting change
61080         * tests/init.sh: Sync from coreutils housekeeping patch
61081         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
61082         to keep lines within 80 columns.
61084 2010-12-28  Jim Meyering  <meyering@redhat.com>
61086         regex: don't infloop on persistent failing calloc
61087         * lib/regexec.c (build_trtable): Return failure indication upon
61088         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
61089         In glibc, this was fixed for version 2.13:
61090         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
61092 2010-12-28  Bruno Haible  <bruno@clisp.org>
61093             Paul Eggert <eggert@cs.ucla.edu>
61095         linkat: Make implementation robust against system behaviour variations.
61096         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
61097         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
61098         way, and to -2 if it needs a generic runtime test.
61099         * lib/linkat.c (solaris_optimized_link_immediate,
61100         solaris_optimized_link_follow): New functions.
61101         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
61102         (check_same_link): Use it.
61104 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
61106         New module 'unigbrk/base'.
61107         * modules/unigbrk/base: New file.
61108         * lib/unigbrk.in.h: New file.
61110         New module 'unigbrk/uc-gbrk-prop'.
61111         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
61112         * modules/unigbrk/uc-gbrk-prop: New file.
61113         * lib/unigbrk/gbrkprop.h: New file.
61114         * lib/unigbrk/uc-gbrk-prop.c: New file.
61116         New module 'unigbrk/uc-is-grapheme-break'.
61117         * modules/unigbrk/uc-is-grapheme-break: New file.
61118         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
61119         * lib/unigbrk/uc-is-grapheme-break.c: New file.
61120         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
61121         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
61122         * tests/unigbrk/GraphemeBreakTest.txt: New file.
61124         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
61126 2010-12-27  Bruno Haible  <bruno@clisp.org>
61128         linkat test: Avoid failure on Solaris 11 2010-11.
61129         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
61131 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61133         utimens: work around glibc rounding bug on more platforms
61134         * lib/utimens.c (fdutimens): Work around rounding bug even if
61135         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
61136         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
61138 2010-12-27  Bruno Haible  <bruno@clisp.org>
61140         select tests: Improve comments.
61141         * tests/test-select.c (do_select): Add comments.
61143 2010-12-27  Bruno Haible  <bruno@clisp.org>
61145         select tests: Safer way of handling timeout.
61146         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
61147         at every invocation.
61149 2010-12-27  Bruno Haible  <bruno@clisp.org>
61151         select tests: Use 'bool' where appropriate.
61152         * tests/test-select.c (connect_to_socket): Change argument type to
61153         'bool'.
61155 2010-12-27  Bruno Haible  <bruno@clisp.org>
61157         select tests: Use existing modules.
61158         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
61159         (configure.ac): Don't test for unistd.h.
61160         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
61161         declared in <unistd.h>.
61163 2010-12-27  Bruno Haible  <bruno@clisp.org>
61165         mbrtowc: Work around a Solaris 7 bug.
61166         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
61167         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
61168         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
61169         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
61170         MBRTOWC_NULL_ARG1_BUG.
61171         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
61172         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
61173         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
61174         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
61176 2010-12-27  Jim Meyering  <meyering@redhat.com>
61178         read-file.c: tweak syntax
61179         * lib/read-file.c (fread_file): Remove space after "*" in function
61180         definitions.
61182 2010-12-27  Bruno Haible  <bruno@clisp.org>
61184         times test: Avoid gcc warnings on OSF/1.
61185         * tests/test-times.c (main): Cast printf arguments from clock_t to
61186         'long int'.
61188 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61190         utimens: work around glibc rounding bug on older Linux kernels
61191         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
61192         on Linux with a glibc whose utimes might not work, then work
61193         around a longstanding glibc bug involving rounding rather than
61194         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
61195         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61197 2010-12-26  Bruno Haible  <bruno@clisp.org>
61199         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
61200         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
61201         _GL_CXXALIAS_SYS.
61202         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61204 2010-12-26  Bruno Haible  <bruno@clisp.org>
61206         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
61207         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
61208         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
61209         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
61210         looking for the declaration.
61211         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61212         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
61213         problem.
61214         * doc/posix-functions/inet_pton.texi: Likewise.
61216 2010-12-26  Bruno Haible  <bruno@clisp.org>
61218         arpa_inet: Use the common idioms with C++ support.
61219         * lib/arpa_inet.in.h: Include c++defs.h.
61220         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
61221         support.
61222         * modules/arpa_inet (Depends-on): Add c++defs.
61223         (Makefile.am): Substitute the contents of c++defs.h.
61224         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
61225         * modules/arpa_inet-c++-tests: New file.
61226         * tests/test-arpa_inet-c++.cc: New file.
61228 2010-12-25  Bruno Haible  <bruno@clisp.org>
61230         Fix more C++ link errors on Solaris 8.
61231         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
61232         $(LIB_EACCESS).
61233         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
61234         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
61235         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
61236         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
61237         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
61239 2010-12-25  Bruno Haible  <bruno@clisp.org>
61241         printf-posix: Fix link error when a non-GCC compiler is used.
61242         * lib/stdio.in.h (printf): When not using GCC, override printf
61243         correctly.
61244         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61246 2010-12-25  Bruno Haible  <bruno@clisp.org>
61248         strerror_r-posix: Update doc.
61249         * doc/posix-functions/strerror_r.texi: Update doc about the return
61250         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
61252 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61254         utimens: simplify the logic of the previous change
61255         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61256         This should not affect whether the test succeeds or fails.
61258         utimens: configure better on hosts with NFS clock skew
61259         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61260         uses the clock of the local host.  It might use the clock of the
61261         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61262         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61264 2010-12-25  Bruno Haible  <bruno@clisp.org>
61266         ptsname test: Avoid failure on Solaris.
61267         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61268         open a pseudo-terminal; don't use BSD-style ptys.
61269         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61271 2010-12-25  Bruno Haible  <bruno@clisp.org>
61273         ptsname: Avoid ERANGE failure on some systems.
61274         * lib/ptsname.c (buffer): Increase size.
61276 2010-12-25  Bruno Haible  <bruno@clisp.org>
61278         rename, renameat: Avoid test failures at NFS mounted locations.
61279         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61280         so that subsequent mkdir calls succeed.
61282 2010-12-25  Bruno Haible  <bruno@clisp.org>
61284         iswblank: Fix C++ link error on Solaris 8.
61285         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61286         _GL_FUNCDECL_SYS.
61288 2010-12-25  Bruno Haible  <bruno@clisp.org>
61290         unistd: Fix C++ link error on Solaris 8.
61291         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61293 2010-12-25  Bruno Haible  <bruno@clisp.org>
61295         readlink doc: Mention an old glibc bug.
61296         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61298 2010-12-25  Bruno Haible  <bruno@clisp.org>
61300         fcntl-h: Fix for use of C++ on glibc systems.
61301         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61302         also on glibc systems in C++ mode.
61303         Reported by Gary V. Vaughan <gary@gnu.org>.
61305 2010-12-25  Bruno Haible  <bruno@clisp.org>
61307         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61308         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61310 2010-12-25  Bruno Haible  <bruno@clisp.org>
61312         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61313         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61314         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61315         test whether truncl works according to ISO C 99 with IEC 60559.
61316         * m4/truncl-ieee.m4: New file.
61317         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61318         m4/signbit.m4.
61319         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61321 2010-12-25  Bruno Haible  <bruno@clisp.org>
61323         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61324         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61325         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61326         test whether ceill works according to ISO C 99 with IEC 60559.
61327         * m4/ceill-ieee.m4: New file.
61328         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61329         m4/signbit.m4.
61330         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61332 2010-12-25  Bruno Haible  <bruno@clisp.org>
61334         Ensure all prerequisites of <wchar.h> are included.
61335         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61336         before <wchar.h>.
61337         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61338         gl_MBRLEN_NUL_RETVAL): Likewise.
61339         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61340         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61341         AC_FUNC_MBRTOWC): Likewise.
61342         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61343         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61344         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61345         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61346         Likewise.
61347         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61348         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61349         (gl_WCHAR_H): Improve comments.
61350         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61352 2010-12-25  Bruno Haible  <bruno@clisp.org>
61354         strtok_r: Fix C syntax error in autoconf macro.
61355         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61356         characters in test program.
61358 2010-12-24  Bruno Haible  <bruno@clisp.org>
61360         ceil, trunc, round: Fix gcc warnings.
61361         * lib/ceil.c (MIN): Undefine before redefining.
61362         * lib/trunc.c (MIN): Likewise.
61363         * lib/round.c (MIN): Likewise.
61364         Include <math.h> first.
61366 2010-12-24  Bruno Haible  <bruno@clisp.org>
61368         select tests: Avoid failures on OSF/1 5.1.
61369         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61370         failure of closing the last socket; it may fail with ECONNRESET.
61372 2010-12-24  Eric Blake  <eblake@redhat.com>
61374         stdint: avoid HP-UX 10.20 preprocessor bug
61375         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61376         than #if.
61377         * tests/test-floor2.c (main): Likewise.
61378         Reported by Peter O'Gorman.
61380         pipe: make obsoletion transition easier
61381         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61382         * modules/pipe (Files): Include revived file.
61383         (Include): Drop reference, to mirror getdate's behavior.
61385 2010-12-24  Bruno Haible  <bruno@clisp.org>
61387         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61388         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61389         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61390         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61392 2010-12-24  Bruno Haible  <bruno@clisp.org>
61394         gethostname: Ensure declaration on NonStop Kernel.
61395         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61396         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61398 2010-12-24  Bruno Haible  <bruno@clisp.org>
61400         sys_select: Ensure all necessary types on NonStop Kernel.
61401         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61402         include <sys/time.h>.
61403         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61404         NonStop Kernel.
61405         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61407 2010-12-24  Bruno Haible  <bruno@clisp.org>
61409         sys_select: Remove unneeded include.
61410         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61411         have <sys/select.h>.
61413 2010-12-24  Bruno Haible  <bruno@clisp.org>
61415         gethostname: Provide a fallback for HOST_NAME_MAX.
61416         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61417         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61418         instead.
61419         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61421 2010-12-24  Bruno Haible  <bruno@clisp.org>
61423         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61424         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61425         (SA_RESTART): Likewise.
61426         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61428 2010-12-24  Bruno Haible  <bruno@clisp.org>
61430         signal: Define NSIG.
61431         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61432         * tests/test-signal.c (nsig): New variable.
61433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61435 2010-12-24  Bruno Haible  <bruno@clisp.org>
61437         rename, renameat: Avoid test failures on OSF/1 5.1.
61438         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61439         alternative error codes.
61440         * tests/test-renameat.c (main): Likewise.
61442 2010-12-24  Bruno Haible  <bruno@clisp.org>
61444         *printf: Detect large precisions bug on Solaris 10/SPARC.
61445         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61446         by Paul Eggert.
61447         * tests/test-snprintf-posix.h (test_function): Add this test code here
61448         too.
61449         * tests/test-sprintf-posix.h (test_function): Likewise.
61450         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61451         * tests/test-vasprintf-posix.c (test_function): Likewise.
61452         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61453         around by gnulib.
61454         * doc/posix-functions/printf.texi: Likewise.
61455         * doc/posix-functions/snprintf.texi: Likewise.
61456         * doc/posix-functions/sprintf.texi: Likewise.
61457         * doc/posix-functions/vfprintf.texi: Likewise.
61458         * doc/posix-functions/vprintf.texi: Likewise.
61459         * doc/posix-functions/vsnprintf.texi: Likewise.
61460         * doc/posix-functions/vsprintf.texi: Likewise.
61461         * doc/posix-functions/dprintf.texi: Undo last commit.
61462         * doc/posix-functions/vdprintf.texi: Likewise.
61464 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61466         tests: port test-fdutimensat.c to Solaris 8
61467         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61468         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61469         On Solaris 8, it fails with errno == ENOSYS, because there is no
61470         futimens (so it can't use the fd), and there is no lutimens (so it
61471         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61473         vsnprintf: make more consistent with snprintf; doc fixes
61475         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61476         the byte count return problem was promoted from the snprintf-posix
61477         to the snprintf module.
61478         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61479         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61480         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61481         * tests/test-snprintf.c (main): Check the byte count returned.
61482         * tests/test-vsnprintf.c (main): Likewise.
61484 2010-12-23  Eric Blake  <eblake@redhat.com>
61486         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61487         * modules/sigpipe (License): Relax license.
61489 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61491         doc: document Solaris printf bug with large float precisions
61492         * doc/posix-functions/dprintf.texi (dprintf):
61493         * doc/posix-functions/fprintf.texi (fprintf):
61494         * doc/posix-functions/printf.texi (printf):
61495         * doc/posix-functions/snprintf.texi (snprintf):
61496         * doc/posix-functions/sprintf.texi (sprintf):
61497         * doc/posix-functions/vdprintf.texi (vdprintf):
61498         * doc/posix-functions/vfprintf.texi (vfprintf):
61499         * doc/posix-functions/vprintf.texi (vprintf):
61500         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61501         * doc/posix-functions/vsprintf.texi (vsprintf):
61502         Mention that these functions mishandle large floating point
61503         precisions on Solaris 10.  The same bug is also present in Solaris
61504         8, and I assume earlier.  This causes "cd gnulib-tests; make
61505         check" to fail on Solaris 8 (and I assume, later) when building
61506         the latest coreutils, in test-vasprintf-posix's call to
61507         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61508         the wide flavors (e.g., wprintf) so this patch just updates the
61509         documentation for the narrow ones.
61511         test-posixtm.c: add two tests
61512         * tests/test-posixtm.c: Add two tests, to highlight the
61513         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61514         around this bug; this is merely to document it.
61516 2010-12-22  Bruno Haible  <bruno@clisp.org>
61518         getlogin_r: Work around portability problem on OSF/1.
61519         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61520         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61521         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61522         test for a truncated result.
61523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61524         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61525         * modules/getlogin_r (Depends-on): Add memchr.
61526         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61528 2010-12-22  Bruno Haible  <bruno@clisp.org>
61530         ptsname: Avoid test failure on OSF/1 5.1.
61531         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61532         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61533         (same_slave): New function.
61534         (main): Use it to compare ptsname's result with the expected file name.
61536 2010-12-22  Bruno Haible  <bruno@clisp.org>
61538         Port extended stdio modules to HP NonStop Kernel.
61539         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61540         macros.
61541         * lib/fbufmode.c: Update comments.
61542         * lib/fflush.c: Likewise.
61543         * lib/fpurge.c: Likewise.
61544         * lib/freadable.c: Likewise.
61545         * lib/freadahead.c: Likewise.
61546         * lib/freading.c: Likewise.
61547         * lib/freadptr.c: Likewise.
61548         * lib/freadseek.c: Likewise.
61549         * lib/fseeko.c: Likewise.
61550         * lib/fseterr.c: Likewise.
61551         * lib/fwritable.c: Likewise.
61552         * lib/fwriting.c: Likewise.
61553         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61555 2010-12-22  Bruno Haible  <bruno@clisp.org>
61557         ttyname_r: Work around bug on OSF/1 5.1.
61558         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61559         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61560         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61561         present.
61562         * lib/ttyname_r.c (ttyname_r): Update comments.
61564 2010-12-22  Bruno Haible  <bruno@clisp.org>
61566         round: Implement result sign according to IEEE 754.
61567         * lib/round.c (MIN, MINUS_ZERO): New macros.
61568         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61569         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61570         * tests/test-round-ieee.c (main): Likewise.
61571         * tests/test-roundl-ieee.c (main): Likewise.
61573         trunc: Implement result sign according to IEEE 754.
61574         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61575         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61576         * tests/test-trunc2.c: Include minus-zero.h.
61577         (MINUS_ZERO): New macro.
61578         (trunc_reference): Keep in sync with lib/trunc.c.
61579         * tests/test-truncf2.c: Include minus-zero.h.
61580         (MINUS_ZERO): New macro.
61581         (truncf_reference): Keep in sync with lib/trunc.c.
61582         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61583         * tests/test-trunc-ieee.c (main): Likewise.
61584         * tests/test-truncl-ieee.c (main): Likewise.
61586         ceil: Implement result sign according to IEEE 754.
61587         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61588         (FUNC): Return -0.0 for -1 < x < 0.
61589         * tests/test-ceil2.c: Include minus-zero.h.
61590         (MINUS_ZERO): New macro.
61591         (ceil_reference): Keep in sync with lib/ceil.c.
61592         * tests/test-ceilf2.c: Include minus-zero.h.
61593         (MINUS_ZERO): New macro.
61594         (ceilf_reference): Keep in sync with lib/ceil.c.
61595         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61596         * tests/test-ceil-ieee.c (main): Likewise.
61597         * tests/test-ceill-ieee.c (main): Likewise.
61599         floor: Implement result sign according to IEEE 754.
61600         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61601         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61602         * tests/test-floorf2.c (floorf_reference): Likewise.
61603         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61604         * tests/test-floor-ieee.c (main): Likewise.
61605         * tests/test-floorl-ieee.c (main): Likewise.
61607 2010-12-22  Bruno Haible  <bruno@clisp.org>
61609         getaddrinfo: Update doc.
61610         * doc/posix-functions/gai_strerror.texi: Return type is also different
61611         on AIX and HP-UX.
61613 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61615         getaddrinfo, inet_ntop: Update doc for Solaris.
61616         * doc/posix-functions/gai_strerror.texi: Return type is also an
61617         issue on Solaris 9 and earlier.
61618         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61619         on Solaris 10 and earlier.
61621 2010-12-21  Bruno Haible  <bruno@clisp.org>
61623         New module 'roundl-ieee'.
61624         * modules/roundl-ieee: New file.
61625         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61626         test whether roundl works according to ISO C 99 with IEC 60559.
61627         * m4/roundl-ieee.m4: New file.
61628         * modules/roundl-ieee-tests: New file.
61629         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61630         * tests/test-roundl.c (main): Remove signbit tests.
61631         * modules/roundl-tests (Depends-on): Remove signbit.
61632         * doc/posix-functions/roundl.texi: Mention the new module.
61634 2010-12-21  Bruno Haible  <bruno@clisp.org>
61636         New module 'truncl-ieee'.
61637         * modules/truncl-ieee: New file.
61638         * modules/truncl-ieee-tests: New file.
61639         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61640         * tests/test-truncl.c (main): Remove signbit tests.
61641         * modules/truncl-tests (Depends-on): Remove signbit.
61642         * doc/posix-functions/truncl.texi: Mention the new module.
61644 2010-12-21  Bruno Haible  <bruno@clisp.org>
61646         New module 'ceill-ieee'.
61647         * modules/ceill-ieee: New file.
61648         * modules/ceill-ieee-tests: New file.
61649         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61650         * tests/test-ceill.c (main): Remove signbit tests.
61651         * modules/ceill-tests (Depends-on): Remove signbit.
61652         * doc/posix-functions/ceill.texi: Mention the new module.
61654 2010-12-21  Bruno Haible  <bruno@clisp.org>
61656         New module 'floorl-ieee'.
61657         * modules/floorl-ieee: New file.
61658         * modules/floorl-ieee-tests: New file.
61659         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61660         * tests/test-floorl.c (main): Remove signbit tests.
61661         * modules/floorl-tests (Depends-on): Remove signbit.
61662         * doc/posix-functions/floorl.texi: Mention the new module.
61664 2010-12-21  Bruno Haible  <bruno@clisp.org>
61666         New module 'round-ieee'.
61667         * modules/round-ieee: New file.
61668         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61669         whether round works according to ISO C 99 with IEC 60559.
61670         * m4/round-ieee.m4: New file.
61671         * modules/round-ieee-tests: New file.
61672         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61673         * tests/test-round1.c (main): Remove signbit tests.
61674         * modules/round-tests (Depends-on): Remove 'signbit'.
61675         * doc/posix-functions/round.texi: Mention the new module.
61677 2010-12-21  Bruno Haible  <bruno@clisp.org>
61679         New module 'trunc-ieee'.
61680         * modules/trunc-ieee: New file.
61681         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61682         whether trunc works according to ISO C 99 with IEC 60559.
61683         * m4/trunc-ieee.m4: New file.
61684         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61686         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61687         * modules/trunc-ieee-tests: New file.
61688         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61689         * tests/test-trunc1.c (main): Remove signbit tests.
61690         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61691         * doc/posix-functions/trunc.texi: Mention the new module.
61693 2010-12-21  Bruno Haible  <bruno@clisp.org>
61695         New module 'ceil-ieee'.
61696         * modules/ceil-ieee: New file.
61697         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61698         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61699         ISO C 99 with IEC 60559.
61700         * m4/ceil-ieee.m4: New file.
61701         * modules/ceil (Files): Add lib/ceil.c.
61702         (Depends-on): Add 'float'.
61703         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61704         * lib/math.in.h (ceil): New declaration.
61705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61706         REPLACE_CEIL.
61707         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61708         * modules/ceil-ieee-tests: New file.
61709         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61710         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61711         * doc/posix-functions/ceil.texi: Mention the new module.
61713 2010-12-21  Bruno Haible  <bruno@clisp.org>
61715         New module 'floor-ieee'.
61716         * modules/floor-ieee: New file.
61717         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61718         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61719         ISO C 99 with IEC 60559.
61720         * m4/floor-ieee.m4: New file.
61721         * modules/floor (Files): Add lib/floor.c.
61722         (Depends-on): Add 'float'.
61723         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61724         * lib/math.in.h (floor): New declaration.
61725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61726         REPLACE_FLOOR.
61727         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61728         * modules/floor-ieee-tests: New file.
61729         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61730         * tests/test-math-c++.cc: Check the signature of 'floor'.
61731         * doc/posix-functions/floor.texi: Mention the new module.
61733 2010-12-21  Bruno Haible  <bruno@clisp.org>
61735         New module 'roundf-ieee'.
61736         * modules/roundf-ieee: New file.
61737         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61738         test whether roundf works according to ISO C 99 with IEC 60559.
61739         * m4/roundf-ieee.m4: New file.
61740         * modules/roundf-ieee-tests: New file.
61741         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61742         * tests/test-roundf1.c (main): Remove signbit tests.
61743         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61744         * doc/posix-functions/roundf.texi: Mention the new module.
61746 2010-12-21  Bruno Haible  <bruno@clisp.org>
61748         New module 'truncf-ieee'.
61749         * modules/truncf-ieee: New file.
61750         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61751         test whether truncf works according to ISO C 99 with IEC 60559.
61752         * m4/truncf-ieee.m4: New file.
61753         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61755         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61756         * modules/truncf-ieee-tests: New file.
61757         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61758         * tests/test-truncf1.c (main): Remove signbit tests.
61759         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61760         * doc/posix-functions/truncf.texi: Mention the new module.
61762 2010-12-21  Bruno Haible  <bruno@clisp.org>
61764         New module 'ceilf-ieee'.
61765         * modules/ceilf-ieee: New file.
61766         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61767         test whether ceilf works according to ISO C 99 with IEC 60559.
61768         * m4/ceilf-ieee.m4: New file.
61769         * modules/ceilf-ieee-tests: New file.
61770         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61771         * tests/test-ceilf1.c (main): Remove signbit tests.
61772         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61773         * doc/posix-functions/ceilf.texi: Mention the new module.
61775 2010-12-21  Bruno Haible  <bruno@clisp.org>
61777         New module 'floorf-ieee'.
61778         * modules/floorf-ieee: New file.
61779         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61780         test whether floorf works according to ISO C 99 with IEC 60559.
61781         * m4/floorf-ieee.m4: New file.
61782         * modules/floorf-ieee-tests: New file.
61783         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61784         * tests/test-floorf1.c (main): Remove signbit tests.
61785         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61786         * doc/posix-functions/floorf.texi: Mention the new module.
61788 2010-12-21  Bruno Haible  <bruno@clisp.org>
61790         Support for minus zero in autoconf macros.
61791         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61792         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61793         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61794         * tests/minus-zero.h: Update comments.
61796 2010-12-21  Bruno Haible  <bruno@clisp.org>
61798         Tests for module 'ceil'.
61799         * modules/ceil-tests: New file.
61800         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61801         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61803 2010-12-21  Bruno Haible  <bruno@clisp.org>
61805         Tests for module 'floor'.
61806         * modules/floor-tests: New file.
61807         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61808         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61810 2010-12-21  Bruno Haible  <bruno@clisp.org>
61812         math: Fix indentation.
61813         * lib/math.in.h (floorf): Fix indentation.
61815 2010-12-21  Bruno Haible  <bruno@clisp.org>
61817         Fix cross-compilation guesses on Solaris.
61818         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61819         not match "solaris2.10".
61820         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61821         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61822         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61824 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61826         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61827         This fixes a problem observed with the latest coreutils snapshot
61828         that caused a test to fail on Solaris 8.  src/csplit.c's call
61829         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61830         earlier, instead of returning the number of bytes that would have
61831         been generated; this causes csplit to incorrectly report memory
61832         exhaustion.
61833         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61834         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61835         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61836         comments to match.
61837         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61838         Fix typo in matching older versions of Solaris: "solaris2.10"
61839         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61840         only for guessing while cross-compiling.
61841         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61843 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61845         ftoastr: fix comment again
61846         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61847         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61848         Also, simplify example a bit by using flags = 0.
61850 2010-12-20  Bruno Haible  <bruno@clisp.org>
61852         round*, trunc*: Update documentation regarding glibc.
61853         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61854         * doc/posix-functions/round.texi: Likewise.
61855         * doc/posix-functions/roundl.texi: Likewise.
61856         * doc/posix-functions/truncf.texi: Likewise.
61857         * doc/posix-functions/trunc.texi: Likewise.
61858         * doc/posix-functions/truncl.texi: Likewise.
61860 2010-12-20  Bruno Haible  <bruno@clisp.org>
61862         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61863         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61864         * doc/posix-functions/round.texi: Likewise.
61865         * doc/posix-functions/roundl.texi: Likewise.
61867 2010-12-20  Bruno Haible  <bruno@clisp.org>
61869         ttyname_r: Add missing declaration on HP-UX 11.
61870         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61871         HAVE_TTYNAME_R.
61872         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61873         declared. Set HAVE_TTYNAME_R always.
61874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61875         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61876         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61877         HAVE_TTYNAME_R.
61878         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61880 2010-12-20  Bruno Haible  <bruno@clisp.org>
61882         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61883         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61884         * doc/posix-functions/getlogin_r.texi: Likewise.
61885         * tests/test-getlogin.c: Include <errno.h>.
61886         (main): Avoid test failure on HP-UX 11.11.
61887         * tests/test-getlogin_r.c (main): Likewise.
61889 2010-12-20  Bruno Haible  <bruno@clisp.org>
61891         getlogin_r: Add missing declaration on HP-UX 11.
61892         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61893         declared also when it exists as a function.
61894         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61896 2010-12-20  Bruno Haible  <bruno@clisp.org>
61898         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61899         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61900         through wcrtomb.
61902 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61904         ftoastr: fix comment
61905         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61906         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61908 2010-12-19  Bruno Haible  <bruno@clisp.org>
61910         isnan: Ensure it is a macro.
61911         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61912         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61913         Solaris.
61915 2010-12-19  Bruno Haible  <bruno@clisp.org>
61917         ldexpl test: Fix link error on OSF/1 5.1.
61918         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61920 2010-12-19  Bruno Haible  <bruno@clisp.org>
61922         wctype: Make it work in C++ mode on OSF/1 5.1.
61923         * lib/wctype.in.h (iswblank): Declare but not define here.
61924         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61925         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61926         * modules/wctype (Files): Add lib/iswblank.c.
61928 2010-12-19  Bruno Haible  <bruno@clisp.org>
61930         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61931         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61932         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61934 2010-12-19  Bruno Haible  <bruno@clisp.org>
61936         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61938         _POSIX_PII_SOCKET.
61939         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61940         * doc/posix-functions/recvfrom.texi: Likewise.
61941         * doc/posix-functions/send.texi: Likewise.
61942         * doc/posix-functions/sendto.texi: Likewise.
61944 2010-12-19  Bruno Haible  <bruno@clisp.org>
61946         tcgetsid: Add missing declaration on OSF/1 5.1.
61947         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61948         HAVE_TCGETSID.
61949         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61950         Don't set HAVE_TCGETSID.
61951         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61952         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61953         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61954         HAVE_TCGETSID.
61955         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61957 2010-12-19  Bruno Haible  <bruno@clisp.org>
61959         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61960         * lib/stdio.in.h: During the include_next statement, let recursive
61961         includes of this file include only the system header file.
61963 2010-12-19  Bruno Haible  <bruno@clisp.org>
61965         iconv_open: Fix regression from 2010-12-04.
61966         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61967         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61969 2010-12-19  Bruno Haible  <bruno@clisp.org>
61971         stdbool test: Avoid a gcc warning.
61972         * tests/test-stdbool.c (main): Fail if e1 is false.
61973         Reported by Jim Meyering.
61975 2010-12-19  Jim Meyering  <meyering@redhat.com>
61977         setenv: restore to working order
61978         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61979         mistakenly removed.
61980         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61981         HAVE_SETENV.
61982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61983         HAVE_SETENV.
61985 2010-12-19  Bruno Haible  <bruno@clisp.org>
61987         Document some different function declarations on OSF/1 5.1.
61988         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61989         * doc/posix-functions/inet_ntop.texi: Likewise.
61990         * doc/posix-functions/gethostname.texi: Likewise.
61991         * lib/unistd.in.h (gethostname): Update comment.
61993 2010-12-19  Bruno Haible  <bruno@clisp.org>
61995         doc: Mention vasprintf-posix module.
61996         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61997         the 'vasprintf-posix' module.
61998         * doc/glibc-functions/vasprintf.texi: Likewise.
62000 2010-12-19  Bruno Haible  <bruno@clisp.org>
62002         unsetenv: Add missing declaration on OSF/1 5.1.
62003         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
62004         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
62005         Don't set HAVE_UNSETENV. In the test program, set _BSD.
62006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
62007         not HAVE_UNSETENV.
62008         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
62009         HAVE_UNSETENV.
62010         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
62012 2010-12-19  Bruno Haible  <bruno@clisp.org>
62014         setenv: Add missing declaration on OSF/1 5.1.
62015         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
62016         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
62017         declared. Don't set HAVE_SETENV.
62018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
62019         not HAVE_SETENV.
62020         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
62021         HAVE_SETENV.
62022         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
62024 2010-12-19  Bruno Haible  <bruno@clisp.org>
62026         nl_langinfo tests: Avoid gcc warning.
62027         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
62029 2010-12-19  Bruno Haible  <bruno@clisp.org>
62031         mknod: Avoid error in C++ mode on OSF/1 with GCC.
62032         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
62033         _GL_CXXALIAS_SYS.
62035 2010-12-19  Bruno Haible  <bruno@clisp.org>
62037         stdbool: Relax test.
62038         * tests/test-stdbool.c (e): Don't require that casts from a variable's
62039         address to 'bool' work in static initializer, for compilers other than
62040         GCC.
62042 2010-12-19  Bruno Haible  <bruno@clisp.org>
62044         ftello: Add missing declaration on OSF/1 5.1.
62045         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
62046         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
62047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
62048         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
62049         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
62051 2010-12-19  Bruno Haible  <bruno@clisp.org>
62053         fseeko: Add missing declaration on OSF/1 5.1.
62054         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
62055         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
62056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
62057         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
62058         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
62060 2010-12-19  Bruno Haible  <bruno@clisp.org>
62062         fchdir: Add missing declaration on OSF/1 5.1.
62063         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
62064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
62065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
62066         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
62067         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
62069 2010-12-19  Bruno Haible  <bruno@clisp.org>
62071         relocatable-prog-wrapper: Separate from relocatable-prog.
62072         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
62073         uninstall-relocwrapper rule here.
62074         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
62075         Reported by Ian Beckwith <ianb@erislabs.net>.
62077 2010-12-19  Bruno Haible  <bruno@clisp.org>
62079         unistr/u8-mbsnlen: Add missing dependency.
62080         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
62081         Reported by Ian Beckwith <ianb@erislabs.net>.
62083 2010-12-19  Bruno Haible  <bruno@clisp.org>
62085         iconv: Make it possible again to use this module without 'iconv-h'.
62086         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
62087         if it is not defined.
62088         Reported by Ian Beckwith <ianb@erislabs.net>.
62090 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62092         acl: port to Solaris 8 when copying from tmpfs to ufs
62093         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
62094         error number.  Problem observed on Solaris 8 with latest
62095         coreutils, with "mv A B", where A is on a tmpfs file system and B
62096         is on a ufs file system.  This caused coreutils' mv/part-symlink
62097         test to fail.
62099         tests: set fail=0 at start
62100         * tests/init.sh (setup_): Move fail=0 initialization here ...
62101         (mktempd_): ... from here, so that tests can rely on fail being
62102         set to 0 initially.  This fixes a problem in coreutils; see:
62103         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
62105 2010-12-18  Bruno Haible  <bruno@clisp.org>
62107         memmem-simple: Stylistic changes.
62108         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
62109         Fix preprocessor directive indentation.
62111 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62113         memmem, memmem-simple: reorganize and expand empty needle check
62114         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
62115         functional checks to memmem-simple so that one has a fully functional
62116         memmem by using just this module.
62117         Restrict the performance only check to the memmem module.
62118         Also expand the empty needle check to ensure the correct
62119         pointer is returned, not just a non NULL pointer.
62120         * doc/glibc-functions/memmem.texi: Rearrange the portability
62121         documentation to correlate with the rearranged checks.
62122         Clarify exactly how the memmem and memmem-simple modules
62123         relate to each other.
62125 2010-12-15  Pádraig Brady  <P@draigBrady.com>
62126             Bruno Haible  <bruno@clisp.org>
62128         Improve cross-compilation guesses for uClibc.
62129         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
62130         that uClibc does not have the glibc bug.
62131         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
62132         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
62134 2010-12-14  Eric Blake  <eblake@redhat.com>
62136         configmake: provide fallbacks for oldest supported autotools
62137         * m4/configmake.m4: New file.
62138         * modules/configmake (Files): Ship it.
62139         (configure.ac): Use it to guarantee fallbacks.
62141 2010-12-13  Pádraig Brady  <P@draigBrady.com>
62143         read-file: Improve handling of large files
62144         * lib/read-file.c (fread_file): Minimize realloc()s
62145         for regular files, and better manage sizes around SIZE_MAX.
62147 2010-12-13  Eric Blake  <eblake@redhat.com>
62149         cloexec, fcntl: relax license
62150         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
62151         consent from all contributors.
62152         * modules/fcntl (License): Likewise.
62154 2010-12-10  Bruno Haible  <bruno@clisp.org>
62156         Tests for module 'pipe-posix'.
62157         * modules/pipe-posix-tests: New file.
62158         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
62160 2010-12-10  Bruno Haible  <bruno@clisp.org>
62162         pipe-posix: Make it work in C++ mode.
62163         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
62164         (pipe): Use common idiom, not a macro definition.
62165         * lib/pipe.c: New file.
62166         * m4/pipe.m4: New file.
62167         * modules/pipe-posix (Description): Enhance.
62168         (Files): Add lib/pipe.c, m4/pipe.m4.
62169         (configure.ac): Invoke gl_FUNC_PIPE.
62170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
62171         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
62172         * tests/test-unistd-c++.cc: Check the signature of pipe.
62174 2010-12-10  Bruno Haible  <bruno@clisp.org>
62176         Rename module 'pipe' to 'spawn-pipe'.
62177         * modules/spawn-pipe: New file, renamed from modules/pipe.
62178         (Files, configure.ac, Makefile.am): Update.
62179         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
62180         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
62181         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
62182         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
62183         "spawn-pipe.h" instead of "pipe.h".
62184         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
62185         to gl_SPAWN_PIPE.
62186         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
62187         (Files, Makefile.am): Update.
62188         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
62189         Update.
62190         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
62191         Include "spawn-pipe.h" instead of "pipe.h".
62192         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
62193         * lib/javacomp.c: Likewise.
62194         * lib/javaversion.c: Likewise.
62195         * lib/pipe-filter-gi.c: Likewise.
62196         * lib/pipe-filter-ii.c: Likewise.
62197         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
62198         * modules/javacomp (Depends-on): Likewise.
62199         * modules/javaversion (Depends-on): Likewise.
62200         * modules/pipe-filter-gi (Depends-on): Likewise.
62201         * modules/pipe-filter-ii (Depends-on): Likewise.
62202         * MODULES.html.sh (Executing programs): Update.
62203         * NEWS: Mention the change.
62205 2010-12-10  Eric Blake  <eblake@redhat.com>
62207         pipe-posix: new module
62208         * modules/pipe-posix: New file.
62209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
62210         (gl_UNISTD_H): Check for declaration.
62211         * modules/unistd (Makefile.am): Substitute it.
62212         * lib/unistd.in.h (pipe): Provide it for mingw.
62213         * doc/posix-functions/pipe.texi (pipe): Update documentation.
62214         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
62216 2010-12-07  Bruno Haible  <bruno@clisp.org>
62218         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
62219         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
62220         u8_strcmp_gnu.
62221         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
62223 2010-12-06  Bruno Haible  <bruno@clisp.org>
62225         Update internal documentation.
62226         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
62228 2010-12-04  Bruno Haible  <bruno@clisp.org>
62230         Put more information about failed tests into the test return codes.
62231         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
62232         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
62233         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62235         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
62236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62237         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62238         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62239         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
62240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62241         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
62242         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62243         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
62244         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62245         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
62246         returns a bit mask.
62247         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
62248         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
62249         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
62250         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
62251         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
62252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62255         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62256         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62257         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62258         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62259         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62260         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62261         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62262         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62263         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62264         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62265         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62266         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62267         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62268         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62270         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62271         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62272         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62273         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62274         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62275         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62276         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62277         gl_PRINTF_PRECISION): Likewise.
62278         * m4/regex.m4 (gl_REGEX): Likewise.
62279         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62280         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62281         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62282         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62283         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62285         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62286         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62287         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62288         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62289         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62290         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62291         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62292         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62293         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62294         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62295         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62296         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62298         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62299         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62300         enumerated value.
62301         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62303 2010-12-04  Bruno Haible  <bruno@clisp.org>
62305         Update for Solaris 11 2010-11.
62306         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62307         Express, released in November 2010.
62309 2010-12-04  Bruno Haible  <bruno@clisp.org>
62311         nproc: Relax license.
62312         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62313         and Paul Eggert.
62314         Requested by Ludovic Courtès <ludo@gnu.org>.
62316 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62318         utimecmp: fine-grained src to nearby coarse-grained dest
62320         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62321         and the source is on a file system with higher-resolution time
62322         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62323         not work, and the time stamps are close together, the algorithm to
62324         determine the exact resolution from the read-back mtime was buggy:
62325         it had a "!=" where it should have had an "==".  This bug has been
62326         in the code ever since it was introduced to gnulib.
62327         Problem reported by Dan Jacobson in
62328         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62330 2010-11-30  Bruno Haible  <bruno@clisp.org>
62332         strerror_r-posix: Fix autoconf test.
62333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62335 2010-11-28  Bruno Haible  <bruno@clisp.org>
62336             Paul Eggert  <eggert@cs.ucla.edu>
62338         Tests for module 'getdomainname'.
62339         * modules/getdomainname-tests: New file.
62340         * tests/test-getdomainname.c: New file, based on
62341         tests/test-gethostname.c.
62343 2010-11-28  Bruno Haible  <bruno@clisp.org>
62344             Paul Eggert  <eggert@cs.ucla.edu>
62346         getdomainname: Use the system function when possible.
62347         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62348         (getdomainname): Replace if needed. Provide the declaration if it is
62349         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62350         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62351         (getdomainname): When the system has getdomainname, call the system
62352         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62353         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62354         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62355         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62356         the function if its second argument is of type 'int' or if it is found
62357         in libnsl.
62358         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62359         <sys/systeminfo.h> and sysinfo().
62360         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62362         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62363         HAVE_GETDOMAINNAME.
62364         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62365         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62366         * doc/glibc-functions/getdomainname.texi: Document the problems with
62367         the getdomainname declaration.
62369 2010-11-28  Bruno Haible  <bruno@clisp.org>
62371         sys_socket: Ensure ss_family field on AIX.
62372         * lib/sys_socket.in.h (ss_family): New macro definition.
62373         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62374         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62375         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62376         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62377         * modules/sys_socket (Makefile.am): Substitute
62378         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62379         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62381 2010-11-27  Bruno Haible  <bruno@clisp.org>
62383         readline: Improve configure output.
62384         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62385         "checking for readline..." result understandable.
62387 2010-11-27  Bruno Haible  <bruno@clisp.org>
62389         *printf-posix: Detect a bug on Solaris 10/x86.
62390         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62391         for floating-point output.
62392         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62393         directive.
62394         * tests/test-snprintf-posix.h (test_function): Likewise.
62395         * tests/test-sprintf-posix.h (test_function): Likewise.
62396         * tests/test-vasprintf-posix.c (test_function): Likewise.
62397         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62398         * doc/posix-functions/printf.texi: Likewise.
62399         * doc/posix-functions/snprintf.texi: Likewise.
62400         * doc/posix-functions/sprintf.texi: Likewise.
62401         * doc/posix-functions/vfprintf.texi: Likewise.
62402         * doc/posix-functions/vprintf.texi: Likewise.
62403         * doc/posix-functions/vsnprintf.texi: Likewise.
62404         * doc/posix-functions/vsprintf.texi: Likewise.
62405         * doc/glibc-functions/obstack_printf.texi: Likewise.
62406         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62408 2010-11-27  Bruno Haible  <bruno@clisp.org>
62410         Fix link error when module libunistring-optional is in use.
62411         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62412         * modules/striconveha-tests (Makefile.am): Likewise.
62414 2010-11-27  Bruno Haible  <bruno@clisp.org>
62416         regex: Mention link dependencies.
62417         * modules/regex (Link): New section.
62418         * modules/rpmatch (Link): Likewise.
62419         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62421 2010-11-27  Bruno Haible  <bruno@clisp.org>
62423         ftoastr: Fix compilation error on Solaris.
62424         * lib/ftoastr.c: Include <config.h>.
62426 2010-11-27  Bruno Haible  <bruno@clisp.org>
62428         getloadavg: Update documentation.
62429         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62431 2010-11-27  Bruno Haible  <bruno@clisp.org>
62433         sys_socket: Fix test whether the functions are declared.
62434         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62435         not <sys/select.h>.
62437 2010-11-27  Bruno Haible  <bruno@clisp.org>
62439         getpass: Make sure to get system declaration on some platforms.
62440         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62441         gl_USE_SYSTEM_EXTENSIONS.
62442         * modules/getpass (Depends-on): Add extensions.
62444 2010-11-26  Bruno Haible  <bruno@clisp.org>
62446         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62447         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62448         'iconv' module is present.
62449         (ICONV_CONST): New macro.
62450         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62451         ICONV_CONST.
62452         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62453         set ICONV_CONST.
62454         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62455         here.
62456         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62457         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62458         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62459         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62460         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62461         present.
62463 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62465         ftoastr: comment fix
62466         * lib/ftoastr.c: "little" -> "little or no" in comment
62468 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62470         stdint: port to GCC 4.3 + OSX + Octave
62471         On this platform, stdint.h is buggy and defines int64_t to long
62472         long int.  The replacement defined it to long int, causing
62473         problems with C++ style name mangling.  Instead, trust the system
62474         definition if INT64_MAX is defined, and likewise for the unsigned
62475         variant.   Problem reported by Jarno Rajahalme in
62476         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62477         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62478         and don't mess with int64_t and INT64_MAX in this case.
62479         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62481 2010-11-24  Bruno Haible  <bruno@clisp.org>
62483         doc: Corrections regarding MacOS X 10.4 and 10.5.
62484         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62485         MacOS X.
62486         Reported by Simon Josefsson.
62488 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62490         Uninstall ".bin" files installed by relocwrapper.
62491         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62492         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62493         unless it is already there.
62495 2010-11-21  Bruno Haible  <bruno@clisp.org>
62497         Update for NetBSD 5.0.
62498         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62499         NetBSD; the test fails on NetBSD 5.0.
62500         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62501         about NetBSD.
62503 2010-11-21  Bruno Haible  <bruno@clisp.org>
62505         Update for HP-UX 11.23 and HP-UX 11.31.
62506         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62507         HP-UX.
62509 2010-11-21  Bruno Haible  <bruno@clisp.org>
62511         Update for MacOS X 10.5.
62512         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62513         MacOS X; the test fails on MacOS X 10.5.8.
62514         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62515         about MacOS X.
62517 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62519         bootstrap: add bootstrap_sync option.
62520         See discussion at
62521         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62522         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62523         * build-aux/bootstrap: Accept --bootstrap-sync to update
62524         bootstrap if it is not identical to the local gnulib's
62525         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62526         enable this by default.  Accept --no-bootstrap-sync to disable
62527         it.
62529 2010-11-20  Bruno Haible  <bruno@clisp.org>
62531         Ensure that <features.h> is included before __GLIBC__ is tested.
62532         * lib/printf-parse.h: Include <features.h>.
62533         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62534         Reported by Mike Frysinger <vapier@gentoo.org>.
62536         Ensure that <features.h> is included before __GLIBC__ is tested.
62537         * lib/wchar.in.h: Include <features.h>.
62538         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62539         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62540         Reported by Mike Frysinger <vapier@gentoo.org>.
62542         Ensure that <features.h> is included before __GLIBC__ is tested.
62543         * lib/arpa_inet.in.h: Include <features.h>.
62544         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62545         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62546         Reported by Mike Frysinger <vapier@gentoo.org>.
62548         Ensure that <features.h> is included before __GLIBC__ is tested.
62549         * build-aux/link-warning.h: Include <features.h>.
62550         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62551         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62552         Reported by Mike Frysinger <vapier@gentoo.org>.
62554         Ensure that <features.h> is included before __GLIBC__ is tested.
62555         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62556         Reported by Mike Frysinger <vapier@gentoo.org>.
62558 2010-11-20  Bruno Haible  <bruno@clisp.org>
62560         memmem: Fix autoconf test.
62561         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62563 2010-11-20  Bruno Haible  <bruno@clisp.org>
62565         Port to uClibc.
62566         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62567         * lib/fcntl.in.h: Likewise.
62568         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62569         * lib/mbrtowc.c (mbrtowc): Likewise.
62570         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62571         * lib/strerror_r.c: Likewise.
62572         * lib/unistr/u8-strnlen.c: Likewise.
62573         * lib/vasnprintf.c (decimal_point_char): Likewise.
62574         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62575         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62576         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62577         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62578         * tests/test-sigaction.c (handler, main): Likewise.
62579         * lib/freading.h: Treat uClibc like a non-glibc platform.
62580         * lib/freading.c: Likewise.
62581         * lib/gettext.h: Likewise.
62582         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62583         Likewise.
62584         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62585         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62586         * lib/propername.c (proper_name_utf8): Likewise.
62587         * lib/spawn.in.h: Likewise.
62588         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62589         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62590         mem_cd_iconveh_internal): Likewise.
62591         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62592         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62593         strstr, strcasestr): Likewise.
62594         * lib/unicodeio.c (unicode_to_mb): Likewise.
62595         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62596         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62597         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62598         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62599         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62600         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62601         * lib/unistr/u8-stpncpy.c: Likewise.
62602         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62603         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62605         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62606         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62607         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62608         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62611         Likewise.
62612         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62613         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62615         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62616         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62617         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62618         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62619         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62620         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62621         * tests/test-striconveha.c (main): Likewise.
62622         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62623         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62624         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62625         * doc/posix-functions/getline.texi: Likewise.
62626         Reported by Mike Frysinger <vapier@gentoo.org>.
62628 2010-11-20  Bruno Haible  <bruno@clisp.org>
62630         nproc: Fix condition.
62631         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62632         HAVE_PTHREAD_AFFINITY_NP.
62634 2010-11-20  Bruno Haible  <bruno@clisp.org>
62636         Fix a comment.
62637         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62639 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62641         ftoastr: don't assume snprintf
62642         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62643         Implement a subset of snprintf here, by using sprintf safely.
62644         * modules/ftoastr (Depends-on): Remove snprintf.
62646 2010-11-19  Jim Meyering  <meyering@redhat.com>
62648         test-rename.h: fix compilation failure
62649         * tests/test-rename.h (test_rename): Add omitted "}".
62651 2010-11-17  Jim Meyering  <meyering@redhat.com>
62653         maint.mk: add a URL discussing the no-@acronym policy
62654         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62656 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62658         ftoastr: depend on snprintf, improve comments
62659         * lib/ftoastr.c: Also mention Loitsch's draft.
62660         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62661         needed in the current implementation, but it might simplify
62662         speeding up the code later.
62663         * modules/ftoastr: Depend on snprintf; this improves portability.
62664         Suggested by Bruno Haible in the same email.
62666         ftoastr: port to hosts lacking strtof and strtold
62667         Problem reported by Bruno Haible in
62668         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62669         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62670         environment and strtold (and presumably strtof) are not available.
62671         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62672         (configure.ac): Require gl_C99_STRTOLD.
62674 2010-11-18  Bruno Haible  <bruno@clisp.org>
62676         c-strtold: Avoid link error on AIX 7.
62677         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62678         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62679         (gl_C_STRTOLD): Test whether strtold_l exists.
62680         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62682 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62684         intprops: new macro INT_BITS_STRLEN_BOUND
62685         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62686         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62687         not exposed.  Also, it uses a slightly tighter bound than before;
62688         though this makes no practical difference, we might as well be as
62689         tight as we easily can.
62691         ftoastr: new module, for lossless conversion of floats to short strings
62692         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62693         * modules/ftoastr: New files.
62695 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62697         bootstrap: port to Solaris sed
62698         * build-aux/bootstrap (get_version): Port to Solaris sed.
62699         See Ralf Wildenhues's note in
62700         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62702 2010-11-14  Jim Meyering  <meyering@redhat.com>
62704         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62705         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62706         and move definition closer to sole use.
62708 2010-11-13  Jim Meyering  <meyering@redhat.com>
62710         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62711         Now we require at least autoconf-2.59, which means the work-around
62712         is no longer needed.
62713         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62714         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62715         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62716         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62717         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62719 2010-11-13  Bruno Haible  <bruno@clisp.org>
62721         rename, renameat: Avoid test failures at NFS mounted locations.
62722         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62723         functions.
62724         (test_rename): Use assert_nonexistent.
62725         * tests/test-rename.c: Include <dirent.h>.
62726         * tests/test-renameat.c: Likewise.
62727         Reported by Gary V. Vaughan <gary@gnu.org>.
62729         rename, renameat: Document Linux bug with NFS
62730         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62731         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62732         * doc/posix-functions/renameat.texi: Likewise.
62733         Suggested by Eric Blake.
62735 2010-11-13  Bruno Haible  <bruno@clisp.org>
62737         rename test: Add comments.
62738         * tests/test-rename.h (test_rename): Add structure and comments.
62740 2010-11-13  Eric Blake  <eblake@redhat.com>
62742         maintainer-makefile: cover a few more files
62743         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62744         scripts generated within C files, for libvirt.
62746 2010-11-13  Bruno Haible  <bruno@clisp.org>
62748         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62749         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62750         character, return the number of bytes that belong together, not always
62751         1.
62752         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62753         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62754         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62755         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62756         number of bytes of an invalid character.
62757         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62758         (main): Invoke it.
62759         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62760         results.
62761         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62762         malformed byte sequences.
62763         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62764         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62765         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62766         Reported by Ben Pfaff and Paolo Bonzini.
62768 2010-11-13  Bruno Haible  <bruno@clisp.org>
62770         openat: Work around glibc bug with fchownat() and empty file names.
62771         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62772         (gl_FUNC_FCHOWNAT): Invoke it.
62773         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62774         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62775         Reported by Gary V. Vaughan <gary@gnu.org>.
62777 2010-11-13  Bruno Haible  <bruno@clisp.org>
62779         openat: Ensure autoconf macro ordering.
62780         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62781         gl_USE_SYSTEM_EXTENSIONS.
62782         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62784 2010-11-13  Bruno Haible  <bruno@clisp.org>
62786         Update comments.
62787         * lib/unistr/u8-check.c: Update file name in comments.
62788         * lib/unistr/u8-mblen.c: Likewise.
62789         * lib/unistr/u8-prev.c: Likewise.
62790         * lib/unistr/u8-strmblen.c: Likewise.
62791         * lib/unistr/u8-strmbtouc.c: Likewise.
62793 2010-11-13  Jim Meyering  <meyering@redhat.com>
62795         tests: avoid test failure on Solaris 10 due to lack of PATH export
62796         * tests/test-update-copyright.sh: Don't forget to export PATH.
62798         init.sh: ensure that IFS is defined, just in case...
62799         * tests/init.sh (setup_): Ensure that IFS is defined,
62800         so that saving and restoring it works as expected.  This
62801         appears to be useful at least for an old version of dash
62802         from a long time ago (RH 6).  See here for details:
62803         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62805         maint.mk: tighten "test a == b" check
62806         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62807         test to files that contain something like #!/bin/sh.
62808         Without this, coreutils would get two false positives in
62809         the comments of C source files.
62811 2010-11-12  Eric Blake  <eblake@redhat.com>
62813         bootstrap: fix typo in previous attempt
62814         * build-aux/bootstrap (buildreq): Correct the grouping.
62815         Reported by Paul Eggert.
62817         maintainer-makefile: prohibit test x == x
62818         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62819         Based on a report by Matthias Bolte.
62821         bootstrap: allow FreeBSD gzip
62822         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62823         which has no '.' and goes to stderr.
62824         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62825         Reported by Matthias Bolte.
62827         maintainer-makefile: check for i18n setup
62828         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62829         will likely work.
62831 2010-11-12  Bruno Haible  <bruno@clisp.org>
62833         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62834         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62835         * lib/nanosleep.c (nanosleep): Likewise.
62837 2010-11-11  Bruno Haible  <bruno@clisp.org>
62839         fcntl-h: Fix for use of C++ on glibc systems.
62840         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62841         also on glibc systems in C++ mode.
62842         Reported by Gary V. Vaughan <gary@gnu.org>.
62844 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62846         mknod: avoid false failure with dash
62847         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62849 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62851         unlink: Fix "is it should" typo in diagnostic.
62852         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62853         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62855 2010-11-11  Bruno Haible  <bruno@clisp.org>
62857         Tests for module 'strerror_r-posix'.
62858         * modules/strerror_r-posix-tests: New file.
62859         * tests/test-strerror_r.c: New file.
62860         * tests/test-string-c++.cc: Check the signature of strerror_r.
62862         New module 'strerror_r-posix'.
62863         * lib/string.in.h (strerror_r): New declaration.
62864         * lib/strerror_r.c: New file.
62865         * m4/strerror_r.m4: New file.
62866         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62867         of strerror_r.
62868         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62869         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62870         * modules/strerror_r-posix: New file.
62871         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62872         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62873         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62874         portability problems.
62876 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62878         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62879         line is also considered for output. Quoted function name in shell
62880         command, so temporary files for functions like MyClass::operator()
62881         are removed correctly without errors.
62883 2010-11-09  Bruno Haible  <bruno@clisp.org>
62885         * doc/posix-functions/strerror.texi: List more failing platforms.
62887         * doc/posix-functions/strerror.texi: Add a comment.
62889 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62891         fdopendir: fix bug on MacOS X when low on file descriptors
62893         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62894         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62895         All callers changed.
62896         (fdopendir): Invoke save_cwd at the top level, not after using
62897         multiple dup() calls to use up file descriptors.  Then retry
62898         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62899         less than the maximum number of open file descriptors, because
62900         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62901         on Mac OS X 10.6.4 for tar 1.24
62902         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62903         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62904         and for tar 1.25
62905         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62907 2010-11-07  Bruno Haible  <bruno@clisp.org>
62909         vasnprintf: Support I flag on glibc systems.
62910         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62911         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62912         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62913         snprintf function.
62914         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62915         glibc systems.
62916         * tests/test-vasnprintf-posix3.c: New file.
62917         * modules/vasnprintf-posix-tests (Files): Add it.
62918         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62920 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62922         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62923         * MODULES.html.sh: For compiler warnings, use name
62924         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62926 2010-11-05  Eric Blake  <eblake@redhat.com>
62928         ceil, floor: avoid spurious failure with icc
62929         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62930         [denormals-as-zero] when optimizing without -mieee-fp option.
62931         * tests/test-floorf2.c (floorf_reference): Likewise.
62932         * tests/test-ceilf1.c (dummy): New function.
62933         (main): Use it to outsmart icc's optimization.
62934         * tests/test-floorf1.c (dummy, main): Likewise.
62936         tests: require working signbit
62937         * modules/ceilf-tests (Depends-on): Add signbit.
62938         * modules/ceill-tests (Depends-on): Likewise.
62939         * modules/floorf-tests (Depends-on): Likewise.
62940         * modules/floorl-tests (Depends-on): Likewise.
62941         * modules/round-tests (Depends-on): Likewise.
62942         * modules/roundf-tests (Depends-on): Likewise.
62943         * modules/roundl-tests (Depends-on): Likewise.
62944         * modules/trunc-tests (Depends-on): Likewise.
62945         * modules/truncf-tests (Depends-on): Likewise.
62946         * modules/truncl-tests (Depends-on): Likewise.
62948         strtod: work around icc bug
62949         * lib/strtod.c (minus_zero): Define to working value.
62950         (strtod): Use it to avoid icc bug.
62952         copysign: enhance tests
62953         * modules/copysign-tests (Files): Add minus-zero.h.
62954         * tests/test-copysign.c (main): Also test zeros.
62956 2010-11-04  Eric Blake  <eblake@redhat.com>
62958         ceil, floor, round, trunc: enhance tests of -0
62959         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62960         * tests/test-ceill.c (main): Likewise.
62961         * tests/test-floorf1.c (main): Likewise.
62962         * tests/test-floorl.c (main): Likewise.
62963         * tests/test-round1.c (main): Likewise.
62964         * tests/test-roundf1.c (main): Likewise.
62965         * tests/test-roundl.c (main): Likewise.
62966         * tests/test-trunc1.c (main): Likewise.
62967         * tests/test-truncf1.c (main): Likewise.
62968         * tests/test-truncl.c (main): Likewise.
62970 2010-11-04  Eric Blake  <eblake@redhat.com>
62972         frexp, tests: work around ICC bug with -zero
62973         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62974         works with more compilers.
62975         * tests/minus-zero.h: New file.
62976         * modules/ceilf-tests (Files): Include it.
62977         * modules/ceill-tests (Files): Likewise.
62978         * modules/floorf-tests (Files): Likewise.
62979         * modules/floorl-tests (Files): Likewise.
62980         * modules/frexp-nolibm-tests (Files): Likewise.
62981         * modules/frexp-tests (Files): Likewise.
62982         * modules/frexpl-nolibm-tests (Files): Likewise.
62983         * modules/frexpl-tests (Files): Likewise.
62984         * modules/isnan-tests (Files): Likewise.
62985         * modules/isnand-nolibm-tests (Files): Likewise.
62986         * modules/isnand-tests (Files): Likewise.
62987         * modules/isnanf-nolibm-tests (Files): Likewise.
62988         * modules/isnanf-tests (Files): Likewise.
62989         * modules/isnanl-nolibm-tests (Files): Likewise.
62990         * modules/isnanl-tests (Files): Likewise.
62991         * modules/round-tests (Files): Likewise.
62992         * modules/roundf-tests (Files): Likewise.
62993         * modules/roundl-tests (Files): Likewise.
62994         * modules/ldexpl-tests (Files): Likewise.
62995         * modules/signbit-tests (Files): Likewise.
62996         * modules/snprintf-posix-tests (Files): Likewise.
62997         * modules/sprintf-posix-tests (Files): Likewise.
62998         * modules/strtod-tests (Files): Likewise.
62999         * modules/trunc-tests (Files): Likewise.
63000         * modules/truncf-tests (Files): Likewise.
63001         * modules/truncl-tests (Files): Likewise.
63002         * modules/vsnprintf-posix-tests (Files): Likewise.
63003         * modules/vsprintf-posix-tests (Files): Likewise.
63004         * modules/vasnprintf-posix-tests (Files): Likewise.
63005         * modules/vasprintf-posix-tests (Files): Likewise.
63006         * tests/test-ceilf1.c (main): Use it.
63007         * tests/test-ceill.c (main): Likewise.
63008         * tests/test-floorf1.c (main): Likewise.
63009         * tests/test-floorl.c (main): Likewise.
63010         * tests/test-frexp.c (main): Likewise.
63011         * tests/test-frexpl.c (main): Likewise.
63012         * tests/test-isnan.c (main): Likewise.
63013         * tests/test-isnand.h (main): Likewise.
63014         * tests/test-isnanf.h (main): Likewise.
63015         * tests/test-isnanl.h (main): Likewise.
63016         * tests/test-ldexpl.c (main): Likewise.
63017         * tests/test-round.c (main): Likewise.
63018         * tests/test-roundf.c (main): Likewise.
63019         * tests/test-roundl.c (main): Likewise.
63020         * tests/test-signbit.c (test_signbitf, test_signbitd)
63021         (test_signbitl): Likewise.
63022         * tests/test-snprintf-posix.h (test_function): Likewise.
63023         * tests/test-sprintf-posix.h (test_function): Likewise.
63024         * tests/test-strtod.c (main): Likewise.
63025         * tests/test-trunc1.c (main): Likewise.
63026         * tests/test-truncf1.c (main): Likewise.
63027         * tests/test-truncl.c (main): Likewise.
63029         isnanl: work around icc bug
63030         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
63032 2010-11-03  Eric Blake  <eblake@redhat.com>
63034         tests: fix compiler warnings
63035         * tests/test-getopt.h (test_getopt): Fix condition.
63036         * tests/test-getopt_long.h (test_getopt_long): Likewise.
63037         * tests/test-pipe2.c (main): Likewise.
63038         * tests/test-quotearg-simple.c (main): Avoid icc warning.
63040         utimens: fix broken m4 test
63041         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
63043 2010-10-28  Bruno Haible  <bruno@clisp.org>
63045         posix_spawn*, getdtablesize: Relax license.
63046         * modules/posix_spawn (License): Change to LGPLv2+.
63047         * modules/posix_spawnp (License): Likewise.
63048         * modules/posix_spawn-internal (License): Likewise.
63049         * modules/posix_spawnattr_init (License): Likewise.
63050         * modules/posix_spawnattr_getflags (License): Likewise.
63051         * modules/posix_spawnattr_setflags (License): Likewise.
63052         * modules/posix_spawnattr_getpgroup (License): Likewise.
63053         * modules/posix_spawnattr_setpgroup (License): Likewise.
63054         * modules/posix_spawnattr_getschedparam (License): Likewise.
63055         * modules/posix_spawnattr_setschedparam (License): Likewise.
63056         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
63057         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
63058         * modules/posix_spawnattr_getsigdefault (License): Likewise.
63059         * modules/posix_spawnattr_setsigdefault (License): Likewise.
63060         * modules/posix_spawnattr_getsigmask (License): Likewise.
63061         * modules/posix_spawnattr_setsigmask (License): Likewise.
63062         * modules/posix_spawnattr_destroy (License): Likewise.
63063         * modules/posix_spawn_file_actions_init (License): Likewise.
63064         * modules/posix_spawn_file_actions_addclose (License): Likewise.
63065         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
63066         * modules/posix_spawn_file_actions_addopen (License): Likewise.
63067         * modules/posix_spawn_file_actions_destroy (License): Likewise.
63068         * modules/getdtablesize (License): Likewise.
63069         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
63071 2010-10-26  Bruno Haible  <bruno@clisp.org>
63073         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
63074         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
63075         Cygwin and mingw.
63076         Suggested by Eric Blake.
63078 2010-10-26  Bruno Haible  <bruno@clisp.org>
63080         stdio: Work around compilation error due to renameat() on Solaris 10.
63081         * lib/stdio.in.h: Include <unistd.h> on Solaris.
63082         * lib/renameat.c: Don't include <unistd.h> here.
63083         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
63084         Reported by Paul Eggert and Eric Blake.
63086 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63088         renameat: port to Solaris 10, which declares renameat in unistd.h
63090         * lib/renameat.c: Include unistd.h before stdio.h, because
63091         Solaris 10 declares renameat in unistd.h.  Problem encountered
63092         when building GNU tar 1.24 on Solaris 10.
63094 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63096         fdopendir: fix C89 compilation
63097         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
63098         compilers.
63100 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
63102         inttostr: simplify by removing unnecessary redundancy
63103         * lib/anytostr.c: Don't include verify.h.
63104         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
63105         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
63106         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
63107         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
63108         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
63109         Likewise.
63110         * modules/inttostr (Depends-on): Remove 'verify'.
63112 2010-10-23  Bruno Haible  <bruno@clisp.org>
63114         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
63115         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
63116         Reported by Eric Blake.
63118 2010-10-23  Bruno Haible  <bruno@clisp.org>
63120         Tests: Fix LOCALE_JA on MirBSD 10.
63121         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
63122         to an UTF-8 locale.
63123         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
63124         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63125         Reported by Eric Blake.
63127 2010-10-21  Bruno Haible  <bruno@clisp.org>
63129         nl_langinfo test: Avoid test failure on NetBSD 5.
63130         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
63131         Reported by Eric Blake.
63133 2010-10-21  Eric Blake  <eblake@redhat.com>
63135         c-stack: work around libsigsegv 2.8 bug
63136         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
63137         overflow on at least PowerPC64.
63139 2010-10-17  Bruno Haible  <bruno@clisp.org>
63141         userspec: Drop redundant file.
63142         * modules/userspec (Files): Remove lib/inttostr.h.
63144 2010-10-17  Bruno Haible  <bruno@clisp.org>
63146         nl_langinfo tests: Silence some warnings.
63147         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
63148         Reported by Jim Meyering.
63150 2010-10-17  Bruno Haible  <bruno@clisp.org>
63152         Make use of GCC's attribute __alloc_size__.
63153         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
63154         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
63155         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
63156         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
63157         __alloc_size__.
63158         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
63159         Suggested by Jim Meyering.
63161 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
63163         bootstrap: anchor .gitignore entries.
63164         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
63165         with...
63166         (insert_vc_ignore): ... this new function, which prepends `/' to
63167         all .gitignore entries before passing them to
63168         insert_sorted_if_absent.
63170 2010-10-16  Bruno Haible  <bruno@clisp.org>
63172         nextafter: Fix configure check.
63173         * modules/nextafter (configure.ac): Correct expected prototype.
63175 2010-10-16  Bruno Haible  <bruno@clisp.org>
63177         termios: Update documentation.
63178         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
63180 2010-10-16  Bruno Haible  <bruno@clisp.org>
63182         tests: Make them compile with TinyCC.
63183         * tests/test-strstr.c (main): Remove parentheses around array
63184         initializer.
63186 2010-10-15  Eric Blake  <eblake@redhat.com>
63188         ignore-value: make header idempotent
63189         * lib/ignore-value.h: Add double-inclusion guards.
63190         Reported by Stefan Berger.
63192 2010-10-15  Jim Meyering  <meyering@redhat.com>
63194         GNUmakefile: handle "stable" target, not "major"
63195         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
63196         lists in maint.mk and announce-gen.  Without this, "make stable"
63197         would fail to ensure that $(VERSION) is up to date.
63199 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
63201         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
63202         & co.
63204 2010-10-14  Bruno Haible  <bruno@clisp.org>
63206         vasnprintf: Don't set errno to 0.
63207         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
63208         block that sets it to 0.
63209         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
63211 2010-10-14  Bruno Haible  <bruno@clisp.org>
63213         socketlib: Fix.
63214         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
63215         gl_PREREQ_SYS_H_WINSOCK2.
63216         Reported by Ian Beckwith <ianb@erislabs.net>.
63218 2010-10-13  Jim Meyering  <meyering@redhat.com>
63220         test-select-stdin.c: avoid warn_unused_result warnings
63221         * tests/test-select-stdin.c: Include "macros.h".
63222         ASSERT that read and fflush succeed.
63224 2010-10-13  Jim Meyering  <meyering@redhat.com>
63226         git-version-gen: do require git-VC'd files in cwd
63227         * build-aux/git-version-gen: Reject a git version string
63228         if there are no commits associated with the current directory.
63229         This avoids an unlikely false-positive (unrelated dir whose parent
63230         repository also contains a tag matching v*), as pointed out
63231         by Giuseppe Scrivano in
63232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
63234 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63236         argv-iter: omit nonconforming declaration
63237         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
63238         enum arg_iter_err declaration, which doesn't conform to C99.
63239         Solaris 10 cc warns about this.
63241 2010-10-13  Eric Blake  <eblake@redhat.com>
63243         termios: fix compilation on mingw
63244         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
63245         (gl_TERMIOS_H): Adjust it on mingw.
63246         * modules/termios (Makefile.am): Substitute new key.
63247         * lib/termios.in.h (includes): Make include_next conditional.
63248         * doc/posix-headers/termios.texi (termios.h): Update
63249         documentation.
63250         Reported by Daniel P. Berrange.
63252 2010-10-13  Jim Meyering  <meyering@redhat.com>
63254         git-version-gen: don't require that .git/ be in the current dir
63255         * build-aux/git-version-gen: Adjust this script so that it works
63256         when run from any working directory beneath the top-level .git/-
63257         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63258         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63260         test-select: avoid warn_unused_result warnings
63261         * tests/test-select.c: Include "macros.h".
63262         ASSERT that each call to read, write, and pipe succeeds.
63263         While not technically required, also check each "close".
63264         * modules/select-tests (Files): Add tests/macros.h.
63266         test-symlinkat: remove declaration of unused local
63267         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63269         test-inttostr: avoid shadowing warnings
63270         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63271         and use malloc rather than the stack for the same reason as
63272         mentioned in the comment justifying the other allocation.
63274 2010-10-11  Bruno Haible  <bruno@clisp.org>
63276         stdlib: Allow multiple gnulib generated replacements to coexist.
63277         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63278         Reported by Sam Steingold <sds@gnu.org>.
63280 2010-10-11  Jim Meyering  <meyering@redhat.com>
63282         fix a documentation typo
63283         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63285 2010-10-11  Eric Blake  <eblake@redhat.com>
63287         futimens: work around Solaris 11 bug
63288         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63289         * tests/test-futimens.h (test_futimens): Enhance, rather than
63290         weaken test.
63291         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63293 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63295         Indentation.
63296         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63297         higher-level operators more to the left.
63299 2010-10-11  Jim Meyering  <meyering@redhat.com>
63301         test-futimens: avoid unwarranted test failure on Solaris 5.11
63302         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63303         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63304         because it tries to dereference the NULL name argument.
63306 2010-10-11  Bruno Haible  <bruno@clisp.org>
63308         Indentation.
63309         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63310         indentation.
63312 2010-10-11  Jim Meyering  <meyering@redhat.com>
63314         spawn.in.h: make indentation consistent with parentheses
63315         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63316         Make indentation consistent with parentheses.
63318 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63320         Fix mismatched parens in previous commit
63321         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63322         parens.
63324 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63326         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63328         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63329         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63330         * lib/malloca.c: Include "verify.h".
63331         (verify1): Remove, replacing with a verify call.
63332         * lib/relocwrapper.c (verify1): Likewise.
63333         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63334         Likewise.
63335         * modules/malloca (Depends-on): Add 'verify'.
63336         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63337         * modules/vasnprintf (Depends-on): Add 'verify'.
63338         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63339         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63340         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63341         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63342         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63343         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63344         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63346         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63348         Formerly the style was sometimes 2*X - 1, because the C standard
63349         was wrongly thought to disallow ?: in integral constant expressions.
63350         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63351         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63352         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63353         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63354         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63355         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63356         verify that time_t cannot be floating.
63358 2010-10-08  Eric Blake  <eblake@redhat.com>
63360         time: enforce recent POSIX ruling that time_t is integral
63361         * lib/time.in.h (__time_t_must_be_integral): Detect any
63362         problematic systems, allowing the rest of gnulib to assume POSIX.
63364 2010-10-08  Jim Meyering  <meyering@redhat.com>
63366         fdopendir: fix a bug on systems lacking openat and /proc support
63367         OpenBSD 4.7 is one such system.  The most noticeable effect was
63368         failure of any application making nontrivial use of fts: rm, du,
63369         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63370           ./rm: traversal failed: `a': Bad file descriptor
63371         Debugging that, you see that even though FD 6 was closed just
63372         prior to the opendir call in fd_clone_opendir, its resulting
63373         dir->dd_fd was 8, rather than the expected value of 6:
63375         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63376         93                close (fd);
63377         (gdb) n
63378         94                dir = fd_clone_opendir (dupfd);
63379         (gdb) n
63380         95                saved_errno = errno;
63381         (gdb) p dir->dd_fd
63382         $11 = 8
63384         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63385         The problem is that on OpenBSD, fd_clone_opendir has to resort
63386         to using the old-style save/restore CWD mechanism, due to its
63387         lack of openat/proc support, and *that* would steal the FD (6)
63388         that opendir was supposed to use.
63390         The fix is to squirrel away the desired FD so that save_cwd uses a
63391         different one, and then free the dest FD right before calling opendir.
63392         That guarantees opendir will use the required file descriptor.
63394         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63396 2010-10-08  Bruno Haible  <bruno@clisp.org>
63398         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63399         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63401 2010-10-08  Bruno Haible  <bruno@clisp.org>
63403         nanosleep: Make replacement POSIX compliant.
63404         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63405         is out of range.
63406         Reported by Jim Meyering.
63408 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63410         bootstrap: add hook for altering gnulib.mk, for Bison
63411         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63412         the Bison bootstrapping process can rewrite file names and variables
63413         in this file before later parts of 'bootstrap' use the file.
63414         Bison wants to include lib/gnulib.mk from the top-level makefile,
63415         so it needs the file names in this file to be relative to the top
63416         level, not relative to lib; plus it needs variable names to be
63417         rewritten.
63418         (slurp): Use the new function.
63420         bootstrap: reformat for readability
63421         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63423 2010-10-08  Eric Blake  <eblake@redhat.com>
63425         docs: update cygwin progress
63426         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63427         1.7.7.
63428         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63429         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63430         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63431         * doc/posix-functions/carg.texi (carg): Likewise.
63432         * doc/posix-functions/cargf.texi (cargf): Likewise.
63433         * doc/posix-functions/casin.texi (casin): Likewise.
63434         * doc/posix-functions/casinf.texi (casinf): Likewise.
63435         * doc/posix-functions/casinh.texi (casinh): Likewise.
63436         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63437         * doc/posix-functions/catan.texi (catan): Likewise.
63438         * doc/posix-functions/catanf.texi (catanf): Likewise.
63439         * doc/posix-functions/catanh.texi (catanh): Likewise.
63440         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63441         * doc/posix-functions/ccos.texi (ccos): Likewise.
63442         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63443         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63444         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63445         * doc/posix-functions/cexp.texi (cexp): Likewise.
63446         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63447         * doc/posix-functions/cimag.texi (cimag): Likewise.
63448         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63449         * doc/posix-functions/clog.texi (clog): Likewise.
63450         * doc/posix-functions/clogf.texi (clogf): Likewise.
63451         * doc/posix-functions/conj.texi (conj): Likewise.
63452         * doc/posix-functions/conjf.texi (conjf): Likewise.
63453         * doc/posix-functions/cpow.texi (cpow): Likewise.
63454         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63455         * doc/posix-functions/cproj.texi (cproj): Likewise.
63456         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63457         * doc/posix-functions/creal.texi (creal): Likewise.
63458         * doc/posix-functions/crealf.texi (crealf): Likewise.
63459         * doc/posix-functions/csin.texi (csin): Likewise.
63460         * doc/posix-functions/csinf.texi (csinf): Likewise.
63461         * doc/posix-functions/csinh.texi (csinh): Likewise.
63462         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63463         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63464         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63465         * doc/posix-functions/ctan.texi (ctan): Likewise.
63466         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63467         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63468         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63469         * doc/posix-headers/complex.texi (complex.h): Likewise.
63471 2010-10-07  Jim Meyering  <meyering@redhat.com>
63473         parse-datetime: avoid compilation failure on OpenBSD 4.7
63474         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63475         This works around a compilation failure on OpenBSD 4.7:
63476         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63478 2010-10-07  Eric Blake  <eblake@redhat.com>
63480         docs: update cygwin progress
63481         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63482         1.7.6.
63483         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63484         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63485         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63486         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63487         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63488         Likewise.
63489         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63490         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63491         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63492         Likewise.
63493         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63494         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63495         Likewise.
63496         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63497         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63498         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63499         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63500         Likewise.
63501         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63502         Likewise.
63503         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63505         docs: update parse-datetime history
63506         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63507         documentation of this function's history and alternatives.
63509         cygwin: use more robust version check
63510         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63511         exclude an eventual cygwin 1.9.1.
63512         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63514         (gl_FUNC_STRCASESTR): Likewise.
63515         Reported by Bruno Haible.
63517 2010-10-06  Bruno Haible  <bruno@clisp.org>
63519         string, sys_select: Avoid #including large headers unless necessary.
63520         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63521         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63522         OSF/1, BeOS, Haiku.
63523         Reported by Jim Meyering.
63525 2010-10-05  Eric Blake  <eblake@redhat.com>
63527         memmem, strstr, strcasestr: fix bug with long periodic needle
63528         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63529         periodic needle having false positive.
63530         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63531         and cygwin 1.7.7.
63532         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63533         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63534         (gl_FUNC_STRCASESTR): Likewise.
63535         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63536         * tests/test-memmem.c (main): Expose the bug.
63537         * tests/test-strcasestr.c (main): Likewise.
63538         * tests/test-strstr.c (main): Likewise.
63539         * tests/test-c-strcasestr.c (main): Likewise.
63540         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63541         * doc/posix-functions/strstr.texi (strstr): Likewise.
63542         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63543         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63545 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63547         parse-datetime: do some more renaming
63548         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63549         parse_datetime, not get_date.  Mention the renaming.
63550         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63551         in comments.
63552         * m4/bison.m4: Likewise.
63554 2010-10-05  Eric Blake  <eblake@redhat.com>
63556         parse-datetime: better name than get_date
63557         * NEWS: Reword the deprecation notice.
63558         * modules/get_date: Rename to modules/parse-datetime.
63559         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63560         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63561         * lib/get_date.y: Rename to lib/parse-datetime.y.
63562         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63563         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63564         * doc/getdate.texi: Provide fallback wrapper.
63565         * lib/getdate.h: Move guts, and wrap...
63566         * lib/parse-datetime.h: ...new file.
63567         * lib/parse-datetime.y (get_date): Rename...
63568         (parse_datetime): ...to this.
63569         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63570         (gl_PARSE_DATETIME): ...to this.
63571         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63572         documentation.
63573         * modules/getdate (Files): Provide fallback docs and header.
63574         (Notice, Depends-on): Update references.
63575         * tests/test-parse-datetime.c: Likewise.
63576         * DEPENDENCIES: Likewise.
63577         * MODULES.html.sh (Date and time <time.h>): Likewise.
63578         * doc/parse-datetime.texi (Date input formats)
63579         (Authors of parse_datetime): Likewise.
63580         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63581         (Include): Likewise.
63582         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63583         * gnulib-tool: Likewise.
63584         * m4/bison.m4 (gl_BISON): Likewise.
63585         Suggested by Bruno Haible.
63587 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63589         more ports to Solaris tr, which needs [] around ranges
63590         * gnulib-tool: Solaris tr needs [] around ranges.
63591         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63592         * tests/test-pipe-filter-gi1.c (main): Likewise.
63593         * tests/test-pipe-filter-ii1.c (main): Likewise.
63595 2010-10-05  Eric Blake  <eblake@redhat.com>
63597         bootstrap: fix Solaris regression
63598         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63599         around ranges.
63600         Reported by Pádraig Brady.
63602         bootstrap: work with pkg-config
63603         * build-aux/bootstrap (check_versions): Also transliterate - in
63604         prerequisite name.
63605         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63606         prerequisites that were already found, to avoid confusion.
63607         Reported by Justin Clift.
63609         faccessat: remove unused wrappers
63610         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63611         presence of these wrappers dragged in -lgen on Solaris.
63612         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63614 2010-10-05  Jim Meyering  <meyering@redhat.com>
63616         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63617         * Makefile (sc_pragma_columns): New syntax-check rule.
63619 2010-10-04  Bruno Haible  <bruno@clisp.org>
63621         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63622         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63623         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63624         Reported by Bruce Korb and Eric Blake.
63626 2010-10-04  Bruno Haible  <bruno@clisp.org>
63628         threadlib: Make option --with-libpth-prefix work.
63629         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63630         use $LIBPTH, not just -lpth.
63632 2010-10-04  Bruno Haible  <bruno@clisp.org>
63634         Avoid line length limitation from HP NonStop system header files.
63635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63636         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63637         * lib/ctype.in.h: Likewise.
63638         * lib/dirent.in.h: Likewise.
63639         * lib/errno.in.h: Likewise.
63640         * lib/fcntl.in.h: Likewise.
63641         * lib/float.in.h: Likewise.
63642         * lib/getopt.in.h: Likewise.
63643         * lib/iconv.in.h: Likewise.
63644         * lib/inttypes.in.h: Likewise.
63645         * lib/langinfo.in.h: Likewise.
63646         * lib/locale.in.h: Likewise.
63647         * lib/math.in.h: Likewise.
63648         * lib/netdb.in.h: Likewise.
63649         * lib/netinet_in.in.h: Likewise.
63650         * lib/poll.in.h: Likewise.
63651         * lib/pthread.in.h: Likewise.
63652         * lib/pty.in.h: Likewise.
63653         * lib/sched.in.h: Likewise.
63654         * lib/se-selinux.in.h: Likewise.
63655         * lib/search.in.h: Likewise.
63656         * lib/signal.in.h: Likewise.
63657         * lib/spawn.in.h: Likewise.
63658         * lib/stdarg.in.h: Likewise.
63659         * lib/stddef.in.h: Likewise.
63660         * lib/stdint.in.h: Likewise.
63661         * lib/stdio.in.h: Likewise.
63662         * lib/stdlib.in.h: Likewise.
63663         * lib/string.in.h: Likewise.
63664         * lib/strings.in.h: Likewise.
63665         * lib/sys_file.in.h: Likewise.
63666         * lib/sys_ioctl.in.h: Likewise.
63667         * lib/sys_select.in.h: Likewise.
63668         * lib/sys_socket.in.h: Likewise.
63669         * lib/sys_stat.in.h: Likewise.
63670         * lib/sys_time.in.h: Likewise.
63671         * lib/sys_times.in.h: Likewise.
63672         * lib/sys_utsname.in.h: Likewise.
63673         * lib/sys_wait.in.h: Likewise.
63674         * lib/sysexits.in.h: Likewise.
63675         * lib/termios.in.h: Likewise.
63676         * lib/time.in.h: Likewise.
63677         * lib/unistd.in.h: Likewise.
63678         * lib/wchar.in.h: Likewise.
63679         * lib/wctype.in.h: Likewise.
63680         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63681         * modules/ctype (Makefile.am): Likewise.
63682         * modules/dirent (Makefile.am): Likewise.
63683         * modules/errno (Makefile.am): Likewise.
63684         * modules/fcntl-h (Makefile.am): Likewise.
63685         * modules/float (Makefile.am): Likewise.
63686         * modules/getopt-posix (Makefile.am): Likewise.
63687         * modules/iconv-h (Makefile.am): Likewise.
63688         * modules/inttypes (Makefile.am): Likewise.
63689         * modules/langinfo (Makefile.am): Likewise.
63690         * modules/locale (Makefile.am): Likewise.
63691         * modules/math (Makefile.am): Likewise.
63692         * modules/netdb (Makefile.am): Likewise.
63693         * modules/netinet_in (Makefile.am): Likewise.
63694         * modules/poll-h (Makefile.am): Likewise.
63695         * modules/pthread (Makefile.am): Likewise.
63696         * modules/pty (Makefile.am): Likewise.
63697         * modules/sched (Makefile.am): Likewise.
63698         * modules/search (Makefile.am): Likewise.
63699         * modules/selinux-h (Makefile.am): Likewise.
63700         * modules/signal (Makefile.am): Likewise.
63701         * modules/spawn (Makefile.am): Likewise.
63702         * modules/stdarg (Makefile.am): Likewise.
63703         * modules/stddef (Makefile.am): Likewise.
63704         * modules/stdint (Makefile.am): Likewise.
63705         * modules/stdio (Makefile.am): Likewise.
63706         * modules/stdlib (Makefile.am): Likewise.
63707         * modules/string (Makefile.am): Likewise.
63708         * modules/strings (Makefile.am): Likewise.
63709         * modules/sys_file (Makefile.am): Likewise.
63710         * modules/sys_ioctl (Makefile.am): Likewise.
63711         * modules/sys_select (Makefile.am): Likewise.
63712         * modules/sys_socket (Makefile.am): Likewise.
63713         * modules/sys_stat (Makefile.am): Likewise.
63714         * modules/sys_time (Makefile.am): Likewise.
63715         * modules/sys_times (Makefile.am): Likewise.
63716         * modules/sys_utsname (Makefile.am): Likewise.
63717         * modules/sys_wait (Makefile.am): Likewise.
63718         * modules/sysexits (Makefile.am): Likewise.
63719         * modules/termios (Makefile.am): Likewise.
63720         * modules/time (Makefile.am): Likewise.
63721         * modules/unistd (Makefile.am): Likewise.
63722         * modules/wchar (Makefile.am): Likewise.
63723         * modules/wctype (Makefile.am): Likewise.
63725 2010-10-04  Bruno Haible  <bruno@clisp.org>
63727         read-file tests: Avoid a test failure on NonStop Kernel.
63728         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63729         a regular file.
63730         Reported by Joachim Schmitz <schmitz@hp.com>.
63732 2010-10-03  Bruno Haible  <bruno@clisp.org>
63734         gnulib-tool: Fixes for --create-testdir with --libtool.
63735         * gnulib-tool (func_get_automake_snippet): Don't augment
63736         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63737         an executable.
63738         (func_create_testdir): Handle module 'alloca' like func_import.
63739         Reported by Bruce Korb <bruce.korb@gmail.com>.
63741 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63743         Avoid some lines longer than 80 characters.
63744         * lib/stdint.in.h: Break long comment lines.
63745         * lib/math.in.h: Likewise.
63746         (_GL_NUM_UINT_WORDS): New macro, for readability.
63747         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63748         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63749         * lib/stdlib.in.h: Likewise.
63750         * lib/spawn.in.h: Likewise.
63751         * lib/sys_socket.in.h: Update an URL.
63752         * lib/sys_stat.in.h: Break long line.
63754 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63756         Improve pmccabe2html.
63757         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63758         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63759         when the sources change. Remove the line in the HTML about "Used
63760         ranges" (which implied that there might be other unused ranges),
63761         rename "Resume" to "Summary" (easier to understand for more users).
63762         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63763         styles, and some unnecessary blank lines.
63765 2010-10-03  Bruno Haible  <bruno@clisp.org>
63766             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63768         acl: Add support for ACLs on NonStop Kernel.
63769         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63770         Check whether the function aclsort() exists.
63771         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63772         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63773         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63774         (acl_nontrivial [HAVE_ACLSORT]: New function.
63775         (file_has_acl): Implement for NonStop Kernel.
63776         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63777         (qset_acl): Implement for NonStop Kernel.
63778         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63779         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63780         (main): Implement for NonStop Kernel.
63781         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63782         Kernel. Handle this flavor.
63783         * tests/test-set-mode-acl.sh: Likewise.
63784         * tests/test-copy-acl.sh: Likewise.
63785         * tests/test-copy-file.sh: Likewise.
63787 2010-10-03  Bruno Haible  <bruno@clisp.org>
63789         Info about ACLs on NonStop Kernel.
63790         * doc/acl-resources.txt: Add info about NonStop Kernel.
63791         References by Joachim Schmitz <schmitz@hp.com>.
63793 2010-10-02  Bruno Haible  <bruno@clisp.org>
63795         Define missing EDQUOT on NonStop Kernel.
63796         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63797         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63798         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63799         missing.
63800         * doc/posix-headers/errno.texi: Mention the NSK bug.
63801         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63802         Reported by Joachim Schmitz <schmitz@hp.com>.
63804 2010-10-02  Bruno Haible  <bruno@clisp.org>
63806         Update doc for POSIX:2008.
63807         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63808         Update URL of POSIX specification.
63810 2010-10-02  Bruno Haible  <bruno@clisp.org>
63812         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63813         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63814         from gnulib, not from Automake.
63816 2010-10-02  Bruno Haible  <bruno@clisp.org>
63818         New module 'system-posix'.
63819         * modules/system-posix: New file.
63820         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63821         module is present.
63822         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63823         GNULIB_SYSTEM_POSIX.
63824         * modules/stdlib (Depends-on): Remove sys_wait.
63825         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63826         * doc/posix-functions/system.texi: Mention the new module.
63827         * doc/posix-headers/stdlib.texi: Likewise.
63828         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63829         define test_sys_wait_macros to a no-op.
63830         Reported by Sam Steingold <sds@gnu.org>.
63832 2010-09-30  Bruno Haible  <bruno@clisp.org>
63834         More renaming from 'getdate' to 'get_date'.
63835         * doc/get_date.texi: Renamed from doc/getdate.texi.
63836         * modules/get_date (Files): Update.
63837         * MODULES.html.sh (Date and time <time.h>): Update.
63838         * DEPENDENCIES: Update.
63839         * gnulib-tool: Update comment.
63840         * m4/bison.m4 (gl_BISON): Likewise.
63841         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63843 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63845         bootstrap: support ACLOCAL_FLAGS during aclocal
63846         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63847         can add additional -I dir for third-party .m4 files.
63849 2010-09-30  Eric Blake  <eblake@redhat.com>
63851         bootstrap: use glibtoolize on MacOS
63852         * build-aux/bootstrap (check_versions): Convert libtool into
63853         libtoolize.
63854         (tool search): Move libtool check earlier, and look for
63855         glibtoolize for MacOS.
63856         (gnulib_tool_options): Auto-add --libtool when appropriate.
63857         Reported by Justin Clift.
63859         poll: fix typo that broke test on MacOS
63860         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63861         Reported by Justin Clift.
63863         getdate: rename to get_date
63864         Note: getdate.h is not renamed, to minimize client impact.
63865         * modules/getdate: Mark obsolete.  Move old contents...
63866         * modules/get_date: ...to new module name.
63867         * modules/getdate-tests: Move...
63868         * modules/get_date-tests: ...here.
63869         * m4/getdate.m4: Move...
63870         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63871         * lib/getdate.y: Move...
63872         * lib/get_date.y: ...here.
63873         * tests/test-getdate.c: Move...
63874         * tests/test-get_date.c: ...here.
63875         * doc/posix-functions/getdate.texi (getdate): Update name.
63876         * NEWS: Mention the change.
63878 2010-09-29  Bruno Haible  <bruno@clisp.org>
63880         Separate the module 'waitpid' from the module 'sys_wait'.
63881         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63882         present.
63883         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63884         gl_MODULE_INDICATOR_FOR_TESTS.
63885         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63886         * modules/sys_wait (Depends-on): Remove waitpid.
63887         (Makefile.am): Substitute GNULIB_WAITPID.
63888         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63889         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63890         signature only if the 'waitpid' module is present.
63891         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63892         * NEWS: Mention the change.
63893         * modules/grantpt (Depends-on): Add waitpid.
63894         * modules/wait-process (Depends-on): Likewise.
63896 2010-09-29  Bruno Haible  <bruno@clisp.org>
63898         More tests for module 'sys_wait'.
63899         * modules/sys_wait-c++-tests: New file.
63900         * tests/test-sys_wait-c++.cc: New file.
63901         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63902         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63904 2010-09-29  Bruno Haible  <bruno@clisp.org>
63906         New module 'waitpid'.
63907         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63908         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63909         Don't include <process.h>.
63910         (waitpid): Declare only, using modern idiom.
63911         * m4/waitpid.m4: New file.
63912         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63913         * modules/waitpid: New file.
63914         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63915         (Makefile.am): Update.
63916         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63918 2010-09-28  Bruno Haible  <bruno@clisp.org>
63920         poll: Assume ANSI C.
63921         * lib/poll.c (poll): Use an ANSI C declaration.
63923 2010-09-28  Bruno Haible  <bruno@clisp.org>
63925         poll-h: Create poll.h on all platforms.
63926         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63927         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63928         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63929         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63930         (gl_REPLACE_POLL_H): Don't set POLL_H.
63931         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63932         * modules/poll-h (Depends-on): Add include_next.
63933         (Makefile.am): Create poll.h unconditionally. Substitute also
63934         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63936 2010-09-28  Bruno Haible  <bruno@clisp.org>
63938         Tests for module 'poll-h'.
63939         * modules/poll-h-c++-tests: New file.
63940         * tests/test-poll-h-c++.cc: New file.
63942         Tests for module 'poll-h'.
63943         * modules/poll-h-tests: New file.
63944         * tests/test-poll-h.c: New file.
63946 2010-09-28  Bruno Haible  <bruno@clisp.org>
63948         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63949         * modules/poll-h (Depends-on): Add 'extensions'.
63951 2010-09-28  Bruno Haible  <bruno@clisp.org>
63953         New module 'poll-h'.
63954         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63955         (poll): Use modern idiom.
63956         * modules/poll-h: New file.
63957         * modules/poll (Files): Remove lib/poll.in.h.
63958         (Depends-on): Add poll-h.
63959         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63960         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63961         * m4/poll_h.m4: New file.
63962         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63963         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63964         and invoke gl_REPLACE_POLL_H.
63965         * lib/poll.c: Use common idiom.
63966         * tests/test-poll.c: Likewise.
63967         * doc/posix-headers/poll.texi: Mention the poll-h module.
63968         Suggested by Eric Blake.
63970 2010-09-26  Bruno Haible  <bruno@clisp.org>
63972         sys_wait: Implement WSTOPSIG.
63973         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63974         Reported by Simon Josefsson.
63976 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63978         stdlib, sys_wait: Avoid compilation error on mingw.
63979         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63981 2010-09-26  Bruno Haible  <bruno@clisp.org>
63983         stdlib tests: Avoid code duplication.
63984         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63985         * modules/sys_wait-tests (Files): Likewise.
63986         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63987         * tests/test-stdlib.c: Include test-sys_wait.h.
63988         (main): Invoke test_sys_wait_macros.
63989         * tests/test-sys_wait.c: Include test-sys_wait.h.
63990         (main): Invoke test_sys_wait_macros.
63992 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63994         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63995         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63996         sure Windows sockets are working before calling getaddrinfo.
63997         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63998         * doc/gnulib.texi (Windows sockets): Fix typo.
64000 2010-09-25  Bruno Haible  <bruno@clisp.org>
64002         Tests for module 'regex-quote'.
64003         * modules/regex-quote-tests: New file.
64004         * tests/test-regex-quote.c: New file.
64006         New module 'regex-quote'.
64007         * lib/regex-quote.h: New file.
64008         * lib/regex-quote.c: New file.
64009         * modules/regex-quote: New file.
64010         Suggested by Reuben Thomas <rrt@sc3d.org>.
64012 2010-09-24  Bruno Haible  <bruno@clisp.org>
64014         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
64015         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
64017 2010-09-23  Bruno Haible  <bruno@clisp.org>
64019         setenv: Relax license.
64020         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
64021         Blake.
64022         Requested by Eric Blake.
64024 2010-09-22  Bruno Haible  <bruno@clisp.org>
64026         termios: Relax license.
64027         * modules/termios (License): Change to LGPLv2+.
64028         Requested by Eric Blake.
64030 2010-09-22  Bruno Haible  <bruno@clisp.org>
64032         threadlib: Allow the package to change the default to 'no'.
64033         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
64034         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
64035         Reported by Paul Eggert.
64037 2010-09-22  Pádraig Brady  <P@draigbrady.com>
64038             Bruno Haible  <bruno@clisp.org>
64040         Fix endless loop in mbmemcasecoll.
64041         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
64042         byte.
64043         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
64045 2010-09-22  Bruno Haible  <bruno@clisp.org>
64047         Tests for module 'memcoll'.
64048         * modules/memcoll-tests: New file.
64049         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
64051         memcoll, xmemcoll: Clarify size vs. length.
64052         * modules/memcoll.c (memcoll0): Clarify specification.
64053         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
64054         passed to collate_error.
64056 2010-09-22  Bruno Haible  <bruno@clisp.org>
64058         Tests for module 'memcasecmp'.
64059         * modules/memcasecmp-tests: New file.
64060         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
64062 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64064         * lib/pthread.in.h: Add split double-inclusion guard, and include
64065         system <pthread.h> if there is one.  Use @@-style as in other
64066         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
64067         pthread.h doesn't.
64068         (pthread_mutexattr_destroy, pthread_mutexattr_init):
64069         (pthread_mutexattr_settype, pthread_mutex_trylock):
64070         New static inline functions, if there's no system <pthread.h>.
64071         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
64072         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
64073         Approximate with mutexes if the system lacks spinlocks, as in
64074         MacOS.
64075         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
64076         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
64077         @@-style.  Check for spinlocks separately.
64078         (gl_PTHREAD_DEFAULTS): New macro.
64079         * modules/pthread: Redo to use a more typical style for in.h files.
64081 2010-09-21  Eric Blake  <eblake@redhat.com>
64083         net_if: enhance tests
64084         * tests/test-net_if.c (main): Move signature checks earlier.
64085         Print failures to stderr.
64086         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
64087         Document the bug that we do not yet fix.
64089 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64091         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
64092         about gnulib, not GSS.
64094 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
64096         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
64097         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
64098         for Emacs.
64099         * build-aux/pmccabe2html: Make Makefile.am example code more
64100         cut-and-paste friendly.
64102 2010-09-21  Simon Josefsson  <simon@josefsson.org>
64104         * tests/test-net_if.c: New file.
64105         * modules/net_if-tests: New file.
64107 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64109         pthread: add pthread_spin_destroy
64110         * lib/pthread.in.h (pthread_spin_destroy): New function.
64112 2010-09-19  Bruno Haible  <bruno@clisp.org>
64114         gnulib-tool: Fix --help output.
64115         * gnulib-tool (func_usage): Fix help message.
64116         Reported by Reuben Thomas <rrt@sc3d.org>.
64118 2010-09-18  Jim Meyering  <meyering@redhat.com>
64120         maint.mk: avoid unexpanded \n in two diagnostics
64121         * top/maint.mk (sc_prohibit_always_true_header_tests):
64122         Don't use a literal \n in a halt=... assignment.  It would not be
64123         expanded, and the two \n bytes would appear in the diagnostic output
64124         rather than the desired newline.  Use halt=$$(printf ... instead.
64125         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
64127 2010-09-18  Bruno Haible  <bruno@clisp.org>
64129         netinet_in: Doc tweak.
64130         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
64131         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64133 2010-09-18  Jim Meyering  <meyering@redhat.com>
64135         init.sh: correct an outdated comment
64136         * tests/init.sh (create_exe_shims_):  s/function/alias/
64138         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
64139         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
64140         a file named "*.exe" is removed between the glob expansion and the
64141         processing of that oddly named file.
64143 2010-09-17  Eric Blake  <eblake@redhat.com>
64145         mirbsd: add some more support
64146         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
64147         in BSD family.
64148         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
64149         devices as OpenBSD.
64150         * m4/host-os.m4 (mirbsd): Add MirBSD.
64152         tests: fix unportable assumption on sys/wait.h
64153         * tests/test-sys_wait.c (main): Relax test.
64154         * tests/test-stdlib.c (main): Likewise.
64156         init.sh: accommodate directory with no .exes
64157         * tests/init.sh: Accomodate directory containing only scripts.
64159         tests: avoid compiler warning
64160         * tests/test-stdlib.c (main): Use the variable.
64162         fdutimens, fdutimensat: update signature, again
64163         * lib/utimens.h (gl_futimens): Delete, and move signature...
64164         (fdutimens): ...here.
64165         (fdutimensat): Rearrange signature.
64166         (lutimensat): Rename variable for clarity.
64167         * lib/fdutimensat.c (fdutimensat): Update signature.
64168         * lib/utimens.c (fdutimens): Likewise.
64169         (gl_futimens): Delete.
64170         (utimens, lutimens): Update callers.
64171         * lib/futimens.c (futimens): Likewise.
64172         * tests/test-fdutimensat.c: Likewise.
64173         * tests/test-utimens.c: Likewise.
64174         * tests/test-futimens.h: Update comment.
64175         * NEWS: Mention this.
64176         Suggested by Paul Eggert.
64178 2010-09-17  Bruno Haible  <bruno@clisp.org>
64180         Take over the maintenance of some older macros from Autoconf.
64181         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
64182         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
64183         GNU Autoconf.
64184         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
64185         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
64187 2010-09-17  Eric Blake  <eblake@redhat.com>
64189         fdutimensat: drop atflag validation
64190         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
64191         with valid fd, to close a race scenario where futimens is
64192         unsupported and FILE was replaced by a symlink.
64193         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
64194         accordingly.
64195         Suggested by Paul Eggert.
64197 2010-09-16  Bruno Haible  <bruno@clisp.org>
64199         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
64200         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
64202 2010-09-16  Bruno Haible  <bruno@clisp.org>
64204         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
64205         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
64206         login_tty exists.
64207         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64209 2010-09-16  Bruno Haible  <bruno@clisp.org>
64211         login_tty: Make the replacement code work on BSD systems.
64212         * lib/login_tty.c: Include <sys/ioctl.h>.
64213         (login_tty): Use ioctl TIOCSCTTY when available.
64214         * modules/login_tty (Depends-on): Add sys_ioctl.
64215         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64217 2010-09-16  Bruno Haible  <bruno@clisp.org>
64219         login_tty: Stricter unit test.
64220         * modules/login_tty-tests (Depends-on): Add tcgetsid.
64221         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
64222         and tcgetsid() after login_tty.
64223         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64225 2010-09-16  Bruno Haible  <bruno@clisp.org>
64227         New module 'tcgetsid'.
64228         * lib/tcgetsid.c: New file.
64229         * m4/tcgetsid.m4: New file.
64230         * modules/tcgetsid: New file.
64231         * modules/termios (Depends-on): Add c++defs, warn-on-use.
64232         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
64233         GNULIB_TCGETSID, HAVE_TCGETSID.
64234         * lib/termios.in.h: Include <sys/types.h>.
64235         (tcgetsid): New declaration.
64236         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
64237         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
64238         * doc/posix-functions/tcgetsid.texi: Mention the new module.
64239         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
64241 2010-09-16  Bruno Haible  <bruno@clisp.org>
64243         Tests for module 'termios'.
64244         * modules/termios-c++-tests: New file.
64245         * modules/termios-tests: New file.
64246         * tests/test-termios-c++.cc: New file.
64247         * tests/test-termios.c: New file.
64249         New module 'termios'.
64250         * modules/termios: New file.
64251         * lib/termios.in.h: New file.
64252         * m4/termios_h.m4: New file.
64253         * doc/posix-headers/termios.texi: Mention the new module.
64255 2010-09-16  Eric Blake  <eblake@redhat.com>
64257         fdutimensat: add an atflag parameter
64258         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64259         * lib/utimens.h (fdutimensat): Update prototype.
64260         * tests/test-fdutimensat.c: Adjust test to match.
64261         * NEWS: Document the change.
64262         Suggested by Paul Eggert.
64264 2010-09-16  Bruno Haible  <bruno@clisp.org>
64266         Fix typos in comments.
64267         * lib/striconveh.h: Fix typo in comment.
64268         * lib/login_tty.c (login_tty): Likewise.
64270 2010-09-15  Bruno Haible  <bruno@clisp.org>
64272         stdlib: clarify MirBSD WEXITSTATUS bug
64273         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64274         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64276 2010-09-15  Eric Blake  <eblake@redhat.com>
64278         stdlib: work around MirBSD WEXITSTATUS bug
64279         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64280         * modules/stdlib (Depends-on): Add sys_wait.
64281         * tests/test-sys_wait.c (main): Enhance test.
64282         * tests/test-stdlib.c (main): Likewise.
64283         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64285         docs: mention MacOS issue with WEXITSTATUS(constant)
64286         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64287         issue.
64288         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64290         strnlen: add tests
64291         * modules/strnlen-tests: New file.
64292         * tests/test-strnlen.c: Likewise.
64294 2010-09-14  Bruno Haible  <bruno@clisp.org>
64296         unistr/base: Avoid link errors when module 'libunistring' is also used.
64297         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64298         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64299         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64300         Declare also when HAVE_LIBUNISTRING is set.
64301         Reported by Pádraig Brady <P@draigbrady.com>.
64303 2010-09-14  Eric Blake  <eblake@redhat.com>
64305         test-rawmemchr: make more robust
64306         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64307         (Depends-on, configure.ac): Add needed prerequisites to use it.
64308         * modules/memchr-tests (Files, Depends-on, configure.ac):
64309         Likewise, to avoid implicit reliance on memchr module prereqs.
64310         * tests/test-memchr.c (main): Ensure proper masking.
64311         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64312         reads.
64314         memchr: detect glibc Alpha bug
64315         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64316         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64317         Alpha.
64318         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64319         * tests/test-memchr.c (main): Enhance test.
64320         Reported by Nelson H. F. Beebe.
64322 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64324         fts, getcwd, glob: audit for dirfd returning -1
64325         * lib/fts.c (opendir): Remove #define; no longer used.
64326         (opendirat): New arg PDIR_FD.  All callers changed.
64327         (fts_build, _opendir2): Use new opendirat to avoid the need for
64328         dirfd, or for checking whether dirfd returns a negative value.
64329         Don't use opendir; always use openat followed by fdopendir.
64330         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64331         it.
64332         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64333         returns -1 here.
64334         * modules/fts (Depends-on): Remove dirfd.
64335         * modules/getcwd (Depends-on): Likewise.
64337 2010-09-13  Eric Blake  <eblake@redhat.com>
64339         float: fix broken MirBSD header
64340         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64341         * doc/posix-headers/float.texi (float.h): Document it.
64343 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64345         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64346         * lib/fts.c (opendirat): New arg extra_flags.
64347         (__opendir2): Use it to avoid following symlinks when opening
64348         a directory, if symlinks are not supposed to be followed.  See
64349         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64351         fdopendir: preserve argument fd before returning
64352         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64353         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64354         (fdopendir): Use them, arranging for FD to be open to the same
64355         directory that it was when it started.  (It might be temporarily
64356         closed while fdopendir is running, so this not thread- or
64357         signal-safe.)  Be careful to do the right thing even when file
64358         descriptors are scarce and dup fails with errno == EMFILE.  See
64359         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64361 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64363         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64364         * NEWS: Document change.
64365         * m4/regex.m4: Disable test for regoff_t size.
64367 2010-09-13  Jim Meyering  <meyering@redhat.com>
64369         fts: don't operate on an invalid file descriptor after failed dup
64370         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64371         negative file descriptor.
64373 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64375         savedir: add streamsavedir, deprecate fdsavedir
64376         * NEWS: Mention deprecation of fdsavedir.
64377         * lib/savedir.c (streamsavedir): New extern function, whose name
64378         ends in "savedir" to be consistent with the others.  This differs
64379         from savedirstream in that it doesn't close its argument.  The
64380         next version of GNU tar will use this instead of fdsavedir, to
64381         avoid some race conditions and conserve file descriptors.
64382         (savedirstream): Reimplement as a wrapper around streamsavedir.
64383         (fdsavedir): Add a comment deprecating this function.  As far as
64384         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64385         * lib/savedir.h (streamsavedir): New decl.
64386         (fdsavedir): Add a comment deprecating this.
64388 2010-09-10  Bruno Haible  <bruno@clisp.org>
64390         langinfo: Fix last commit.
64391         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64392         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64395 2010-09-10  Bruno Haible  <bruno@clisp.org>
64397         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64398         * lib/progreloc.c (O_EXEC): Define fallback.
64400 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64402         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64403         * NEWS: Document recent changes to fcntl-h.
64404         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64405         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64406         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64407         Similarly for O_SEARCH; this last was already true, but not documented.
64408         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64409         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64410         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64411         Likewise.
64412         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64413         is zero, not whether it is defined.
64414         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64415         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64416         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64418 2010-09-10  Bruno Haible  <bruno@clisp.org>
64420         langinfo, nl_langinfo: Fix for IRIX 5.3.
64421         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64422         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64423         HAVE_LANGINFO_YESEXPR.
64424         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64425         HAVE_LANGINFO_YESEXPR.
64426         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64427         HAVE_LANGINFO_T_FMT_AMPM is 0.
64428         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64429         HAVE_LANGINFO_YESEXPR is 0.
64430         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64431         NOEXPR.
64432         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64433         * doc/posix-functions/nl_langinfo.texi: Likewise.
64434         Reported by Eric Blake.
64436 2010-09-10  Bruno Haible  <bruno@clisp.org>
64438         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64439         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64440         on FreeBSD 8.0 and OpenBSD 4.6.
64441         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64442         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64443         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64444         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64445         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64446         ac_includes_default.
64447         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64449 2010-09-09  Eric Blake  <eblake@redhat.com>
64451         strsignal: work around NetBSD bug
64452         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64453         * lib/string.in.h (includes): Likewise.
64454         * doc/posix-functions/strsignal.texi (strsignal): Document the
64455         bug.
64456         Reported by Nelson H. F. Beebe.
64458         gnulib-tool: work with NetBSD /bin/sh
64459         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64460         (func_get_description, func_get_comment, func_get_status)
64461         (func_get_notice, func_get_applicability, func_get_filelist)
64462         (func_get_dependencies, func_get_autoconf_early_snippet)
64463         (func_get_autoconf_snippet, func_get_automake_snippet)
64464         (func_get_include_directive, func_get_link_directive)
64465         (func_get_license, func_get_maintainer, func_import): Avoid
64466         shell syntax errors from parsing syntax extensions.
64468 2010-09-09  Bruno Haible  <bruno@clisp.org>
64470         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64471         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64472         a reliable way to determine whether the 'alias' command works.
64474 2010-09-08  Jim Meyering  <meyering@redhat.com>
64476         init.sh: penalize a set-x-impaired shell; don't disqualify it
64477         * tests/init.sh: Too many shells corrupt application stderr when
64478         you set -x, so we can't afford to disqualify them, since at least
64479         on Irix-6.5, that would disqualify all bourne shells.
64480         Instead, use a two-pass approach.
64481         On the first pass, try to find a shell that meets the stricter
64482         condition that set -x does not corrupt stderr.
64483         If no shell meets the stricter condition, retest each candidate
64484         shell, but without that extra condition.  Finally, when
64485         VERBOSE=yes is requested and set -x might cause trouble, simply
64486         issue a warning and refrain from enabling debug output.
64488 2010-09-08  Eric Blake  <eblake@redhat.com>
64490         unsetenv: fix OpenBSD bug
64491         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64492         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64493         documentation.
64494         Reported by Jim Meyering.
64496         strtod: work around IRIX 6.5 bug
64497         * lib/strtod.c (strtod): Reparse number on shorter string if
64498         exponent parse was invalid.
64499         * tests/test-strtod.c (main): Add check for "0x1p 2".
64500         Reported by Tom G. Christensen.
64502         getopt: optimize previous patch
64503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64504         empty variable.  Speed up awk script.
64505         Reported by Paolo Bonzini.
64507 2010-09-08  Jim Meyering  <meyering@redhat.com>
64509         test.sh: disqualify shells for which set -x corrupts stderr
64510         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64511         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64512         appear in stderr output.  For example, this command:
64513             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64514         prints "P=1" on those two systems:
64516 2010-09-08  Bruno Haible  <bruno@clisp.org>
64518         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64519         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64520         commands, because some shells ignore redirections when there is an
64521         error in the command lookup.
64522         Reported by Eric Blake.
64524 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64526         * lib/regex.h: Fix a mention of `regex_compile' (should be
64527         `re_compile_pattern').
64528         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64529         (re_set_registers): Correct name of parameter in comment.
64531         * doc/regex.texi: Add documentation for missing syntax flags.
64532         Remove commented-out documentation of defunct syntax option
64533         RE_NO_EMPTY_ALTS.
64534         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64535         Add documentation of re_set_registers.
64536         Document trick to re-use a pattern buffer by setting fastmap manually.
64537         Update documentation of struct re_pattern_buffer per public members.
64538         Uncomment documentation of equivalence class operators and
64539         collating symbol operators, since they are now implemented,
64540         Explain leftmost-longest matching in relation to alternatives.
64541         Tidy documentation of substring matching.
64542         Remove POSIX documentation, which is done better in
64543         glibc, and refer the reader there. Keep BSD API documentation, as
64544         that is not readily available elsewhere.
64546 2010-09-07  Eric Blake  <eblake@redhat.com>
64548         getopt: handle POSIXLY_CORRECT set but not exported
64549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64550         export state of POSIXLY_CORRECT, due to bash set -o posix.
64551         Reported by Dustin J. Mitchell.
64553 2010-09-05  Bruno Haible  <bruno@clisp.org>
64555         gnulib-tool: Highlight the changed options.
64556         * gnulib-tool (func_usage): Display the --import, --add-import,
64557         --remove-import explanations in bold font.
64559 2010-09-06  Karl Berry  <karl@gnu.org>
64561         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64563 2010-09-05  Bruno Haible  <bruno@clisp.org>
64565         uniwidth/width: Update comment.
64566         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64567         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64569 2010-09-05  Bruno Haible  <bruno@clisp.org>
64571         isinf, isnan: Relax license.
64572         * modules/isinf (License): Change from GPL to LGPL, with consent from
64573         Ben Pfaff.
64574         * modules/isnan (License): Likewise.
64575         Requested by Ludovic Courtès.
64577 2010-09-04  Bruno Haible  <bruno@clisp.org>
64579         gnulib-tool: Help migration from --import to --add-import or --update.
64580         * gnulib-tool: Emit a verbose error message when --import is used
64581         without any module name.
64583 2010-09-04  Bruno Haible  <bruno@clisp.org>
64585         Update doc about gnulib-tool.
64586         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64587         'gnulib-tool --update' in more detail.
64588         Reported by Eric Blake.
64590 2010-09-04  Bruno Haible  <bruno@clisp.org>
64592         gnulib-tool: Change --import. New options --add/remove-import.
64593         * gnulib-tool: New options --add-import, --remove-import.
64594         (func_usage): Document them.
64595         (have_associative): Define always.
64596         (func_import): In import mode, don't merge the specified settings with
64597         the cached settings. Implement remove-import mode.
64598         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64599         Explain when to use them versus --import.
64600         (Simple update): Use --add-import instead of --import.
64601         * NEWS: Mention the change.
64603 2010-09-04  Bruno Haible  <bruno@clisp.org>
64605         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64606         separate gnulib.mk.
64608 2010-09-04  Bruno Haible  <bruno@clisp.org>
64610         gnulib-tool: Don't talk about CVS any more.
64611         * gnulib-tool (func_usage, func_import): Write "version control"
64612         instead of CVS.
64614 2010-09-04  Jim Meyering  <meyering@redhat.com>
64616         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64617         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64618         false positives (whose names may be ill-chosen) when searching
64619         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64620         would cause a false-positive.
64622         avoid coreutils "make distcheck" failure
64623         Coreutils tests with an absolute build directory name that contains
64624         a space.  Not quoting this directory name caused a failure.
64625         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64626         * tests/test-vc-list-files-cvs.sh: Likewise.
64628 2010-09-04  Bruno Haible  <bruno@clisp.org>
64630         gnulib-tool: Avoid error when run in a package without Makefile.am.
64631         * gnulib-tool: When collecting the m4dirs in a package that does not
64632         have a Makefile.am, eliminate those directories that contain no
64633         gnulib-cache.m4. Fix expression that counts these directories.
64635 2010-09-04  Bruno Haible  <bruno@clisp.org>
64637         update-copyright test: Improve output when perl is missing or too old.
64638         * tests/test-update-copyright.sh: Move test of Perl version down after
64639         the test whether Perl exists. Provide an explanation relating Perl's
64640         error message to Automake's SKIP: message.
64642 2010-09-04  Bruno Haible  <bruno@clisp.org>
64644         Don't augment PATH in TESTS_ENVIRONMENT.
64645         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64646         set abs_aux_dir instead of augmenting PATH.
64647         * modules/vc-list-files-tests (Makefile.am): Likewise.
64648         * tests/test-update-copyright.sh: Augment PATH here.
64649         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64650         path_prepend_.
64651         * tests/test-vc-list-files-git.sh: Likewise.
64653 2010-09-04  Jim Meyering  <meyering@redhat.com>
64655         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64656         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64658 2010-09-04  Bruno Haible  <bruno@clisp.org>
64660         strdup: Fix compilation error in C++ mode.
64661         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64662         the macro.
64664 2010-09-04  Bruno Haible  <bruno@clisp.org>
64666         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64667         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64668         macro into a function.
64669         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64671 2010-09-04  Bruno Haible  <bruno@clisp.org>
64673         Set PATH_SEPARATOR the same way autoconf does.
64674         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64675         the value of PATH_SEPARATOR the same way autoconf-generated configure
64676         scripts do.
64677         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64678         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64680 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64682         Set PATH_SEPARATOR the same way autoconf does.
64683         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64684         the same way autoconf-generated configure scripts do.
64685         * posix-modules: Likewise.
64687 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64689         hash: fix safe_hasher const typo
64690         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64691         const; otherwise, there is a type error later.
64693 2010-09-02  Jim Meyering  <meyering@redhat.com>
64695         test-update-copyright.sh: require perl 5.8.0
64696         * tests/test-update-copyright.sh: Require 5.8.0,
64697         which Tom G. Christensen has confirmed is adequate,
64698         while 5.6.1 is not.
64700 2010-09-02  Eric Blake  <eblake@redhat.com>
64702         tests: init.sh improvements for re-exec'ing with zsh
64703         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64704         -vx through shell re-exec.
64705         Reported by Tom G. Christensen.
64707         wctype: fix typo in previous commit
64708         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64709         Reported by Ludovic Courtès.
64711 2010-09-02  Jim Meyering  <meyering@redhat.com>
64713         test-update-copyright.sh: skip test if Perl is too old
64714         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64715         Reported by Tom G. Christensen.
64717 2010-09-02  Bruno Haible  <bruno@clisp.org>
64719         wctype: Avoid compilation error on IRIX 6.5.30.
64720         * lib/wctype.in.h (iswblank): Declare with a replacement if
64721         REPLACE_ISWBLANK is set.
64722         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64723         declared. Set REPLACE_ISWBLANK.
64724         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64725         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64726         * doc/posix-headers/wctype.texi: Likewise.
64727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64729 2010-09-01  Bruno Haible  <bruno@clisp.org>
64731         New module 'socketlib'.
64732         * modules/socketlib: New file.
64733         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64734         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64735         * modules/sockets (Depends-on): Add socketlib.
64736         Suggested by Sam Steingold <sds@gnu.org>.
64738 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64740         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64742         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64743         when one needs search access to a directory but not read access.
64744         On systems where it is available, it works in some cases where
64745         O_RDONLY does not, namely on directories that are searchable but
64746         not readable, and which need only to be searchable.  If O_SEARCH
64747         is not available, fall back to the traditional method of using
64748         O_RDONLY.
64750         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64751         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64752         when opening a directory that needs only to be searchable.
64753         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64754         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64755         * lib/openat-proc.c (openat_proc_name): Likewise.
64756         * lib/openat.c (openat_needs_fchdir): Likewise.
64757         * lib/save-cwd.c (save_cwd): Likewise.
64758         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64760 2010-08-28  Bruno Haible  <bruno@clisp.org>
64762         New module 'host-cpu-c-abi'.
64763         * modules/host-cpu-c-abi: New file.
64764         * m4/host-cpu-c-abi.m4: New file, based on part of
64765         clisp/src/m4/general.m4.
64766         Requested by Sam Steingold <sds@gnu.org>.
64768 2010-08-31  Eric Blake  <eblake@redhat.com>
64769         and Jim Meyering  <meyering@redhat.com>
64771         hash: factor, and guard against misbehaving hasher function
64772         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64773         of table->hasher's return value.  Also protect against a hash value
64774         so large that adding it to table->bucket results in a NULL pointer.
64775         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64776         Use it in place of open-coded check-and-abort.
64778 2010-08-30  Bruno Haible  <bruno@clisp.org>
64780         hash: silence spurious clang warning
64781         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64782         Reported by Eric Blake.
64784 2010-08-30  Eric Blake  <eblake@redhat.com>
64786         strstr, memmem, strcasestr: avoid leaked shell message
64787         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64788         FreeBSD.
64789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64790         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64792         tests: silence clang warning
64793         * tests/test-malloca.c (do_allocation): Avoid dead store.
64795 2010-08-29  Bruno Haible  <bruno@clisp.org>
64797         gettext: Fix recent mistake.
64798         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64800 2010-08-29  Bruno Haible  <bruno@clisp.org>
64802         selinux-h: Offer a --without-selinux option.
64803         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64804         --without-selinux was specified, skip all tests and define
64805         HAVE_SELINUX_SELINUX_H to 0.
64806         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64807         set LIB_SELINUX to empty.
64808         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64809         gl_LIBSELINUX. If --without-selinux was specified, replace
64810         selinux/context.h.
64811         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64813 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64814             Bruno Haible  <bruno@clisp.org>
64816         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64817         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64818         of HAVE_REALLOC.
64819         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64820         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64821         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64822         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64824 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64825             Bruno Haible  <bruno@clisp.org>
64827         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64828         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64829         HAVE_CALLOC.
64830         * lib/xmalloc.c: Update accordingly.
64831         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64832         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64833         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64835 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64836             Bruno Haible  <bruno@clisp.org>
64838         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64839         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64840         HAVE_MALLOC.
64841         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64842         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64843         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64845 2010-08-29  Bruno Haible  <bruno@clisp.org>
64847         Update modules list.
64848         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64849         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64850         (String handling <string.h>): Add astrxfrm.
64851         (File system functions): Add readlinkat.
64853 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64855         Tests for module 'realloc-gnu'.
64856         * modules/realloc-gnu-tests: New file.
64857         * tests/test-realloc-gnu.c: New file.
64859         Tests for module 'calloc-gnu'.
64860         * modules/calloc-gnu-tests: New file.
64861         * tests/test-calloc-gnu.c: New file.
64863         Tests for module 'malloc-gnu'.
64864         * modules/malloc-gnu-tests: New file.
64865         * tests/test-malloc-gnu.c: New file.
64867 2010-08-28  Bruno Haible  <bruno@clisp.org>
64869         Rename module 'realloc' -> 'realloc-gnu'.
64870         * modules/realloc-gnu: New file, copied from modules/realloc.
64871         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64872         obsolete.
64873         * modules/mgetgroups (Depends-on): Update.
64874         * doc/posix-functions/realloc.texi: Update.
64875         * NEWS: Mention the change.
64877         Rename module 'calloc' -> 'calloc-gnu'.
64878         * modules/calloc-gnu: New file, copied from modules/calloc.
64879         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64880         obsolete.
64881         * doc/posix-functions/calloc.texi: Update.
64882         * NEWS: Mention the change.
64884         Rename module 'malloc' -> 'malloc-gnu'.
64885         * modules/malloc-gnu: New file, copied from modules/malloc.
64886         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64887         obsolete.
64888         * modules/argp (Depends-on): Update.
64889         * modules/regex (Depends-on): Update.
64890         * doc/posix-functions/malloc.texi: Update.
64891         * NEWS: Mention the change.
64893 2010-08-28  Eric Blake  <eblake@redhat.com>
64895         pread, pwrite: add missing dependency
64896         * modules/pread (Depends-on): Add extensions.
64897         * modules/pwrite (Depends-on): Likewise.
64899 2010-08-28  Bruno Haible  <bruno@clisp.org>
64901         unistr/u*-strchr: Fix tests dependencies.
64902         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64903         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64904         Reported by Ian Beckwith <ianb@erislabs.net>.
64906 2010-08-28  Bruno Haible  <bruno@clisp.org>
64908         read-file: Don't occupy too much unused memory.
64909         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64911 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64912             Eric Blake  <eblake@redhat.com>
64913             Bruno Haible  <bruno@clisp.org>
64915         read-file: Avoid memory reallocations with regular files.
64916         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64917         (fread_file): With regular files, use the remaining length as the
64918         initial buffer size.  Check against overflow.
64919         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64920         sys_stat.
64922 2010-08-28  Bruno Haible  <bruno@clisp.org>
64924         ftello: Relax license.
64925         * modules/ftello (License): Relax to LGPLv2+.
64926         Reported by Eric Blake.
64928 2010-08-28  Bruno Haible  <bruno@clisp.org>
64930         Avoid relocwrapper link errors due to gnulib replacement functions.
64931         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64932         function.
64933         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64935 2010-08-28  Bruno Haible  <bruno@clisp.org>
64937         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64938         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64939         defined.
64940         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64941         Suggested by Eric Blake.
64943 2010-08-28  Bruno Haible  <bruno@clisp.org>
64945         sys_socket, netdb: Ensure socklen_t gets defined.
64946         * modules/sys_socket (Depends-on): Add socklen.
64947         * modules/netdb (Depends-on): Likewise.
64948         * modules/getaddrinfo (Depends-on): Remove socklen.
64949         * modules/getsockopt (Depends-on): Likewise.
64950         * modules/setsockopt (Depends-on): Likewise.
64951         * tests/test-sys_socket.c: Check that socklen_t is defined.
64952         * tests/test-netdb.c: Likewise.
64953         * m4/socklen.m4: Update comments.
64954         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64956 2010-08-27  Eric Blake  <eblake@redhat.com>
64958         login_tty: add missing dependency
64959         * modules/login_tty (Depends-on): Add pty.
64961 2010-08-26  Eric Blake  <eblake@redhat.com>
64963         lib-symbol-versions: fix m4 quoting
64964         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64965         format for AC_LINK_IFELSE.
64967         glob: fix compile test
64968         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64970         btowc: fix missing file
64971         * modules/btowc (Files): Also ship locale-fr.m4.
64973         lseek: fix link test
64974         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64975         AC_LINK_IFELSE.
64977         include_next: silence autoconf 2.68 warning
64978         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64979         AC_COMPILE_IFELSE as special.
64980         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64981         autoconf < 2.68.
64983         acl: fix compilation test
64984         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64985         AC_COMPILE_IFELSE.
64987 2010-08-26  Bruno Haible  <bruno@clisp.org>
64989         Modernize AC_TRY_RUN invocations.
64990         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64991         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64992         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64993         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64994         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64995         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64996         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64997         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64998         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64999         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65000         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
65001         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65002         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
65003         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65004         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
65005         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
65006         gl_MBRLEN_NUL_RETVAL): Likewise.
65007         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
65008         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
65009         Likewise.
65010         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
65011         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
65012         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
65013         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
65014         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
65015         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
65016         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
65017         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
65018         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
65019         Likewise.
65020         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
65021         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
65022         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65023         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65024         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65025         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
65026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
65027         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
65028         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
65029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65031 2010-08-26  Bruno Haible  <bruno@clisp.org>
65033         Modernize AC_TRY_LINK invocations.
65034         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
65035         AC_TRY_LINK.
65036         * m4/argp.m4 (gl_ARGP): Likewise.
65037         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
65038         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
65039         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65040         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65041         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65042         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
65043         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
65044         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
65045         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65046         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
65047         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65048         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
65049         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
65050         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
65051         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65052         * m4/hostent.m4 (gl_HOSTENT): Likewise.
65053         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
65054         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
65055         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
65056         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
65057         Likewise.
65058         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
65059         Likewise.
65060         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
65061         Likewise.
65062         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
65063         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
65064         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
65065         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
65066         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
65067         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65068         * m4/servent.m4 (gl_SERVENT): Likewise.
65069         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
65070         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
65071         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
65072         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
65073         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
65074         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
65075         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65076         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65077         * modules/tsearch-tests (configure.ac): Likewise.
65079 2010-08-26  Bruno Haible  <bruno@clisp.org>
65081         Modernize AC_TRY_COMPILE invocations.
65082         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
65083         AC_TRY_COMPILE.
65084         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
65085         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
65086         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
65087         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65088         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
65089         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65090         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65091         * m4/lock.m4 (gl_LOCK): Likewise.
65092         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
65093         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65094         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
65095         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
65096         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
65097         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
65098         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
65099         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
65100         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
65101         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
65102         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
65103         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65104         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
65105         extraneous semicolon.
65107 2010-08-26  Jim Meyering  <meyering@redhat.com>
65109         stat-time: relax license LGPL
65110         * modules/stat-time (License): Change from GPL to LGPL,
65111         with consent from all contributors, for use in libguile.
65112         Requested by Ludovic Courtès.
65114 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
65116         poll: return immediately on POLLHUP.
65117         * lib/poll.c (poll): Always set timeout before wait_timeout is
65118         computed.
65120 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65122         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
65123         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
65124         rmdir ("dir/.//"), unlinkat.
65126 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65128         stdbool: avoid spurious failure with modern xlc
65129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65131 2010-08-24  Bruno Haible  <bruno@clisp.org>
65133         getloadavg: simplify code
65134         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
65135         gl_have_func. Update comments.
65137 2010-08-24  Eric Blake  <eblake@redhat.com>
65139         getloadavg: don't define SVR4 on cygwin
65140         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
65141         only define SVR4 when -lkvm is required.
65142         Reported by Yaakov Selkowitz.
65144 2010-08-24  Bruno Haible  <bruno@clisp.org>
65146         priv-set: fix comment
65147         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
65149 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65151         priv-set: fix comments
65152         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
65153         to match code, as suggested by David Bartley in:
65154         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
65156 2010-08-23  Eric Blake  <eblake@redhat.com>
65158         stdbool: avoid rejecting clang
65159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
65160         * tests/test-stdbool.c: Enable more tests if using the system
65161         <stdbool.h> instead of the gnulib replacement.
65162         (main): Move xlc bug test to a runtime test for all compilers.
65163         Reported by Anders Kaseorg.
65165         argz: fix shell quoting issue
65166         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
65167         Reported by Charles Wilson.
65169 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
65170             Erik Faye-Lund <kusmabite@gmail.com>
65172         poll, select: handle ERROR_BROKEN_PIPE.
65173         * lib/poll.c (win32_compute_revents): Return POLLHUP when
65174         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65175         * lib/select.c (win32_compute_revents): Do not mark a pipe
65176         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
65178 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
65180         fts: allow compilation with C++
65181         * lib/fts_.h: Specify extern "C" linkage with C++.
65183 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65185         Fix gnulib-tool sed script de-commentation for AIX sed.
65186         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
65187         sed.
65189 2010-08-17  Eric Blake  <eblake@redhat.com>
65191         test-stddef: test for (some) offsetof bugs
65192         * tests/test-stddef.c: Enhance test to ensure correct type of
65193         offsetof.
65194         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
65195         that we are not fixing at this time.
65197 2010-08-15  Bruno Haible  <bruno@clisp.org>
65199         stpncpy: Allow stpncpy to be defined as a macro.
65200         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
65201         if it's already correctly declared.
65202         * lib/string.in.h (stpncpy): Undefine before redefining.
65203         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
65205 2010-08-14  Bruno Haible  <bruno@clisp.org>
65207         Rename module 'memxfrm' to 'amemxfrm'.
65208         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
65209         (amemxfrm): Renamed from memxfrm.
65210         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
65211         (amemxfrm): Renamed from memxfrm.
65212         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
65213         * NEWS: Mention the change.
65214         * MODULES.html.sh (String handling <string.h>): Update.
65215         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
65216         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
65217         * lib/unicase/u16-casexfrm.c: Likewise.
65218         * lib/unicase/u32-casexfrm.c: Likewise.
65219         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
65220         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
65221         * lib/uninorm/u16-normxfrm.c: Likewise.
65222         * lib/uninorm/u32-normxfrm.c: Likewise.
65223         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
65224         memxfrm.
65225         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
65226         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
65227         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
65228         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
65229         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
65230         Suggested by Paul Eggert.
65232 2010-08-14  Bruno Haible  <bruno@clisp.org>
65234         Tests for module 'astrxfrm'.
65235         * modules/astrxfrm-tests: New file.
65236         * tests/test-astrxfrm.c: New file.
65238         New module 'astrxfrm'.
65239         * lib/astrxfrm.h: New file.
65240         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
65241         * modules/astrxfrm: New file.
65243 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
65245         regex: Tweak doc.
65246         * doc/regex.texi (Overview): Don't mention regex.c.
65247         (GNU Regular Expression Compiling): Likewise.
65248         (Match-end-of-line Operator): Mention 'not_eol'.
65250 2010-08-14  Brian Gough  <bjg@gnu.org>
65251             Bruno Haible  <bruno@clisp.org>
65253         git-merge-changelog: add doc relating to use with bzr and hg.
65254         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65256 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65258         pthread: fix pthread.h creation for srcdir != builddir
65259         * modules/pthread (Makefile.am): Fix the rule to work also in a
65260         non-srcdir build.
65262 2010-08-13  Karl Berry  <karl@gnu.org>
65264         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65265         * doc/posix-*/*: force line break before @url of POSIX
65266         specifications.
65267         Suggested by Werner Lemberg.
65269 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65271         strtod: fix const diagnostic
65272         * lib/strtod.c (strtod): Don't assign const char * to char *,
65273         as this elicits a warning from GCC when warnings are enabled.
65275 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65276         and Eric Blake  <eblake@redhat.com>
65278         copy-acl: ignore ENOTSUP on HP-UX
65279         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65280         so that it is available for HP-UX.
65281         * lib/copy-acl.c (qcopy_acl): Use it.
65282         Reported by Patrick M. Callahan.
65284 2010-08-10  Eric Blake  <eblake@redhat.com>
65286         open, chown: relax license
65287         * modules/open (License): Change to LGPLv2+, with consent by all
65288         authors, for use in augeas.
65289         * modules/chown (License): Likewise.
65290         * modules/lchown (Likewise): Likewise.
65291         Requested by Adam Stokes.
65293 2010-08-09  Karl Berry  <karl@gnu.org>
65295         * build-aux/ar-lib: new file, import from Automake.
65296         * config/srclist.txt: autocheck for updates.
65298 2010-08-09  Eric Blake  <eblake@redhat.com>
65300         readlinkat: adjust client modules
65301         * modules/areadlinkat (Depends-on): Use readlinkat, not
65302         symlinkat.
65303         * modules/areadlinkat-with-size (Depends-on): Likewise.
65305         mknod: be more vocal about danger of running tests as root
65306         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65307         root, since that is just asking for problems.
65308         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65310         readlinkat: split into its own module
65311         * modules/symlinkat: Split readlinkat...
65312         * modules/readlinkat: ...into separate module.
65313         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65314         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65315         * lib/symlinkat.c (readlinkat): Move...
65316         * lib/readlinkat.c: ...into new file.
65317         * modules/symlinkat-tests: Split readlinkat test...
65318         * modules/readlinkat-tests: ...into separate module.
65319         * tests/test-symlinkat.c: Split...
65320         * tests/test-readlinkat.c: ...into new file.
65321         * NEWS: Document the split.
65322         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65323         * lib/unistd.in.h (readlinkat): Likewise.
65324         Suggested by Bruno Haible.
65326 2010-08-08  Bruno Haible  <bruno@clisp.org>
65328         memxfrm: Speed up.
65329         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65330         that usually only one call to strxfrm is necessary for each string
65331         part.
65332         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65334 2010-08-07  Karl Berry  <karl@gnu.org>
65336         * doc/posix-headers/limits.texi,
65337         * doc/posix-functions/malloc.texi,
65338         * doc/posix-functions/strsignal.texi: missing @item.
65339         * doc/ld-version-script.texi: spurious leading i.
65340         * doc/regex.texi (Interval Operators): no commas inside @var.
65342 2010-08-01  Bruno Haible  <bruno@clisp.org>
65344         Integrate the regex documentation.
65345         * doc/gnulib.texi: Define 'cn' index.
65346         (Regular expressions): New a chapter that includes regex.texi and
65347         regexprops-generic.texi.
65348         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65349         syntax.
65351         Whitespace cleanup.
65352         * doc/regex.texi: Remove trailing spaces.
65354         Add regex documentation.
65355         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65356         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65357         Written by Kathy A. Hargreaves and Karl Berry.
65359 2010-08-01  Bruno Haible  <bruno@clisp.org>
65361         link: Update documentation.
65362         * doc/posix-functions/link.texi: Update regarding Solaris.
65364 2010-07-31  Bruno Haible  <bruno@clisp.org>
65366         Update modules list.
65367         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65368         (String handling <string.h>): Add memcmp2, memxfrm.
65369         (Container data structures): Add xlist, xsublist, xoset.
65370         (Core language properties): Add alignof, unused-parameter.
65371         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65372         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65373         (Unibyte characters <ctype.h>): New section.
65374         (String handling <string.h>): New section.
65375         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65376         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65377         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65378         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65379         tan, tanh, tanl, y0, y1, yn.
65380         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65381         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65382         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65383         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65384         unlockpt, vdprintf, vdprintf-posix.
65385         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65386         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65387         xconcat-filename.
65388         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65389         getdtablesize, pipe2, pipe2-safer.
65390         (Security): New section.
65391         (Networking functions): Add accept4.
65392         (Signal handling): Add sigpipe.
65393         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65394         mbmemcasecoll.
65395         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65396         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65397         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65398         pipe-filter-ii.
65399         (Misc): Add argp-version-etc, login_tty, parse-duration.
65401 2010-07-31  Bruno Haible  <bruno@clisp.org>
65403         Improve doc in MODULES.html.
65404         * modules/linkat (Description): Add the word "function".
65405         * modules/mkfifo (Description): Likewise.
65406         * modules/mknod (Description): Likewise.
65407         * modules/remove (Description): Likewise.
65408         * modules/renameat (Description): Likewise.
65409         * modules/stat (Description): Likewise.
65410         * modules/symlink (Description): Likewise.
65411         * modules/unlink (Description): Likewise.
65413 2010-07-31  Bruno Haible  <bruno@clisp.org>
65415         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65416         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65417         option --enable/disable-c++ instead of --enable/disable-cxx.
65418         * NEWS: Mention the change.
65420 2010-07-31  Bruno Haible  <bruno@clisp.org>
65422         readlink, areadlink: Relax test a bit.
65423         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65424         alternative to ENOTDIR.
65425         * tests/test-areadlink.h (test_areadlink): Likewise.
65426         Reported by Rainer Tammer.
65428 2010-07-31  Bruno Haible  <bruno@clisp.org>
65430         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65431         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65432         character, perform the search using U_STRCHR.
65433         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65434         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65435         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65436         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65437         Suggested by Paolo Bonzini.
65439 2010-07-31  Bruno Haible  <bruno@clisp.org>
65441         unistr/u*-strstr: Fix dependencies.
65442         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65443         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65444         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65446 2010-07-31  Bruno Haible  <bruno@clisp.org>
65448         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65449         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65450         the beginning of the loop.
65451         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65452         cases in 'switch' statement.
65454         unistr/u8-strchr: Fix several bugs.
65455         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65456         the string. When not found, return NULL, not a pointer near the end.
65458         More tests for unistr/u8-strchr.
65459         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65460         that the function does not read past the first occurrence of the byte
65461         being searched.
65462         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65463         * tests/unistr/test-u16-strchr.c (main): New function.
65464         * tests/unistr/test-u32-strchr.c (main): New function.
65466 2010-07-31  Bruno Haible  <bruno@clisp.org>
65468         posix-modules: Ignore backup files of documentation files.
65469         * posix-modules: grep only through files named *.texi.
65471 2010-07-31  Bruno Haible  <bruno@clisp.org>
65473         symlinkat: Fix documentation.
65474         * doc/posix-functions/readlinkat.texi: Fix module name.
65476 2010-07-31  Bruno Haible  <bruno@clisp.org>
65478         fchownat: Replace also when chown has the trailing slash bug.
65479         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65480         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65481         introduced on 2010-04-10.
65482         Reported by Rainer Tammer.
65484 2010-07-31  Bruno Haible  <bruno@clisp.org>
65486         linkat: Work around AIX 7.1 bug.
65487         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65488         whether linkat handles trailing slash correctly. If not, replace linkat
65489         and define LINKAT_TRAILING_SLASH_BUG.
65490         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65491         check whether (fd1,file1) points to a directory if file1 or file2 ends
65492         in a slash. Code taken from lib/link.c.
65493         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65494         Reported by Rainer Tammer.
65496 2010-07-31  Bruno Haible  <bruno@clisp.org>
65498         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65499         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65500         This disables an xlc optimization that was causing wrong test results.
65501         Reported by Rainer Tammer.
65503 2010-07-31  Bruno Haible  <bruno@clisp.org>
65505         iconv: Work around AIX 6.1..7.1 bug.
65506         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65507         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65508         cross-compiling, guess no on all versions of AIX.
65509         Reported by Rainer Tammer.
65511 2010-07-31  Bruno Haible  <bruno@clisp.org>
65513         readlink: Relax test a bit.
65514         * tests/test-readlink.h (test_readlink): Allow different errno value
65515         when readlink is called with a file name that ends in / and refers to
65516         a file.
65517         Suggested by Eric Blake.
65518         Reported by Rainer Tammer.
65520 2010-07-31  Bruno Haible  <bruno@clisp.org>
65522         copysign: Does not require -lm on glibc systems.
65523         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65524         gl_COMMON_DOUBLE_MATHFUNC.
65525         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65527 2010-07-31  Bruno Haible  <bruno@clisp.org>
65529         duplocale: Work around AIX 7.1 bug.
65530         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65531         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65532         * lib/duplocale.c (rpl_duplocale): Update comment.
65533         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65534         Reported by Rainer Tammer.
65536 2010-07-30  Bruno Haible  <bruno@clisp.org>
65538         dirfd: Avoid link error on AIX 7.1.
65539         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65540         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65541         exist, set REPLACE_DIRFD.
65542         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65543         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65544         * doc/posix-functions/dirfd.texi: Update.
65545         Reported by Rainer Tammer.
65547 2010-07-30  Eric Blake  <eblake@redhat.com>
65549         strtod: next round of AIX fixes
65550         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65551         exponent.
65552         * tests/test-strtod.c (main): Enhance tests.
65553         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65554         Reported by Rainer Tammer.
65556         futimens: fix configure check
65557         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65558         Reported by Bruno Haible.
65560 2010-07-30  Bruno Haible  <bruno@clisp.org>
65562         getline: Update regarding AIX.
65563         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65564         Reported by Rainer Tammer.
65566 2010-07-30  Bruno Haible  <bruno@clisp.org>
65568         wcwidth: Drop replacement on AIX 7.
65569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65570         AIX 7.
65571         Reported by Rainer Tammer.
65573 2010-07-30  Bruno Haible  <bruno@clisp.org>
65575         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65576         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65577         a 'char *'.
65578         Reported by Rainer Tammer.
65580 2010-07-30  Bruno Haible  <bruno@clisp.org>
65582         unlink: Update regarding AIX.
65583         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65584         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65585         Reported by Rainer Tammer.
65587 2010-07-30  Bruno Haible  <bruno@clisp.org>
65589         symlink: Update regarding AIX.
65590         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65591         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65592         Reported by Rainer Tammer.
65594 2010-07-30  Bruno Haible  <bruno@clisp.org>
65596         strndup: Update regarding AIX.
65597         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65598         AIX 7.
65599         Reported by Rainer Tammer.
65601 2010-07-30  Bruno Haible  <bruno@clisp.org>
65603         stat: Update regarding AIX.
65604         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65605         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65606         Reported by Rainer Tammer.
65608 2010-07-30  Bruno Haible  <bruno@clisp.org>
65610         truncl: Fix autoconf test.
65611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65612         whether truncl works.
65613         Reported by Rainer Tammer.
65615 2010-07-30  Bruno Haible  <bruno@clisp.org>
65617         round: Update regarding AIX.
65618         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65619         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65620         Reported by Rainer Tammer.
65622 2010-07-30  Bruno Haible  <bruno@clisp.org>
65624         rename: Update regarding AIX.
65625         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65626         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65627         Reported by Rainer Tammer.
65629 2010-07-30  Bruno Haible  <bruno@clisp.org>
65631         printf.m4: Update regarding AIX.
65632         * m4/printf.m4: Update comments regarding AIX.
65633         Reported by Rainer Tammer.
65635 2010-07-30  Bruno Haible  <bruno@clisp.org>
65637         iconv: Update regarding AIX.
65638         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65639         AIX 7.
65640         Reported by Rainer Tammer.
65642 2010-07-30  Bruno Haible  <bruno@clisp.org>
65644         getopt: Update regarding AIX.
65645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65646         no on AIX.
65647         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65648         Reported by Rainer Tammer.
65650 2010-07-30  Bruno Haible  <bruno@clisp.org>
65652         ldexpl; Update regarding AIX.
65653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_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         frexpl: Update regarding AIX.
65660         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65661         on AIX 7.
65662         Reported by Rainer Tammer.
65664 2010-07-30  Bruno Haible  <bruno@clisp.org>
65666         open, fopen: Update regarding AIX.
65667         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65668         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65669         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65670         * doc/posix-functions/fopen.texi: Likewise.
65671         Reported by Rainer Tammer.
65673 2010-07-30  Bruno Haible  <bruno@clisp.org>
65675         chown: Update doc regarding AIX.
65676         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65677         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65678         Reported by Rainer Tammer.
65680 2010-07-30  Eric Blake  <eblake@redhat.com>
65682         strtod: fix bug in replacement function on AIX
65683         * lib/strtod.c (strtod): Special case broken "0x" parse in
65684         underlying strtod.
65685         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65686         * doc/posix-functions/strtod.texi (strtod): Likewise.
65687         Reported by Rainer Tammer.
65689 2010-07-30  Bruno Haible  <bruno@clisp.org>
65691         mbrlen: Fix cross-compilation guess for AIX.
65692         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65693         guess. Leftover from 2008-12-22.
65695 2010-07-30  Bruno Haible  <bruno@clisp.org>
65697         mbrtowc: Fix cross-compilation guess for AIX.
65698         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65699         guess. Leftover from 2008-12-21.
65701 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65703         init.sh: work around trap limitation of some shells
65704         * tests/init.sh (setup_): Move exit trap outside of shell function.
65706 2010-07-29  Eric Blake  <eblake@redhat.com>
65708         strtod: aid debugging
65709         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65710         understanding why strtod is rejected.
65712 2010-07-28  Bruno Haible  <bruno@clisp.org>
65714         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65715         * lib/unistr/u8-chr.c: Include <string.h>.
65716         * tests/unistr/test-u8-chr.c: Likewise.
65717         * tests/unistr/test-u16-chr.c: Likewise.
65718         * tests/unistr/test-u32-chr.c: Likewise.
65719         * tests/unistr/test-u8-strchr.c: Likewise.
65720         * tests/unistr/test-u16-strchr.c: Likewise.
65721         * tests/unistr/test-u32-strchr.c: Likewise.
65722         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65723         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65724         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65725         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65727 2010-07-28  Bruno Haible  <bruno@clisp.org>
65729         Use spaces for indentation, not tabs.
65730         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65732 2010-07-27  Bruno Haible  <bruno@clisp.org>
65734         mbspcasecmp: Fix function specification.
65735         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65736         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65737         Reported by Eric Blake <eblake@redhat.com>.
65739 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65741         timespec: use cast and not conditional, as truncation isn't possible
65742         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65743         instead of a conditional.  Comment about the situation in more detail.
65744         This undoes most of the 2009-10-29 patch.
65746 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65748         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65749         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65750         * lib/unistr/u8-strchr.c: Likewise.
65751         * modules/unistr/u8-chr: Depend on memchr.
65753         unistr/u*-strchr: add tests
65754         * modules/unistr/u8-strchr-tests: New file.
65755         * modules/unistr/u16-strchr-tests: New file.
65756         * modules/unistr/u32-strchr-tests: New file.
65757         * tests/unistr/test-strchr.h: New file.
65758         * tests/unistr/test-u8-strchr.c: New file.
65759         * tests/unistr/test-u16-strchr.c: New file.
65760         * tests/unistr/test-u32-strchr.c: New file.
65762         unistr/u*-chr: test multibyte sequences more
65763         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65764         test vector.
65765         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65766         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65767         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65769         unistr/u*-chr: test multibyte sequences
65770         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65772         unistr/u*-chr: prepare for multibyte tests
65773         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65774         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65775         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65776         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65777         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65778         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65780 2010-07-18  Bruno Haible  <bruno@clisp.org>
65782         unistr/u8-strchr: Optimize non-ASCII argument case.
65783         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65784         because the first byte often matches anyway.
65785         Reported by Pádraig Brady <P@draigbrady.com>.
65787 2010-07-15  Karl Berry  <karl@gnu.org>
65789         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65791 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65793         getcwd: on Solaris, work better if ancestors are inaccessible
65794         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65795         buffer and size, try again with a large buffer.  This works better
65796         on Solaris, since its getcwd succeeds even if the path to the root
65797         is inaccessible, and this is helpful in common cases such as .zfs
65798         hidden directories.  Problem reported by J Chapman Flack in
65799         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65800         Use system getcwd if it's declared, not merely if it's partly
65801         working; use the partly-working test only to avoid needless effort
65802         if the system getcwd fails.
65803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65804         comment that was already obsolete and is now even more obsolete.
65805         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65806         now might call strdup.
65808 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65810         pthread: Add enough so that coreutils/src/sort.c compiles.
65811         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65812         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65813         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65814         Include <sys/types.h>, in case it defines pthread_t.
65815         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65816         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65817         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65818         (pthread_rwlockattr_t, pthread_spinlock_t):
65819         New typedefs, if HAVE_PTHREAD_T is not defined.
65820         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65821         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65822         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65823         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65824         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65825         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65826         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65827         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65828         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65829         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65830         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65831         New macros.
65832         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65833         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65834         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65835         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65836         (pthread_spin_unlock): New dummy functions.
65837         (pthread_create): Return EAGAIN; don't set errno.
65838         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65839         require AC_C_INLINE.
65840         * modules/pthread (Depends-on): Add sched, time.
65841         (pthread.h): Use AM_V_GEN.
65843 2010-07-13  Bruno Haible  <bruno@clisp.org>
65845         striconveh: Don't malloc memory if the result buffer is sufficient.
65846         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65847         buffer if its size is sufficient.
65848         Reported by Ludovic Courtès <ludo@gnu.org>.
65850 2010-07-13  Bruno Haible  <bruno@clisp.org>
65852         strtod: Add safety check.
65853         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65855 2010-07-12  Bruno Haible  <bruno@clisp.org>
65857         Unify tests that set gl_cv_func_ldexpl_no_libm.
65858         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65859         gl_FUNC_LDEXPL.
65860         (gl_FUNC_LDEXPL): Invoke it.
65861         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65863 2010-07-12  Bruno Haible  <bruno@clisp.org>
65865         Unify tests that set gl_cv_func_ldexp_no_libm.
65866         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65867         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65868         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65869         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65870         * modules/strtod (Files): Add m4/ldexp.m4.
65872 2010-07-12  Bruno Haible  <bruno@clisp.org>
65874         Unify tests that set gl_cv_func_frexpl_no_libm.
65875         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65876         gl_FUNC_FREXPL_NO_LIBM.
65877         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65878         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65880 2010-07-12  Bruno Haible  <bruno@clisp.org>
65882         Unify tests that set gl_cv_func_frexp_no_libm.
65883         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65884         gl_FUNC_FREXP_NO_LIBM.
65885         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65886         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65888 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65890         memcoll: clarify sizes versus lengths, document better, and tweak perf
65891         * lib/memcoll.c (strcoll_loop, memcoll0):
65892         Improve quality of descriptive comments.  Name variables
65893         consistently as to whether they are lengths (which do not include
65894         terminating null) versus sizes (which do).
65895         * lib/xmemcoll.c (xmemcoll0): Likewise.
65896         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65897         returned when s1size == 0; this is easier to compile and saves
65898         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65900 2010-07-12  Bruno Haible  <bruno@clisp.org>
65902         Tests for module '_Exit'.
65903         * modules/_Exit-tests: New file.
65904         * tests/test-_Exit.sh: New file.
65905         * tests/test-_Exit.c: New file.
65907         New module '_Exit'.
65908         * lib/stdlib.in.h (__attribute__): New macro.
65909         (_Exit): New declaration.
65910         * lib/_Exit.c: New file.
65911         * m4/_Exit.m4: New file.
65912         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65913         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65914         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65915         * modules/_Exit: New file.
65916         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65917         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65919 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65921         strtod: make it more-accurate typically, and don't require libm
65922         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65923         Include limits.h.  Don't include string.h.
65924         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65925         (locale_isspace): New function, so that no casts are needed to
65926         check whether *s is a space.
65927         (ldexp): Provide an unused dummy if not available.
65928         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65929         (strtod): Use them.  This implementation prefers to use the
65930         underlying strtod if available, falling back on our own code
65931         only to fix known bugs.  This is more likely to produce an
65932         accurate result.  Also, it avoids the use of libm functions.
65933         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65934         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65935         was absent, but it caused a test failure with coreutils.
65936         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65937         with libm.
65938         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65939         * modules/strtod-tests (Makefile.am): Likewise.
65941 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65942             Bruno Haible  <bruno@clisp.org>
65944         unistr/u8-strchr: Optimize ASCII argument case.
65945         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65947 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65949         (x)memcoll: minor tweaks
65950         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65951         is after the type that it qualifies.
65952         (memcoll0): Likewise.
65953         * lib/memcoll.h (memcoll0): Likewise.
65954         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65955         * lib/xmemcoll.h (xmemcoll0): Likewise.
65956         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65957         differs from memcoll in that the NUL byte is part of the argument.
65958         Omit the abort-checks, as performance is a real issue here.  Plus,
65959         the checks were wrong anyway (an off-by-one error).  Omit local
65960         variable 'diff', as it's a bit clearer that way.
65961         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65962         no longer needed.
65964 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65966         (x)memcoll: speedup when input is known to be NUL delimited
65967         * lib/memcoll.c: Include stdlib.
65968         (memcoll0): New function.
65969         (strcoll_loop): New function, refactored for use in both memcoll
65970         and memcoll0.
65971         * lib/memcoll.h (memcoll0): Add prototype.
65972         * lib/xmemcoll.c (xmemcoll0): New function.
65973         (collate_error): New function, refactored for use in both xmemcoll
65974         and xmemcoll0.
65975         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65976         * m4/memcoll.m4: add inline invocation.
65978 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65980         * build-aux/bootstrap: Remove any local translations
65981         from the translation project synchronization directory,
65982         so that local only translations are not distributed.
65984 2010-07-04  Bruno Haible  <bruno@clisp.org>
65986         fsusage: Clarify which code applies to which platforms.
65987         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65988         platform.
65989         * lib/fsusage.c (get_fs_usage): Likewise.
65991 2010-07-04  Bruno Haible  <bruno@clisp.org>
65993         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65994         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65995         Reported by Martin Lambers <marlam@marlam.de>.
65997 2010-07-04  Jim Meyering  <meyering@redhat.com>
65999         hash: once again explicitly disallow insertion of NULL
66000         * lib/hash.c (hash_insert0): Reinstate just-removed test:
66001         inserting a NULL pointer cannot work with these functions.
66002         Add a comment with details.
66003         This reverts part of the 2010-07-01 commit, 5bef1a35
66004         "hash: extend module to deal with non-pointer keys".
66006 2010-07-01  Bruno Haible  <bruno@clisp.org>
66008         stdbool: Update doc.
66009         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
66010         Info from Christian Weisgerber <naddy@mips.inka.de>.
66012 2010-07-01  Jim Meyering  <meyering@redhat.com>
66014         hash: extend module to deal with non-pointer keys
66015         * lib/hash.c (hash_insert0): New interface, much like hash_insert
66016         but that allows insertion of non-pointer entries.
66017         Do not disallow an ENTRY value of NULL.
66018         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
66019         * lib/hash.h (hash_insert0): Declare.
66021 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
66023         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
66024         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
66025         not present (i.e. with autoconf 2.59 and when using gettextize, not
66026         gnulib), require AC_GNU_SOURCE instead.
66028 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
66030         idpriv-drop: Fix tests.
66031         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
66032         not to the test-idpriv-droptemp program.
66034 2010-06-29  Bruno Haible  <bruno@clisp.org>
66036         string: Fix syntax error with g++ 2.96.
66037         * lib/string.in.h (__pure__): Remove definition.
66038         (_GL_ATTRIBUTE_PURE): New macro.
66039         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
66040         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
66041         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66043 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
66045         unitypes: Fix bug introduced on 2010-05-18.
66046         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
66048 2010-06-22  Eric Blake  <eblake@redhat.com>
66050         memmem: slight optimization
66051         * lib/str-two-way.h (critical_factorization): Update comments.
66052         Reduce work during factorization phase.
66053         Reported by Carlos Bueno <carlos@bueno.org>.
66055 2010-06-21  Bruno Haible  <bruno@clisp.org>
66057         Fix HAVE_CALLOC_POSIX misnomer.
66058         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
66059         !HAVE_CALLOC_POSIX.
66060         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
66061         HAVE_CALLOC_POSIX.
66062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
66063         instead of HAVE_CALLOC_POSIX.
66064         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
66065         HAVE_CALLOC_POSIX.
66067         Use modern idiom for calloc() replacement.
66068         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
66069         AC_FUNC_CALLOC.
66070         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
66071         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
66072         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66073         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
66074         (gl_REPLACE_CALLOC): New macro.
66076 2010-06-21  Bruno Haible  <bruno@clisp.org>
66078         Fix HAVE_REALLOC_POSIX misnomer.
66079         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
66080         !HAVE_REALLOC_POSIX.
66081         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
66082         HAVE_REALLOC_POSIX.
66083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
66084         instead of HAVE_REALLOC_POSIX.
66085         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
66086         HAVE_REALLOC_POSIX.
66088         Use modern idiom for realloc() replacement.
66089         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
66090         AC_FUNC_REALLOC.
66091         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
66092         Autoconf's AC_FUNC_REALLOC.
66093         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66094         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
66095         (gl_REPLACE_REALLOC): New macro.
66096         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66098 2010-06-21  Bruno Haible  <bruno@clisp.org>
66100         Fix HAVE_MALLOC_POSIX misnomer.
66101         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
66102         !HAVE_MALLOC_POSIX.
66103         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
66104         HAVE_MALLOC_POSIX.
66105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
66106         instead of HAVE_MALLOC_POSIX.
66107         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
66108         HAVE_MALLOC_POSIX.
66110         Use modern idiom for malloc() replacement.
66111         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
66112         AC_FUNC_MALLOC.
66113         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
66114         Autoconf's AC_FUNC_MALLOC.
66115         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
66116         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
66117         (gl_REPLACE_MALLOC): New macro.
66118         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
66120 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
66122         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
66123         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
66124         This macro takes 3 arguments, not 4.
66126 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
66128         ipv6: fix detection under mingw
66129         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
66130         in6_addr.
66132 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
66134         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
66135         that strtod() works when cross-compiling to a glibc version known
66136         to work.
66138 2010-06-15  Bruno Haible  <bruno@clisp.org>
66140         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
66142 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
66144         select: Correct timeout.
66145         * lib/select.c (rpl_select): Compute wait_timeout correctly.
66147 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66149         git-version-gen: init shell var to avoid env var influence
66150         * build-aux/git-version-gen (v): Init shell var to empty.
66152 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
66154         priv-set: Don't assume that priv.h exists merely because getppriv does.
66155         See Jan Andersen's bug report about AIX 5L in
66156         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
66157         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
66158         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
66159         * lib/priv-set.h: Likewise.
66160         * tests/test-priv-set.c: Likewise.
66162 2010-06-13  Bruno Haible  <bruno@clisp.org>
66164         relocatable: Make it easier to test whether to install wrappers.
66165         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
66166         RELOCATABLE_VIA_WRAPPER.
66168 2010-06-13  Bruno Haible  <bruno@clisp.org>
66170         gnulib-tool: Display specified modules and dependencies differently.
66171         * gnulib-tool (func_show_module_list): New function.
66172         (func_import, func_create_testdir): Invoke it.
66173         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
66175 2010-06-13  Bruno Haible  <bruno@clisp.org>
66177         gnulib-tool: Align code of func_import and func_create_testdir.
66178         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
66179         specified_modules.
66181 2010-06-12  Jim Meyering  <meyering@redhat.com>
66183         test-inttostr: avoid spurious failure on Solaris 9
66184         * tests/test-inttostr.c (main): Skip the test when snprintf fails
66185         to accept "%ju".  Reported by Bruno Haible.
66187 2010-06-11  Jim Meyering  <meyering@redhat.com>
66189         test-sys_socket: mark variables as used more readably
66190         * tests/test-sys_socket.c (main): Mark otherwise unused variables
66191         as "used" explicitly via (void) statement casts.  This is more
66192         readable than using them in an artificial return expression.
66193         Suggestion from Bruno Haible.
66195 2010-06-11  Bruno Haible  <bruno@clisp.org>
66197         Avoid some more warnings from "gcc -Wwrite-strings".
66198         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
66199         to 'const char *'.
66200         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
66201         * tests/test-c-strcasestr.c (main): Likewise.
66202         * tests/test-mbscasestr1.c (main): Likewise.
66203         * tests/test-mbscasestr2.c (main): Likewise.
66204         * tests/test-memmem.c (main): Likewise.
66205         * tests/test-strstr.c (main): Likewise.
66206         * tests/test-strcasestr.c (main): Likewise.
66208 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66210         init.sh: change framework_failure_ to fail with status 99, not 1
66211         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
66212         automake's parallel-tests rule that this is an unexpected failure,
66213         even if the test is listed in XFAIL_TESTS.
66215 2010-06-11  Jim Meyering  <meyering@redhat.com>
66217         test-inttostr: avoid warnings about 4-6KB literal strings
66218         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
66219         Include "macros.h", for its definition of ASSERT.
66220         (CK): s/assert/ASSERT/
66221         * modules/inttostr-tests (Files): Add macros.h.
66223         init.sh: don't use $ME_ or skip_ before they are defined
66224         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
66225         their first uses.  Also hoist their companions: warn_, fail_,
66226         framework_failure_, $stderr_fileno.  Prompted by a patch from
66227         Stefano Lattarini.
66229         test-sys_socket: avoid set-but-not-used warnings from gcc
66230         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
66231         avoid warning about set-but-not-used variables.
66233         test-xvasprintf: avoid 'const' discard warnings
66234         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
66235         "const" when assigning from literal strings.
66236         (test_xasprintf): Add "void" in function argument list to placate
66237         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
66239         tests: avoid compilation warnings in argmatch and exclude tests...
66240         in packages that define ARGMATCH_DIE_DECL, like coreutils.
66241         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
66242         Since it always exits, declare with the "noreturn" attribute.
66243         * tests/test-argmatch.c: Likewise.
66245         tests: avoid 'const' discard warnings in mbsstr tests
66246         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
66247         * tests/test-mbsstr2.c (main): Likewise.
66249         test-verify: avoid warning from gcc's -Wmissing-declarations
66250         * tests/test-verify.c (function): Declare to be static.
66252         test-inttostr.c: include <string.h> for use of strcmp
66253         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66255         test-linkat: avoid failed assertion on "other" architectures
66256         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66257         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66258         sparc: https://bugs.launchpad.net/bugs/591968
66260 2010-06-11  Jim Meyering  <meyering@redhat.com>
66262         printf.m4: avoid autoconf's "Expanded Before Required" warning
66263         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66264         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66265         autoconf warning.
66267 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66269         Replacement header templates are now named with ".in", not "_".
66270         * doc/gnulib-intro.texi: Correct.
66272 2010-06-10  Jim Meyering  <meyering@redhat.com>
66274         inttostr-tests: depend on snprintf, not snprintf-posix
66275         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66276         snprintf-posix, to avoid this aclocal failure:
66277           missing file gnulib-tests/vasnprintf.c
66278           configure.ac:45: error: expected source file, required through \
66279           AC_LIBSOURCES, not found
66281 2010-06-10  Jim Meyering  <meyering@redhat.com>
66283         inttostr: add a new function, inttostr, and tests
66284         The namesake function was not available.  The existence of the
66285         template file, inttostr.c makes its addition nontrivial.
66286         * lib/anytostr.c: Rename from inttostr.c.
66287         (anytostr): Rename from inttostr.
66288         * lib/inttostr.c: New file.
66289         * modules/inttostr (Files): Add anytostr.c.
66290         (Makefile.am): Set lib_SOURCES instead of ...
66291         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66292         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66293         * lib/offtostr.c: Likewise.
66294         * lib/uinttostr.c: Likewise.
66295         * lib/umaxtostr.c: Likewise.
66296         * modules/inttostr-tests: New file.
66297         * tests/test-inttostr.c: New file.  Test these functions.
66299 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66300             Bruno Haible  <bruno@clisp.org>
66302         Add "Extending Gnulib" chapter to manual.
66303         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66304         chapter.
66305         (Extending Gnulib): New chapter.
66306         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66307         chapter.
66309 2010-06-09  Bruno Haible  <bruno@clisp.org>
66311         Avoid relocwrapper link errors due to gnulib replacement functions.
66312         * lib/areadlink.c: Use the system's malloc, realloc functions.
66313         (areadlink): Set errno to ENOMEM explicitly.
66314         * modules/areadlink (Depends-on): Remove malloc-posix.
66315         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66317 2010-06-09  Bruno Haible  <bruno@clisp.org>
66319         Avoid relocwrapper link errors due to gnulib replacement functions.
66320         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66321         * lib/malloca.c: Likewise.
66322         * lib/relocatable.c: Likewise.
66323         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66324         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66325         * lib/setenv.c: Use the system's malloc, realloc functions.
66326         * lib/strerror.c: Use the system's sprintf function.
66327         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66329 2010-06-04  Bruno Haible  <bruno@clisp.org>
66331         Prefer documented low-level autoconf macro names.
66332         * m4/lib-link.m4: Use m4_translit instead of translit.
66333         * m4/environ.m4: Likewise.
66334         * m4/mathfunc.m4: Likewise.
66335         * m4/onceonly.m4: Likewise.
66336         * m4/stdint.m4: Likewise.
66337         Suggested by Eric Blake.
66339 2010-06-04  Martin Lambers  <marlam@marlam.de>
66340             Bruno Haible  <bruno@clisp.org>
66342         havelib: Allow library names with '+' characters.
66343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66344         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66346 2010-06-09  Bruno Haible  <bruno@clisp.org>
66348         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66349         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66350         realloc failed.
66352 2010-06-08  Peter Simons  <simons@cryp.to>
66354         maint.mk: make the news-check rule more configurable
66355         * top/maint.mk (news-check-lines-spec): New variable.
66356         (news-check): Use "sed -n 1,10p" in place of "head".
66358 2010-06-07  Jim Meyering  <meyering@redhat.com>
66360         do-release-commit-and-tag: fix typo in --help
66361         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66363         regex: avoid new dead-code warning with gcc-4.6.0
66364         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66365         if-block containing a while-loop.  It's been unused for at least
66366         5 years.
66368 2010-06-05  Bruno Haible  <bruno@clisp.org>
66370         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66371         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66373 2010-06-04  Bruno Haible  <bruno@clisp.org>
66375         Update to GNU gettext 0.18.1.
66376         * modules/gettext (configure.ac): Require gettext infrastructure from
66377         version 0.18.1.
66379 2010-06-03  Bruno Haible  <bruno@clisp.org>
66381         Don't use AC_LIBOBJ with file names in subdirectories.
66382         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66383         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66384         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66385         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66386         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66387         gl_LIBUNISTRING_LIBSOURCE.
66388         (Makefile.am): Augment lib_SOURCES here, conditionally.
66389         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66391 2010-06-03  Bruno Haible  <bruno@clisp.org>
66393         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66394         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66395         expansion does not end with a newline.
66396         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66397         unnecessary newline.
66399 2010-06-03  Bruno Haible  <bruno@clisp.org>
66401         Reduce dependencies.
66402         * tests/test-quotearg.h: New file, extracted from
66403         tests/test-quotearg.c.
66404         * tests/test-quotearg-simple.c: New file, extracted from
66405         tests/test-quotearg.c.
66406         * tests/test-quotearg.c: Don't include <ctype.h>.
66407         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66408         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66409         use_quote_double_quotes, use_quotearg_colon): Moved to
66410         tests/test-quotearg.h.
66411         (results_g, flag_results, custom_quotes, custom_results): Moved
66412         to tests/test-quotearg-simple.c.
66413         (main): Moved the part that does not depend on gettext to
66414         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66415         performed.
66416         * modules/quotearg-simple: New file.
66417         * modules/quotearg-simple-tests: New file.
66418         * modules/quotearg (Depends-on): Add quotearg-simple.
66419         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66420         (Files): Add tests/test-quotearg.h.
66421         Reported by Paolo Bonzini.
66423 2010-06-03  Bruno Haible  <bruno@clisp.org>
66425         Reduce dependencies.
66426         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66428 2010-06-03  Bruno Haible  <bruno@clisp.org>
66430         time: Undefine more broken macros.
66431         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66432         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66433         Reported by Eric Blake.
66435 2010-06-03  Bruno Haible  <bruno@clisp.org>
66437         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66438         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66439         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66440         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66441         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66442         Reported by Ludovic Courtès <ludo@gnu.org>.
66444 2010-06-02  Eric Blake  <eblake@redhat.com>
66446         time: work with mingw + pthreads-win32 library
66447         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66448         if timespec is defined only in pthread.h.
66449         * modules/time (Makefile.am): Substitute it.
66450         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66451         <pthread.h>, when needed.
66452         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66453         from the library.
66455 2010-05-31  Bruno Haible  <bruno@clisp.org>
66457         Avoid expanding two macros in the wrong order.
66458         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66459         gl_LIBUNISTRING if it is defined.
66460         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66461         autoconf >= 2.64.
66462         Reported by Ludovic Courtès <ludo@gnu.org>.
66464 2010-05-27  Jim Meyering  <meyering@redhat.com>
66466         maint.mk: also prohibit "#undef" of always-defined symbols
66467         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66468         Allow more than one space before the symbol name.
66469         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66470         the regexp uses alternation.
66472 2010-05-26  Eric Blake  <eblake@redhat.com>
66474         maint.mk: avoid echo -e
66475         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66476         Convert all uses of echo -* to printf.
66477         Reported by Matthias Bolte.
66479 2010-05-25  Bruno Haible  <bruno@clisp.org>
66481         Update to GNU gettext 0.18, part 2.
66482         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66483         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66485 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66487         Add missing include in test-pwrite.c.
66488         * tests/test-pwrite.c: Include string.h, for strcmp.
66490 2010-05-24  Bruno Haible  <bruno@clisp.org>
66492         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66494 2010-05-24  Bruno Haible  <bruno@clisp.org>
66496         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66497         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66498         iconveh_error argument.
66499         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66500         U_STRCONV_TO_LOCALE.
66501         * lib/unistr/u16-strcoll.c: Likewise.
66502         * lib/unistr/u32-strcoll.c: Likewise.
66503         * modules/unistr/u8-strcoll (Depends-on): Add
66504         uniconv/u8-strconv-to-enc, localcharset. Remove
66505         uniconv/u8-strconv-to-locale.
66506         (configure.ac): Bump version number.
66507         * modules/unistr/u16-strcoll (Depends-on): Add
66508         uniconv/u16-strconv-to-enc, localcharset. Remove
66509         uniconv/u16-strconv-to-locale.
66510         (configure.ac): Bump version number.
66511         * modules/unistr/u32-strcoll (Depends-on): Add
66512         uniconv/u32-strconv-to-enc, localcharset. Remove
66513         uniconv/u32-strconv-to-locale.
66514         (configure.ac): Bump version number.
66516 2010-05-24  Bruno Haible  <bruno@clisp.org>
66518         Avoid a test failure on NetBSD 5.0.
66519         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66520         an iconv() bug.
66522 2010-05-24  Bruno Haible  <bruno@clisp.org>
66524         Adjust #include directive style.
66525         * modules/regex (Includes): Recommend to write <regex.h>.
66527 2010-05-24  Bruno Haible  <bruno@clisp.org>
66529         regex: Don't require alloca.
66530         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66531         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66532         only inside if (0).
66534 2010-05-23  Jim Meyering  <meyering@redhat.com>
66536         test-renameat.c: include <sys/stat.h>
66537         * tests/test-renameat.c: Include <sys/stat.h>; required for
66538         definition of S_IS* macros.
66540 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66542         Update maintainer documentation for 'relocatable-prog' module.
66543         * doc/relocatable-maint.texi: Update.
66544         Comments by Bruno Haible.
66546 2010-05-23  Bruno Haible  <bruno@clisp.org>
66548         git-merge-changelog: Enable --split-merged-entry by default.
66549         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66550         (usage): Don't mention this option any more.
66551         Reported by Ralf Wildenhues.
66553 2010-05-23  Jim Meyering  <meyering@redhat.com>
66555         test-pwrite: do not leave behind a test file named "out"
66556         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66557         The trivial-looking use of init.sh is really necessary.
66558         It ensures that the temporary file, "out", is created in
66559         a temporary directory, and removed upon termination.
66560         * tests/test-pwrite.sh: Re-add file.
66561         * modules/pwrite-tests: Reference it.
66563 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66565         Fix output redirection buglet in init.sh.
66566         * tests/init.sh: Fix redirection of stderr.
66568 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66570         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66572 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66574         * modules/valgrind-tests: New file.
66575         * m4/valgrind-tests.m4: New file.
66576         * doc/valgrind-tests.texi: New file.
66577         * doc/gnulib.texi (Running self-tests under valgrind): New
66578         section.
66580 2010-05-19  Bruno Haible  <bruno@clisp.org>
66582         Clean up dead code in recent commit.
66583         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66584         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66585         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66586         Suggested by Paolo Bonzini.
66588 2010-05-19  Bruno Haible  <bruno@clisp.org>
66590         Avoid valgrind error reports from libunistring.
66591         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66592         * modules/libunistring (Files): Add it.
66593         * modules/libunistring-optional (Files): Likewise.
66595 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66596             Bruno Haible  <bruno@clisp.org>
66598         New module 'libunistring-optional'.
66599         * modules/libunistring-optional: New file.
66600         * m4/libunistring-base.m4: New file.
66601         * m4/libunistring-optional.m4: New file.
66602         * lib/unicase.in.h: Renamed from lib/unicase.h.
66603         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66604         * lib/unictype.in.h: Renamed from lib/unictype.h.
66605         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66606         * lib/uniname.in.h: Renamed from lib/uniname.h.
66607         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66608         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66609         * lib/unistr.in.h: Renamed from lib/unistr.h.
66610         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66611         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66612         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66613         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66614         gl_LIBUNISTRING. If the library was found, determine the installed
66615         version and set LIBUNISTRING_VERSION.
66616         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66617         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66618         handle a configuration option --with-included-libunistring.
66619         * modules/libunistring (Files): Add m4/absolute-header.m4.
66620         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66621         Add m4/libunistring-base.m4.
66622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66623         (Makefile.am): Build unicase.h from unicase.in.h.
66624         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66625         Add m4/libunistring-base.m4.
66626         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66627         (Makefile.am): Build uniconv.h from uniconv.in.h.
66628         * modules/unictype/base (Files): Use unictype.in.h instead of
66629         unictype.h. Add m4/libunistring-base.m4.
66630         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66631         (Makefile.am): Build unictype.h from unictype.in.h.
66632         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66633         Add m4/libunistring-base.m4.
66634         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66635         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66636         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66637         Add m4/libunistring-base.m4.
66638         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66639         (Makefile.am): Build uniname.h from uniname.in.h.
66640         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66641         Add m4/libunistring-base.m4.
66642         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66643         (Makefile.am): Build uninorm.h from uninorm.in.h.
66644         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66645         unistdio.h. Add m4/libunistring-base.m4.
66646         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66647         (Makefile.am): Build unistdio.h from unistdio.in.h.
66648         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66649         Add m4/libunistring-base.m4.
66650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66651         (Makefile.am): Build unistr.h from unistr.in.h.
66652         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66653         Add m4/libunistring-base.m4.
66654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66655         (Makefile.am): Build unitypes.h from unitypes.in.h.
66656         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66657         Add m4/libunistring-base.m4.
66658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66659         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66660         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66661         uniwidth.h. Add m4/libunistring-base.m4.
66662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66663         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66664         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66665         instead of augmenting lib_SOURCES.
66666         * modules/unicase/empty-suffix-context: Likewise.
66667         * modules/unicase/locale-language: Likewise.
66668         * modules/unicase/tolower: Likewise.
66669         * modules/unicase/totitle: Likewise.
66670         * modules/unicase/toupper: Likewise.
66671         * modules/unicase/u8-casecmp: Likewise.
66672         * modules/unicase/u8-casecoll: Likewise.
66673         * modules/unicase/u8-casefold: Likewise.
66674         * modules/unicase/u8-casexfrm: Likewise.
66675         * modules/unicase/u8-ct-casefold: Likewise.
66676         * modules/unicase/u8-ct-tolower: Likewise.
66677         * modules/unicase/u8-ct-totitle: Likewise.
66678         * modules/unicase/u8-ct-toupper: Likewise.
66679         * modules/unicase/u8-is-cased: Likewise.
66680         * modules/unicase/u8-is-casefolded: Likewise.
66681         * modules/unicase/u8-is-lowercase: Likewise.
66682         * modules/unicase/u8-is-titlecase: Likewise.
66683         * modules/unicase/u8-is-uppercase: Likewise.
66684         * modules/unicase/u8-prefix-context: Likewise.
66685         * modules/unicase/u8-suffix-context: Likewise.
66686         * modules/unicase/u8-tolower: Likewise.
66687         * modules/unicase/u8-totitle: Likewise.
66688         * modules/unicase/u8-toupper: Likewise.
66689         * modules/unicase/u16-casecmp: Likewise.
66690         * modules/unicase/u16-casecoll: Likewise.
66691         * modules/unicase/u16-casefold: Likewise.
66692         * modules/unicase/u16-casexfrm: Likewise.
66693         * modules/unicase/u16-ct-casefold: Likewise.
66694         * modules/unicase/u16-ct-tolower: Likewise.
66695         * modules/unicase/u16-ct-totitle: Likewise.
66696         * modules/unicase/u16-ct-toupper: Likewise.
66697         * modules/unicase/u16-is-cased: Likewise.
66698         * modules/unicase/u16-is-casefolded: Likewise.
66699         * modules/unicase/u16-is-lowercase: Likewise.
66700         * modules/unicase/u16-is-titlecase: Likewise.
66701         * modules/unicase/u16-is-uppercase: Likewise.
66702         * modules/unicase/u16-prefix-context: Likewise.
66703         * modules/unicase/u16-suffix-context: Likewise.
66704         * modules/unicase/u16-tolower: Likewise.
66705         * modules/unicase/u16-totitle: Likewise.
66706         * modules/unicase/u16-toupper: Likewise.
66707         * modules/unicase/u32-casecmp: Likewise.
66708         * modules/unicase/u32-casecoll: Likewise.
66709         * modules/unicase/u32-casefold: Likewise.
66710         * modules/unicase/u32-casexfrm: Likewise.
66711         * modules/unicase/u32-ct-casefold: Likewise.
66712         * modules/unicase/u32-ct-tolower: Likewise.
66713         * modules/unicase/u32-ct-totitle: Likewise.
66714         * modules/unicase/u32-ct-toupper: Likewise.
66715         * modules/unicase/u32-is-cased: Likewise.
66716         * modules/unicase/u32-is-casefolded: Likewise.
66717         * modules/unicase/u32-is-lowercase: Likewise.
66718         * modules/unicase/u32-is-titlecase: Likewise.
66719         * modules/unicase/u32-is-uppercase: Likewise.
66720         * modules/unicase/u32-prefix-context: Likewise.
66721         * modules/unicase/u32-suffix-context: Likewise.
66722         * modules/unicase/u32-tolower: Likewise.
66723         * modules/unicase/u32-totitle: Likewise.
66724         * modules/unicase/u32-toupper: Likewise.
66725         * modules/unicase/ulc-casecmp: Likewise.
66726         * modules/unicase/ulc-casecoll: Likewise.
66727         * modules/unicase/ulc-casexfrm: Likewise.
66728         * modules/uniconv/u8-conv-from-enc: Likewise.
66729         * modules/uniconv/u8-conv-to-enc: Likewise.
66730         * modules/uniconv/u8-strconv-from-enc: Likewise.
66731         * modules/uniconv/u8-strconv-from-locale: Likewise.
66732         * modules/uniconv/u8-strconv-to-enc: Likewise.
66733         * modules/uniconv/u8-strconv-to-locale: Likewise.
66734         * modules/uniconv/u16-conv-from-enc: Likewise.
66735         * modules/uniconv/u16-conv-to-enc: Likewise.
66736         * modules/uniconv/u16-strconv-from-enc: Likewise.
66737         * modules/uniconv/u16-strconv-from-locale: Likewise.
66738         * modules/uniconv/u16-strconv-to-enc: Likewise.
66739         * modules/uniconv/u16-strconv-to-locale: Likewise.
66740         * modules/uniconv/u32-conv-from-enc: Likewise.
66741         * modules/uniconv/u32-conv-to-enc: Likewise.
66742         * modules/uniconv/u32-strconv-from-enc: Likewise.
66743         * modules/uniconv/u32-strconv-from-locale: Likewise.
66744         * modules/uniconv/u32-strconv-to-enc: Likewise.
66745         * modules/uniconv/u32-strconv-to-locale: Likewise.
66746         * modules/unictype/bidicategory-byname: Likewise.
66747         * modules/unictype/bidicategory-name: Likewise.
66748         * modules/unictype/bidicategory-of: Likewise.
66749         * modules/unictype/bidicategory-test: Likewise.
66750         * modules/unictype/block-list: Likewise.
66751         * modules/unictype/block-test: Likewise.
66752         * modules/unictype/category-C: Likewise.
66753         * modules/unictype/category-Cc: Likewise.
66754         * modules/unictype/category-Cf: Likewise.
66755         * modules/unictype/category-Cn: Likewise.
66756         * modules/unictype/category-Co: Likewise.
66757         * modules/unictype/category-Cs: Likewise.
66758         * modules/unictype/category-L: Likewise.
66759         * modules/unictype/category-Ll: Likewise.
66760         * modules/unictype/category-Lm: Likewise.
66761         * modules/unictype/category-Lo: Likewise.
66762         * modules/unictype/category-Lt: Likewise.
66763         * modules/unictype/category-Lu: Likewise.
66764         * modules/unictype/category-M: Likewise.
66765         * modules/unictype/category-Mc: Likewise.
66766         * modules/unictype/category-Me: Likewise.
66767         * modules/unictype/category-Mn: Likewise.
66768         * modules/unictype/category-N: Likewise.
66769         * modules/unictype/category-Nd: Likewise.
66770         * modules/unictype/category-Nl: Likewise.
66771         * modules/unictype/category-No: Likewise.
66772         * modules/unictype/category-P: Likewise.
66773         * modules/unictype/category-Pc: Likewise.
66774         * modules/unictype/category-Pd: Likewise.
66775         * modules/unictype/category-Pe: Likewise.
66776         * modules/unictype/category-Pf: Likewise.
66777         * modules/unictype/category-Pi: Likewise.
66778         * modules/unictype/category-Po: Likewise.
66779         * modules/unictype/category-Ps: Likewise.
66780         * modules/unictype/category-S: Likewise.
66781         * modules/unictype/category-Sc: Likewise.
66782         * modules/unictype/category-Sk: Likewise.
66783         * modules/unictype/category-Sm: Likewise.
66784         * modules/unictype/category-So: Likewise.
66785         * modules/unictype/category-Z: Likewise.
66786         * modules/unictype/category-Zl: Likewise.
66787         * modules/unictype/category-Zp: Likewise.
66788         * modules/unictype/category-Zs: Likewise.
66789         * modules/unictype/category-and: Likewise.
66790         * modules/unictype/category-and-not: Likewise.
66791         * modules/unictype/category-byname: Likewise.
66792         * modules/unictype/category-name: Likewise.
66793         * modules/unictype/category-none: Likewise.
66794         * modules/unictype/category-of: Likewise.
66795         * modules/unictype/category-or: Likewise.
66796         * modules/unictype/category-test: Likewise.
66797         * modules/unictype/combining-class: Likewise.
66798         * modules/unictype/ctype-alnum: Likewise.
66799         * modules/unictype/ctype-alpha: Likewise.
66800         * modules/unictype/ctype-blank: Likewise.
66801         * modules/unictype/ctype-cntrl: Likewise.
66802         * modules/unictype/ctype-digit: Likewise.
66803         * modules/unictype/ctype-graph: Likewise.
66804         * modules/unictype/ctype-lower: Likewise.
66805         * modules/unictype/ctype-print: Likewise.
66806         * modules/unictype/ctype-punct: Likewise.
66807         * modules/unictype/ctype-space: Likewise.
66808         * modules/unictype/ctype-upper: Likewise.
66809         * modules/unictype/ctype-xdigit: Likewise.
66810         * modules/unictype/decimal-digit: Likewise.
66811         * modules/unictype/digit: Likewise.
66812         * modules/unictype/mirror: Likewise.
66813         * modules/unictype/numeric: Likewise.
66814         * modules/unictype/property-alphabetic: Likewise.
66815         * modules/unictype/property-ascii-hex-digit: Likewise.
66816         * modules/unictype/property-bidi-arabic-digit: Likewise.
66817         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66818         * modules/unictype/property-bidi-block-separator: Likewise.
66819         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66820         * modules/unictype/property-bidi-common-separator: Likewise.
66821         * modules/unictype/property-bidi-control: Likewise.
66822         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66823         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66824         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66825         * modules/unictype/property-bidi-european-digit: Likewise.
66826         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66827         * modules/unictype/property-bidi-left-to-right: Likewise.
66828         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66829         * modules/unictype/property-bidi-other-neutral: Likewise.
66830         * modules/unictype/property-bidi-pdf: Likewise.
66831         * modules/unictype/property-bidi-segment-separator: Likewise.
66832         * modules/unictype/property-bidi-whitespace: Likewise.
66833         * modules/unictype/property-byname: Likewise.
66834         * modules/unictype/property-combining: Likewise.
66835         * modules/unictype/property-composite: Likewise.
66836         * modules/unictype/property-currency-symbol: Likewise.
66837         * modules/unictype/property-dash: Likewise.
66838         * modules/unictype/property-decimal-digit: Likewise.
66839         * modules/unictype/property-default-ignorable-code-point: Likewise.
66840         * modules/unictype/property-deprecated: Likewise.
66841         * modules/unictype/property-diacritic: Likewise.
66842         * modules/unictype/property-extender: Likewise.
66843         * modules/unictype/property-format-control: Likewise.
66844         * modules/unictype/property-grapheme-base: Likewise.
66845         * modules/unictype/property-grapheme-extend: Likewise.
66846         * modules/unictype/property-grapheme-link: Likewise.
66847         * modules/unictype/property-hex-digit: Likewise.
66848         * modules/unictype/property-hyphen: Likewise.
66849         * modules/unictype/property-id-continue: Likewise.
66850         * modules/unictype/property-id-start: Likewise.
66851         * modules/unictype/property-ideographic: Likewise.
66852         * modules/unictype/property-ids-binary-operator: Likewise.
66853         * modules/unictype/property-ids-trinary-operator: Likewise.
66854         * modules/unictype/property-ignorable-control: Likewise.
66855         * modules/unictype/property-iso-control: Likewise.
66856         * modules/unictype/property-join-control: Likewise.
66857         * modules/unictype/property-left-of-pair: Likewise.
66858         * modules/unictype/property-line-separator: Likewise.
66859         * modules/unictype/property-logical-order-exception: Likewise.
66860         * modules/unictype/property-lowercase: Likewise.
66861         * modules/unictype/property-math: Likewise.
66862         * modules/unictype/property-non-break: Likewise.
66863         * modules/unictype/property-not-a-character: Likewise.
66864         * modules/unictype/property-numeric: Likewise.
66865         * modules/unictype/property-other-alphabetic: Likewise.
66866         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66867         * modules/unictype/property-other-grapheme-extend: Likewise.
66868         * modules/unictype/property-other-id-continue: Likewise.
66869         * modules/unictype/property-other-id-start: Likewise.
66870         * modules/unictype/property-other-lowercase: Likewise.
66871         * modules/unictype/property-other-math: Likewise.
66872         * modules/unictype/property-other-uppercase: Likewise.
66873         * modules/unictype/property-paired-punctuation: Likewise.
66874         * modules/unictype/property-paragraph-separator: Likewise.
66875         * modules/unictype/property-pattern-syntax: Likewise.
66876         * modules/unictype/property-pattern-white-space: Likewise.
66877         * modules/unictype/property-private-use: Likewise.
66878         * modules/unictype/property-punctuation: Likewise.
66879         * modules/unictype/property-quotation-mark: Likewise.
66880         * modules/unictype/property-radical: Likewise.
66881         * modules/unictype/property-sentence-terminal: Likewise.
66882         * modules/unictype/property-soft-dotted: Likewise.
66883         * modules/unictype/property-space: Likewise.
66884         * modules/unictype/property-terminal-punctuation: Likewise.
66885         * modules/unictype/property-test: Likewise.
66886         * modules/unictype/property-titlecase: Likewise.
66887         * modules/unictype/property-unassigned-code-value: Likewise.
66888         * modules/unictype/property-unified-ideograph: Likewise.
66889         * modules/unictype/property-uppercase: Likewise.
66890         * modules/unictype/property-variation-selector: Likewise.
66891         * modules/unictype/property-white-space: Likewise.
66892         * modules/unictype/property-xid-continue: Likewise.
66893         * modules/unictype/property-xid-start: Likewise.
66894         * modules/unictype/property-zero-width: Likewise.
66895         * modules/unictype/scripts: Likewise.
66896         * modules/unictype/syntax-c-ident: Likewise.
66897         * modules/unictype/syntax-c-whitespace: Likewise.
66898         * modules/unictype/syntax-java-ident: Likewise.
66899         * modules/unictype/syntax-java-whitespace: Likewise.
66900         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66901         * modules/unilbrk/u8-width-linebreaks: Likewise.
66902         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66903         * modules/unilbrk/u16-width-linebreaks: Likewise.
66904         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66905         * modules/unilbrk/u32-width-linebreaks: Likewise.
66906         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66907         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66908         * modules/uniname/uniname: Likewise.
66909         * modules/uninorm/canonical-decomposition: Likewise.
66910         * modules/uninorm/composition: Likewise.
66911         * modules/uninorm/decomposing-form: Likewise.
66912         * modules/uninorm/decomposition: Likewise.
66913         * modules/uninorm/filter: Likewise.
66914         * modules/uninorm/nfc: Likewise.
66915         * modules/uninorm/nfd: Likewise.
66916         * modules/uninorm/nfkc: Likewise.
66917         * modules/uninorm/nfkd: Likewise.
66918         * modules/uninorm/u8-normalize: Likewise.
66919         * modules/uninorm/u8-normcmp: Likewise.
66920         * modules/uninorm/u8-normcoll: Likewise.
66921         * modules/uninorm/u8-normxfrm: Likewise.
66922         * modules/uninorm/u16-normalize: Likewise.
66923         * modules/uninorm/u16-normcmp: Likewise.
66924         * modules/uninorm/u16-normcoll: Likewise.
66925         * modules/uninorm/u16-normxfrm: Likewise.
66926         * modules/uninorm/u32-normalize: Likewise.
66927         * modules/uninorm/u32-normcmp: Likewise.
66928         * modules/uninorm/u32-normcoll: Likewise.
66929         * modules/uninorm/u32-normxfrm: Likewise.
66930         * modules/unistdio/u8-asnprintf: Likewise.
66931         * modules/unistdio/u8-asprintf: Likewise.
66932         * modules/unistdio/u8-snprintf: Likewise.
66933         * modules/unistdio/u8-sprintf: Likewise.
66934         * modules/unistdio/u8-u8-asnprintf: Likewise.
66935         * modules/unistdio/u8-u8-asprintf: Likewise.
66936         * modules/unistdio/u8-u8-snprintf: Likewise.
66937         * modules/unistdio/u8-u8-sprintf: Likewise.
66938         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66939         * modules/unistdio/u8-u8-vasprintf: Likewise.
66940         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66941         * modules/unistdio/u8-u8-vsprintf: Likewise.
66942         * modules/unistdio/u8-vasnprintf: Likewise.
66943         * modules/unistdio/u8-vasprintf: Likewise.
66944         * modules/unistdio/u8-vsnprintf: Likewise.
66945         * modules/unistdio/u8-vsprintf: Likewise.
66946         * modules/unistdio/u16-asnprintf: Likewise.
66947         * modules/unistdio/u16-asprintf: Likewise.
66948         * modules/unistdio/u16-snprintf: Likewise.
66949         * modules/unistdio/u16-sprintf: Likewise.
66950         * modules/unistdio/u16-u16-asnprintf: Likewise.
66951         * modules/unistdio/u16-u16-asprintf: Likewise.
66952         * modules/unistdio/u16-u16-snprintf: Likewise.
66953         * modules/unistdio/u16-u16-sprintf: Likewise.
66954         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66955         * modules/unistdio/u16-u16-vasprintf: Likewise.
66956         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66957         * modules/unistdio/u16-u16-vsprintf: Likewise.
66958         * modules/unistdio/u16-vasnprintf: Likewise.
66959         * modules/unistdio/u16-vasprintf: Likewise.
66960         * modules/unistdio/u16-vsnprintf: Likewise.
66961         * modules/unistdio/u16-vsprintf: Likewise.
66962         * modules/unistdio/u32-asnprintf: Likewise.
66963         * modules/unistdio/u32-asprintf: Likewise.
66964         * modules/unistdio/u32-snprintf: Likewise.
66965         * modules/unistdio/u32-sprintf: Likewise.
66966         * modules/unistdio/u32-u32-asnprintf: Likewise.
66967         * modules/unistdio/u32-u32-asprintf: Likewise.
66968         * modules/unistdio/u32-u32-snprintf: Likewise.
66969         * modules/unistdio/u32-u32-sprintf: Likewise.
66970         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66971         * modules/unistdio/u32-u32-vasprintf: Likewise.
66972         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66973         * modules/unistdio/u32-u32-vsprintf: Likewise.
66974         * modules/unistdio/u32-vasnprintf: Likewise.
66975         * modules/unistdio/u32-vasprintf: Likewise.
66976         * modules/unistdio/u32-vsnprintf: Likewise.
66977         * modules/unistdio/u32-vsprintf: Likewise.
66978         * modules/unistdio/ulc-asnprintf: Likewise.
66979         * modules/unistdio/ulc-asprintf: Likewise.
66980         * modules/unistdio/ulc-fprintf: Likewise.
66981         * modules/unistdio/ulc-snprintf: Likewise.
66982         * modules/unistdio/ulc-sprintf: Likewise.
66983         * modules/unistdio/ulc-vasnprintf: Likewise.
66984         * modules/unistdio/ulc-vasprintf: Likewise.
66985         * modules/unistdio/ulc-vfprintf: Likewise.
66986         * modules/unistdio/ulc-vsnprintf: Likewise.
66987         * modules/unistdio/ulc-vsprintf: Likewise.
66988         * modules/unistr/u8-check: Likewise.
66989         * modules/unistr/u8-chr: Likewise.
66990         * modules/unistr/u8-cmp: Likewise.
66991         * modules/unistr/u8-cmp2: Likewise.
66992         * modules/unistr/u8-cpy: Likewise.
66993         * modules/unistr/u8-cpy-alloc: Likewise.
66994         * modules/unistr/u8-endswith: Likewise.
66995         * modules/unistr/u8-mblen: Likewise.
66996         * modules/unistr/u8-mbsnlen: Likewise.
66997         * modules/unistr/u8-mbtouc: Likewise.
66998         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66999         * modules/unistr/u8-mbtoucr: Likewise.
67000         * modules/unistr/u8-move: Likewise.
67001         * modules/unistr/u8-next: Likewise.
67002         * modules/unistr/u8-prev: Likewise.
67003         * modules/unistr/u8-set: Likewise.
67004         * modules/unistr/u8-startswith: Likewise.
67005         * modules/unistr/u8-stpcpy: Likewise.
67006         * modules/unistr/u8-stpncpy: Likewise.
67007         * modules/unistr/u8-strcat: Likewise.
67008         * modules/unistr/u8-strchr: Likewise.
67009         * modules/unistr/u8-strcmp: Likewise.
67010         * modules/unistr/u8-strcoll: Likewise.
67011         * modules/unistr/u8-strcpy: Likewise.
67012         * modules/unistr/u8-strcspn: Likewise.
67013         * modules/unistr/u8-strdup: Likewise.
67014         * modules/unistr/u8-strlen: Likewise.
67015         * modules/unistr/u8-strmblen: Likewise.
67016         * modules/unistr/u8-strmbtouc: Likewise.
67017         * modules/unistr/u8-strncat: Likewise.
67018         * modules/unistr/u8-strncmp: Likewise.
67019         * modules/unistr/u8-strncpy: Likewise.
67020         * modules/unistr/u8-strnlen: Likewise.
67021         * modules/unistr/u8-strpbrk: Likewise.
67022         * modules/unistr/u8-strrchr: Likewise.
67023         * modules/unistr/u8-strspn: Likewise.
67024         * modules/unistr/u8-strstr: Likewise.
67025         * modules/unistr/u8-strtok: Likewise.
67026         * modules/unistr/u8-to-u16: Likewise.
67027         * modules/unistr/u8-to-u32: Likewise.
67028         * modules/unistr/u8-uctomb: Likewise.
67029         * modules/unistr/u16-check: Likewise.
67030         * modules/unistr/u16-chr: Likewise.
67031         * modules/unistr/u16-cmp: Likewise.
67032         * modules/unistr/u16-cmp2: Likewise.
67033         * modules/unistr/u16-cpy: Likewise.
67034         * modules/unistr/u16-cpy-alloc: Likewise.
67035         * modules/unistr/u16-endswith: Likewise.
67036         * modules/unistr/u16-mblen: Likewise.
67037         * modules/unistr/u16-mbsnlen: Likewise.
67038         * modules/unistr/u16-mbtouc: Likewise.
67039         * modules/unistr/u16-mbtouc-unsafe: Likewise.
67040         * modules/unistr/u16-mbtoucr: Likewise.
67041         * modules/unistr/u16-move: Likewise.
67042         * modules/unistr/u16-next: Likewise.
67043         * modules/unistr/u16-prev: Likewise.
67044         * modules/unistr/u16-set: Likewise.
67045         * modules/unistr/u16-startswith: Likewise.
67046         * modules/unistr/u16-stpcpy: Likewise.
67047         * modules/unistr/u16-stpncpy: Likewise.
67048         * modules/unistr/u16-strcat: Likewise.
67049         * modules/unistr/u16-strchr: Likewise.
67050         * modules/unistr/u16-strcmp: Likewise.
67051         * modules/unistr/u16-strcoll: Likewise.
67052         * modules/unistr/u16-strcpy: Likewise.
67053         * modules/unistr/u16-strcspn: Likewise.
67054         * modules/unistr/u16-strdup: Likewise.
67055         * modules/unistr/u16-strlen: Likewise.
67056         * modules/unistr/u16-strmblen: Likewise.
67057         * modules/unistr/u16-strmbtouc: Likewise.
67058         * modules/unistr/u16-strncat: Likewise.
67059         * modules/unistr/u16-strncmp: Likewise.
67060         * modules/unistr/u16-strncpy: Likewise.
67061         * modules/unistr/u16-strnlen: Likewise.
67062         * modules/unistr/u16-strpbrk: Likewise.
67063         * modules/unistr/u16-strrchr: Likewise.
67064         * modules/unistr/u16-strspn: Likewise.
67065         * modules/unistr/u16-strstr: Likewise.
67066         * modules/unistr/u16-strtok: Likewise.
67067         * modules/unistr/u16-to-u32: Likewise.
67068         * modules/unistr/u16-to-u8: Likewise.
67069         * modules/unistr/u16-uctomb: Likewise.
67070         * modules/unistr/u32-check: Likewise.
67071         * modules/unistr/u32-chr: Likewise.
67072         * modules/unistr/u32-cmp: Likewise.
67073         * modules/unistr/u32-cmp2: Likewise.
67074         * modules/unistr/u32-cpy: Likewise.
67075         * modules/unistr/u32-cpy-alloc: Likewise.
67076         * modules/unistr/u32-endswith: Likewise.
67077         * modules/unistr/u32-mblen: Likewise.
67078         * modules/unistr/u32-mbsnlen: Likewise.
67079         * modules/unistr/u32-mbtouc: Likewise.
67080         * modules/unistr/u32-mbtouc-unsafe: Likewise.
67081         * modules/unistr/u32-mbtoucr: Likewise.
67082         * modules/unistr/u32-move: Likewise.
67083         * modules/unistr/u32-next: Likewise.
67084         * modules/unistr/u32-prev: Likewise.
67085         * modules/unistr/u32-set: Likewise.
67086         * modules/unistr/u32-startswith: Likewise.
67087         * modules/unistr/u32-stpcpy: Likewise.
67088         * modules/unistr/u32-stpncpy: Likewise.
67089         * modules/unistr/u32-strcat: Likewise.
67090         * modules/unistr/u32-strchr: Likewise.
67091         * modules/unistr/u32-strcmp: Likewise.
67092         * modules/unistr/u32-strcoll: Likewise.
67093         * modules/unistr/u32-strcpy: Likewise.
67094         * modules/unistr/u32-strcspn: Likewise.
67095         * modules/unistr/u32-strdup: Likewise.
67096         * modules/unistr/u32-strlen: Likewise.
67097         * modules/unistr/u32-strmblen: Likewise.
67098         * modules/unistr/u32-strmbtouc: Likewise.
67099         * modules/unistr/u32-strncat: Likewise.
67100         * modules/unistr/u32-strncmp: Likewise.
67101         * modules/unistr/u32-strncpy: Likewise.
67102         * modules/unistr/u32-strnlen: Likewise.
67103         * modules/unistr/u32-strpbrk: Likewise.
67104         * modules/unistr/u32-strrchr: Likewise.
67105         * modules/unistr/u32-strspn: Likewise.
67106         * modules/unistr/u32-strstr: Likewise.
67107         * modules/unistr/u32-strtok: Likewise.
67108         * modules/unistr/u32-to-u16: Likewise.
67109         * modules/unistr/u32-to-u8: Likewise.
67110         * modules/unistr/u32-uctomb: Likewise.
67111         * modules/uniwbrk/u8-wordbreaks: Likewise.
67112         * modules/uniwbrk/u16-wordbreaks: Likewise.
67113         * modules/uniwbrk/u32-wordbreaks: Likewise.
67114         * modules/uniwbrk/ulc-wordbreaks: Likewise.
67115         * modules/uniwbrk/wordbreak-property: Likewise.
67116         * modules/uniwidth/u8-strwidth: Likewise.
67117         * modules/uniwidth/u8-width: Likewise.
67118         * modules/uniwidth/u16-strwidth: Likewise.
67119         * modules/uniwidth/u16-width: Likewise.
67120         * modules/uniwidth/u32-strwidth: Likewise.
67121         * modules/uniwidth/u32-width: Likewise.
67122         * modules/uniwidth/width: Likewise.
67123         * modules/unicase/cased-tests (Makefile.am): Link all test programs
67124         with $(LIBUNISTRING).
67125         * modules/unicase/ignorable-tests: Likewise.
67126         * modules/unicase/locale-language-tests: Likewise.
67127         * modules/unicase/tolower-tests: Likewise.
67128         * modules/unicase/totitle-tests: Likewise.
67129         * modules/unicase/toupper-tests: Likewise.
67130         * modules/unicase/u8-casecmp-tests: Likewise.
67131         * modules/unicase/u8-casecoll-tests: Likewise.
67132         * modules/unicase/u8-casefold-tests: Likewise.
67133         * modules/unicase/u8-is-cased-tests: Likewise.
67134         * modules/unicase/u8-is-casefolded-tests: Likewise.
67135         * modules/unicase/u8-is-lowercase-tests: Likewise.
67136         * modules/unicase/u8-is-titlecase-tests: Likewise.
67137         * modules/unicase/u8-is-uppercase-tests: Likewise.
67138         * modules/unicase/u8-tolower-tests: Likewise.
67139         * modules/unicase/u8-totitle-tests: Likewise.
67140         * modules/unicase/u8-toupper-tests: Likewise.
67141         * modules/unicase/u16-casecmp-tests: Likewise.
67142         * modules/unicase/u16-casecoll-tests: Likewise.
67143         * modules/unicase/u16-casefold-tests: Likewise.
67144         * modules/unicase/u16-is-cased-tests: Likewise.
67145         * modules/unicase/u16-is-casefolded-tests: Likewise.
67146         * modules/unicase/u16-is-lowercase-tests: Likewise.
67147         * modules/unicase/u16-is-titlecase-tests: Likewise.
67148         * modules/unicase/u16-is-uppercase-tests: Likewise.
67149         * modules/unicase/u16-tolower-tests: Likewise.
67150         * modules/unicase/u16-totitle-tests: Likewise.
67151         * modules/unicase/u16-toupper-tests: Likewise.
67152         * modules/unicase/u32-casecmp-tests: Likewise.
67153         * modules/unicase/u32-casecoll-tests: Likewise.
67154         * modules/unicase/u32-casefold-tests: Likewise.
67155         * modules/unicase/u32-is-cased-tests: Likewise.
67156         * modules/unicase/u32-is-casefolded-tests: Likewise.
67157         * modules/unicase/u32-is-lowercase-tests: Likewise.
67158         * modules/unicase/u32-is-titlecase-tests: Likewise.
67159         * modules/unicase/u32-is-uppercase-tests: Likewise.
67160         * modules/unicase/u32-tolower-tests: Likewise.
67161         * modules/unicase/u32-totitle-tests: Likewise.
67162         * modules/unicase/u32-toupper-tests: Likewise.
67163         * modules/unicase/ulc-casecmp-tests: Likewise.
67164         * modules/unicase/ulc-casecoll-tests: Likewise.
67165         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
67166         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
67167         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
67168         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
67169         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
67170         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
67171         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
67172         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
67173         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
67174         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
67175         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
67176         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
67177         * modules/unictype/bidicategory-byname-tests: Likewise.
67178         * modules/unictype/bidicategory-name-tests: Likewise.
67179         * modules/unictype/bidicategory-of-tests: Likewise.
67180         * modules/unictype/bidicategory-test-tests: Likewise.
67181         * modules/unictype/block-list-tests: Likewise.
67182         * modules/unictype/block-of-tests: Likewise.
67183         * modules/unictype/block-test-tests: Likewise.
67184         * modules/unictype/category-C-tests: Likewise.
67185         * modules/unictype/category-Cc-tests: Likewise.
67186         * modules/unictype/category-Cf-tests: Likewise.
67187         * modules/unictype/category-Cn-tests: Likewise.
67188         * modules/unictype/category-Co-tests: Likewise.
67189         * modules/unictype/category-Cs-tests: Likewise.
67190         * modules/unictype/category-L-tests: Likewise.
67191         * modules/unictype/category-Ll-tests: Likewise.
67192         * modules/unictype/category-Lm-tests: Likewise.
67193         * modules/unictype/category-Lo-tests: Likewise.
67194         * modules/unictype/category-Lt-tests: Likewise.
67195         * modules/unictype/category-Lu-tests: Likewise.
67196         * modules/unictype/category-M-tests: Likewise.
67197         * modules/unictype/category-Mc-tests: Likewise.
67198         * modules/unictype/category-Me-tests: Likewise.
67199         * modules/unictype/category-Mn-tests: Likewise.
67200         * modules/unictype/category-N-tests: Likewise.
67201         * modules/unictype/category-Nd-tests: Likewise.
67202         * modules/unictype/category-Nl-tests: Likewise.
67203         * modules/unictype/category-No-tests: Likewise.
67204         * modules/unictype/category-P-tests: Likewise.
67205         * modules/unictype/category-Pc-tests: Likewise.
67206         * modules/unictype/category-Pd-tests: Likewise.
67207         * modules/unictype/category-Pe-tests: Likewise.
67208         * modules/unictype/category-Pf-tests: Likewise.
67209         * modules/unictype/category-Pi-tests: Likewise.
67210         * modules/unictype/category-Po-tests: Likewise.
67211         * modules/unictype/category-Ps-tests: Likewise.
67212         * modules/unictype/category-S-tests: Likewise.
67213         * modules/unictype/category-Sc-tests: Likewise.
67214         * modules/unictype/category-Sk-tests: Likewise.
67215         * modules/unictype/category-Sm-tests: Likewise.
67216         * modules/unictype/category-So-tests: Likewise.
67217         * modules/unictype/category-Z-tests: Likewise.
67218         * modules/unictype/category-Zl-tests: Likewise.
67219         * modules/unictype/category-Zp-tests: Likewise.
67220         * modules/unictype/category-Zs-tests: Likewise.
67221         * modules/unictype/category-and-not-tests: Likewise.
67222         * modules/unictype/category-and-tests: Likewise.
67223         * modules/unictype/category-byname-tests: Likewise.
67224         * modules/unictype/category-name-tests: Likewise.
67225         * modules/unictype/category-none-tests: Likewise.
67226         * modules/unictype/category-of-tests: Likewise.
67227         * modules/unictype/category-or-tests: Likewise.
67228         * modules/unictype/category-test-withtable-tests: Likewise.
67229         * modules/unictype/combining-class-tests: Likewise.
67230         * modules/unictype/ctype-alnum-tests: Likewise.
67231         * modules/unictype/ctype-alpha-tests: Likewise.
67232         * modules/unictype/ctype-blank-tests: Likewise.
67233         * modules/unictype/ctype-cntrl-tests: Likewise.
67234         * modules/unictype/ctype-digit-tests: Likewise.
67235         * modules/unictype/ctype-graph-tests: Likewise.
67236         * modules/unictype/ctype-lower-tests: Likewise.
67237         * modules/unictype/ctype-print-tests: Likewise.
67238         * modules/unictype/ctype-punct-tests: Likewise.
67239         * modules/unictype/ctype-space-tests: Likewise.
67240         * modules/unictype/ctype-upper-tests: Likewise.
67241         * modules/unictype/ctype-xdigit-tests: Likewise.
67242         * modules/unictype/decimal-digit-tests: Likewise.
67243         * modules/unictype/digit-tests: Likewise.
67244         * modules/unictype/mirror-tests: Likewise.
67245         * modules/unictype/numeric-tests: Likewise.
67246         * modules/unictype/property-alphabetic-tests: Likewise.
67247         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
67248         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
67249         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
67250         * modules/unictype/property-bidi-block-separator-tests: Likewise.
67251         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
67252         * modules/unictype/property-bidi-common-separator-tests: Likewise.
67253         * modules/unictype/property-bidi-control-tests: Likewise.
67254         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67255         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67256         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67257         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67258         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67259         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67260         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67261         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67262         * modules/unictype/property-bidi-pdf-tests: Likewise.
67263         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67264         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67265         * modules/unictype/property-byname-tests: Likewise.
67266         * modules/unictype/property-combining-tests: Likewise.
67267         * modules/unictype/property-composite-tests: Likewise.
67268         * modules/unictype/property-currency-symbol-tests: Likewise.
67269         * modules/unictype/property-dash-tests: Likewise.
67270         * modules/unictype/property-decimal-digit-tests: Likewise.
67271         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67272         * modules/unictype/property-deprecated-tests: Likewise.
67273         * modules/unictype/property-diacritic-tests: Likewise.
67274         * modules/unictype/property-extender-tests: Likewise.
67275         * modules/unictype/property-format-control-tests: Likewise.
67276         * modules/unictype/property-grapheme-base-tests: Likewise.
67277         * modules/unictype/property-grapheme-extend-tests: Likewise.
67278         * modules/unictype/property-grapheme-link-tests: Likewise.
67279         * modules/unictype/property-hex-digit-tests: Likewise.
67280         * modules/unictype/property-hyphen-tests: Likewise.
67281         * modules/unictype/property-id-continue-tests: Likewise.
67282         * modules/unictype/property-id-start-tests: Likewise.
67283         * modules/unictype/property-ideographic-tests: Likewise.
67284         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67285         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67286         * modules/unictype/property-ignorable-control-tests: Likewise.
67287         * modules/unictype/property-iso-control-tests: Likewise.
67288         * modules/unictype/property-join-control-tests: Likewise.
67289         * modules/unictype/property-left-of-pair-tests: Likewise.
67290         * modules/unictype/property-line-separator-tests: Likewise.
67291         * modules/unictype/property-logical-order-exception-tests: Likewise.
67292         * modules/unictype/property-lowercase-tests: Likewise.
67293         * modules/unictype/property-math-tests: Likewise.
67294         * modules/unictype/property-non-break-tests: Likewise.
67295         * modules/unictype/property-not-a-character-tests: Likewise.
67296         * modules/unictype/property-numeric-tests: Likewise.
67297         * modules/unictype/property-other-alphabetic-tests: Likewise.
67298         * modules/unictype/property-other-default-ignorable-code-point-tests:
67299         Likewise.
67300         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67301         * modules/unictype/property-other-id-continue-tests: Likewise.
67302         * modules/unictype/property-other-id-start-tests: Likewise.
67303         * modules/unictype/property-other-lowercase-tests: Likewise.
67304         * modules/unictype/property-other-math-tests: Likewise.
67305         * modules/unictype/property-other-uppercase-tests: Likewise.
67306         * modules/unictype/property-paired-punctuation-tests: Likewise.
67307         * modules/unictype/property-paragraph-separator-tests: Likewise.
67308         * modules/unictype/property-pattern-syntax-tests: Likewise.
67309         * modules/unictype/property-pattern-white-space-tests: Likewise.
67310         * modules/unictype/property-private-use-tests: Likewise.
67311         * modules/unictype/property-punctuation-tests: Likewise.
67312         * modules/unictype/property-quotation-mark-tests: Likewise.
67313         * modules/unictype/property-radical-tests: Likewise.
67314         * modules/unictype/property-sentence-terminal-tests: Likewise.
67315         * modules/unictype/property-soft-dotted-tests: Likewise.
67316         * modules/unictype/property-space-tests: Likewise.
67317         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67318         * modules/unictype/property-test-tests: Likewise.
67319         * modules/unictype/property-titlecase-tests: Likewise.
67320         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67321         * modules/unictype/property-unified-ideograph-tests: Likewise.
67322         * modules/unictype/property-uppercase-tests: Likewise.
67323         * modules/unictype/property-variation-selector-tests: Likewise.
67324         * modules/unictype/property-white-space-tests: Likewise.
67325         * modules/unictype/property-xid-continue-tests: Likewise.
67326         * modules/unictype/property-xid-start-tests: Likewise.
67327         * modules/unictype/property-zero-width-tests: Likewise.
67328         * modules/unictype/scripts-tests: Likewise.
67329         * modules/unictype/syntax-c-ident-tests: Likewise.
67330         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67331         * modules/unictype/syntax-java-ident-tests: Likewise.
67332         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67333         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67334         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67335         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67336         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67337         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67338         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67339         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67340         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67341         * modules/uniname/uniname-tests: Likewise.
67342         * modules/uninorm/canonical-decomposition-tests: Likewise.
67343         * modules/uninorm/compat-decomposition-tests: Likewise.
67344         * modules/uninorm/composition-tests: Likewise.
67345         * modules/uninorm/decomposing-form-tests: Likewise.
67346         * modules/uninorm/decomposition-tests: Likewise.
67347         * modules/uninorm/filter-tests: Likewise.
67348         * modules/uninorm/nfc-tests: Likewise.
67349         * modules/uninorm/nfd-tests: Likewise.
67350         * modules/uninorm/nfkc-tests: Likewise.
67351         * modules/uninorm/nfkd-tests: Likewise.
67352         * modules/uninorm/u8-normcmp-tests: Likewise.
67353         * modules/uninorm/u8-normcoll-tests: Likewise.
67354         * modules/uninorm/u16-normcmp-tests: Likewise.
67355         * modules/uninorm/u16-normcoll-tests: Likewise.
67356         * modules/uninorm/u32-normcmp-tests: Likewise.
67357         * modules/uninorm/u32-normcoll-tests: Likewise.
67358         * modules/unistdio/u8-asnprintf-tests: Likewise.
67359         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67360         * modules/unistdio/u8-vasprintf-tests: Likewise.
67361         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67362         * modules/unistdio/u8-vsprintf-tests: Likewise.
67363         * modules/unistdio/u16-asnprintf-tests: Likewise.
67364         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67365         * modules/unistdio/u16-vasprintf-tests: Likewise.
67366         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67367         * modules/unistdio/u16-vsprintf-tests: Likewise.
67368         * modules/unistdio/u32-asnprintf-tests: Likewise.
67369         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67370         * modules/unistdio/u32-vasprintf-tests: Likewise.
67371         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67372         * modules/unistdio/u32-vsprintf-tests: Likewise.
67373         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67374         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67375         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67376         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67377         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67378         * modules/unistr/u8-check-tests: Likewise.
67379         * modules/unistr/u8-chr-tests: Likewise.
67380         * modules/unistr/u8-cmp-tests: Likewise.
67381         * modules/unistr/u8-cmp2-tests: Likewise.
67382         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67383         * modules/unistr/u8-cpy-tests: Likewise.
67384         * modules/unistr/u8-mblen-tests: Likewise.
67385         * modules/unistr/u8-mbsnlen-tests: Likewise.
67386         * modules/unistr/u8-mbtouc-tests: Likewise.
67387         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67388         * modules/unistr/u8-mbtoucr-tests: Likewise.
67389         * modules/unistr/u8-move-tests: Likewise.
67390         * modules/unistr/u8-next-tests: Likewise.
67391         * modules/unistr/u8-prev-tests: Likewise.
67392         * modules/unistr/u8-set-tests: Likewise.
67393         * modules/unistr/u8-stpcpy-tests: Likewise.
67394         * modules/unistr/u8-stpncpy-tests: Likewise.
67395         * modules/unistr/u8-strcat-tests: Likewise.
67396         * modules/unistr/u8-strcmp-tests: Likewise.
67397         * modules/unistr/u8-strcoll-tests: Likewise.
67398         * modules/unistr/u8-strcpy-tests: Likewise.
67399         * modules/unistr/u8-strdup-tests: Likewise.
67400         * modules/unistr/u8-strlen-tests: Likewise.
67401         * modules/unistr/u8-strmblen-tests: Likewise.
67402         * modules/unistr/u8-strmbtouc-tests: Likewise.
67403         * modules/unistr/u8-strncat-tests: Likewise.
67404         * modules/unistr/u8-strncmp-tests: Likewise.
67405         * modules/unistr/u8-strncpy-tests: Likewise.
67406         * modules/unistr/u8-strnlen-tests: Likewise.
67407         * modules/unistr/u8-to-u16-tests: Likewise.
67408         * modules/unistr/u8-to-u32-tests: Likewise.
67409         * modules/unistr/u8-uctomb-tests: Likewise.
67410         * modules/unistr/u16-check-tests: Likewise.
67411         * modules/unistr/u16-chr-tests: Likewise.
67412         * modules/unistr/u16-cmp-tests: Likewise.
67413         * modules/unistr/u16-cmp2-tests: Likewise.
67414         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67415         * modules/unistr/u16-cpy-tests: Likewise.
67416         * modules/unistr/u16-mblen-tests: Likewise.
67417         * modules/unistr/u16-mbsnlen-tests: Likewise.
67418         * modules/unistr/u16-mbtouc-tests: Likewise.
67419         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67420         * modules/unistr/u16-mbtoucr-tests: Likewise.
67421         * modules/unistr/u16-move-tests: Likewise.
67422         * modules/unistr/u16-next-tests: Likewise.
67423         * modules/unistr/u16-prev-tests: Likewise.
67424         * modules/unistr/u16-set-tests: Likewise.
67425         * modules/unistr/u16-stpcpy-tests: Likewise.
67426         * modules/unistr/u16-stpncpy-tests: Likewise.
67427         * modules/unistr/u16-strcat-tests: Likewise.
67428         * modules/unistr/u16-strcmp-tests: Likewise.
67429         * modules/unistr/u16-strcoll-tests: Likewise.
67430         * modules/unistr/u16-strcpy-tests: Likewise.
67431         * modules/unistr/u16-strdup-tests: Likewise.
67432         * modules/unistr/u16-strlen-tests: Likewise.
67433         * modules/unistr/u16-strmblen-tests: Likewise.
67434         * modules/unistr/u16-strmbtouc-tests: Likewise.
67435         * modules/unistr/u16-strncat-tests: Likewise.
67436         * modules/unistr/u16-strncmp-tests: Likewise.
67437         * modules/unistr/u16-strncpy-tests: Likewise.
67438         * modules/unistr/u16-strnlen-tests: Likewise.
67439         * modules/unistr/u16-to-u32-tests: Likewise.
67440         * modules/unistr/u16-to-u8-tests: Likewise.
67441         * modules/unistr/u16-uctomb-tests: Likewise.
67442         * modules/unistr/u32-check-tests: Likewise.
67443         * modules/unistr/u32-chr-tests: Likewise.
67444         * modules/unistr/u32-cmp-tests: Likewise.
67445         * modules/unistr/u32-cmp2-tests: Likewise.
67446         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67447         * modules/unistr/u32-cpy-tests: Likewise.
67448         * modules/unistr/u32-mblen-tests: Likewise.
67449         * modules/unistr/u32-mbsnlen-tests: Likewise.
67450         * modules/unistr/u32-mbtouc-tests: Likewise.
67451         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67452         * modules/unistr/u32-mbtoucr-tests: Likewise.
67453         * modules/unistr/u32-move-tests: Likewise.
67454         * modules/unistr/u32-next-tests: Likewise.
67455         * modules/unistr/u32-prev-tests: Likewise.
67456         * modules/unistr/u32-set-tests: Likewise.
67457         * modules/unistr/u32-stpcpy-tests: Likewise.
67458         * modules/unistr/u32-stpncpy-tests: Likewise.
67459         * modules/unistr/u32-strcat-tests: Likewise.
67460         * modules/unistr/u32-strcmp-tests: Likewise.
67461         * modules/unistr/u32-strcoll-tests: Likewise.
67462         * modules/unistr/u32-strcpy-tests: Likewise.
67463         * modules/unistr/u32-strdup-tests: Likewise.
67464         * modules/unistr/u32-strlen-tests: Likewise.
67465         * modules/unistr/u32-strmblen-tests: Likewise.
67466         * modules/unistr/u32-strmbtouc-tests: Likewise.
67467         * modules/unistr/u32-strncat-tests: Likewise.
67468         * modules/unistr/u32-strncmp-tests: Likewise.
67469         * modules/unistr/u32-strncpy-tests: Likewise.
67470         * modules/unistr/u32-strnlen-tests: Likewise.
67471         * modules/unistr/u32-to-u16-tests: Likewise.
67472         * modules/unistr/u32-to-u8-tests: Likewise.
67473         * modules/unistr/u32-uctomb-tests: Likewise.
67474         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67475         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67476         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67477         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67478         * modules/uniwidth/u8-strwidth-tests: Likewise.
67479         * modules/uniwidth/u8-width-tests: Likewise.
67480         * modules/uniwidth/u16-strwidth-tests: Likewise.
67481         * modules/uniwidth/u16-width-tests: Likewise.
67482         * modules/uniwidth/u32-strwidth-tests: Likewise.
67483         * modules/uniwidth/u32-width-tests: Likewise.
67484         * modules/uniwidth/width-tests: Likewise.
67486 2010-05-18  Richard Jones  <rjones@redhat.com>
67488         doc: users.txt: list hivex
67489         * users.txt: Add hivex.
67491 2010-05-18  Richard Jones  <rjones@redhat.com>
67493         doc: users.txt: list febootstrap
67494         * users.txt: Add febootstrap.
67496 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67498         bootstrap: fix an error when gnulib is not used as a git submodule
67499         * build-aux/bootstrap (gnulib_path): If its length is zero then
67500         assign "gnulib" to it.
67501         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67503 2010-05-16  Bruno Haible  <bruno@clisp.org>
67505         Avoid autoconf warnings about AM_ICONV.
67506         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67507         2.64.
67509 2010-05-16  Bruno Haible  <bruno@clisp.org>
67511         absolute-header: Make the macro usable in more situations.
67512         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67513         from gl_ABSOLUTE_HEADER.
67514         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67516 2010-05-16  James Youngman  <jay@gnu.org>
67518         doc: update users.txt
67519         * users.txt: Add CSSC.
67521 2010-05-16  Jim Meyering  <meyering@redhat.com>
67523         init.sh: fix an error in the previous change; add more comments
67524         * tests/init.sh: Compare exit code in loop against 9, not 2.
67525         Patch by Bruno Haible.
67526         Make the two tests more similar by adding an empty "then" clause.
67527         Add comments.
67529         init.sh: avoid unnecessary shell re-exec
67530         * tests/init.sh: Improve the re-exec-required check to first test the
67531         current shell.  If it passes the test, do not search for a shell that
67532         does pass, and do not re-exec.  This test is particularly contorted to
67533         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67534         of $(...) evokes a syntax error and causes immediate shell exit with
67535         status 2.  Bruno Haible reported that the re-exec made it impossible
67536         to single-step through any init.sh-using script.
67538 2010-05-16  Bruno Haible  <bruno@clisp.org>
67540         Fix collision between gnulib's and libintl's printf replacements.
67541         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67542         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67543         (printf): When using GNU C, map the __printf__ function to rpl_printf
67544         via __asm__. When not using GNU C, define rpl_printf instead of
67545         __printf__.
67546         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67547         commit.
67548         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67549         commit.
67550         * m4/asm-underscore.m4: New file.
67551         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67552         * modules/stdio (Files): Add m4/asm-underscore.m4.
67553         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67554         Reported by Ben Pfaff.
67556 2010-05-16  Bruno Haible  <bruno@clisp.org>
67558         verify: Avoid skipping the test on openSUSE 11.0.
67559         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67561 2010-05-13  Bruno Haible  <bruno@clisp.org>
67563         Avoid useless warnings from G++.
67564         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67565         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67568 2010-05-11  Jim Meyering  <meyering@redhat.com>
67570         maint.mk: tweak preceding change
67571         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67572         regexps tighter by anchoring at EOL, and make the new group "shy"
67573         for slightly decreased overhead.
67575 2010-05-11  Eric Blake  <eblake@redhat.com>
67577         maint.mk: gnulib doesn't guarantee NSIG
67578         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67580 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67582         test-pwrite.c: Remove unused variable declaration.
67583         * tests/test-pwrite.c (main): Remove read_buf declaration.
67585         Remove useless test-pwrite.sh file.
67586         * tests/test-pwrite.sh: Delete file.
67587         * modules/pwrite-tests: Remove references.
67588         Reported by Bruno Haible.
67590 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67592         init.sh: fix a typo
67593         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67595 2010-05-10  Jim Meyering  <meyering@redhat.com>
67597         maint.mk: avoid using a temporary file in the always-defined-macros check
67598         * top/maint.mk (.re-defmac): Remove rule.
67599         (gl_trap_): Remove definition.
67600         (sc_prohibit_always-defined_macros): Rewrite not to create and
67601         depend on a temporary file.  Instead, depend on GNU grep's ability
67602         to read a list of regular expressions from stdin when given "-f -".
67604 2010-05-09  Bruno Haible  <bruno@clisp.org>
67606         Update to GNU gettext 0.18, part 1.
67607         * m4/gettext.m4: Update to GNU gettext 0.18.
67608         * m4/intl.m4: Likewise.
67609         * m4/po.m4: Likewise.
67610         * modules/gettext (Files): Add m4/fcntl-o.m4.
67611         (configure.ac): Require gettext infrastructure from version 0.18.
67613 2010-05-09  Jim Meyering  <meyering@redhat.com>
67615         init.sh: enable MALLOC_PERTURB_
67616         * tests/init.sh: Enable glibc's malloc-perturbing option.
67618         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67619         With my recent change in init.sh from the two-line form:
67620             -#   : ${srcdir=.}
67621             -#   . "$srcdir/init.sh"; path_prepend_ .
67622             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67623         I noticed that using the one-line form would cause this test
67624         to fail with a false-positive, or to stop working altogether,
67625         depending on whether help-version changed or all the tests did.
67626         * top/maint.mk (_hv_regex): Remove this definition.
67627         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67628         (_hv_regex_strong): Use a stronger regex to check for conformance.
67629         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67630         Give a separate diagnostic for lack of conforming use.
67632         maint.mk: prohibit definition of symbols defined by gnulib
67633         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67634         definition of symbols defined by gnulib.
67636 2010-05-09  Bruno Haible  <bruno@clisp.org>
67638         acl: Avoid test failure on Cygwin-hosted mingw.
67639         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67641 2010-05-09  Bruno Haible  <bruno@clisp.org>
67643         error: Use system's fcntl function.
67644         * lib/error.c (fcntl): Undefine.
67646 2010-05-09  Jim Meyering  <meyering@redhat.com>
67648         verify: adjust formatting to be more consistent
67649         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67650         argument-list '('s, and after one comma.
67652 2010-05-09  Bruno Haible  <bruno@clisp.org>
67654         error: More reliable output on mingw.
67655         * lib/error.c: Include <windows.h>.
67656         (is_open): New function.
67657         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67658         defined.
67660 2010-05-09  Bruno Haible  <bruno@clisp.org>
67662         vasnprintf: Fix syntax errors in libintl build on mingw.
67663         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67664         pad_ourselves and prec_ourselves after use.
67666 2010-05-08  Bruno Haible  <bruno@clisp.org>
67668         * lib/config.charset: Update comments for Cygwin 1.7.
67669         * lib/localcharset.c: Likewise.
67671 2010-05-07  Jim Meyering  <meyering@redhat.com>
67673         init.sh: improve comments
67674         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67675         . "${srcdir=.}/init.sh"; path_prepend_ .
67676         Add a note about path_prepend_ and the alternative of using
67677         TESTS_ENVIRONMENT.
67679 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67681         exclude: Unescape hashed patterns in wildcard mode.
67682         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67683         to the hash list.
67684         * tests/test-exclude8.sh: New test case.
67685         * modules/exclude-tests: Add new test.
67687 2010-05-05  Eric Blake  <eblake@redhat.com>
67689         verify: automate tests
67690         * modules/verify-tests: New module.
67691         * tests/test-verify.sh: New file.
67692         * tests/test-verify.c: Guard each negative test with a unique id.
67693         Also avoid warning about unused left hand of comma expressions.
67695 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67697         Further improvements to verify.h, suggested by Eric Blake.
67698         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67699         the GL_* versions, to avoid collision with OpenGL.
67700         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67701         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67702         than testing merely whether it's defined.
67704         Modify verify.h to pacify gcc -Wredundant_decls.
67705         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67706         These use the prefix "GL_" since they're likely to be useful elsewhere.
67707         We may need to break them out into a different .h file.
67708         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67709         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67710         of verify_function__.
67712 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67714         Tests for module pwrite.
67715         * modules/pwrite-tests: New file.
67716         * tests/test-pwrite.sh: New file.
67717         * tests/test-pwrite.c: New file.
67719         New module pwrite.
67720         * lib/unistd.in.h (pwrite): New declaration.
67721         * lib/pwrite.c: New file, from glibc with modifications.
67722         * m4/pwrite.m4: New file.
67723         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67724         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67725         REPLACE_PWRITE.
67726         * modules/pwrite: New file.
67727         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67728         REPLACE_PWRITE.
67729         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67730         * doc/posix-functions/pwrite.texi: Mention the new module.
67732 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67734         pread: Update documentation.
67735         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67737 2010-05-04  Eric Blake  <eblake@redhat.com>
67739         docs: update cygwin progress
67740         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67741         this bug.
67742         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67743         Added in cygwin 1.7.2.
67744         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67745         Likewise.
67746         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67747         Likewise.
67748         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67749         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67750         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67751         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67752         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67753         Mention nproc module.
67754         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67755         bug in cygwin 1.7.5 addition.
67756         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67757         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67758         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67759         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67760         1.7.5.
67761         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67762         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67763         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67764         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67765         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67766         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67767         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67768         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67769         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67770         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67771         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67772         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67773         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67774         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67775         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67776         Likewise.
67777         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67778         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67779         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67780         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67781         Likewise.
67782         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67783         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67784         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67785         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67786         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67787         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67788         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67789         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67790         Likewise.
67791         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67792         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67793         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67794         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67795         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67796         Likewise.
67797         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67798         Likewise.
67799         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67800         Likewise.
67801         * doc/glibc-functions/xdrrec_endofrecord.texi
67802         (xdrrec_endofrecord): Likewise.
67803         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67804         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67805         Likewise.
67806         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67807         Likewise.
67809 2010-05-04  Jim Meyering  <meyering@redhat.com>
67811         gendocs.sh: make its "-s FILE" option more useful
67812         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67813         $PACKAGE to reflect the probably-different basename of "FILE".
67815 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67817         bootstrap: don't ignore download_po_files failure
67818         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67819         failure.
67821 2010-05-03  Jim Meyering  <meyering@redhat.com>
67823         maint.mk: allow to pass options to gendocs.sh
67824         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67825         (gendocs_options_): New overridable variable.
67827         gnu-web-doc-update: don't ignore configure or build failure
67828         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67830         announce-gen: backslash-escape '@'s in --help output
67831         * build-aux/announce-gen: Fix syntax errors.
67833         maint.mk, announce-gen: allow project-specific announcement mail headers
67834         * top/maint.mk (translation_project_): Define default.
67835         (announcement_Cc_, announcement_mail_headers_): Likewise.
67836         (announcement): Invoke announce-gen with new --mail-headers option.
67837         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67839         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67840         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67841         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67842         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67843         line in the "err2" output file when running "make check" in verbose
67844         mode (i.e., with set -x enabled).
67846 2010-05-03  Bruno Haible  <bruno@clisp.org>
67848         wctob: Fix for weird platforms.
67849         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67850         argument value.
67852 2010-05-03  Jim Meyering  <meyering@redhat.com>
67854         maint.mk: prohibit unwarranted use of <strings.h>
67855         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67856         strings.h in a file that does not also use strcasecmp, strncasecmp,
67857         ffs or ffsll.
67859         maint.mk: remove obsolete comments
67860         * top/maint.mk: Remove stale, commented-out rules.
67862 2010-05-02  Bruno Haible  <bruno@clisp.org>
67864         wcwidth: Declare also when it's aliased.
67865         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67866         macro.
67868 2010-05-02  Bruno Haible  <bruno@clisp.org>
67870         Fix regression from 2010-04-25.
67871         * gnulib-tool (func_modules_transitive_closure): Check the status of
67872         all modules, not only of the tests that are of the form foo-tests where
67873         foo is a module.
67875 2010-05-02  Bruno Haible  <bruno@clisp.org>
67877         wctob: Work around nasty Cygwin 1.7.2 bug.
67878         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67879         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67881 2010-05-01  Bruno Haible  <bruno@clisp.org>
67883         fpurge: Sharper test.
67884         * tests/test-fpurge.c (main): Add one more ftell check.
67885         * modules/fpurge-tests (Depends-on): Add ftell.
67886         Suggested by Eric Blake.
67888 2010-05-01  Bruno Haible  <bruno@clisp.org>
67890         ftello: Another test.
67891         * tests/test-ftello3.c: New file.
67892         * modules/ftello-tests (Files): Add it.
67893         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67894         MOSTLYCLEANFILES.
67896         ftell: Another test.
67897         * tests/test-ftell3.c: New file.
67898         * modules/ftell-tests (Files): Add it.
67899         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67900         MOSTLYCLEANFILES.
67902 2010-05-01  Bruno Haible  <bruno@clisp.org>
67904         ftell, ftello: Work around Solaris bug.
67905         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67906         * lib/ftello.c: Include stdio-impl.h.
67907         (ftello): On Solaris, when _IOWRT is set, compute the result without
67908         looking at _IOREAD.
67909         * modules/ftello (Files): Add lib/stdio-impl.h.
67910         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67911         * doc/posix-functions/ftello.texi: Likewise.
67912         Reported by Eric Blake.
67914 2010-05-01  Bruno Haible  <bruno@clisp.org>
67916         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67917         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67918         the _IOWRT flag is also set.
67920 2010-05-01  Bruno Haible  <bruno@clisp.org>
67922         Fix doc about a HP-UX stdio bug.
67923         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67924         * doc/posix-functions/ftello.texi: Likewise.
67926 2010-05-01  Bruno Haible  <bruno@clisp.org>
67928         lseek test: Fix failure on Solaris.
67929         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67930         output.
67932 2010-04-30  Jim Meyering  <meyering@redhat.com>
67934         bootstrap: don't ignore failure to generate po*/Makevars
67935         * build-aux/bootstrap (with_gettext): Don't ignore failure
67936         to create po/Makevars or runtime-po/Makevars.
67938 2010-04-29  Eric Blake  <eblake@redhat.com>
67940         headers: relax license to LGPLv2+
67941         * modules/fcntl-h (License): Relax license.
67942         * modules/getopt-posix (License): Likewise.
67943         * modules/locale (License): Likewise.
67944         * modules/math (License): Likewise.
67945         * modules/pty (License): Likewise.
67946         * modules/sched (License): Likewise.
67947         * modules/search (License): Likewise.
67948         * modules/spawn (License): Likewise.
67949         * modules/stdarg (License): Likewise.
67950         * modules/sysexits (License): Likewise.
67952 2010-04-29  Jim Meyering  <meyering@redhat.com>
67954         inttypes: relax license to LGPLv2+
67955         * modules/inttypes (License): Relax license.
67957 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67959         * top/maint.mk (indent): Run twice to produce idempotent results.
67961 2010-04-28  Bruno Haible  <bruno@clisp.org>
67963         getdate: Generate getdate.c in the source directory.
67964         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67965         MOSTLYCLEANFILES.
67966         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67968 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67970         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67971         is not declared as a const *; avoid warnings in that case.
67973 2010-04-28  Eric Blake  <eblake@redhat.com>
67975         canonicalize-lgpl: avoid compiler warning
67976         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67977         declaration' / 'extraneous semicolon' warning with some compilers.
67978         Reported by Andreas Gruenbacher.
67980 2010-04-28  Jim Meyering  <meyering@redhat.com>
67982         init.sh: ensure a more reliable exit status when exiting via trap
67983         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67984         Inspired by patches from Dmitry V. Levin.
67985         Also trap on signal 3 (SIGQUIT).
67987 2010-04-27  Bruno Haible  <bruno@clisp.org>
67989         Update doc about utimes().
67990         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67991         'utimens' module.
67992         Reported by Andreas Gruenbacher <agruen@suse.de>.
67994 2010-04-27  Eric Blake  <eblake@redhat.com>
67996         full-read, full-write: relax license
67997         * modules/full-read (License): Drop to LGPLv2+.
67998         * modules/full-write (License): Likewise.
67999         * modules/safe-read (License): Likewise.
68000         * modules/safe-write (License): Likewise.
68002         pthread: mention library for linking
68003         * modules/pthread (Link): Mention $(LIB_PTHREAD).
68005 2010-04-27  Jim Meyering  <meyering@redhat.com>
68007         maint.mk: fix a bug introduced in last change
68008         * top/maint.mk (gl_assured_headers_): Now that all names are on
68009         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
68010         is not anchored to end of word, it should be adequate.
68012         maint.mk: avoid side-effect in latest syntax-check
68013         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
68014         to run commands via $(shell...), and hence to incur cost only when
68015         the new rule is actually run.
68017         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
68018         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
68019         and use that to create a regexp used to detect all #if HAVE_..._H uses.
68020         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
68021         (gl_assured_headers_, az_, AZ_): Define.
68022         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
68024 2010-04-26  Jim Meyering  <jim@meyering.net>
68025             Bruno Haible  <bruno@clisp.org>
68027         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
68028         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
68029         Prompted by an exchange with Gilles Espinasse.
68031 2010-04-26  Jim Meyering  <meyering@redhat.com>
68033         git-version-gen: aesthetic tweak
68034         * build-aux/git-version-gen: Use "$nl" rather than a literal,
68035         so that the command remains on a single line.
68037 2010-04-26  Eric Blake  <eblake@redhat.com>
68039         git-version-gen: allow use on EBCDIC hosts
68040         * build-aux/git-version-gen (dirty): Use literal rather than tying
68041         ourselves to ascii.
68042         Reported by Steve Goetze.
68044 2010-04-25  Bruno Haible  <bruno@clisp.org>
68046         netdb: Add support for GNULIB_POSIXCHECK.
68047         * lib/netdb.in.h: Include warn-on-use.h.
68048         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
68049         functions are used when GNULIB_POSIXCHECK is defined and the
68050         getaddrinfo module is not in use.
68051         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
68052         freeaddrinfo, gai_strerror, getnameinfo are declared.
68053         * modules/netdb (Depends-on): Add warn-on-use.
68054         (Makefile.am): Include warn-on-use.h in netdb.h.
68056 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
68058         build: avoid "make check" failure without .git/ directory
68059         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
68060         there is no .git/ directory.
68062 2010-04-25  Bruno Haible  <bruno@clisp.org>
68064         ptsname: Fix misuse of ttyname_r.
68065         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
68066         of errno.
68068 2010-04-25  Bruno Haible  <bruno@clisp.org>
68070         ttyname_r: Make it work on Solaris 10.
68071         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
68072         if the system function has the POSIX declaration. Test whether the
68073         function fails if the buffer is less than 128 bytes large.
68074         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
68075         system's ttyname_r function. Provide a reasonably large buffer.
68076         * modules/ttyname_r (Depends-on): Add extensions.
68077         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
68079 2010-04-25  Bruno Haible  <bruno@clisp.org>
68081         Use the 'extensions' module for some more functions on Solaris.
68082         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
68083         module.
68084         * doc/posix-functions/ctime_r.texi: Likewise.
68085         * doc/posix-functions/getgrgid_r.texi: Likewise.
68086         * doc/posix-functions/getgrnam_r.texi: Likewise.
68087         * doc/posix-functions/getpwnam_r.texi: Likewise.
68088         * doc/posix-functions/getpwuid_r.texi: Likewise.
68089         * doc/posix-functions/readdir_r.texi: Likewise.
68090         * doc/posix-functions/sigwait.texi: Likewise.
68091         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
68092         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
68094 2010-04-25  Bruno Haible  <bruno@clisp.org>
68096         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
68097         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
68098         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
68099         * lib/ttyname_r.c: Include <limits.h>.
68100         (ttyname_r): Define using the system's ttyname_r function, if it exists
68101         and not on Solaris.
68102         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
68103         set.
68104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
68105         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
68106         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
68107         Reported by Simon Josefsson.
68109 2010-04-25  Bruno Haible  <bruno@clisp.org>
68111         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
68112         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
68113         * doc/posix-functions/ctime_r.texi: Likewise.
68114         * doc/posix-functions/getgrgid_r.texi: Likewise.
68115         * doc/posix-functions/getgrnam_r.texi: Likewise.
68116         * doc/posix-functions/getlogin_r.texi: Likewise.
68117         * doc/posix-functions/getpwnam_r.texi: Likewise.
68118         * doc/posix-functions/getpwuid_r.texi: Likewise.
68119         * doc/posix-functions/readdir_r.texi: Likewise.
68120         * doc/posix-functions/sigwait.texi: Likewise.
68121         * doc/posix-functions/ttyname_r.texi: Likewise.
68122         Reported by Simon Josefsson.
68124 2010-04-25  Bruno Haible  <bruno@clisp.org>
68126         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
68127         * gnulib-tool (func_usage): Document that --with-*-tests options apply
68128         also to --create-testdir.
68129         (func_acceptable): Don't consider the status of *-tests modules here.
68130         (func_modules_transitive_closure): Consider it here, before including a
68131         test module.
68132         (func_import, func_create_testdir): Set inc_all_direct_tests,
68133         inc_all_indirect_tests.
68134         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
68135         --create-testdir and --create-megatestdir.
68137 2010-04-25  Bruno Haible  <bruno@clisp.org>
68139         gnulib-tool: Add --without-*-tests options.
68140         * gnulib-tool (func_usage): Document the --without-*-tests options.
68141         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
68142         excl_unportable_tests): New variables.
68143         Fail if they are specified with --import or --update.
68144         (func_acceptable): Respect the excl_*_tests variables.
68145         (func_import): Set the excl_*_tests variables to empty.
68147 2010-04-25  Simon Josefsson  <simon@josefsson.org>
68148             Bruno Haible  <bruno@clisp.org>
68150         Work around a MacOS X 10.4 bug with openpty.
68151         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
68152         * tests/test-openpty.c (main): Close the master side explicitly.
68154 2010-04-25  Bruno Haible  <bruno@clisp.org>
68156         strnlen: Fix a C++ test error on MacOS X and Solaris.
68157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
68158         the function is not declared.
68159         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
68160         Simon Josefsson.
68162 2010-04-24  Bruno Haible  <bruno@clisp.org>
68164         Avoid a gcc warning.
68165         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
68166         of correct type for %08lx directive.
68167         Reported by Eric Blake.
68169 2010-04-24  Bruno Haible  <bruno@clisp.org>
68171         vasnprintf: Correct errno value in case of out-of-memory.
68172         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
68173         or sprintf. Use the errno value from SNPRINTF or sprintf.
68174         Reported by Ian Beckwith <ianb@erislabs.net>.
68176 2010-04-24  Bruno Haible  <bruno@clisp.org>
68178         ansi-c++-opt: Find correct compiler when cross-compiling.
68179         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
68180         AC_CHECK_PROGS.
68181         Reported by Simon Josefsson.
68183 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
68185         vc-list-files: Add support for subversion
68186         * build-aux/vc-list-files: Use "svn list" to generate the list of
68187         files controlled by subversion.
68189 2010-04-23  Jim Meyering  <meyering@redhat.com>
68191         vc-list-files tests: convert to use init.sh
68192         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
68193         path_prepend_.
68194         Use Exit, not exit.
68195         Use skip_ rather than open coding it.
68196         Remove trap set-up and compare definitions.
68197         * tests/test-vc-list-files-git.sh: Likewise.
68198         * modules/vc-list-files-tests (Files): Add tests/init.sh.
68200 2010-04-22  Simon Josefsson  <simon@josefsson.org>
68202         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
68203         backup files.
68205 2010-04-21  Simon Josefsson  <simon@josefsson.org>
68207         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
68209 2010-04-20  Eric Blake  <eblake@redhat.com>
68211         tests: be robust to ignored SIGPIPE
68212         * tests/test-select-in.sh: Consume all output.
68213         * tests/test-lseek.sh: Check correct exit status, while avoiding
68214         EPIPE.
68216 2010-04-20  Simon Josefsson  <simon@josefsson.org>
68217             Bruno Haible  <bruno@clisp.org>
68219         visibility: Don't use -fvisibility if it leads to a warning.
68220         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
68221         yes, don't pretend that visibility works if it leads to a warning.
68222         Reported by Mike Gran <spk121@yahoo.com>.
68224 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
68226         * build-aux/bootstrap: Use "git -h" for testing for supported options
68227         instead of "git --help".  The short-form option only shows a summary,
68228         and doesn't layout the full man page.  Grep for the full option name
68229         in the summary, too.
68231 2010-04-19  Bruno Haible  <bruno@clisp.org>
68233         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
68234         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
68235         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
68236         mention of RELOCATABLE_STRIP.
68237         Reported by Sylvain Beucler <beuc@beuc.net>.
68239 2010-04-19  Bruno Haible  <bruno@clisp.org>
68241         * lib/diffseq.h: Fix typo in comment.
68242         Reported by Eric Blake.
68244 2010-04-19  Bruno Haible  <bruno@clisp.org>
68246         ioctl: Move autoconf macro to a .m4 file.
68247         * m4/ioctl.m4: New file, extracted from modules/ioctl.
68248         * modules/ioctl (Files): Add it.
68249         (configure.ac): Simply invoke gl_FUNC_IOCTL.
68250         Reported by Ian Beckwith <ianb@erislabs.net>.
68252 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
68253             Bruno Haible  <bruno@clisp.org>
68255         diffseq: Accommodate use-case with abstract arrays.
68256         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68257         is not defined.
68258         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68259         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68261 2010-04-18  Bruno Haible  <bruno@clisp.org>
68263         * doc/posix-headers/stdbool.texi: More precise wording.
68265 2010-04-17  Jim Meyering  <meyering@redhat.com>
68267         maint.mk: use gnu-style indentation in an embedded perl script
68268         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68269         Rename variable: s/two/last_two_bytes/
68271 2010-04-16  Eric Blake  <eblake@redhat.com>
68273         test-stdbool: skip test that fails with Solaris CC
68274         * tests/test-stdbool.c (f): Skip test that causes compilation
68275         error under buggy C++ compiler.
68276         * lib/stdbool.in.h: Document the limitation.
68277         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68279         setenv: allow compilation with C++
68280         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68281         register keyword.
68283         stdint: allow test to pass with C++
68284         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68286         getopt: allow compilation with C++
68287         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68288         struct.
68289         * lib/getopt.c (_getopt_internal_r): Use correct type.
68290         Reported by Dagobert Michelson, via Joel E. Denny.
68292 2010-04-16  Bruno Haible  <bruno@clisp.org>
68294         Override netdb.h always.
68295         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68296         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68297         Reported by Ludovic Courtès <ludo@gnu.org>.
68299 2010-04-15  Bruno Haible  <bruno@clisp.org>
68301         openpty: Fix mistake from 2010-03-21.
68302         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68303         Reported by Simon Josefsson.
68305 2010-04-15  Eric Blake  <eblake@redhat.com>
68307         test-forkpty: fix expected signature
68308         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68309         Reported by Simon Josefsson.
68311 2010-04-15  Jim Meyering  <meyering@redhat.com>
68313         maint.mk: texinfo_suffix_re_: correct the default regexp
68314         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68316         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68317         make it configurable via texinfo_suffix_re_.
68319 2010-04-14  Eric Blake  <eblake@redhat.com>
68321         strtok_r: relax license to LGPLv2+
68322         * modules/strtok_r (License): Relax license.
68323         Reported by Matthias Bolte.
68325 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68327         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68328         version 1.4.4 by default instead of requiring the libgcrypt
68329         version used during build.  This makes it possible to use the
68330         application with older but still binary compatible libgcrypt
68331         versions.
68333 2010-04-13  Eric Blake  <eblake@redhat.com>
68335         getopt-gnu: match recent glibc fixes and posix ruling
68336         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68337         '+' handling, when requesting extensions.
68338         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68339         'W;' handling.
68340         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68341         * doc/posix-functions/getopt.texi (getopt): Document this.
68342         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68343         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68344         Likewise.
68346         getopt: merge bug fixes from glibc
68347         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68348         diagnostics.  Honor '+:' correctly.  Reject ';'.
68350         getopt-posix: detect MacOS bug
68351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68352         optind when missing a required argument.
68353         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68354         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68355         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68356         Likewise.
68358         getopt-posix: avoid spurious failure on Solaris
68359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68360         an indicator that setting optind=1 is sufficient for reset.
68362         getopt-posix: avoid spurious failure on FreeBSD
68363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68364         in POSIX mode, since the m4 test uses it.
68366         gnulib-tool: silence warning on BSD sh
68367         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68369 2010-04-13  Jim Meyering  <meyering@redhat.com>
68371         doc: users.txt: GNU patch now uses gnulib
68372         * users.txt: Add patch.
68374 2010-04-12  Jim Meyering  <meyering@redhat.com>
68376         maint.mk: generate more concise timing data for syntax-check rules
68377         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68378         " done" from each line that reports a syntax-check test duration.
68380 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68382         git-version-gen: use "git update-index..." rather than "git status"
68383         * build-aux/git-version-gen: Use git update-index --refresh, not
68384         "git status".  With some versions of git, "git status" would fail
68385         to update the index and result in an unwarranted "-dirty" suffix.
68387 2010-04-11  Jim Meyering  <meyering@redhat.com>
68389         openat: correct formatting (no semantic change)
68390         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68391         Suggested by Bruno Haible.
68393 2010-04-11  Bruno Haible  <bruno@clisp.org>
68395         Stricter declaration checking in testdirs.
68396         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68397         If for_tests is true, augment AM_CPPFLAGS to define
68398         GNULIB_STRICT_CHECKING.
68399         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68400         GNULIB_STRICT_CHECKING is defined, verify that the function is
68401         declared.
68403 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68404             Bruno Haible  <bruno@clisp.org>
68406         libunistring: Improve configure output.
68407         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68408         Don't say "consider installing GNU libunistring" when checking again
68409         with libiconv.
68411 2010-04-11  Bruno Haible  <bruno@clisp.org>
68413         libunistring: Correct value of $LTLIBUNISTRING.
68414         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68415         correct the value of $LTLIBUNISTRING.
68417 2010-04-11  Bruno Haible  <bruno@clisp.org>
68419         havelib: Add static libraries to LIBS in the right order.
68420         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68421         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68423 2010-04-11  Bruno Haible  <bruno@clisp.org>
68425         libunistring: Detect libunistring also when it depends on libiconv.
68426         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68427         the second AC_LIB_HAVE_LINKFLAGS invocation.
68429 2010-04-11  James Youngman  <jay@gnu.org>
68431         close-stream: declare local scalars to be "const"
68432         * lib/close-stream.c (close_stream): Make boolean variables const
68433         to document the fact that we set but do not change them.
68435 2010-04-11  Bruno Haible  <bruno@clisp.org>
68437         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68439 2010-04-11  Jim Meyering  <meyering@redhat.com>
68441         maint.mk: don't include dist-check.mk
68442         * top/maint.mk: Remove bogus include directive.
68444         maint.mk: improve empty-line-at-EOF check
68445         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68446         solution, rather than tail+Perl-based one.  The latter would read
68447         a few kilobytes from the end of each file, and did not handle empty
68448         files properly.
68450         maint.mk: print the elapsed time for each syntax-check rule
68451         * top/maint.mk (sc_m_rules_): Save start time in a file.
68452         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68453         (local-check): Interpose the .z rules
68455 2010-04-11  Jim Meyering  <meyering@redhat.com>
68457         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68458         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68459         empty file with one that ends in an empty line.
68461 2010-04-10  Bruno Haible  <bruno@clisp.org>
68463         mkdir: Make it work on mingw64.
68464         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68465         * lib/mkdir.c: Update comment.
68466         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68468 2010-04-10  Bruno Haible  <bruno@clisp.org>
68470         Don't override improved macro from newer autoconf.
68471         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68472         autoconf >= 2.62.
68473         Reported by Joel E. Denny <jdenny@clemson.edu>.
68475 2010-04-10  Jim Meyering  <meyering@redhat.com>
68477         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68478         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68480         maint.mk: correct a diagnostic
68481         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68482         in diagnostic; now use $prohibit.
68484 2010-04-10  Bruno Haible  <address@hidden>
68486         fchownat: Fix a C++ test error on Solaris 8.
68487         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68488         the function does not exist.
68490 2010-04-10  Bruno Haible  <bruno@clisp.org>
68492         vasnprintf: Add more tests.
68493         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68494         (test_function): Test converting an invalid wide string.
68496         vasnprintf: Correct handling of unconvertible wide string arguments.
68497         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68498         VASNPRINTF.
68499         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68500         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68501         smaller than the expected maximum need for the directive. Set errno to
68502         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68503         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68505         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68506         * modules/vasnprintf (Files): Add m4/printf.m4.
68507         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68509 2010-04-10  Bruno Haible  <bruno@clisp.org>
68511         vasnprintf: Fix crash in %ls directive.
68512         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68513         string is passed as argument to %ls, with no precision and no width.
68514         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68516 2010-04-10  Bruno Haible  <bruno@clisp.org>
68518         vasnprintf: Fix multiple test failures on mingw.
68519         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68520         _snprintf, or snwprintf, not _snwprintf.
68522 2010-04-10  Bruno Haible  <bruno@clisp.org>
68524         write: Fix a C++ test error on mingw.
68525         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68527 2010-04-10  Bruno Haible  <bruno@clisp.org>
68529         vasnprintf test: Reduce code duplication.
68530         * tests/test-vasnprintf.c (test_function): New function, extracted from
68531         test_vasnprintf.
68532         (test_vasnprintf, test_asnprintf): Invoke it.
68534 2010-04-10  Bruno Haible  <bruno@clisp.org>
68536         strnlen: Fix warning in C++ mode on MacOS X.
68537         * lib/string.in.h (strnlen): Use the modern idiom.
68538         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68539         defining strnlen as a macro already in <config.h>.
68540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68541         REPLACE_STRNLEN.
68542         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68543         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68545 2010-04-08  James Youngman  <jay@gnu.org>
68547         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68548         the example.
68550 2010-04-09  Jim Meyering  <meyering@redhat.com>
68552         maint.mk: print better diagnostic when there is no $(_hv_file)
68553         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68554         announce that when $(_hv_file) (aka help-version) does not exist.
68556         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68557         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68558         not try to interpret its random input bytes.  Jarno Rajahalme reported
68559         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68560         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68561         (mktempd_): Likewise, just in case.
68563         ftruncate: add two years to projected module removal date: 2012
68564         * m4/ftruncate.m4: Adjust comments.
68566         ftruncate: mark module as obsolete; even MinGW provides it, now
68567         * modules/ftruncate (Status): Obsolete.
68568         (Notice): Say that.
68569         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68570         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68572 2010-04-08  Bruno Haible  <bruno@clisp.org>
68574         Fix side effects from tests-related modules.
68575         * modules/dprintf-posix (Comment): New section.
68576         * modules/fprintf-posix (Comment): Likewise.
68577         * modules/obstack-printf-posix (Comment): Likewise.
68578         * modules/printf-posix (Comment): Likewise.
68579         * modules/snprintf-posix (Comment): Likewise.
68580         * modules/sprintf-posix (Comment): Likewise.
68581         * modules/vasnprintf-posix (Comment): Likewise.
68582         * modules/vasprintf-posix (Comment): Likewise.
68583         * modules/vdprintf-posix (Comment): Likewise.
68584         * modules/vfprintf-posix (Comment): Likewise.
68585         * modules/vprintf-posix (Comment): Likewise.
68586         * modules/vsnprintf-posix (Comment): Likewise.
68587         * modules/vsprintf-posix (Comment): Likewise.
68588         * modules/xprintf-posix (Comment): Likewise.
68589         * modules/xvasprintf-posix (Comment): Likewise.
68590         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68591         * modules/floorf-tests (Depends-on): Likewise.
68592         * modules/round-tests (Depends-on): Likewise.
68593         * modules/roundf-tests (Depends-on): Likewise.
68594         * modules/trunc-tests (Depends-on): Likewise.
68595         * modules/truncf-tests (Depends-on): Likewise.
68596         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68597         'fprintf-posix' module is not present.
68598         * tests/test-floorf2.c (check): Likewise.
68599         * tests/test-trunc2.c (check): Likewise.
68600         * tests/test-truncf2.c (check): Likewise.
68601         * tests/test-round2.c (equal): Likewise.
68602         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68604 2010-04-07  Karl Berry  <karl@gnu.org>
68606         * config/srclist.txt,
68607         * config/srclistvars.sh,
68608         * config/srclist-update: doc fixes.
68610 2010-04-07  Jim Meyering  <meyering@redhat.com>
68612         maint.mk: add a PATH crosschecking syntax-check rule
68613         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68614         Useful if you use a test like the one in help-version (coreutils,
68615         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68616         printed by prog --version.
68618 2010-04-06  Bruno Haible  <bruno@clisp.org>
68620         Fix link error on mingw.
68621         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68622         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68624 2010-04-06  Bruno Haible  <bruno@clisp.org>
68626         Assume rmdir exists.
68627         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68629 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68631         doc: update users.txt
68632         * users.txt: Add gcal.
68634 2010-04-06  Jim Meyering  <meyering@redhat.com>
68636         init.sh: simply unset TMPDIR rather than risking env -i
68637         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68638         although it probably works fine on all Unix-based systems, some
68639         systems (Cygwin?) cannot tolerate a totally cleared environment.
68640         Suggestion from Eric Blake.
68642 2010-04-06  Jim Meyering  <meyering@redhat.com>
68644         init.sh: portability fix: use env's POSIX-specified -i option not -u
68645         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68646         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68648 2010-04-05  Bruno Haible  <bruno@clisp.org>
68650         btowc: Work around Cygwin 1.7.2 bug.
68651         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68652         does not map NUL to 0.
68653         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68655 2010-04-05  Bruno Haible  <bruno@clisp.org>
68657         Make the multithread modules work on Cygwin 1.7.2.
68658         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68659         imported symbols can be declared weak, so that it returns "no" on
68660         Cygwin 1.7.2.
68662 2010-04-05  Bruno Haible  <bruno@clisp.org>
68664         Use the module 'strncat'.
68665         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68667         Tests for module 'strncat'.
68668         * modules/strncat-tests: New file.
68669         * tests/test-strncat.c: New file.
68671         New module 'strncat'.
68672         * lib/string.in.h (strncat): New declaration.
68673         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68674         * m4/strncat.m4: New file, based on m4/memchr.m4.
68675         * modules/strncat: New file.
68676         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68677         is declared.
68678         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68679         REPLACE_STRNCAT.
68680         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68681         REPLACE_STRNCAT.
68682         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68683         module.
68684         * tests/test-string-c++.cc: Check signature of strncat.
68686 2010-04-05  Jim Meyering  <meyering@redhat.com>
68688         xstrtoumax-tests: convert to use init.sh
68689         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68690         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68691         Use Exit, not exit.
68692         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68694         xstrtoimax-tests: convert to use init.sh
68695         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68696         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68697         Use Exit, not exit.
68698         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68700 2010-04-05  Bruno Haible  <bruno@clisp.org>
68702         sys_socket: Avoid #define replacements in C++ mode.
68703         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68704         warning to the function if possible, rather than #defining the symbol
68705         to a dysfunctional alias.
68707 2010-04-05  Bruno Haible  <bruno@clisp.org>
68709         fseeko: Fix C++ test error on mingw.
68710         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68711         gl_FUNC_FSEEKO.
68712         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68713         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68714         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68715         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68717 2010-04-05  Bruno Haible  <bruno@clisp.org>
68719         duplocale: Improve test output.
68720         * tests/test-duplocale.c (main): Print reason for skipped test.
68722 2010-04-05  Bruno Haible  <bruno@clisp.org>
68724         Assume rmdir exists.
68725         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68726         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68728 2010-04-05  Bruno Haible  <bruno@clisp.org>
68730         Fix link error on Solaris 8 with cc.
68731         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68733 2010-04-05  Bruno Haible  <bruno@clisp.org>
68735         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68736         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68738 2010-04-05  Bruno Haible  <bruno@clisp.org>
68740         vasprintf: Update documentation.
68741         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68743 2010-04-05  Bruno Haible  <bruno@clisp.org>
68745         ptsname: Improve test.
68746         * tests/test-ptsname.c (main): Also try the various master names of BSD
68747         systems.
68749 2010-04-05  Bruno Haible  <bruno@clisp.org>
68751         memchr: Avoid a possible C++ test error.
68752         * lib/string.in.h (memchr): Provide declaration if function is missing.
68753         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68754         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68756         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68758 2010-04-05  Bruno Haible  <bruno@clisp.org>
68760         strtok_r: Improve idiom.
68761         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68762         AC_LIBOBJ is used.
68764 2010-04-05  Bruno Haible  <bruno@clisp.org>
68766         strdup: Improve idiom.
68767         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68768         AC_LIBOBJ is used.
68769         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68770         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68771         when AC_LIBOBJ is used.
68773 2010-04-05  Bruno Haible  <bruno@clisp.org>
68775         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68776         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68777         don't set REPLACE_MBSINIT to 1.
68778         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68779         don't set REPLACE_MBRTOWC to 1.
68780         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68781         exist, don't set REPLACE_MBSRTOWCS to 1.
68782         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68783         exist, don't set REPLACE_MBSNRTOWCS to 1.
68784         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68785         don't set REPLACE_WCRTOMB to 1.
68786         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68787         exist, don't set REPLACE_WCSRTOMBS to 1.
68788         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68789         exist, don't set REPLACE_WCSNRTOMBS to 1.
68791 2010-04-05  Bruno Haible  <bruno@clisp.org>
68793         ldexpl: Improve idiom.
68794         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68795         make sure to set HAVE_DECL_LDEXPL to 0.
68797 2010-04-05  Jim Meyering  <meyering@redhat.com>
68799         xstrtol-tests: convert to use init.sh
68800         * modules/xstrtol-tests (Files): Add tests/init.sh.
68801         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68802         Use Exit, not exit.
68803         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68805         atexit-tests: convert to use init.sh
68806         * modules/atexit-tests (Files): Add tests/init.sh.
68807         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68808         Use Exit, not exit.
68809         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68811         init.sh: fix typo
68812         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68814         init.sh: make it easier for a test script to write to the tty, ...
68815         when using automake's parallel-tests mode.
68816         * tests/init.sh (stderr_fileno_): Define overridable variable.
68817         (warn_): New function, to use it.
68818         (fail_, skip_, framework_failure_): Use warn_.
68820 2010-04-04  Bruno Haible  <bruno@clisp.org>
68822         btowc: Avoid warning.
68823         * lib/btowc.c: Include <stdlib.h>.
68824         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68826 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68827             Bruno Haible  <bruno@clisp.org>
68829         wchar: Port to NetBSD 1.5.
68830         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68831         * lib/wctype.in.h (WEOF): Likewise.
68833 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68834             Bruno Haible  <bruno@clisp.org>
68836         Port extended stdio to NetBSD 1.5.
68837         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68838         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68839         older.
68841 2010-04-04  Bruno Haible  <bruno@clisp.org>
68843         string: Remove unused substitution.
68844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68845         HAVE_DECL_STRERROR.
68846         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68848 2010-04-04  Bruno Haible  <bruno@clisp.org>
68850         strtod: Avoid a possible C++ test error.
68851         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68852         set REPLACE_STRTOD.
68854 2010-04-04  Bruno Haible  <bruno@clisp.org>
68856         strerror: Update documentation.
68857         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68859 2010-04-04  Bruno Haible  <bruno@clisp.org>
68861         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68862         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68863         _GL_CXXALIAS_SYS_CAST.
68865 2010-04-04  Bruno Haible  <bruno@clisp.org>
68867         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68868         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68869         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68870         REPLACE_FREXPL to 1.
68871         * doc/posix-functions/frexpl.texi: Update documentation.
68873 2010-04-04  Bruno Haible  <bruno@clisp.org>
68875         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68876         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68878 2010-04-04  Bruno Haible  <bruno@clisp.org>
68880         Implement nanosleep for native Windows.
68881         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68883 2010-04-04  Bruno Haible  <bruno@clisp.org>
68885         math: Fix some C++ test errors on Solaris 8.
68886         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68888 2010-04-04  Bruno Haible  <bruno@clisp.org>
68890         math: Fix some C++ test errors on Cygwin.
68891         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68892         truncl): Provide declaration if the system does not have it.
68893         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68894         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68895         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68896         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68897         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68898         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68899         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68900         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68901         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68902         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68903         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68904         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68905         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68906         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68907         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68908         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68910         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68911         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68912         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68913         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68914         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68916 2010-04-04  Bruno Haible  <bruno@clisp.org>
68918         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68919         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68920         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68921         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68922         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68923         * m4/isinf.m4 (gl_ISINF): Likewise.
68924         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68926 2010-04-04  Bruno Haible  <bruno@clisp.org>
68928         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68929         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68931 2010-04-04  Bruno Haible  <bruno@clisp.org>
68933         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68934         * modules/tmpfile (configure.ac): Update.
68936         tmpfile: Fix C++ test error on mingw.
68937         * lib/stdio.in.h (tmpfile): New declaration.
68938         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68939         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68940         * modules/tmpfile (Depends-on): Add stdio.
68941         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68942         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68943         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68944         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68945         REPLACE_TMPFILE.
68946         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68948 2010-04-04  Bruno Haible  <bruno@clisp.org>
68950         ioctl: Fix C++ test error on mingw.
68951         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68952         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68953         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68955 2010-04-03  Bruno Haible  <bruno@clisp.org>
68957         wcwidth: Fix C++ test error on mingw.
68958         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68960         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68962 2010-04-03  Bruno Haible  <bruno@clisp.org>
68964         nanosleep: Fix C++ test error on mingw.
68965         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68966         * lib/time.in.h (nanosleep): Use modern idiom.
68967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68968         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68969         REPLACE_NANOSLEEP to 1.
68970         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68971         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68973 2010-04-03  Bruno Haible  <bruno@clisp.org>
68975         strptime: Fix C++ test error on mingw.
68976         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68977         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68978         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68979         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68980         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68981         not REPLACE_STRPTIME.
68982         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68983         REPLACE_STRPTIME.
68985 2010-04-03  Bruno Haible  <bruno@clisp.org>
68987         timegm: Fix C++ test error on mingw.
68988         * lib/time.in.h (timegm): Use modern idiom.
68989         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68990         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68991         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68992         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68994 2010-04-03  Bruno Haible  <bruno@clisp.org>
68996         timegm: Assume declaration if function exists.
68997         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68998         if it exists. Don't clobber ac_cv_func_timegm.
69000 2010-04-03  Bruno Haible  <bruno@clisp.org>
69002         time_r: Fix C++ test error on mingw.
69003         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
69004         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
69005         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
69006         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
69007         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
69009 2010-04-03  Bruno Haible  <bruno@clisp.org>
69011         time_r: Minor updates.
69012         * modules/time_r (Description): Mention the provided functions.
69013         * lib/time_r.c: Don't include <string.h>.
69014         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
69015         * doc/posix-functions/localtime_r.texi: Likewise.
69017 2010-04-03  Bruno Haible  <bruno@clisp.org>
69019         time: Fix regression introduced on 2010-03-08.
69020         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
69021         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
69023 2010-04-03  Jim Meyering  <meyering@redhat.com>
69025         maint.mk: don't silently disable project-specific syntax-check rules
69026         * top/maint.mk (_prohibit_regexp): Define, to help people realize
69027         that they need to convert their project-specific syntax-check rules
69028         to use the new _sc_search_regexp.
69030 2010-04-03  Bruno Haible  <bruno@clisp.org>
69032         fchdir: Fix regression introduced on 2010-03-08.
69033         * lib/unistd.in.h (fchdir): Fix declaration.
69034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
69035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
69036         REPLACE_FCHDIR.
69037         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
69038         REPLACE_FCHDIR.
69040 2010-04-03  Bruno Haible  <bruno@clisp.org>
69042         getpagesize: Fix C++ test error on mingw.
69043         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
69044         system does not declare the function.
69045         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
69046         declared.
69047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69048         HAVE_DECL_GETPAGESIZE.
69049         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
69051 2010-04-03  Bruno Haible  <bruno@clisp.org>
69053         stdio: Make C++ tests work on mingw.
69054         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
69055         does not declare the function.
69057 2010-04-03  Bruno Haible  <bruno@clisp.org>
69059         ftello: Fix C++ test error on mingw.
69060         * lib/stdio.in.h (ftello): Use modern idiom.
69061         * lib/ftello.c (ftello): Renamed from rpl_ftello.
69062         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
69063         is missing and that it needs to be replaced.
69064         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
69065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
69066         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
69068 2010-04-03  Bruno Haible  <bruno@clisp.org>
69070         fseeko: Fix C++ test error on mingw.
69071         * lib/stdio.in.h (fseeko): Use modern idiom.
69072         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
69073         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
69074         is missing and that it needs to be replaced.
69075         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
69076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
69077         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
69079 2010-04-03  Bruno Haible  <bruno@clisp.org>
69081         mkstemp: Fix C++ test error on mingw.
69082         * lib/stdlib.in.h (mkstemp): Use modern idiom.
69083         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
69084         function is missing and that it needs to be replaced.
69085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
69086         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
69088 2010-04-03  Bruno Haible  <bruno@clisp.org>
69090         stpncpy: Fix C++ test error on mingw.
69091         * lib/string.in.h (stpncpy): Use modern idiom.
69092         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
69093         function is missing and that it needs to be replaced.
69094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69095         REPLACE_STPNCPY.
69096         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
69098 2010-04-03  Bruno Haible  <bruno@clisp.org>
69100         sys_stat: Fix C++ test error on mingw.
69101         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
69102         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
69104 2010-04-03  Bruno Haible  <bruno@clisp.org>
69106         pty: Update doc.
69107         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
69109 2010-04-03  Bruno Haible  <bruno@clisp.org>
69111         unistd: Fix C++ test error on mingw.
69112         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
69114 2010-04-03  Bruno Haible  <bruno@clisp.org>
69116         Update doc regarding mingw.
69117         * doc/glibc-functions/openpty.texi: Update regarding mingw.
69118         * doc/glibc-functions/login_tty.texi: Likewise.
69119         * doc/glibc-functions/forkpty.texi: Likewise.
69121 2010-04-03  Bruno Haible  <bruno@clisp.org>
69123         stdlib: Avoid compilation failure of c-strtold on mingw.
69124         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
69126 2010-04-03  Bruno Haible  <bruno@clisp.org>
69128         locale: Make C++ tests work on Cygwin and mingw.
69129         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
69130         cannot provide the function.
69131         Reported by Simon Josefsson.
69133 2010-04-03  Bruno Haible  <bruno@clisp.org>
69135         localename: Port to MacOS X 10.6.
69136         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
69137         memory layout of the locales in MacOS X 10.6 as well.
69138         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
69140 2010-04-02  Bruno Haible  <bruno@clisp.org>
69142         gnulib-tool: Ensure that long-running tests are executed last.
69143         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
69144         running tests after the one for the other tests.
69146 2010-04-02  Bruno Haible  <bruno@clisp.org>
69148         gnulib-tool: Ensure the tests in the main directory are executed first.
69149         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
69150         start with the current directory.
69152 2010-04-02  Bruno Haible  <bruno@clisp.org>
69154         Tests for module 'havelib', moved here from GNU gettext.
69155         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
69156         modifications.
69157         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
69158         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
69159         with modifications.
69160         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
69161         modifications.
69162         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
69163         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
69164         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
69165         with modifications.
69166         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
69167         with modifications.
69168         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
69169         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
69170         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
69171         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
69172         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
69173         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
69174         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
69175         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
69176         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
69177         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
69178         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
69179         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
69180         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
69181         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
69182         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
69183         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
69184         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
69185         with modifications.
69186         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
69187         with modifications.
69188         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
69189         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
69190         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
69191         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
69192         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
69193         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
69194         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
69195         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
69196         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
69197         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
69198         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
69199         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
69200         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
69201         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
69202         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
69203         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
69204         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
69205         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
69206         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
69207         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
69208         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
69209         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
69210         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
69211         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
69212         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
69213         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
69214         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
69215         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
69216         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
69217         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
69218         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
69219         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
69220         * tests/havelib/rpathx/rpathx.c: New file, from
69221         gettext/autoconf-lib-link.
69222         * tests/havelib/rpathx/Makefile.am: New file, from
69223         gettext/autoconf-lib-link.
69224         * tests/havelib/rpathx/configure.ac: New file, from
69225         gettext/autoconf-lib-link with modifications.
69226         * tests/havelib/rpathy/rpathy.c: New file, from
69227         gettext/autoconf-lib-link.
69228         * tests/havelib/rpathy/Makefile.am: New file, from
69229         gettext/autoconf-lib-link.
69230         * tests/havelib/rpathy/configure.ac: New file, from
69231         gettext/autoconf-lib-link with modifications.
69232         * tests/havelib/rpathz/rpathz.c: New file, from
69233         gettext/autoconf-lib-link.
69234         * tests/havelib/rpathz/Makefile.am: New file, from
69235         gettext/autoconf-lib-link.
69236         * tests/havelib/rpathz/configure.ac: New file, from
69237         gettext/autoconf-lib-link with modifications.
69238         * tests/havelib/rpathlx/usex.c: New file, from
69239         gettext/autoconf-lib-link.
69240         * tests/havelib/rpathlx/Makefile.am: New file, from
69241         gettext/autoconf-lib-link.
69242         * tests/havelib/rpathlx/configure.ac: New file, from
69243         gettext/autoconf-lib-link with modifications.
69244         * tests/havelib/rpathly/usey.c: New file, from
69245         gettext/autoconf-lib-link.
69246         * tests/havelib/rpathly/Makefile.am: New file, from
69247         gettext/autoconf-lib-link.
69248         * tests/havelib/rpathly/configure.ac: New file, from
69249         gettext/autoconf-lib-link with modifications.
69250         * tests/havelib/rpathlz/usez.c: New file, from
69251         gettext/autoconf-lib-link.
69252         * tests/havelib/rpathlz/Makefile.am: New file, from
69253         gettext/autoconf-lib-link.
69254         * tests/havelib/rpathlz/configure.ac: New file, from
69255         gettext/autoconf-lib-link with modifications.
69256         * tests/havelib/rpathlyx/usey.c: New file, from
69257         gettext/autoconf-lib-link.
69258         * tests/havelib/rpathlyx/Makefile.am: New file, from
69259         gettext/autoconf-lib-link.
69260         * tests/havelib/rpathlyx/configure.ac: New file, from
69261         gettext/autoconf-lib-link with modifications.
69262         * tests/havelib/rpathlzyx/usez.c: New file, from
69263         gettext/autoconf-lib-link.
69264         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69265         gettext/autoconf-lib-link.
69266         * tests/havelib/rpathlzyx/configure.ac: New file, from
69267         gettext/autoconf-lib-link with modifications.
69268         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69269         with modifications.
69271 2010-04-02  Bruno Haible  <bruno@clisp.org>
69273         gnulib-tool: Create distributed built sources also for the tests.
69274         * gnulib-tool (func_create_testdir): Also generate distributed built
69275         sources in the tests directory.
69277 2010-04-02  Bruno Haible  <bruno@clisp.org>
69279         gnulib-tool: Obey user's environment variables.
69280         * gnulib-tool (func_create_testdir): When creating built sources,
69281         respect the environment variables for autoconf, automake, etc. given by
69282         the user.
69284 2010-04-02  Bruno Haible  <bruno@clisp.org>
69286         gnulib-tool: Provide the value of --m4-base to modules.
69287         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69288         of gl_m4_base.
69290 2010-04-02  Eric Blake  <eblake@redhat.com>
69292         maint.mk: fix some fallout
69293         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69294         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69296 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69298         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69299         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69300         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69301         (sc_cast_of_x_alloc_return_value): Likewise.
69302         (sc_cast_of_alloca_return_value): Likewise.
69303         (sc_space_tab): Likewise.
69304         (sc_prohibit_atoi_atof): Likewise.
69305         (sc_prohibit_magic_number_exit): Likewise.
69306         (sc_error_exit_success): Likewise.
69307         (sc_file_system): Likewise.
69308         (sc_prohibit_have_config_h): Likewise.
69309         (sc_require_config_h): Likewise.
69310         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69311         (sc_obsolete_symbols): Likewise.
69312         (sc_changelog): Likewise.
69313         (sc_program_name): Likewise.
69314         (sc_the_the): Likewise.
69315         (sc_trailing_blank): Likewise.
69316         (sc_two_space_separator_in_usage): Likewise.
69317         (sc_useless_cpp_parens): Likewise.
69318         (sc_GPL_version): Likewise.
69319         (sc_GFDL_version): Likewise.
69320         (sc_texinfo_acronym): Likewise.
69321         (sc_prohibit_cvs_keyword): Likewise.
69322         (sc_prohibit_stat_st_blocks): Likewise.
69323         (sc_prohibit_S_IS_definition): Likewise.
69324         (sc_redundant_const): Likewise.
69325         (sc_makefile_TAB_only_indentation): Likewise.
69326         (sc_m4_quote_check): Likewise.
69327         (sc_makefile_path_separator_check): Likewise.
69328         (sc_copyright_check): Likewise.
69329         (sc_Wundef_boolean): Likewise.
69330         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69332         maint.mk: match 0 or more whitespace-before-function-call '('
69333         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69334         that have zero or two-and-more spaces between the function name
69335         and the open parenthesis.
69336         (sc_error_message_warn_fatal): Likewise.
69337         (sc_error_message_uppercase): Likewise.
69338         (sc_error_message_period): Likewise.
69340 2010-03-31  Eric Blake  <eblake@redhat.com>
69342         maint.mk: check for [ as well as test
69343         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69344         Based on a libvirt report by Matthias Bolte.
69346         gnumakefile: don't squelch _version output
69347         * top/GNUmakefile (_version): Create one-shot dependency rather
69348         than using $(shell) when version must be regenerated.
69349         (_autoreconf): Run verbosely, by default.
69351         sys_time: avoid compiler warnings
69352         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69353         unconditional, fixing regression from 2010-03-29.
69354         Reported by Simon Josefsson.
69356 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69358         maint.mk: s/_header_without_use/_sc_header_without_use/
69359         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69360         (sc_prohibit_assert_without_use): Use the new name.
69361         (sc_prohibit_close_stream_without_use): Likewise.
69362         (sc_prohibit_getopt_without_use): Likewise.
69363         (sc_prohibit_quotearg_without_use): Likewise.
69364         (sc_prohibit_quote_without_use): Likewise.
69365         (sc_prohibit_long_options_without_use): Likewise.
69366         (sc_prohibit_inttostr_without_use): Likewise.
69367         (sc_prohibit_ignore_value_without_use): Likewise.
69368         (sc_prohibit_error_without_use): Likewise.
69369         (sc_prohibit_xalloc_without_use): Likewise.
69370         (sc_prohibit_hash_without_use): Likewise.
69371         (sc_prohibit_hash_pjw_without_use): Likewise.
69372         (sc_prohibit_safe_read_without_use): Likewise.
69373         (sc_prohibit_argmatch_without_use): Likewise.
69374         (sc_prohibit_canonicalize_without_use): Likewise.
69375         (sc_prohibit_root_dev_ino_without_use): Likewise.
69376         (sc_prohibit_openat_without_use): Likewise.
69377         (sc_prohibit_c_ctype_without_use): Likewise.
69378         (sc_prohibit_signal_without_use): Likewise.
69379         (sc_prohibit_intprops_without_use): Likewise.
69381 2010-03-30  Eric Blake  <eblake@redhat.com>
69383         maint: improve module indicators
69384         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69385         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69386         columns, and avoid extra macro expansion.
69388         fdopendir: work around FreeBSD bug
69389         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69390         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69391         * modules/dirent (Makefile.am): Substitute it.
69392         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69393         declaration.
69394         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69395         fix.
69396         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69398 2010-03-29  Bruno Haible  <bruno@clisp.org>
69400         Emit #pragma system_header after the inclusion guard, not before.
69401         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69402         guard that spans the entire file, not before. This enables an
69403         optimization in GCC's preprocessor.
69404         * lib/ctype.in.h: Likewise.
69405         * lib/dirent.in.h: Likewise.
69406         * lib/errno.in.h: Likewise.
69407         * lib/float.in.h: Likewise.
69408         * lib/getopt.in.h: Likewise.
69409         * lib/iconv.in.h: Likewise.
69410         * lib/langinfo.in.h: Likewise.
69411         * lib/locale.in.h: Likewise.
69412         * lib/math.in.h: Likewise.
69413         * lib/netdb.in.h: Likewise.
69414         * lib/netinet_in.in.h: Likewise.
69415         * lib/pty.in.h: Likewise.
69416         * lib/sched.in.h: Likewise.
69417         * lib/se-selinux.in.h: Likewise.
69418         * lib/search.in.h: Likewise.
69419         * lib/spawn.in.h: Likewise.
69420         * lib/stdarg.in.h: Likewise.
69421         * lib/stdint.in.h: Likewise.
69422         * lib/string.in.h: Likewise.
69423         * lib/strings.in.h: Likewise.
69424         * lib/sys_file.in.h: Likewise.
69425         * lib/sys_ioctl.in.h: Likewise.
69426         * lib/sys_time.in.h: Likewise.
69427         * lib/sys_times.in.h: Likewise.
69428         * lib/sys_utsname.in.h: Likewise.
69429         * lib/sys_wait.in.h: Likewise.
69430         * lib/sysexits.in.h: Likewise.
69431         * lib/wctype.in.h: Likewise.
69433 2010-03-28  James Youngman  <jay@gnu.org>
69435         save-cwd: don't leak a file descriptor when the caller execs.
69436         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69437         saved file descriptor.
69438         * modules/save-cwd (Depends-on): Depend on cloexec.
69440 2010-03-29  Bruno Haible  <bruno@clisp.org>
69442         Remove vestiges of fts-lgpl module.
69443         * lib/fts_.h: Assume GNULIB_FTS is 1.
69444         * lib/fts.c: Likewise.
69445         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69447 2010-03-28  Bruno Haible  <bruno@clisp.org>
69449         Fix definition of tests witness macro.
69450         * gnulib-tool (func_import): Fix definition of witness macro.
69452 2010-03-28  Bruno Haible  <bruno@clisp.org>
69454         Fix ioctl's protoype on glibc systems.
69455         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69456         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69457         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69458         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69459         signature. If not, arrange to replace the ioctl function.
69460         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69461         REPLACE_IOCTL.
69462         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69463         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69464         Reported by Ludovic Courtès <ludo@gnu.org>.
69466 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69468         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69469         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69470         made it so grep -r --include=GLOB* ... did not work.
69472 2010-03-26  Jim Meyering  <meyering@redhat.com>
69473             Eric Blake  <eblake@redhat.com>
69475         maint.mk: prohibit use of test's -o and -a operators
69476         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69478 2010-03-28  Bruno Haible  <bruno@clisp.org>
69480         Remove unused GNULIB_XYZ macro definitions.
69481         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69482         invocation.
69484 2010-03-28  Bruno Haible  <bruno@clisp.org>
69486         Mark privileged tests modules.
69487         * modules/idpriv-drop-tests (Status): New section.
69488         * modules/idpriv-droptemp-tests (Status): New section.
69490 2010-03-28  Bruno Haible  <bruno@clisp.org>
69492         Split C++ tests into separate tests modules.
69493         * modules/dirent-c++-tests: New file, extracted from
69494         modules/dirent-tests.
69495         * modules/dirent-tests: Depend on it.
69496         * modules/fcntl-h-c++-tests: New file, extracted from
69497         modules/fcntl-h-tests.
69498         * modules/fcntl-h-tests: Depend on it.
69499         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69500         * modules/glob-tests: Depend on it.
69501         * modules/iconv-h-c++-tests: New file, extracted from
69502         modules/iconv-h-tests.
69503         * modules/iconv-h-tests: Depend on it.
69504         * modules/langinfo-c++-tests: New file, extracted from
69505         modules/langinfo-tests.
69506         * modules/langinfo-tests: Depend on it.
69507         * modules/locale-c++-tests: New file, extracted from
69508         modules/locale-tests.
69509         * modules/locale-tests: Depend on it.
69510         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69511         * modules/math-tests: Depend on it.
69512         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69513         * modules/pty-tests: Depend on it.
69514         * modules/search-c++-tests: New file, extracted from
69515         modules/search-tests.
69516         * modules/search-tests: Depend on it.
69517         * modules/signal-c++-tests: New file, extracted from
69518         modules/signal-tests.
69519         * modules/signal-tests: Depend on it.
69520         * modules/spawn-c++-tests: New file, extracted from
69521         modules/spawn-tests.
69522         * modules/spawn-tests: Depend on it.
69523         * modules/stdio-c++-tests: New file, extracted from
69524         modules/stdio-tests.
69525         * modules/stdio-tests: Depend on it.
69526         * modules/stdlib-c++-tests: New file, extracted from
69527         modules/stdlib-tests.
69528         * modules/stdlib-tests: Depend on it.
69529         * modules/string-c++-tests: New file, extracted from
69530         modules/string-tests.
69531         * modules/string-tests: Depend on it.
69532         * modules/sys_ioctl-c++-tests: New file, extracted from
69533         modules/sys_ioctl-tests.
69534         * modules/sys_ioctl-tests: Depend on it.
69535         * modules/sys_select-c++-tests: New file, extracted from
69536         modules/sys_select-tests.
69537         * modules/sys_select-tests: Depend on it.
69538         * modules/sys_socket-c++-tests: New file, extracted from
69539         modules/sys_socket-tests.
69540         * modules/sys_socket-tests: Depend on it.
69541         * modules/sys_stat-c++-tests: New file, extracted from
69542         modules/sys_stat-tests.
69543         * modules/sys_stat-tests: Depend on it.
69544         * modules/sys_time-c++-tests: New file, extracted from
69545         modules/sys_time-tests.
69546         * modules/sys_time-tests: Depend on it.
69547         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69548         * modules/time-tests: Depend on it.
69549         * modules/unistd-c++-tests: New file, extracted from
69550         modules/unistd-tests.
69551         * modules/unistd-tests: Depend on it.
69552         * modules/wchar-c++-tests: New file, extracted from
69553         modules/wchar-tests.
69554         * modules/wchar-tests: Depend on it.
69555         * modules/wctype-c++-tests: New file, extracted from
69556         modules/wctype-tests.
69557         * modules/wctype-tests: Depend on it.
69558         Reported by Simon Josefsson.
69560 2010-03-28  Bruno Haible  <bruno@clisp.org>
69562         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69563         * gnulib-tool (func_exists_module): New function, extracted from
69564         func_verify_module.
69565         (func_verify_module): Use it.
69566         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69567         'foo' only if 'foo' exists.
69568         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69569         module.
69571 2010-03-28  Bruno Haible  <bruno@clisp.org>
69573         gnulib-tool: Add support for special categories of tests.
69574         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69575         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69576         (func_usage): Document them.
69577         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69578         inc_unportable_tests, inc_all_tests): New variables.
69579         (func_acceptable): Consider these variables.
69580         (func_modules_transitive_closure): Make it work when the 'Status' field
69581         consists of multiple words.
69582         (func_import): Store and restore the values of inc_cxx_tests,
69583         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69584         inc_all_tests in gnulib-comp.m4.
69585         (func_create_testdir): Set inc_all_tests to true.
69586         * doc/gnulib.texi (Extra tests modules): New section.
69587         Suggested by Jim Meyering.
69589 2010-03-28  Bruno Haible  <bruno@clisp.org>
69591         ansi-c++-opt: Allow turning off the C++ build by default.
69592         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69593         gl_CXX_CHOICE_DEFAULT_NO is defined.
69594         Requested by Eric Blake.
69596 2010-03-28  Bruno Haible  <bruno@clisp.org>
69598         unistd: Avoid #define replacements in C++ mode.
69599         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69600         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69601         setsockopt, shutdown, select): In C++, attach a warning to the function
69602         if possible, rather than #defining the symbol to a dysfunctional alias.
69603         Reported by John W. Eaton <jwe@gnu.org>.
69605 2010-03-28  Bruno Haible  <bruno@clisp.org>
69607         Fix link errors on mingw.
69608         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69609         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69610         $(LIBSOCKET).
69611         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69612         $(LIBSOCKET).
69614 2010-03-28  Bruno Haible  <bruno@clisp.org>
69615             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69617         lib-ignore: Determine different options for different compilers.
69618         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69619         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69620         Add comments.
69621         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69622         * NEWS: Mention the change.
69624 2010-03-27  Bruno Haible  <bruno@clisp.org>
69626         Remove unused GNULIB_XYZ macro definitions.
69627         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69628         * modules/fseek (configure.ac): Likewise.
69629         * modules/ioctl (configure.ac): Likewise.
69630         * modules/open (configure.ac): Likewise.
69631         * modules/stdlib-safer (configure.ac): Likewise.
69633 2010-03-27  Bruno Haible  <bruno@clisp.org>
69635         Add a remark about certain modules.
69636         * modules/malloc (Comment): New section.
69637         * modules/realloc (Comment): Likewise.
69638         * modules/sigpipe (Comment): Likewise.
69640 2010-03-27  Bruno Haible  <bruno@clisp.org>
69642         Resolve conflict between the two kinds of module indicators.
69643         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69644         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69645         * modules/canonicalize (configure.ac): Invoke
69646         gl_MODULE_INDICATOR_FOR_TESTS.
69647         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69648         GNULIB_XYZ.
69649         * tests/test-dirent-c++.cc: Likewise.
69650         * tests/test-dirent-safer.c: Likewise.
69651         * tests/test-dup2.c: Likewise.
69652         * tests/test-fchdir.c: Likewise.
69653         * tests/test-fcntl-h-c++.cc: Likewise.
69654         * tests/test-getopt.c: Likewise.
69655         * tests/test-getopt.h: Likewise.
69656         * tests/test-langinfo-c++.cc: Likewise.
69657         * tests/test-locale-c++.cc: Likewise.
69658         * tests/test-math-c++.cc: Likewise.
69659         * tests/test-pty-c++.cc: Likewise.
69660         * tests/test-search-c++.cc: Likewise.
69661         * tests/test-signal-c++.cc: Likewise.
69662         * tests/test-spawn-c++.cc: Likewise.
69663         * tests/test-stdio-c++.cc: Likewise.
69664         * tests/test-stdlib-c++.cc: Likewise.
69665         * tests/test-string-c++.cc: Likewise.
69666         * tests/test-sys_ioctl-c++.cc: Likewise.
69667         * tests/test-sys_select-c++.cc: Likewise.
69668         * tests/test-sys_socket-c++.cc: Likewise.
69669         * tests/test-sys_stat-c++.cc: Likewise.
69670         * tests/test-sys_time-c++.cc: Likewise.
69671         * tests/test-time-c++.cc: Likewise.
69672         * tests/test-unistd-c++.cc: Likewise.
69673         * tests/test-wchar-c++.cc: Likewise.
69674         * tests/uninorm/test-u8-nfc.c: Likewise.
69675         * tests/uninorm/test-u8-nfd.c: Likewise.
69676         * tests/uninorm/test-u8-nfkc.c: Likewise.
69677         * tests/uninorm/test-u8-nfkd.c: Likewise.
69678         * tests/uninorm/test-u16-nfc.c: Likewise.
69679         * tests/uninorm/test-u16-nfd.c: Likewise.
69680         * tests/uninorm/test-u16-nfkc.c: Likewise.
69681         * tests/uninorm/test-u16-nfkd.c: Likewise.
69682         * tests/uninorm/test-u32-nfc.c: Likewise.
69683         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69684         * tests/uninorm/test-u32-nfd.c: Likewise.
69685         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69686         * tests/uninorm/test-u32-nfkc.c: Likewise.
69687         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69688         * tests/uninorm/test-u32-nfkd.c: Likewise.
69689         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69690         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69692 2010-03-27  Bruno Haible  <bruno@clisp.org>
69694         Distinguish two kinds of module indicators.
69695         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69696         gl_MODULE_INDICATOR.
69697         (gl_MODULE_INDICATOR): New macro.
69698         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69699         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69700         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69701         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69702         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69703         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69704         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69705         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69706         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69707         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69708         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69709         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69711         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69712         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69714         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69715         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69716         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69717         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69718         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69719         * modules/cloexec (configure.ac): Likewise.
69720         * modules/getopt-gnu (configure.ac): Likewise.
69721         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69722         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69723         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69724         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69726 2010-03-27  Bruno Haible  <bruno@clisp.org>
69728         New module description field 'Comment'.
69729         * gnulib-tool: New option --extract-comment.
69730         (func_usage): Document it.
69731         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69732         (func_get_comment): New function.
69733         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69735 2010-03-27  Bruno Haible  <bruno@clisp.org>
69737         Addendum to 2010-02-07 commit.
69738         * gnulib-tool (func_usage): Document --extract-applicability option.
69740 2010-03-27  Bruno Haible  <bruno@clisp.org>
69742         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69743         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69744         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69745         rather than link errors.
69747 2010-03-27  Bruno Haible  <bruno@clisp.org>
69749         Avoid side effects from tests-related modules on the compilation of lib.
69750         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69751         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69752         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69753         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69754         macro.
69755         (func_import): Define a witness macro. Assign it a value that depends
69756         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69757         tests-related modules.
69758         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69759         Reported by Jim Meyering.
69761 2010-03-27  Bruno Haible  <bruno@clisp.org>
69763         Factorize common .m4 code.
69764         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69765         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69766         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69767         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69768         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69769         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69770         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69771         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69772         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69773         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69774         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69775         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69776         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69777         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69778         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69779         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69780         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69781         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69783         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69784         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69785         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69786         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69787         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69788         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69789         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69790         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69791         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69792         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69793         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69794         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69795         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69797 2010-03-27  Bruno Haible  <bruno@clisp.org>
69799         Fix a compilation error on Cygwin with g++ >= 4.3.
69800         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69801         if it is undefined or if we alias it to chmod.
69802         (lstat): Don't warn about the use of this function if it is undefined
69803         or if we alias it to stat.
69804         Reported by Simon Josefsson.
69806 2010-03-27  Bruno Haible  <bruno@clisp.org>
69808         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69809         * modules/getlogin (configure.ac): Update.
69811         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69812         * modules/getlogin_r (configure.ac): Update.
69814         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69816         * modules/inet_ntop (configure.ac): Update.
69818         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69819         * modules/inet_pton (configure.ac): Update.
69821         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69822         * modules/mbslen (configure.ac): Update.
69824         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69825         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69826         * modules/forkpty (configure.ac): Update.
69827         * modules/openpty (configure.ac): Update.
69829 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69831         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69832         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69834 2010-03-25  Eric Blake  <eblake@redhat.com>
69836         maint: use pragma consistently across replacement headers
69837         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69838         * lib/dirent.in.h (system_header): Likewise.
69839         * lib/errno.in.h (system_header): Likewise.
69840         * lib/float.in.h (system_header): Likewise.
69841         * lib/getopt.in.h (system_header): Likewise.
69842         * lib/iconv.in.h (system_header): Likewise.
69843         * lib/inttypes.in.h (system_header): Likewise.
69844         * lib/langinfo.in.h (system_header): Likewise.
69845         * lib/locale.in.h (system_header): Likewise.
69846         * lib/math.in.h (system_header): Likewise.
69847         * lib/netdb.in.h (system_header): Likewise.
69848         * lib/netinet_in.in.h (system_header): Likewise.
69849         * lib/pty.in.h (system_header): Likewise.
69850         * lib/sched.in.h (system_header): Likewise.
69851         * lib/se-selinux.in.h (system_header): Likewise.
69852         * lib/search.in.h (system_header): Likewise.
69853         * lib/spawn.in.h (system_header): Likewise.
69854         * lib/stdarg.in.h (system_header): Likewise.
69855         * lib/stdint.in.h (system_header): Likewise.
69856         * lib/string.in.h (system_header): Likewise.
69857         * lib/strings.in.h (system_header): Likewise.
69858         * lib/sys_file.in.h (system_header): Likewise.
69859         * lib/sys_ioctl.in.h (system_header): Likewise.
69860         * lib/sys_socket.in.h (system_header): Likewise.
69861         * lib/sys_times.in.h (system_header): Likewise.
69862         * lib/sys_utsname.in.h (system_header): Likewise.
69863         * lib/sys_wait.in.h (system_header): Likewise.
69864         * lib/sysexits.in.h (system_header): Likewise.
69865         * lib/unistd.in.h (system_header): Likewise.
69866         * lib/wctype.in.h (system_header): Likewise.
69868         arpa/inet: fix mingw compilation warning
69869         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69870         Reported by Matthew Bolte.
69872 2010-03-25  Bruno Haible  <bruno@clisp.org>
69874         Avoid collision between gnulib wrapper and libintl wrapper.
69875         * lib/printf.c (printf): Don't define if a printf wrapper is already
69876         defined in intl/printf.c.
69877         Reported by Michel Boaventura <michel@michelboaventura.com>.
69879 2010-03-25  Bruno Haible  <bruno@clisp.org>
69881         Use ANSI C.
69882         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69884 2010-03-25  Bruno Haible  <bruno@clisp.org>
69886         Minor formatting changes.
69887         * lib/acosl.c: Insert space before function argument list.
69888         * lib/argz.c: Likewise.
69889         * lib/asinl.c: Likewise.
69890         * lib/expl.c: Likewise.
69891         * lib/gen-uni-tables.c: Likewise.
69892         * lib/gettext.h: Likewise.
69893         * lib/glthread/lock.h: Likewise.
69894         * lib/tanl.c: Likewise.
69895         * lib/uniname/uniname.c: Likewise.
69896         * tests/test-idpriv-drop.c: Likewise.
69897         * tests/test-idpriv-droptemp.c: Likewise.
69898         * tests/test-lock.c: Likewise.
69899         * tests/test-tls.c: Likewise.
69900         * lib/argp-help.c: Insert space before function-like macro argument
69901         list.
69902         * lib/memcmp.c: Likewise.
69903         * tests/test-base64.c: Likewise.
69904         * lib/localename.c: Insert space before sizeof's argument list.
69905         * lib/safe-alloc.h: Likewise.
69906         * lib/file-set.h: Insert space before macro argument list.
69907         * tests/test-argp.c: Likewise.
69908         * lib/argp-namefrob.h: Insert space before function parameter list.
69909         * lib/getaddrinfo.c: Likewise.
69910         * lib/netdb.in.h: Likewise.
69911         * lib/parse-duration.h: Likewise.
69912         * lib/parse-duration.c: Likewise.
69913         * lib/poll.c: Likewise.
69914         * lib/select.c: Likewise.
69915         * lib/trim.h: Likewise.
69916         * tests/test-usleep.c: Likewise.
69917         * lib/ldexpl.c: Insert space before function parameter list and before
69918         function argument list.
69919         * lib/logl.c: Likewise.
69920         * lib/sqrtl.c: Likewise.
69921         * lib/trim.c: Likewise.
69922         * lib/cosl.c: Use GNU style indentation. Insert space before function
69923         argument list.
69924         * lib/sinl.c: Likewise.
69925         * lib/tsearch.c: Insert space after 'for'.
69926         Reported by Jim Meyering.
69928 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69930         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69931         config header before grepping, as it's not present before
69932         autoreconf/configure are run.  Reported by Simon Josefsson.
69934 2010-03-23  Bruno Haible  <bruno@clisp.org>
69936         pt_chown: Make it work with automake < 1.11.
69937         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69938         Reported by Simon Josefsson.
69940 2010-03-23  Bruno Haible  <bruno@clisp.org>
69942         pt_chown: Don't depend on GPLed modules.
69943         * lib/pt_chown.c: Don't include idpriv.h.
69944         (main): Don't drop privileges.
69945         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69946         Reported by Simon Josefsson.
69948 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69950         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69951         suggestions from karl@freefriends.org (Karl Berry).
69953 2010-03-22  Eric Blake  <eblake@redhat.com>
69955         gethostname: further tweaks
69956         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69957         are overriding gethostname.
69958         Suggested by Bruno Haible.
69960 2010-03-21  Bruno Haible  <bruno@clisp.org>
69962         Fix comments.
69963         * lib/forkpty.c (rpl_forkpty): Fix comment.
69964         * lib/openpty.c (rpl_openpty): Likewise.
69965         Reported by Eric Blake.
69967 2010-03-22  Eric Blake  <eblake@redhat.com>
69969         gethostname: fix build on mingw
69970         * lib/unistd.in.h (includes): Work around fact that mingw
69971         <winsock2.h> re-includes <unistd.h>, by avoiding any
69972         redeclarations if we are being included by <winsock2.h>.
69973         Reported by Matthias Bolte.
69975 2010-03-21  Bruno Haible  <bruno@clisp.org>
69977         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69978         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69979         modifications.
69980         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69981         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69982         provide the replacement.
69983         * modules/forkpty (Depends-on): Add openpty, login_tty.
69984         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69985         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69986         * doc/glibc-functions/forkpty.texi: More supported platforms.
69987         * config/srclist.txt: Add forkpty.c (commented).
69989 2010-03-21  Bruno Haible  <bruno@clisp.org>
69991         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69992         (Makefile.am): Verify that PTY_LIB is defined.
69994         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69996 2010-03-21  Bruno Haible  <bruno@clisp.org>
69998         Tests for module 'login_tty'.
69999         * modules/login_tty-tests: New file.
70000         * tests/test-login_tty.c: New file.
70002         New module 'login_tty'.
70003         * lib/login_tty.c: New file.
70004         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
70005         * modules/login_tty: New file.
70006         * doc/glibc-functions/login_tty.texi: Mention the new module.
70008 2010-03-21  Bruno Haible  <bruno@clisp.org>
70010         login_tty: Documentation.
70011         * doc/glibc-functions/login_tty.texi: New file.
70012         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
70014 2010-03-21  Bruno Haible  <bruno@clisp.org>
70016         pty: Consistent macro naming.
70017         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
70018         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
70019         * modules/pty (configure.ac): Update.
70021 2010-03-21  Bruno Haible  <bruno@clisp.org>
70023         Tests for openpty: Make stricter.
70024         * tests/test-openpty.c (main): Add test of canonical processing and
70025         erase.
70026         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
70028         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70029         * lib/openpty.c (openpty): New replacement function.
70030         * lib/pty.in.h: Include <termios.h>.
70031         (openpty): Update declaration. Add comments.
70032         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
70033         is not declared, arrange to provide the replacement. Check for _getpty
70034         and posix_openpt.
70035         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
70036         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
70037         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
70038         * modules/pty-tests (test_pty_c___LDADD): New variable.
70039         * doc/glibc-functions/openpty.texi: More supported platforms.
70041 2010-03-21  Bruno Haible  <bruno@clisp.org>
70043         setenv: Tweaks.
70044         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
70045         the test program.
70046         * doc/posix-functions/setenv.texi: Update platforms list.
70048 2010-03-21  Bruno Haible  <bruno@clisp.org>
70050         New module 'unlockpt'.
70051         * lib/unlockpt.c: New file, from glibc with modifications.
70052         * m4/unlockpt.m4: New file.
70053         * modules/unlockpt: New file.
70054         * lib/stdlib.in.h (unlockpt): New declaration.
70055         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
70056         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
70057         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
70058         HAVE_UNLOCKPT.
70059         * doc/posix-functions/unlockpt.texi: Mention the new module.
70060         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
70061         * config/srclist.txt: Add unlockpt.c (commented).
70063 2010-03-21  Jim Meyering  <meyering@redhat.com>
70065         maint.mk: prohibit inclusion of "intprops.h" without use
70066         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
70068 2010-03-21  Bruno Haible  <bruno@clisp.org>
70070         New module 'grantpt'.
70071         * lib/grantpt.c: New file, from glibc with modifications.
70072         * m4/grantpt.m4: New file.
70073         * modules/grantpt: New file.
70074         * lib/stdlib.in.h (grantpt): New declaration.
70075         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
70076         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
70077         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
70078         HAVE_GRANTPT.
70079         * doc/posix-functions/grantpt.texi: Mention the new module.
70080         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
70081         * config/srclist.txt: Add grantpt.c (commented).
70083 2010-03-21  Bruno Haible  <bruno@clisp.org>
70085         New module 'pt_chown'.
70086         * lib/pt_chown.c: New file, from glibc with modifications.
70087         * lib/pty-private.h: New file, from glibc with modifications.
70088         * modules/pt_chown: New file.
70089         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
70091 2010-03-21  Bruno Haible  <bruno@clisp.org>
70093         Tests for module 'ptsname'.
70094         * modules/ptsname-tests: New file.
70095         * tests/test-ptsname.c: New file.
70097         New module 'ptsname'.
70098         * lib/ptsname.c: New file, from glibc with modifications.
70099         * m4/ptsname.m4: New file.
70100         * modules/ptsname: New file.
70101         * lib/stdlib.in.h (ptsname): New declaration.
70102         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
70103         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
70104         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
70105         HAVE_PTSNAME.
70106         * doc/posix-functions/ptsname.texi: Mention the new module.
70107         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
70108         * config/srclist.txt: Add ptsname.c (commented).
70110 2010-03-21  Bruno Haible  <bruno@clisp.org>
70112         Tests for module 'ttyname_r'.
70113         * modules/ttyname_r-tests: New file.
70114         * tests/test-ttyname_r.c: New file.
70116         New module 'ttyname_r'.
70117         * lib/ttyname_r.c: New file.
70118         * m4/ttyname_r.m4: New file.
70119         * modules/ttyname_r: New file.
70120         * lib/unistd.in.h (ttyname_r): New declaration.
70121         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
70122         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
70123         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
70124         HAVE_TTYNAME_R.
70125         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
70126         * doc/posix-functions/ttyname_r.texi: Mention the new module.
70128 2010-03-20  Bruno Haible  <bruno@clisp.org>
70130         signal: Undefine macro definitions in C++ mode.
70131         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
70132         sigfillset): Undefine macro definitions from the system header in C++
70133         mode.
70134         Reported by John W. Eaton <jwe@gnu.org>.
70136 2010-03-20  Bruno Haible  <bruno@clisp.org>
70138         Ensure no #include statements inside extern "C" { ... }.
70139         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
70140         contain #include statements.
70141         * lib/time.in.h: Likewise.
70143 2010-03-20  Bruno Haible  <bruno@clisp.org>
70145         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
70146         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
70147         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
70148         Reported by John W. Eaton <jwe@gnu.org>.
70150 2010-03-20  Bruno Haible  <bruno@clisp.org>
70152         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
70153         Reported by Jim Meyering.
70155 2010-03-20  Bruno Haible  <bruno@clisp.org>
70157         pipe: Set errno upon failure.
70158         * lib/pipe.h: Specify that when -1 is returned, errno is set.
70159         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
70160         errno value in error message.
70162 2010-03-20  Bruno Haible  <bruno@clisp.org>
70163             Jim Meyering  <meyering@redhat.com>
70165         lchown: Avoid "unused variable" warning.
70166         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
70168 2010-03-20  Bruno Haible  <bruno@clisp.org>
70170         Work around unlink() bug on MacOS X 10.5.6.
70171         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
70172         attempting to unlink a parent directory.
70173         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
70174         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
70175         activate for the replacement function.
70176         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
70178 2010-03-20  Bruno Haible  <bruno@clisp.org>
70180         Fix link errors on Solaris 8.
70181         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
70182         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
70184 2010-03-19  Jim Meyering  <meyering@redhat.com>
70186         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
70187         The _LIBC implementation of build_range_exp correctly honors the
70188         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
70189         However, the non-_LIBC implementation would ignore that syntax-bit
70190         flag and return REG_ERANGE unconditionally.
70191         This change makes it honor that flag.
70192         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
70193         Make two pointer parameters "const".
70194         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
70195         (parse_bracket_exp): Update caller.
70197         regex.m4: correct the reversed range endpoint ([b-a]) test
70198         * m4/regex.m4: When requiring that [b-a] evoke failure,
70199         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
70200         test pass once again for x86-based systems.
70202 2010-03-19  Bruno Haible  <bruno@clisp.org>
70204         scandir: Fix link error on Solaris 8.
70205         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
70206         macros.
70208 2010-03-19  Bruno Haible  <bruno@clisp.org>
70210         getusershell: Fix documentation.
70211         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
70212         module.
70213         * doc/glibc-functions/setusershell.texi: Likewise.
70215         getusershell: Provide declaration, missing on Solaris 9.
70216         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
70217         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
70218         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
70219         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
70220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70221         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
70222         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
70223         HAVE_GETUSERSHELL.
70224         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
70226 2010-03-19  Bruno Haible  <bruno@clisp.org>
70228         wctype: Provide iswblank function.
70229         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
70230         exists and is fine.
70231         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
70232         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
70233         * tests/test-wctype.c (main): Re-enable the iswblank tests.
70234         * doc/posix-functions/iswblank.texi: Update.
70236 2010-03-19  Bruno Haible  <bruno@clisp.org>
70238         Tests of module 'pty' in C++ mode.
70239         * modules/pty-tests: New file.
70240         * tests/test-pty-c++.cc: New file.
70241         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70243 2010-03-19  Eric Blake  <eblake@redhat.com>
70245         logb: fix documentation
70246         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
70247         1.5 declaration bug.
70249         forkpty, openpty: prefer glibc's const-safe prototype
70250         * lib/forkpty.c (rpl_forkpty): New file.
70251         * lib/openpty.c (rpl_openpty): Likewise.
70252         * modules/forkpty (Files): Distribute it.
70253         * modules/openpty (Files): Likewise.
70254         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70255         check...
70256         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70257         replacement for non-const BSD signature.
70258         * modules/pty (Makefile.am): Substitute witnesses.
70259         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70260         * tests/test-forkpty.c: Update signature check.
70261         * tests/test-openpty.c: Likewise.
70262         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70263         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70265         forkpty, openpty: split functions into new modules
70266         * modules/pty (Makefile.am): Substitute new witnesses.
70267         (Libraries): Move library detection...
70268         * modules/forkpty: ...into new module.
70269         * modules/openpty: Another new module.
70270         * modules/pty-tests: Rename and split...
70271         * modules/forkpty-tests: ...to this...
70272         * modules/openpty-tests: ...and this.
70273         * tests/test-pty.c: Rename and split...
70274         * tests/test-forkpty.c: ...to this...
70275         * tests/test-openpty.c: ...and this.
70276         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70277         (gl_PTY): Split library searching...
70278         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70279         (gl_FORKPTY, gl_OPENPTY): New macros.
70280         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70281         * NEWS: Mention the split.
70282         * MODULES.html.sh (Misc): Document the modules.
70283         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70284         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70286         pty: improve replacement header
70287         * lib/pty.in.h: New file.
70288         * modules/pty (Files): Ship it.
70289         (Makefile.am): Always build replacement.
70290         * m4/pty.m4: Rename...
70291         * m4/pty_h.m4: ...to this.
70292         (gl_PTY): Modernize setting of witness macros; update check of
70293         forkpty to take proper advantage of cache.
70294         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70296         getopt: avoid compiler warning
70297         * lib/getopt.c (attribute_hidden): Remove unused macro.
70299 2010-03-18  Bruno Haible  <bruno@clisp.org>
70301         Fix link errors on Solaris 8.
70302         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70303         * modules/search-tests (test_search_c___LDADD): Likewise.
70304         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70305         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70306         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70307         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70308         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70309         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70310         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70312 2010-03-18  Bruno Haible  <bruno@clisp.org>
70314         Fix bug introduced on 2010-03-14.
70315         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70316         (gl_SPAWN_H): Require it.
70317         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70318         Reported by Simon Josefsson.
70320 2010-03-18  Bruno Haible  <bruno@clisp.org>
70322         Fix typo introduced on 2009-12-31.
70323         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70324         posix_spawn_file_actions_adddup2.
70326 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70327         and Eric Blake  <eblake@redhat.com>
70329         test-vc-list-files-git: make more robust
70330         * tests/test-vc-list-files-git.sh: Unset problematic environment
70331         variables.  Chain commands together.
70333 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70335         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70336         `AC_CHECK_DECL' invocation.
70338 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70340         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70341         appears before executable statements. Suggested by Petr Sumbera
70342         <Petr.Sumbera@Sun.COM>.
70344 2010-03-14  Bruno Haible  <bruno@clisp.org>
70346         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70347         portability problems. Instead use a simpler test.
70348         (main): Check that invalid arguments are rejected only on Linux.
70350 2010-03-14  Bruno Haible  <bruno@clisp.org>
70352         Fix bug introduced on 2009-12-31.
70353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70354         gl_PREREQ_SYS_H_WINSOCK2 always.
70355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70356         SYS_SOCKET_H variable.
70357         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70358         Update comments.
70359         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70360         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70361         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70362         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70363         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70365 2010-03-14  Bruno Haible  <bruno@clisp.org>
70367         Fix values returned by sinl, cosl.
70368         * lib/trigl.h: Add specification comments.
70369         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70370         that combines the values from the precomputed table with the values of
70371         the Chebyshev polynomials.
70373 2010-03-14  Bruno Haible  <bruno@clisp.org>
70375         Fix compilation error when modules 'posix_spawn[p]' are not used.
70376         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70379 2010-03-14  Bruno Haible  <bruno@clisp.org>
70381         Fix compilation error on mingw when module 'time_r' is not used.
70382         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70383         is 1.
70384         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70385         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70386         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70387         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70389 2010-03-14  Bruno Haible  <bruno@clisp.org>
70391         Fix compilation error with Sun C.
70392         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70393         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70394         instead of GCC specific ULONG_LONG_MAX.
70395         * lib/xstrtoll.c: Likewise.
70396         * lib/xstrtoull.c: Likewise.
70398 2010-03-13  Bruno Haible  <bruno@clisp.org>
70400         Allow the user to disable C++ code and tests.
70401         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70402         (gl_PROG_ANSI_CXX): Require it.
70404 2010-03-13  Bruno Haible  <bruno@clisp.org>
70406         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70407         cases.
70409 2010-03-13  Bruno Haible  <bruno@clisp.org>
70411         Test that gnulib does not break the standard C++ headers.
70412         * tests/test-locale-c++2.cc: New file.
70413         * modules/locale-tests (Files): Add it.
70414         (Makefile.am): Compile it for test-locale-c++.
70415         * tests/test-math-c++2.cc: New file.
70416         * modules/math-tests (Files): Add it.
70417         (Makefile.am): Compile it for test-math-c++.
70418         * tests/test-signal-c++2.cc: New file.
70419         * modules/signal-tests (Files): Add it.
70420         (Makefile.am): Compile it for test-signal-c++.
70421         * tests/test-stdio-c++2.cc: New file.
70422         * modules/stdio-tests (Files): Add it.
70423         (Makefile.am): Compile it for test-stdio-c++.
70424         * tests/test-stdlib-c++2.cc: New file.
70425         * modules/stdlib-tests (Files): Add it.
70426         (Makefile.am): Compile it for test-stdlib-c++.
70427         * tests/test-string-c++2.cc: New file.
70428         * modules/string-tests (Files): Add it.
70429         (Makefile.am): Compile it for test-string-c++.
70430         * tests/test-time-c++2.cc: New file.
70431         * modules/time-tests (Files): Add it.
70432         (Makefile.am): Compile it for test-time-c++.
70433         Reported by John W. Eaton <jwe@gnu.org>.
70435 2010-03-13  Bruno Haible  <bruno@clisp.org>
70437         * gnulib-tool (func_usage): Clarify which options are available for
70438         --create-testdir and --create-megatestdir.
70440 2010-03-13  Bruno Haible  <bruno@clisp.org>
70442         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70443         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70444         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70445         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70446         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70447         when appropriate.
70448         Reported by Jim Meyering.
70450 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70452         * gnulib-tool (func_import): Explain origin of code.
70454 2010-03-12  Bruno Haible  <bruno@clisp.org>
70456         Fix problem with automake's definition of CXXLINK.
70457         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70458         Reported by Simon Josefsson and Ludovic Courtès.
70460 2010-03-12  Bruno Haible  <bruno@clisp.org>
70462         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70463         stable releases.
70465 2010-03-11  Bruno Haible  <bruno@clisp.org>
70467         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70468         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70469         whether the system provides one variant or multiple variants of the
70470         function.
70471         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70472         C++ compilers.
70473         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70474         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70475         Reported by Jim Meyering.
70477 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70479         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70481 2010-03-08  Bruno Haible  <bruno@clisp.org>
70483         gnulib-tool: Add support for --libtool in --create-testdir.
70484         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70485         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70487 2010-03-08  Eric Blake  <eblake@redhat.com>
70489         gnulib-tool.texi: mention possibility of git submodule
70490         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70491         submodules.
70492         * doc/.gitignore: Ignore another generated file.
70494 2010-03-08  Karl Berry  <karl@gnu.org>
70496         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70497         of committing gnulib files while skipping others.
70499 2010-03-07  Bruno Haible  <bruno@clisp.org>
70501         Tests of module 'wctype' in C++ mode.
70502         * tests/test-wctype-c++.cc: New file.
70503         * modules/wctype-tests (Files): Add it and tests/signature.h.
70504         (Depends-on): Add ansi-c++-opt.
70505         (Makefile.am): Arrange to compile and run test-wctype-c++.
70507         Tests of module 'wchar' in C++ mode.
70508         * tests/test-wchar-c++.cc: New file.
70509         * modules/wchar-tests (Files): Add it and tests/signature.h.
70510         (Depends-on): Add ansi-c++-opt.
70511         (Makefile.am): Arrange to compile and run test-wchar-c++.
70512         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70513         gl_MODULE_INDICATOR.
70515         Tests of module 'unistd' in C++ mode.
70516         * tests/test-unistd-c++.cc: New file.
70517         * modules/unistd-tests (Files): Add it and tests/signature.h.
70518         (Depends-on): Add ansi-c++-opt.
70519         (Makefile.am): Arrange to compile and run test-unistd-c++.
70520         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70521         gl_MODULE_INDICATOR.
70523         Tests of module 'time' in C++ mode.
70524         * tests/test-time-c++.cc: New file.
70525         * modules/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-time-c++.
70528         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70530         Tests of module 'sys_time' in C++ mode.
70531         * tests/test-sys_time-c++.cc: New file.
70532         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70533         (Depends-on): Add ansi-c++-opt.
70534         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70535         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70536         gl_MODULE_INDICATOR.
70538         Tests of module 'sys_stat' in C++ mode.
70539         * tests/test-sys_stat-c++.cc: New file.
70540         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70541         (Depends-on): Add ansi-c++-opt.
70542         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70543         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70544         gl_MODULE_INDICATOR.
70546         Tests of module 'sys_socket' in C++ mode.
70547         * tests/test-sys_socket-c++.cc: New file.
70548         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70549         (Depends-on): Add ansi-c++-opt.
70550         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70551         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70552         gl_MODULE_INDICATOR.
70554         Tests of module 'sys_select' in C++ mode.
70555         * tests/test-sys_select-c++.cc: New file.
70556         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70557         (Depends-on): Add ansi-c++-opt.
70558         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70559         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70560         gl_MODULE_INDICATOR.
70562         Tests of module 'sys_ioctl' in C++ mode.
70563         * tests/test-sys_ioctl-c++.cc: New file.
70564         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70565         (Depends-on): Add ansi-c++-opt.
70566         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70567         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70568         gl_MODULE_INDICATOR.
70570         Tests of module 'string' in C++ mode.
70571         * tests/test-string-c++.cc: New file.
70572         * modules/string-tests (Files): Add it and tests/signature.h.
70573         (Depends-on): Add ansi-c++-opt.
70574         (Makefile.am): Arrange to compile and run test-string-c++.
70575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70576         gl_MODULE_INDICATOR.
70578         Tests of module 'stdlib' in C++ mode.
70579         * tests/test-stdlib-c++.cc: New file.
70580         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70581         (Depends-on): Add ansi-c++-opt.
70582         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70583         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70584         gl_MODULE_INDICATOR.
70586         Tests of module 'stdio' in C++ mode.
70587         * tests/test-stdio-c++.cc: New file.
70588         * modules/stdio-tests (Files): Add it and tests/signature.h.
70589         (Depends-on): Add ansi-c++-opt.
70590         (Makefile.am): Arrange to compile and run test-stdio-c++.
70591         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70592         gl_MODULE_INDICATOR.
70594         Tests of module 'spawn' in C++ mode.
70595         * tests/test-spawn-c++.cc: New file.
70596         * modules/spawn-tests (Files): Add it and tests/signature.h.
70597         (Depends-on): Add ansi-c++-opt.
70598         (Makefile.am): Arrange to compile and run test-spawn-c++.
70599         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70600         gl_MODULE_INDICATOR.
70602         Tests of module 'signal' in C++ mode.
70603         * tests/test-signal-c++.cc: New file.
70604         * modules/signal-tests (Files): Add it and tests/signature.h.
70605         (Depends-on): Add ansi-c++-opt.
70606         (Makefile.am): Arrange to compile and run test-signal-c++.
70607         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70608         gl_MODULE_INDICATOR.
70610         Tests of module 'search' in C++ mode.
70611         * tests/test-search-c++.cc: New file.
70612         * modules/search-tests (Files): Add it and tests/signature.h.
70613         (Depends-on): Add ansi-c++-opt.
70614         (Makefile.am): Arrange to compile and run test-search-c++.
70615         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70616         gl_MODULE_INDICATOR.
70618         Tests of module 'math' in C++ mode.
70619         * tests/test-math-c++.cc: New file.
70620         * modules/math-tests (Files): Add it and tests/signature.h.
70621         (Depends-on): Add ansi-c++-opt.
70622         (Makefile.am): Arrange to compile and run test-math-c++.
70623         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70625         Tests of module 'locale' in C++ mode.
70626         * tests/test-locale-c++.cc: New file.
70627         * modules/locale-tests (Files): Add it and tests/signature.h.
70628         (Depends-on): Add ansi-c++-opt.
70629         (Makefile.am): Arrange to compile and run test-locale-c++.
70630         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70631         gl_MODULE_INDICATOR.
70633         Tests of module 'langinfo' in C++ mode.
70634         * tests/test-langinfo-c++.cc: New file.
70635         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70636         (Depends-on): Add ansi-c++-opt.
70637         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70638         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70639         gl_MODULE_INDICATOR.
70641         Tests of module 'iconv-h' in C++ mode.
70642         * tests/test-iconv-h-c++.cc: New file.
70643         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70644         (Depends-on): Add ansi-c++-opt.
70645         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70647         Tests of module 'glob' in C++ mode.
70648         * tests/test-glob-c++.cc: New file.
70649         * modules/glob-tests (Files): Add it.
70650         (Depends-on): Add ansi-c++-opt.
70651         (Makefile.am): Arrange to compile and run test-glob-c++.
70653         Tests of module 'fcntl-h' in C++ mode.
70654         * tests/test-fcntl-h-c++.cc: New file.
70655         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70656         (Depends-on): Add ansi-c++-opt.
70657         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70658         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70659         gl_MODULE_INDICATOR.
70661         Tests of module 'dirent' in C++ mode.
70662         * tests/test-dirent-c++.cc: New file.
70663         * modules/dirent-tests (Files): Add it and tests/signature.h.
70664         (Depends-on): Add ansi-c++-opt.
70665         (Makefile.am): Arrange to compile and run test-dirent-c++.
70666         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70667         gl_MODULE_INDICATOR.
70669         New module 'ansi-c++-opt'.
70670         * modules/ansi-c++-opt: New file.
70671         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70673         Document C++ namespace mode.
70674         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70676         wctype: Avoid #define replacements in C++ mode.
70677         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70678         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70679         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70680         In C++, define a namespaced alias symbol.
70681         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70682         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70683         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70684         rule.
70686         wchar: Avoid #define replacements in C++ mode.
70687         * lib/wchar.in.h: Include c++defs.h.
70688         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70689         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70690         symbol.
70691         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70692         * modules/wchar (Depends-on): Add c++defs.
70693         (Makefile.am): Update wchar.h rule.
70695         unistd: Avoid #define replacements in C++ mode.
70696         * lib/unistd.in.h: Include c++defs.h.
70697         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70698         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70699         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70700         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70701         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70702         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70703         symbol.
70704         (environ): Update.
70705         * modules/unistd (Depends-on): Add c++defs.
70706         (Makefile.am): Update unistd.h rule.
70708         time: Avoid #define replacements in C++ mode.
70709         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70710         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70711         define a namespaced alias symbol.
70712         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70713         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70714         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70715         * modules/time (Depends-on): Add c++defs, warn-on-use.
70716         (Makefile.am): Update time.h rule.
70717         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70718         * modules/nanosleep (configure.ac): Likewise.
70719         * modules/strptime (configure.ac): Likewise.
70720         * modules/timegm (configure.ac): Likewise.
70722         sys_time: Avoid #define replacements in C++ mode.
70723         * lib/sys_time.in.h: Include c++defs.h.
70724         (gettimeofday): In C++, define a namespaced alias symbol.
70725         * modules/sys_time (Depends-on): Add c++defs.
70726         (Makefile.am): Update sys/time.h rule.
70728         sys_stat: Avoid #define replacements in C++ mode.
70729         * lib/sys_stat.in.h: Include c++defs.h.
70730         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70731         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70732         namespaced alias symbol.
70733         In C++, define a namespaced alias symbol.
70734         * modules/sys_stat (Depends-on): Add c++defs.
70735         (Makefile.am): Update sys/stat.h rule.
70737         sys_socket: Avoid #define replacements in C++ mode.
70738         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70739         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70740         definitions also when the system has a <sys/socket.h>.
70741         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70742         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70743         In C++, define a namespaced alias symbol.
70744         * modules/sys_socket (Depends-on): Add c++defs.
70745         (Makefile.am): Update sys/socket.h rule.
70747         sys_select: Avoid #define replacements in C++ mode.
70748         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70749         definitions also when the system has a <sys/select.h>.
70750         (select): In C++, define a namespaced alias symbol.
70751         * modules/sys_select (Depends-on): Add c++defs.
70752         (Makefile.am): Update sys/select.h rule.
70754         sys_ioctl: Avoid #define replacements in C++ mode.
70755         * lib/sys_ioctl.in.h: Include c++defs.h.
70756         (ioctl): In C++, define a namespaced alias symbol.
70757         * modules/sys_ioctl (Depends-on): Add c++defs.
70758         (Makefile.am): Update sys/ioctl.h rule.
70760         string: Avoid #define replacements in C++ mode.
70761         * lib/string.in.h: Include c++defs.h.
70762         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70763         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70764         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70765         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70766         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70767         * modules/string (Depends-on): Add c++defs.
70768         (Makefile.am): Update string.h rule.
70770         stdlib: Avoid #define replacements in C++ mode.
70771         * lib/stdlib.in.h: Include c++defs.h.
70772         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70773         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70774         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70775         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70776         symbol.
70777         * modules/stdlib (Depends-on): Add c++defs.
70778         (Makefile.am): Update stdlib.h rule.
70780         stdio: Avoid #define replacements in C++ mode.
70781         * lib/stdio.in.h: Include c++defs.h.
70782         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70783         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70784         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70785         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70786         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70787         namespaced alias symbol.
70788         * modules/stdio (Depends-on): Add c++defs.
70789         (Makefile.am): Update stdio.h rule.
70791         spawn: Avoid #define replacements in C++ mode.
70792         * lib/spawn.in.h: Include c++defs.h.
70793         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70794         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70795         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70796         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70797         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70798         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70799         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70800         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70801         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70802         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70803         In C++, define a namespaced alias symbol.
70804         * modules/spawn (Depends-on): Add c++defs.
70805         (Makefile.am): Update spawn.h rule.
70807         signal: Avoid #define replacements in C++ mode.
70808         * lib/signal.in.h: Include c++defs.h.
70809         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70810         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70811         namespaced alias symbol.
70812         * modules/signal (Depends-on): Add c++defs.
70813         (Makefile.am): Update signal.h rule.
70815         search: Avoid #define replacements in C++ mode.
70816         * lib/search.in.h: Include c++defs.h.
70817         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70818         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70819         symbol.
70820         * modules/search (Depends-on): Add c++defs.
70821         (Makefile.am): Update search.h rule.
70823         math: Avoid #define replacements in C++ mode.
70824         * lib/math.in.h: Include c++defs.h.
70825         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70826         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70827         trunc, truncl): In C++, define a namespaced alias symbol.
70828         * modules/math (Depends-on): Add c++defs.
70829         (Makefile.am): Update math.h rule.
70831         locale: Avoid #define replacements in C++ mode.
70832         * lib/locale.in.h: Include c++defs.h.
70833         (duplocale): In C++, define a namespaced alias symbol.
70834         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70835         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70836         * modules/locale (Depends-on): Add c++defs.
70837         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70839         langinfo: Avoid #define replacements in C++ mode.
70840         * lib/langinfo.in.h: Include c++defs.h.
70841         (nl_langinfo): In C++, define a namespaced alias symbol.
70842         * modules/langinfo (Depends-on): Add c++defs.
70843         (Makefile.am): Update langinfo.h rule.
70845         iconv-h: Avoid #define replacements in C++ mode.
70846         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70847         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70848         symbol.
70849         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70850         whenever iconv is present.
70851         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70852         (Makefile.am): Update iconv.h rule.
70854         glob: Avoid #define replacements in C++ mode.
70855         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70856         (_gl_glob_errfunc_fn): New type.
70857         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70858         symbol.
70859         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70860         (Makefile.am): Update glob.h rule.
70862         fcntl-h: Avoid #define replacements in C++ mode.
70863         * lib/fcntl.in.h: Include c++defs.h.
70864         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70865         * modules/fcntl-h (Depends-on): Add c++defs.
70866         (Makefile.am): Update fcntl.h rule.
70868         dirent: Avoid #define replacements in C++ mode.
70869         * lib/dirent.in.h: Include c++defs.h.
70870         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70871         namespaced alias symbol.
70872         (dirfd): Update declaration.
70873         * modules/dirent (Depends-on): Add c++defs.
70874         (Makefile.am): Update dirent.h rule.
70876         ctype: Make it usable in C++ code.
70877         * lib/ctype.in.h: Include c++defs.h.
70878         (isblank): Declare as extern "C".
70879         * modules/ctype (Depends-on): Add c++defs.
70880         (Makefile.am): Update ctype.h rule.
70882         New module 'c++defs'.
70883         * modules/c++defs: New file.
70884         * build-aux/c++defs.h: New file.
70885         Reported by John W. Eaton <jwe@gnu.org>.
70887 2010-03-07  Bruno Haible  <bruno@clisp.org>
70889         logb: Provide missing declaration for Cygwin.
70890         * lib/math.in.h (logb): New declaration.
70891         * m4/logb.m4: New file.
70892         * modules/logb (Files): Add m4/logb.m4.
70893         (Depends-on): Add math.
70894         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70895         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70897         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70898         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70900 2010-03-07  Bruno Haible  <bruno@clisp.org>
70902         Fix test-cond link error.
70903         * tests/test-cond.c: Include <stdio.h>.
70905 2010-03-07  Bruno Haible  <bruno@clisp.org>
70907         Fix test-dirent-safer link error.
70908         * modules/dirent-safer-tests (Makefile.am): Define
70909         test_dirent_safer_LDADD.
70911 2010-03-07  Bruno Haible  <bruno@clisp.org>
70913         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70914         among default module list.
70916 2010-03-07  Bruno Haible  <bruno@clisp.org>
70918         Fix link error on platforms with GNU libiconv.
70919         * modules/unistr/u8-strcoll-tests (Makefile): Define
70920         test_u8_strcoll_LDADD.
70921         * modules/unistr/u16-strcoll-tests (Makefile): Define
70922         test_u16_strcoll_LDADD.
70923         * modules/unistr/u32-strcoll-tests (Makefile): Define
70924         test_u32_strcoll_LDADD.
70926 2010-03-07  Bruno Haible  <bruno@clisp.org>
70928         Use POSIX declarations for socket functions.
70929         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70930         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70931         rpl_sendto): Change declaration to match POSIX.
70932         * lib/connect.c (rpl_connect): Likewise.
70933         * lib/accept.c (rpl_accept): Likewise.
70934         * lib/bind.c (rpl_bind): Likewise.
70935         * lib/getpeername.c (rpl_getpeername): Likewise.
70936         * lib/getsockname.c (rpl_getsockname): Likewise.
70937         * lib/recv.c (rpl_recv): Likewise.
70938         * lib/send.c (rpl_send): Likewise.
70939         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70940         * lib/sendto.c (rpl_sendto): Likewise.
70942 2010-03-06  Bruno Haible  <bruno@clisp.org>
70944         Clarify access, euidaccess, faccessat.
70945         * doc/posix-functions/faccessat.texi: Mention security problem under
70946         "Other problems", not "Portability problems".
70947         * doc/posix-functions/access.texi: Likewise. Mention a related security
70948         problem.
70949         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70950         * lib/euidaccess.c: Add comments about platforms.
70951         * lib/unistd.in.h (access, euidaccess): Add warnings.
70953 2010-03-07  Bruno Haible  <bruno@clisp.org>
70955         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70956         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70957         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70958         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70959         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70960         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70961         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70962         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70963         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70964         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70965         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70966         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70967         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70968         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70969         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70970         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70971         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70972         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70973         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70974         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70975         Likewise.
70976         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70977         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70978         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70979         Likewise.
70980         * tests/test-spawn.c (main): Make it work when
70981         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70983 2010-03-07  Bruno Haible  <bruno@clisp.org>
70985         Fix incorrect Makefile.am generation in German locale.
70986         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70987         Execute sed command with character range in C locale.
70989 2010-03-06  Bruno Haible  <bruno@clisp.org>
70991         Tests for module 'iconv-h'.
70992         * modules/iconv-h-tests: New file.
70993         * tests/test-iconv-h.c: New file.
70995         New module 'iconv-h'.
70996         * modules/iconv-h: New file.
70997         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70998         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70999         (configure.ac): Remove gl_ICONV_H.
71000         (Makefile.am): Remove rule for iconv.h.
71002 2010-03-06  Bruno Haible  <bruno@clisp.org>
71004         More consistent naming of *.m4 files.
71005         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
71006         * modules/wctype (Files): Update.
71008         More consistent naming of *.m4 files.
71009         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
71010         * modules/wchar (Files): Update.
71012 2010-03-06  Jim Meyering  <meyering@redhat.com>
71014         euidaccess: relax license to LGPLv2+
71015         * modules/euidaccess (License): Relax to LGPLv2+.
71017 2010-03-06  Bruno Haible  <bruno@clisp.org>
71019         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
71020         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
71021         (Makefile.am): Augment lib_SOURCES instead.
71023 2010-03-04  Jim Meyering  <meyering@redhat.com>
71025         utime: remove obsolete module
71026         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
71027         unnecessary for years, and has been marked as obsolete for 10 months.
71028         * modules/utime: Remove file.
71029         * lib/utime.c: Remove file.
71030         * m4/utime.m4: Remove file.
71031         * m4/utimes-null.m4: Remove file.
71032         * doc/posix-functions/utime.texi (utime): Remove reference to
71033         the module.  Move the sole "fixed by gnulib" item into the
71034         "problems not fixed by Gnulib" list.
71035         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
71037 2010-03-05  Simon Josefsson  <simon@josefsson.org>
71039         * modules/exit (License): Relax license to LGPLv2+.
71040         (Status): Mark as obsolete.
71041         * NEWS: Mention deprecated 'exit' module.
71042         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
71043         of now obsolete 'exit'.
71045 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71047         fts-lgpl: remove unused module
71048         * modules/fts-lgpl: Remove.
71049         * MODULES.html.sh (func_all_modules): Adjust.
71050         * check-module (find_included_lib_files): Adjust.
71051         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
71053 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
71055         copy-acl: enhance Solaris ACL error handling
71056         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
71057         * lib/set-mode-acl.c (qset_acl): Likewise.
71059 2010-03-02  Bruno Haible  <bruno@clisp.org>
71061         spawn: Don't override the system defined values on FreeBSD 8.
71062         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
71063         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
71064         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
71065         if HAVE_POSIX_SPAWN is 1.
71066         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
71068 2010-03-01  Bruno Haible  <bruno@clisp.org>
71070         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
71071         regarding Automake.
71073 2010-02-25  Bruno Haible  <bruno@clisp.org>
71075         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
71076         * gnulib-tool: Define 'echo' as a function only before the ksh alias
71077         setting, not afterwards.
71078         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
71080 2010-02-24  Eric Blake  <eblake@redhat.com>
71082         bootstrap, git-version-gen: use timestamp
71083         * build-aux/git-version-gen (scriptversion): Force UTC.
71084         * build-aux/bootstrap (scriptversion): New variable.
71086         bootstrap: allow older git
71087         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
71088         older than 1.6.4.  Requested by the libvirt project.
71090 2010-02-23  Eric Blake  <eblake@redhat.com>
71092         warn-on-use: work with old autoconf
71093         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
71094         AS_VAR semantics of autoconf 2.60.
71095         Reported by Bruno Haible.
71097         bootstrap: improve some comments
71098         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
71099         clarification comments.
71101         gettimeofday: provide correct function
71102         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
71103         when replacement is declared, otherwise provide gettimeofday.
71104         Reported by Michael Goffioul.
71106 2010-02-23  Jim Meyering  <meyering@redhat.com>
71108         lib-ignore: relax license to "unlimited", not LGPLv2+
71109         * modules/lib-ignore (License): Relax to "unlimited".
71111 2010-02-23  Jim Meyering  <meyering@redhat.com>
71113         lib-ignore: relax license to LGPLv2+
71114         * modules/lib-ignore (License): Relax to LGPLv2+.
71116 2010-02-22  Eric Blake  <eblake@redhat.com>
71118         lseek: avoid bash 3.2 broken pipe bug
71119         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
71120         warning from bash 3.2.
71121         Reported by Ben Pfaff, with analysis from Bruno Haible.
71123         bootstrap: support non-FSF copyright holder
71124         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
71125         bootstrap.conf override of COPYRIGHT_HOLDER.
71126         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
71128         bootstrap: interoperate with gettext 0.14.1
71129         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
71131         bootstrap: allow for alternate submodule location
71132         * build-aux/bootstrap (gnulib_path): New variable; use instead of
71133         hardcoding submodule location.
71134         (gnulib_mk): Allow direct use of Makefile.am.
71136         bootstrap: use GNULIB_SRCDIR to reduce disk usage
71137         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
71138         rather than reconfiguring where the submodule points.
71140         gettimeofday: restore support for platforms that lack function
71141         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
71142         replacement if function is missing.
71143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
71144         * modules/sys_time (Makefile.am): Substitute it.
71145         * lib/sys_time.in.h (gettimeofday): Check it.
71146         Reported by Michael Goffioul.
71148 2010-02-21  Bruno Haible  <bruno@clisp.org>
71150         * lib/stdio.in.h (obstack_printf): Fix typo.
71152 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
71154         vc-list-files: use bzr ls's -R option
71155         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
71156         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
71158 2010-02-21  Jim Meyering  <meyering@redhat.com>
71160         init.sh: fix EXEEXT shims to work also for names like test-prog
71161         * tests/init.sh: Re-exec a better shell, when needed.
71162         If the current shell lacks support for posix $(...), an init.sh-using
71163         test will now try to find a shell that supports that.  If EXEEXT is
71164         nonempty, we also require support for hyphen-in-alias-name and shell
71165         substitutions like ${var#glob}.  Failure to find such a shell results
71166         in a skipped test.
71168 2010-02-21  Bruno Haible  <bruno@clisp.org>
71170         Really work around "broken pipe" error message from bash 3.2.
71171         * gnulib-tool (func_reset_sigpipe): Remove function.
71172         (echo): In bash 3.2, define to a function that uses printf.
71173         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
71175 2010-02-20  Bruno Haible  <bruno@clisp.org>
71177         Restore support for automake 1.9.6 with autoconf 2.61.
71178         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
71179         Reported by James Youngman <jay@gnu.org>.
71181 2010-02-20  Bruno Haible  <bruno@clisp.org>
71183         Improve *printf warning condition.
71184         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
71185         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
71186         and the function is overridden due to SIGPIPE emulation.
71188 2010-02-20  Bruno Haible  <bruno@clisp.org>
71190         * lib/stdio.in.h: Tweak comments.
71192 2010-02-19  Bruno Haible  <bruno@clisp.org>
71194         Make it easier to find modules. New gnulib-tool option '--find'.
71195         * gnulib-tool: New option --find.
71196         (func_usage): Document it.
71197         (func_sanitize_modulelist): New function, extracted from
71198         func_all_modules.
71199         (func_all_modules): Invoke it.
71200         * doc/gnulib-tool.texi (Which modules?): New node.
71202 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
71204         * lib/sys_select.in.h: Provide select replacement even if
71205         sys/select.h exists on a system, for Interix.
71207 2010-02-18  Jim Meyering  <meyering@redhat.com>
71209         init.sh: don't use $(...) just yet
71210         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
71211         to accommodate e.g., Solaris' /bin/sh.
71213 2010-02-17  Bruno Haible  <bruno@clisp.org>
71215         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
71216         Reported by Ludovic Courtès <ludo@gnu.org>.
71218 2010-02-16  Simon Josefsson  <simon@josefsson.org>
71220         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
71221         linking with -lintl.
71223 2010-02-17  Simon Josefsson  <simon@josefsson.org>
71225         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
71226         if not provided by the system's netdb.h.  Reported by
71227         ludo@gnu.org (Ludovic Courtès).
71229 2010-02-15  Jim Meyering  <meyering@redhat.com>
71231         init.sh: improve portability and efficiency
71232         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
71233         "dummy" in a for loop.
71234         Use '!', not '^' to select the complement of a character set used
71235         in a "case" statement.
71236         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
71237         Suggestions from Eric Blake.
71239         init.sh: automatically accommodate programs with the .exe suffix
71240         Automatically arrange for an invocation of "prog" to execute the
71241         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
71242         may use the simpler "prog", yet still work when built on a system
71243         that requires specifying the added suffix.
71244         Do this by constructing a function named "prog" that invokes
71245         "prog.exe" for each .exe file in selected directories.
71246         * tests/init.sh (find_exe_basenames_): New function.
71247         (create_exe_shim_functions_): New function.
71248         (path_prepend_): Use it.
71250         maint.mk: mark syntax-check sc_*.m rules as .PHONY
71251         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
71252         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71254 2010-02-14  Jim Meyering  <meyering@redhat.com>
71256         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71257         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71258         (sc_prohibit_hash_pjw_without_use): New rule.
71260         maint.mk: allow the default upload destination dir to be overridden
71261         * top/maint.mk (upload_dest_dir_): Define with a default that
71262         preserves the status quo.
71263         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71264         Reported by Peter Simons.
71266         maint.mk: prohibit inclusion of "hash.h" without_use
71267         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71269 2010-02-10  Jim Meyering  <meyering@redhat.com>
71271         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71272         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71274 2010-02-09  Eric Blake  <ebb9@byu.net>
71275         and Bruno Haible  <bruno@clisp.org>
71277         obstack-printf-posix: ensure declaration
71278         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71279         extracted from gl_FUNC_OBSTACK_PRINTF.
71280         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71281         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71282         Likewise.
71283         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71284         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71285         0.
71287 2010-02-08  Bruno Haible  <bruno@clisp.org>
71289         gnulib-tool: Fix typo in 2010-02-07 commit.
71290         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71291         Reported by Eric Blake.
71293 2010-02-07  Bruno Haible  <bruno@clisp.org>
71295         gnulib-tool: Fix up caching patches.
71296         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71297         option --no-cache. Use associative arrays when supported by the shell.
71298         (sed_comments): New variable.
71299         (modcache): Renamed from do_cache.
71300         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71301         abbreviate unnecessarily.
71302         (have_associative): New variable.
71303         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71304         way also for ksh and zsh.
71305         (func_init_sed_convert_to_cache_statements): New function, extracted
71306         from func_cache_lookup_module. Add support for associative arrays.
71307         Don't set the c_MODULE_cached variable here. Ignore all lines before
71308         the first field header. Remove only the final newline, not all trailing
71309         newlines. Support empty fields correctly. Limit the use of 'eval' to
71310         assignments.
71311         (func_get_description, func_get_status, func_get_notice,
71312         func_get_applicability, func_get_filelist, func_get_dependencies,
71313         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71314         func_get_automake_snippet, func_get_include_directive,
71315         func_get_link_directive, func_get_license, func_get_maintainer):
71316         Update documentation. List the unoptimized code first. Add support for
71317         associative arrays. Limit the use of 'eval' to assignments.
71318         (func_get_applicability): Undo stylistic pessimisations.
71319         (func_get_automake_snippet, func_get_include_directive): Reduce code
71320         duplication.
71321         (func_modules_transitive_closure, func_modules_add_dummy,
71322         func_modules_notice, func_modules_to_filelist, func_add_file,
71323         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71324         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71325         func_create_testdir, func_create_megatestdir): Update documentation.
71327 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71329         * gnulib-tool (func_cache_lookup_module): Store the module name
71330         belonging to the cache variable; error out if two different
71331         module names map to the same cache variable name.
71333 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71335         gnulib-tool: Make caching optional.
71336         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71337         Update matching short versions of --no-changelog.
71338         (func_usage): Update.
71339         (sed_extract_cache_prog): Renamed from ...
71340         (sed_extract_prog): ... this; revert to old extraction script.
71341         (func_get_description, func_get_status)
71342         (func_get_notice, func_get_applicability, func_get_filelist)
71343         (func_get_dependencies, func_get_autoconf_early_snippet)
71344         (func_get_autoconf_snippet, func_get_automake_snippet)
71345         (func_get_include_directive, func_get_link_directive)
71346         (func_get_license, func_get_maintainer): If $do_cache is false,
71347         use old, non-caching extraction scripts.
71348         Suggestion by Bruno Haible.
71350 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71352         gnulib-tool: cache module metainformation.
71353         * gnulib-tool (sed_extract_prog): Match newline before each
71354         header, and rewrite header to a shell variable suffix.
71355         (func_cache_var, func_cache_lookup_module): New functions,
71356         to turn a module name into a cache variable prefix, and to
71357         look up and cache module metainformation.
71358         (func_get_description, func_get_status)
71359         (func_get_notice, func_get_applicability, func_get_filelist)
71360         (func_get_dependencies, func_get_autoconf_early_snippet)
71361         (func_get_autoconf_snippet, func_get_automake_snippet)
71362         (func_get_include_directive, func_get_link_directive)
71363         (func_get_license, func_get_maintainer): Use
71364         func_cache_lookup_module.
71366 2010-02-07  Bruno Haible  <bruno@clisp.org>
71368         fnctl: Fix missing dependency.
71369         * modules/fcntl (Depends-on): Add getdtablesize.
71370         Reported by John W. Eaton <jwe@gnu.org>.
71372 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71374         Argp: fix recognition of short alias options.
71376         * lib/argp-parse.c (convert_options): Fix improper use of
71377         `|' between character values.
71378         * tests/test-argp.c (group1_option): New alias option
71379         --read (-r).
71380         (group1_parser): Special handling for 'r'.
71381         (test15): New test case.
71382         (test_fun): Add test15.
71383         * tests/test-argp-2.sh: Update expected --help and --usage
71384         outputs.
71386 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71388         * tests/test-argp.c: Fix indentation.
71390 2010-02-04  Eric Blake  <ebb9@byu.net>
71392         gettimeofday: expose type of second argument
71393         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71394         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71395         * tests/test-gettimeofday.c: Use it to silence warning.
71396         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71397         the issue.
71399 2010-02-03  Jim Meyering  <meyering@redhat.com>
71401         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71402         * lib/regcomp.c (TYPE_SIGNED): Define.
71403         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71405         regcomp.c: avoid a new -Wshadow warning
71406         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71408 2010-02-01  Jim Meyering  <meyering@redhat.com>
71410         removing useless parentheses in cpp #define directives
71411         For motivation, see commit c0221df4, "define STREQ(a,b)
71412         consistently, removing useless parentheses"
71413         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71414         * lib/mountlist.c (MNT_IGNORE): Likewise.
71415         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71417 2010-02-01  Eric Blake  <ebb9@byu.net>
71419         sys_time: use link-warning
71420         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71421         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71422         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71423         * modules/sys_time (Depends-on): Add warn-on-use.
71424         (Makefile.am): Always build replacement.
71425         (configure.ac): Update substitutions.
71426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71427         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71428         bother with SYS_TIME_H.
71429         * modules/gettimeofday (configure.ac): Declare indicator.
71430         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71431         in use.
71433         closein-tests: silence compiler warning
71434         * tests/test-closein.c (main): Ignore fread result.
71435         * modules/closein-tests (Depends-on): Add ignore-value.
71437         tests: silence warning about system return
71438         * tests/test-areadlink-with-size.c (main): Ignore system result.
71439         * tests/test-areadlink.c (main): Likewise.
71440         * tests/test-areadlinkat-with-size.c (main): Likewise.
71441         * tests/test-areadlinkat.c (main): Likewise.
71442         * tests/test-canonicalize-lgpl.c (main): Likewise.
71443         * tests/test-canonicalize.c (main): Likewise.
71444         * tests/test-chown.c (main): Likewise.
71445         * tests/test-fchownat.c (main): Likewise.
71446         * tests/test-fdutimensat.c (main): Likewise.
71447         * tests/test-fstatat.c (main): Likewise.
71448         * tests/test-futimens.c (main): Likewise.
71449         * tests/test-lchown.c (main): Likewise.
71450         * tests/test-link.c (main): Likewise.
71451         * tests/test-linkat.c (main): Likewise.
71452         * tests/test-lstat.c (main): Likewise.
71453         * tests/test-mkdir.c (main): Likewise.
71454         * tests/test-mkdirat.c (main): Likewise.
71455         * tests/test-mkfifo.c (main): Likewise.
71456         * tests/test-mkfifoat.c (main): Likewise.
71457         * tests/test-mknod.c (main): Likewise.
71458         * tests/test-readlink.c (main): Likewise.
71459         * tests/test-remove.c (main): Likewise.
71460         * tests/test-rename.c (main): Likewise.
71461         * tests/test-renameat.c (main): Likewise.
71462         * tests/test-rmdir.c (main): Likewise.
71463         * tests/test-symlink.c (main): Likewise.
71464         * tests/test-symlinkat.c (main): Likewise.
71465         * tests/test-unlink.c (main): Likewise.
71466         * tests/test-unlinkat.c (main): Likewise.
71467         * tests/test-utimens.c (main): Likewise.
71468         * tests/test-utimensat.c (main): Likewise.
71469         * modules/areadlink-tests (Depends-on): Add ignore-value.
71470         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71471         * modules/areadlinkat-tests (Depends-on): Likewise.
71472         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71473         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71474         * modules/canonicalize-tests (Depends-on): Likewise.
71475         * modules/chown-tests (Depends-on): Likewise.
71476         * modules/fdutimensat-tests (Depends-on): Likewise.
71477         * modules/futimens-tests (Depends-on): Likewise.
71478         * modules/lchown-tests (Depends-on): Likewise.
71479         * modules/link-tests (Depends-on): Likewise.
71480         * modules/linkat-tests (Depends-on): Likewise.
71481         * modules/lstat-tests (Depends-on): Likewise.
71482         * modules/mkdir-tests (Depends-on): Likewise.
71483         * modules/mkfifo-tests (Depends-on): Likewise.
71484         * modules/mkfifoat-tests (Depends-on): Likewise.
71485         * modules/mknod-tests (Depends-on): Likewise.
71486         * modules/openat-tests (Depends-on): Likewise.
71487         * modules/readlink-tests (Depends-on): Likewise.
71488         * modules/remove-tests (Depends-on): Likewise.
71489         * modules/rename-tests (Depends-on): Likewise.
71490         * modules/renameat-tests (Depends-on): Likewise.
71491         * modules/rmdir-tests (Depends-on): Likewise.
71492         * modules/symlink-tests (Depends-on): Likewise.
71493         * modules/symlinkat-tests (Depends-on): Likewise.
71494         * modules/unlink-tests (Depends-on): Likewise.
71495         * modules/utimens-tests (Depends-on): Likewise.
71496         * modules/utimensat-tests (Depends-on): Likewise.
71498 2010-01-31  Bruno Haible  <bruno@clisp.org>
71500         Perform the same test for many <math.h> functions.
71501         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71502         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71503         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71504         of gl_MATHFUNC.
71505         * modules/acos (configure.ac): Likewise.
71506         * modules/asin (configure.ac): Likewise.
71507         * modules/atan (configure.ac): Likewise.
71508         * modules/atan2 (configure.ac): Likewise.
71509         * modules/cbrt (configure.ac): Likewise.
71510         * modules/copysign (configure.ac): Likewise.
71511         * modules/cos (configure.ac): Likewise.
71512         * modules/cosh (configure.ac): Likewise.
71513         * modules/erf (configure.ac): Likewise.
71514         * modules/erfc (configure.ac): Likewise.
71515         * modules/exp (configure.ac): Likewise.
71516         * modules/fmod (configure.ac): Likewise.
71517         * modules/hypot (configure.ac): Likewise.
71518         * modules/j0 (configure.ac): Likewise.
71519         * modules/j1 (configure.ac): Likewise.
71520         * modules/jn (configure.ac): Likewise.
71521         * modules/lgamma (configure.ac): Likewise.
71522         * modules/log (configure.ac): Likewise.
71523         * modules/log10 (configure.ac): Likewise.
71524         * modules/log1p (configure.ac): Likewise.
71525         * modules/pow (configure.ac): Likewise.
71526         * modules/remainder (configure.ac): Likewise.
71527         * modules/sin (configure.ac): Likewise.
71528         * modules/sinh (configure.ac): Likewise.
71529         * modules/tan (configure.ac): Likewise.
71530         * modules/tanh (configure.ac): Likewise.
71531         * modules/y0 (configure.ac): Likewise.
71532         * modules/y1 (configure.ac): Likewise.
71533         * modules/yn (configure.ac): Likewise.
71534         Suggested by Paolo Bonzini.
71536 2010-01-31  Bruno Haible  <bruno@clisp.org>
71538         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71540 2010-01-31  Bruno Haible  <bruno@clisp.org>
71542         Work around getdelim() bug on FreeBSD 8.0.
71543         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71544         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71545         not work.
71546         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71547         is 1.
71548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71549         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71550         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71551         a non-zero size.
71552         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71554 2010-01-31  Bruno Haible  <bruno@clisp.org>
71556         Work around getline() bug on FreeBSD 8.0.
71557         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71558         and a non-zero size.
71559         * tests/test-getline.c (main): Likewise.
71560         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71561         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71563 2010-01-28  Eric Blake  <ebb9@byu.net>
71565         regex: fix build failure
71566         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71567         platforms.
71569 2010-01-28  Jim Meyering  <meyering@redhat.com>
71571         regex: do not ignore memory allocation failure
71572         * lib/regex_internal.c (create_cd_newstate): Detect
71573         re_node_set_init_copy failure.   Extracted from glibc commit
71574         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71576         regex: sync more white-space changes from libc
71577         * lib/regex_internal.c: White-space only changes.
71578         * lib/regexec.c: Likewise.
71580         regex: add many uses of __attribute_warn_unused_result__
71581         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71582         * lib/regexec.c: Likewise.
71583         Extracted from a messy glibc commit.
71585         regcomp.c: spelling and merge-artifact from glibc
71586         * lib/regcomp.c: Merge remainder of glibc's
71587         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71589         regcomp.c: sync white-space changes from glibc
71590         * lib/regcomp.c: Merge to accommodate white space
71591         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71593         regcomp.c: do not ignore internal return values
71594         * lib/regcomp.c: Do not ignore internal return values.
71595         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71596         but without its white-space changes and spelling fixes.
71598         regex_internal.h: define __attribute_warn_unused_result__
71599         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71601         maint: add a syntax-check rule to check for vulnerable Makefile.in
71602         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71604 2010-01-27  Jim Meyering  <meyering@redhat.com>
71606         ncftpput-ftp: clean up spaces
71607         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71608         Remove trailing blanks.
71610 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71612         * build-aux/git-version-gen: Fix copyright statement.
71613         * build-aux/gnupload: Likewise.
71614         * tests/test-arcfour.c: Likewise.
71615         * tests/test-arctwo.c: Likewise.
71616         * tests/test-count-one-bits.c: Likewise.
71617         * tests/test-crc.c: Likewise.
71618         * tests/test-des.c: Likewise.
71619         * tests/test-gc-arcfour.c: Likewise.
71620         * tests/test-gc-arctwo.c: Likewise.
71621         * tests/test-gc-des.c: Likewise.
71622         * tests/test-gc-hmac-md5.c: Likewise.
71623         * tests/test-gc-hmac-sha1.c: Likewise.
71624         * tests/test-gc-md2.c: Likewise.
71625         * tests/test-gc-md4.c: Likewise.
71626         * tests/test-gc-md5.c: Likewise.
71627         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71628         * tests/test-gc-rijndael.c: Likewise.
71629         * tests/test-gc-sha1.c: Likewise.
71630         * tests/test-gc.c: Likewise.
71631         * tests/test-gethostname.c: Likewise.
71632         * tests/test-gettimeofday.c: Likewise.
71633         * tests/test-hash.c: Likewise.
71634         * tests/test-hmac-md5.c: Likewise.
71635         * tests/test-hmac-sha1.c: Likewise.
71636         * tests/test-md2.c: Likewise.
71637         * tests/test-md4.c: Likewise.
71638         * tests/test-md5.c: Likewise.
71639         * tests/test-memchr.c: Likewise.
71640         * tests/test-memchr2.c: Likewise.
71641         * tests/test-memcmp.c: Likewise.
71642         * tests/test-memmem.c: Likewise.
71643         * tests/test-memrchr.c: Likewise.
71644         * tests/test-rawmemchr.c: Likewise.
71645         * tests/test-read-file.c: Likewise.
71646         * tests/test-rijndael.c: Likewise.
71647         * tests/test-sockets.c: Likewise.
71648         * tests/test-strchrnul.c: Likewise.
71649         * tests/test-strstr.c: Likewise.
71650         * tests/test-strtod.c: Likewise.
71651         * build-aux/ncftpput-ftp: Likewise.
71653 2010-01-26  Eric Blake  <ebb9@byu.net>
71655         ignore-value: update recommended header name
71656         * modules/ignore-value (Include): Only use <> for headers that
71657         exist in glibc.
71659 2010-01-26  Jim Meyering  <meyering@redhat.com>
71661         test-userspec.c: avoid compiler warnings
71662         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71663         and "initialization discards qualifiers..." warnings.
71664         Put the first "uid" in its own scope, and make char* members "const".
71666 2010-01-25  Bruno Haible  <bruno@clisp.org>
71668         gnulib-tool: Make warning diagnostics consistent.
71669         * gnulib-tool (func_warning): New function.
71670         Use it everywhere where gnulib-tool produces output to stderr and it is
71671         not a fatal error.
71673 2010-01-25  Bruno Haible  <bruno@clisp.org>
71675         Fix test dependencies.
71676         * modules/xstrtol-tests (Depends-on): Add inttypes.
71677         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71679 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71681         syntax-check: detect incorrect boolean macro values in config.h
71682         * modules/maintainer-makefile (configure.ac): Parameterize the location
71683         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71684         The logic is from Eric Blake and the location indicated by Jim Meyering.
71685         Note the more natural CONFIG_HEADER name is prohibited by automake
71686         for backwards compatibility reasons.
71687         * top/maint.mk (sc_Wundef_boolean): New rule.
71689 2010-01-25  Jim Meyering  <meyering@redhat.com>
71691         bootstrap: detect MacOS 10.6's shasum, too
71692         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71693         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71695 2010-01-23  Jim Meyering  <meyering@redhat.com>
71697         xstrtoll: new module
71698         * modules/xstrtoll: New file.
71699         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71700         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71701         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71702         ./configure fails if you use this module and lack "long long".
71703         * modules/xstrtoll-tests: New module.
71704         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71705         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71706         new init.sh-based test framework.
71708 2010-01-24  Bruno Haible  <bruno@clisp.org>
71710         Tests for module 'yn'.
71711         * modules/yn-tests: New file.
71712         * tests/test-yn.c: New file.
71714         Tests for module 'y1'.
71715         * modules/y1-tests: New file.
71716         * tests/test-y1.c: New file.
71718         Tests for module 'y0'.
71719         * modules/y0-tests: New file.
71720         * tests/test-y0.c: New file.
71722         Tests for module 'tanh'.
71723         * modules/tanh-tests: New file.
71724         * tests/test-tanh.c: New file.
71726         Tests for module 'tan'.
71727         * modules/tan-tests: New file.
71728         * tests/test-tan.c: New file.
71730         Tests for module 'sqrt'.
71731         * modules/sqrt-tests: New file.
71732         * tests/test-sqrt.c: New file.
71734         Tests for module 'sinh'.
71735         * modules/sinh-tests: New file.
71736         * tests/test-sinh.c: New file.
71738         Tests for module 'sin'.
71739         * modules/sin-tests: New file.
71740         * tests/test-sin.c: New file.
71742         Tests for module 'rint'.
71743         * modules/rint-tests: New file.
71744         * tests/test-rint.c: New file.
71746         Tests for module 'remainder'.
71747         * modules/remainder-tests: New file.
71748         * tests/test-remainder.c: New file.
71750         Tests for module 'pow'.
71751         * modules/pow-tests: New file.
71752         * tests/test-pow.c: New file.
71754         Tests for module 'nextafter'.
71755         * modules/nextafter-tests: New file.
71756         * tests/test-nextafter.c: New file.
71758         Tests for module 'modf'.
71759         * modules/modf-tests: New file.
71760         * tests/test-modf.c: New file.
71762         Tests for module 'logb'.
71763         * modules/logb-tests: New file.
71764         * tests/test-logb.c: New file.
71766         Tests for module 'log1p'.
71767         * modules/log1p-tests: New file.
71768         * tests/test-log1p.c: New file.
71770         Tests for module 'log10'.
71771         * modules/log10-tests: New file.
71772         * tests/test-log10.c: New file.
71774         Tests for module 'log'.
71775         * modules/log-tests: New file.
71776         * tests/test-log.c: New file.
71778         Tests for module 'lgamma'.
71779         * modules/lgamma-tests: New file.
71780         * tests/test-lgamma.c: New file.
71782         Tests for module 'ldexp'.
71783         * modules/ldexp-tests: New file.
71784         * tests/test-ldexp.c: New file.
71786         Tests for module 'jn'.
71787         * modules/jn-tests: New file.
71788         * tests/test-jn.c: New file.
71790         Tests for module 'j1'.
71791         * modules/j1-tests: New file.
71792         * tests/test-j1.c: New file.
71794         Tests for module 'j0'.
71795         * modules/j0-tests: New file.
71796         * tests/test-j0.c: New file.
71798         Tests for module 'hypot'.
71799         * modules/hypot-tests: New file.
71800         * tests/test-hypot.c: New file.
71802         Tests for module 'fmod'.
71803         * modules/fmod-tests: New file.
71804         * tests/test-fmod.c: New file.
71806         Tests for module 'fabs'.
71807         * modules/fabs-tests: New file.
71808         * tests/test-fabs.c: New file.
71810         Tests for module 'exp'.
71811         * modules/exp-tests: New file.
71812         * tests/test-exp.c: New file.
71814         Tests for module 'erfc'.
71815         * modules/erfc-tests: New file.
71816         * tests/test-erfc.c: New file.
71818         Tests for module 'erf'.
71819         * modules/erf-tests: New file.
71820         * tests/test-erf.c: New file.
71822         Tests for module 'cosh'.
71823         * modules/cosh-tests: New file.
71824         * tests/test-cosh.c: New file.
71826         Tests for module 'cos'.
71827         * modules/cos-tests: New file.
71828         * tests/test-cos.c: New file.
71830         Tests for module 'copysign'.
71831         * modules/copysign-tests: New file.
71832         * tests/test-copysign.c: New file.
71834         Tests for module 'cbrt'.
71835         * modules/cbrt-tests: New file.
71836         * tests/test-cbrt.c: New file.
71838         Tests for module 'atan2'.
71839         * modules/atan2-tests: New file.
71840         * tests/test-atan2.c: New file.
71842         Tests for module 'atan'.
71843         * modules/atan-tests: New file.
71844         * tests/test-atan.c: New file.
71846         Tests for module 'asin'.
71847         * modules/asin-tests: New file.
71848         * tests/test-asin.c: New file.
71850         Tests for module 'acos'.
71851         * modules/acos-tests: New file.
71852         * tests/test-acos.c: New file.
71854 2010-01-24  Bruno Haible  <bruno@clisp.org>
71856         Fix tests for common <math.h> functions.
71857         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71858         code snippet that references the function pointer, rather than merely
71859         calling the function. Substitute the FUNC_LIBM variable.
71860         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71861         * modules/acos (configure.ac): Likewise.
71862         * modules/asin (configure.ac): Likewise.
71863         * modules/atan (configure.ac): Likewise.
71864         * modules/atan2 (configure.ac): Likewise.
71865         * modules/cbrt (configure.ac): Likewise.
71866         * modules/copysign (configure.ac): Likewise.
71867         * modules/cos (configure.ac): Likewise.
71868         * modules/cosh (configure.ac): Likewise.
71869         * modules/erf (configure.ac): Likewise.
71870         * modules/erfc (configure.ac): Likewise.
71871         * modules/exp (configure.ac): Likewise.
71872         * modules/fabs (configure.ac): Likewise.
71873         * modules/fmod (configure.ac): Likewise.
71874         * modules/hypot (configure.ac): Likewise.
71875         * modules/j0 (configure.ac): Likewise.
71876         * modules/j1 (configure.ac): Likewise.
71877         * modules/jn (configure.ac): Likewise.
71878         * modules/ldexp (configure.ac): Likewise.
71879         * modules/lgamma (configure.ac): Likewise.
71880         * modules/log (configure.ac): Likewise.
71881         * modules/log10 (configure.ac): Likewise.
71882         * modules/log1p (configure.ac): Likewise.
71883         * modules/logb (configure.ac): Likewise.
71884         * modules/modf (configure.ac): Likewise.
71885         * modules/nextafter (configure.ac): Likewise.
71886         * modules/pow (configure.ac): Likewise.
71887         * modules/remainder (configure.ac): Likewise.
71888         * modules/rint (configure.ac): Likewise.
71889         * modules/sin (configure.ac): Likewise.
71890         * modules/sinh (configure.ac): Likewise.
71891         * modules/tan (configure.ac): Likewise.
71892         * modules/tanh (configure.ac): Likewise.
71893         * modules/y0 (configure.ac): Likewise.
71894         * modules/y1 (configure.ac): Likewise.
71895         * modules/yn (configure.ac): Likewise.
71897 2010-01-24  Bruno Haible  <bruno@clisp.org>
71899         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71900         * tests/test-acosl.c (x): New variable.
71901         (main): Store argument in x and fetch it from x.
71902         * tests/test-asinl.c (x): New variable.
71903         (main): Store argument in x and fetch it from x.
71904         * tests/test-atanl.c (x): New variable.
71905         (main): Store argument in x and fetch it from x.
71906         * tests/test-cosl.c (x): New variable.
71907         (main): Store argument in x and fetch it from x.
71908         * tests/test-expl.c (x): New variable.
71909         (main): Store argument in x and fetch it from x.
71910         * tests/test-logl.c (x): New variable.
71911         (main): Store argument in x and fetch it from x.
71912         * tests/test-sinl.c (x): New variable.
71913         (main): Store argument in x and fetch it from x.
71914         * tests/test-sqrtl.c (x): New variable.
71915         (main): Store argument in x and fetch it from x.
71916         * tests/test-tanl.c (x): New variable.
71917         (main): Store argument in x and fetch it from x.
71919 2010-01-24  Bruno Haible  <bruno@clisp.org>
71921         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71922         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71923         assignments to the initial TESTS_ENVIRONMENT.
71924         * doc/gnulib.texi (Unit test modules): Document it.
71925         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71926         TESTS_ENVIRONMENT.
71927         * modules/btowc-tests (Makefile.am): Likewise.
71928         * modules/c-stack-tests (Makefile.am): Likewise.
71929         * modules/c-strcase-tests (Makefile.am): Likewise.
71930         * modules/copy-file-tests (Makefile.am): Likewise.
71931         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71932         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71933         * modules/mbrtowc-tests (Makefile.am): Likewise.
71934         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71935         * modules/mbscasestr-tests (Makefile.am): Likewise.
71936         * modules/mbschr-tests (Makefile.am): Likewise.
71937         * modules/mbscspn-tests (Makefile.am): Likewise.
71938         * modules/mbsinit-tests (Makefile.am): Likewise.
71939         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71940         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71941         * modules/mbspbrk-tests (Makefile.am): Likewise.
71942         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71943         * modules/mbsrchr-tests (Makefile.am): Likewise.
71944         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71945         * modules/mbsspn-tests (Makefile.am): Likewise.
71946         * modules/mbsstr-tests (Makefile.am): Likewise.
71947         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71948         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71949         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71950         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71951         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71952         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71953         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71954         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71955         * modules/wcrtomb-tests (Makefile.am): Likewise.
71956         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71957         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71958         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71959         assignments from TESTS_ENVIRONMENT.
71960         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71961         augmentation.
71962         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71963         * modules/atexit-tests (Makefile.am): Likewise.
71964         * modules/binary-io-tests (Makefile.am): Likewise.
71965         * modules/closein-tests (Makefile.am): Likewise.
71966         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71967         * modules/exclude-tests (Makefile.am): Likewise.
71968         * modules/fflush-tests (Makefile.am): Likewise.
71969         * modules/fpending-tests (Makefile.am): Likewise.
71970         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71971         * modules/freadahead-tests (Makefile.am): Likewise.
71972         * modules/freadptr-tests (Makefile.am): Likewise.
71973         * modules/freadseek-tests (Makefile.am): Likewise.
71974         * modules/fseek-tests (Makefile.am): Likewise.
71975         * modules/fseeko-tests (Makefile.am): Likewise.
71976         * modules/ftell-tests (Makefile.am): Likewise.
71977         * modules/ftello-tests (Makefile.am): Likewise.
71978         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71979         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71980         * modules/lseek-tests (Makefile.am): Likewise.
71981         * modules/parse-duration-tests (Makefile.am): Likewise.
71982         * modules/perror-tests (Makefile.am): Likewise.
71983         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71984         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71985         * modules/pipe-tests (Makefile.am): Likewise.
71986         * modules/pread-tests (Makefile.am): Likewise.
71987         * modules/printf-posix-tests (Makefile.am): Likewise.
71988         * modules/select-tests (Makefile.am): Likewise.
71989         * modules/sigpipe-tests (Makefile.am): Likewise.
71990         * modules/tsearch-tests (Makefile.am): Likewise.
71991         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71992         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71993         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71994         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71995         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71996         * modules/version-etc-tests (Makefile.am): Likewise.
71997         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71998         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71999         * modules/xalloc-die-tests (Makefile.am): Likewise.
72000         * modules/xprintf-posix-tests (Makefile.am): Likewise.
72001         * modules/xstrtoimax-tests (Makefile.am): Likewise.
72002         * modules/xstrtol-tests (Makefile.am): Likewise.
72003         * modules/xstrtoumax-tests (Makefile.am): Likewise.
72004         * modules/yesno-tests (Makefile.am): Likewise.
72005         Suggested by Jim Meyering.
72007 2010-01-24  Bruno Haible  <bruno@clisp.org>
72009         More documentation.
72010         * doc/gnulib.texi (Writing modules): New chapter.
72011         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
72012         the new chapter.
72014 2010-01-24  Jim Meyering  <meyering@redhat.com>
72016         maint.mk: do not prepend "./" after filtering
72017         * top/maint.mk (_prepend_srcdir_prefix): New variable
72018         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
72019         "./" when $(srcdir) is ".".
72021         define STREQ(a,b) consistently, removing useless parentheses
72022         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
72023         since the only risk is that "a" or "b" contains an unparenthesized
72024         comma, but if either did that, STREQ would have 3 or more arguments.
72025         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
72026         * lib/fts.c (STREQ): Remove unnecessary parentheses.
72027         * lib/hash-triple.c (STREQ): Likewise.
72028         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
72029         * lib/getugroups.c (STREQ): Likewise.
72031 2010-01-23  Jim Meyering  <meyering@redhat.com>
72033         maint.mk: fix syntax-check in a non-srcdir build directory
72034         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
72035         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
72037 2010-01-22  Jim Meyering  <meyering@redhat.com>
72039         userspec: add unit tests
72040         * tests/test-userspec.c: New file.
72041         * modules/userspec-tests: Likewise.
72043 2010-01-21  Jim Meyering  <meyering@redhat.com>
72045         maint.mk: handle source file names containing "." robustly
72046         * top/maint.mk (_dot_escaped_srcdir): Define.
72047         (VC_LIST): Use it in LHS of sed substitution.
72049 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
72051         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
72052         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
72053         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
72054         from a non-srcdir build.
72056 2010-01-20  Eric Blake  <ebb9@byu.net>
72058         warn-on-use: use instead of link-warning
72059         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
72060         * modules/unistd (Depends-on, Makefile.am): Likewise.
72061         * modules/arpa_inet (Depends-on): Replace link-warning with
72062         warn-on-use.
72063         (Makefile.am): Update rules accordingly.
72064         * modules/ctype (Depends-on, Makefile.am): Likewise.
72065         * modules/dirent (Depends-on, Makefile.am): Likewise.
72066         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
72067         * modules/inttypes (Depends-on, Makefile.am): Likewise.
72068         * modules/langinfo (Depends-on, Makefile.am): Likewise.
72069         * modules/locale (Depends-on, Makefile.am): Likewise.
72070         * modules/math (Depends-on, Makefile.am): Likewise.
72071         * modules/search (Depends-on, Makefile.am): Likewise.
72072         * modules/signal (Depends-on, Makefile.am): Likewise.
72073         * modules/spawn (Depends-on, Makefile.am): Likewise.
72074         * modules/stdlib (Depends-on, Makefile.am): Likewise.
72075         * modules/string (Depends-on, Makefile.am): Likewise.
72076         * modules/strings (Depends-on, Makefile.am): Likewise.
72077         * modules/sys_file (Depends-on, Makefile.am): Likewise.
72078         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
72079         * modules/sys_select (Depends-on, Makefile.am): Likewise.
72080         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
72081         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
72082         * modules/sys_times (Depends-on, Makefile.am): Likewise.
72083         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
72084         * modules/wchar (Depends-on, Makefile.am): Likewise.
72085         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
72086         should be poisoned.
72087         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
72088         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
72089         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
72090         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
72091         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
72092         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
72093         * m4/math_h.m4 (gl_MATH_H): Likewise.
72094         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
72095         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
72096         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
72097         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
72098         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
72099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
72100         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
72101         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
72102         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
72103         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
72104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
72105         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
72106         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
72107         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
72108         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
72109         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
72110         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
72111         GL_LINK_WARNING.
72112         * lib/ctype.in.h: Likewise.
72113         * lib/dirent.in.h: Likewise.
72114         * lib/fcntl.in.h: Likewise.
72115         * lib/inttypes.in.h: Likewise.
72116         * lib/langinfo.in.h: Likewise.
72117         * lib/locale.in.h: Likewise.
72118         * lib/math.in.h: Likewise.
72119         * lib/search.in.h: Likewise.
72120         * lib/signal.in.h: Likewise.
72121         * lib/spawn.in.h: Likewise.
72122         * lib/stdio.in.h: Likewise.
72123         * lib/stdlib.in.h: Likewise.
72124         * lib/string.in.h: Likewise.
72125         * lib/strings.in.h: Likewise.
72126         * lib/sys_file.in.h: Likewise.
72127         * lib/sys_ioctl.in.h: Likewise.
72128         * lib/sys_select.in.h: Likewise.
72129         * lib/sys_socket.in.h: Likewise.
72130         * lib/sys_stat.in.h: Likewise.
72131         * lib/sys_times.in.h: Likewise.
72132         * lib/sys_utsname.in.h: Likewise.
72133         * lib/unistd.in.h: Likewise.
72134         * lib/wchar.in.h: Likewise.
72136 2010-01-20  Bruno Haible  <bruno@clisp.org>
72138         Avoid duplicate -lm.
72139         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
72140         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
72141         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
72142         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
72143         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
72144         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
72145         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
72146         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
72147         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
72148         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
72149         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
72150         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
72151         Reported by Paolo Bonzini.
72153 2010-01-19  Bruno Haible  <bruno@clisp.org>
72155         langinfo, nl_langinfo: Relicense under LGPLv2+.
72156         * modules/langinfo (License): Change to LGPLv2+.
72157         * modules/nl_langinfo (License): Likewise.
72158         Patch by David Lutterkort <lutter@redhat.com>.
72160 2010-01-19  Bruno Haible  <bruno@clisp.org>
72162         Avoid compilation error with cc on OSF/1 5.1.
72163         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
72164         statement, not before.
72165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72167 2010-01-18  Bruno Haible  <bruno@clisp.org>
72169         Avoid a link error due to the __printf__ symbol.
72170         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
72171         and 2.6.x.
72172         (__format__, __printf__): Remove definitions.
72173         * lib/argp-fmtstream.h: Likewise.
72174         * lib/argp.h: Likewise.
72175         * lib/error.h: Likewise.
72176         * lib/vasnprintf.h: Likewise.
72177         * lib/xprintf.h: Likewise.
72178         * lib/xvasprintf.h: Likewise.
72179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72181 2010-01-18  Bruno Haible  <bruno@clisp.org>
72183         Tests for module 'tanl'.
72184         * modules/tanl-tests: New file.
72185         * tests/test-tanl.c: New file.
72187         Tests for module 'sqrtl'.
72188         * modules/sqrtl-tests: New file.
72189         * tests/test-sqrtl.c: New file.
72191         Tests for module 'sinl'.
72192         * modules/sinl-tests: New file.
72193         * tests/test-sinl.c: New file.
72195         Tests for module 'logl'.
72196         * modules/logl-tests: New file.
72197         * tests/test-logl.c: New file.
72199         Tests for module 'expl'.
72200         * modules/expl-tests: New file.
72201         * tests/test-expl.c: New file.
72203         Tests for module 'cosl'.
72204         * modules/cosl-tests: New file.
72205         * tests/test-cosl.c: New file.
72207         Tests for module 'atanl'.
72208         * modules/atanl-tests: New file.
72209         * tests/test-atanl.c: New file.
72211         Tests for module 'asinl'.
72212         * modules/asinl-tests: New file.
72213         * tests/test-asinl.c: New file.
72215         Tests for module 'acosl'.
72216         * modules/acosl-tests: New file.
72217         * tests/test-acosl.c: New file.
72219         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72220         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
72221         tanl): Use the standard gnulib idiom.
72222         * lib/cosl.c: Don't include trigl.c and sincosl.c.
72223         * lib/sinl.c: Likewise.
72224         * lib/tanl.c: Don't include trigl.c.
72225         (kernel_tanl): Make static.
72226         * lib/sincosl.c: Include trigl.h first.
72227         * lib/trigl.c: Likewise.
72228         * m4/acosl.m4: New file.
72229         * m4/asinl.m4: New file.
72230         * m4/atanl.m4: New file.
72231         * m4/cosl.m4: New file.
72232         * m4/expl.m4: New file.
72233         * m4/logl.m4: New file.
72234         * m4/sinl.m4: New file.
72235         * m4/sqrtl.m4: New file.
72236         * m4/tanl.m4: New file.
72237         * m4/mathl.m4: Remove file.
72238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
72239         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
72240         Don't initialize GNULIB_MATHL.
72241         * modules/acosl: New file.
72242         * modules/asinl: New file.
72243         * modules/atanl: New file.
72244         * modules/cosl: New file.
72245         * modules/expl: New file.
72246         * modules/logl: New file.
72247         * modules/sinl: New file.
72248         * modules/sqrtl: New file.
72249         * modules/tanl: New file.
72250         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
72251         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
72252         substitute GNULIB_MATHL.
72253         * modules/mathl: Rewritten.
72254         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72255         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72256         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72257         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72258         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72259         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72260         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72261         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72262         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72264 2010-01-18  Bruno Haible  <bruno@clisp.org>
72266         sqrt: Make gl_FUNC_SQRT requirable.
72267         * m4/sqrt.m4: New file.
72268         * modules/sqrt (Files): Add it.
72269         (configure.ac): Invoke gl_FUNC_SQRT.
72271 2010-01-18  Bruno Haible  <bruno@clisp.org>
72273         New modules for common <math.h> functions.
72274         * m4/mathfunc.m4: New file.
72275         * modules/acos: New file.
72276         * modules/asin: New file.
72277         * modules/atan: New file.
72278         * modules/atan2: New file.
72279         * modules/cbrt: New file.
72280         * modules/copysign: New file.
72281         * modules/cos: New file.
72282         * modules/cosh: New file.
72283         * modules/erf: New file.
72284         * modules/erfc: New file.
72285         * modules/exp: New file.
72286         * modules/fabs: New file.
72287         * modules/fmod: New file.
72288         * modules/hypot: New file.
72289         * modules/j0: New file.
72290         * modules/j1: New file.
72291         * modules/jn: New file.
72292         * modules/ldexp: New file.
72293         * modules/lgamma: New file.
72294         * modules/log: New file.
72295         * modules/log10: New file.
72296         * modules/log1p: New file.
72297         * modules/logb: New file.
72298         * modules/modf: New file.
72299         * modules/nextafter: New file.
72300         * modules/pow: New file.
72301         * modules/remainder: New file.
72302         * modules/rint: New file.
72303         * modules/sin: New file.
72304         * modules/sinh: New file.
72305         * modules/sqrt: New file.
72306         * modules/tan: New file.
72307         * modules/tanh: New file.
72308         * modules/y0: New file.
72309         * modules/y1: New file.
72310         * modules/yn: New file.
72311         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72312         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72313         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72314         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72315         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72316         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72317         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72318         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72319         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72320         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72321         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72322         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72323         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72324         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72325         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72326         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72327         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72328         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72329         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72330         * doc/posix-functions/log.texi: Mention the 'log' module.
72331         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72332         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72333         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72334         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72335         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72336         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72337         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72338         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72339         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72340         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72341         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72342         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72343         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72344         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72345         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72346         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72348 2010-01-18  Jim Meyering  <meyering@redhat.com>
72350         ignore-value: relax license to LGPLv2+
72351         * modules/ignore-value (License): Relax to LGPLv2+.
72353         getdate: don't leak when TZ contains two or more '"'s
72354         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72355         double quote in TZ after the first one.
72357         readtokens: do not leak internal token_lengths buffer
72358         * lib/readtokens.c (readtokens): Free the local, lengths,
72359         when the supplied "token_lengths" parameter is NULL.
72361 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72363         Fix a couple of missing LIBTHREAD link failures on AIX.
72364         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72365         $(LIBTHREAD).
72366         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72368         Link test-poll against INET_PTON_LIB.
72369         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72370         for inet_pton on Solaris 10.
72372 2010-01-17  Bruno Haible  <bruno@clisp.org>
72374         unistdio/*-sprintf: Fix typo in module description.
72375         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72376         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72377         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72378         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72379         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72380         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72381         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72382         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72384 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72386         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72387         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72388         variables in shell case patterns, for AIX and HP-UX ksh.
72390         Split large sed scripts, for HP-UX sed.
72391         * modules/stdio: Split sed scripts around 50 sed commands,
72392         to avoid HP-UX limit of 99 commands, in the near future.
72393         * modules/string: Likewise.
72394         * modules/unistd: Likewise.
72396         gnulib-tool: avoid writing in the current directory.
72397         * gnulib-tool (func_emit_lib_Makefile_am)
72398         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72399         not in the current directory, so concurrent gnulib-tool
72400         instances do not interfere.
72402 2010-01-16  Jim Meyering  <meyering@redhat.com>
72404         doc: update users.txt
72405         * users.txt: Add grep.
72406         (diffutils, gzip): Update URLs.
72408 2010-01-12  Bruno Haible  <bruno@clisp.org>
72410         posix_spawn: Avoid test failure on Cygwin.
72411         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72412         characters.
72413         Reported by Simon Josefsson.
72415 2010-01-12  Bruno Haible  <bruno@clisp.org>
72417         * tests/test-cond.c (main): When skipping the test, show the reason.
72419 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72421         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72423 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72425         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72426         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72428 2010-01-12  Eric Blake  <ebb9@byu.net>
72430         build: guarantee AS_VAR_IF
72431         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72432         (gl_AS_VAR_IF): Move...
72433         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72434         Reported by Simon Josefsson.
72436 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72438         * lib/stdio.in.h: Fix typo.
72440 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72442         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72443         libgpg-error.
72445 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72447         * tests/test-xalloc-die.sh: Use $EXEEXT.
72449 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72450             Bruno Haible  <bruno@clisp.org>
72452         getlogin, getlogin_r: Avoid test failure.
72453         * tests/test-getlogin.c: Include <stdio.h>.
72454         (main): Skip the test when the function fails because stdin is not a
72455         tty.
72456         * tests/test-getlogin_r.c: Include <stdio.h>.
72457         (main): Skip the test when the function fails because stdin is not a
72458         tty.
72460 2010-01-11  Eric Blake  <ebb9@byu.net>
72462         tests: avoid more large file warnings
72463         * tests/test-fflush.c: Avoid warning about ftell use.
72464         * tests/test-fseek.c: Avoid warning about fseek use.
72466 2010-01-10  Bruno Haible  <bruno@clisp.org>
72468         nproc: Work better on Linux when /proc and /sys are not mounted.
72469         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72470         as lower bound when, on glibc/Linux systems,
72471         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72472         Suggested by Pádraig Brady <P@draigbrady.com>.
72473         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72475         nproc: Refactor.
72476         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72477         extracted from num_processors.
72478         (num_processors): Call it.
72480 2010-01-11  Jim Meyering  <meyering@redhat.com>
72482         utimecmp: avoid new warning from upcoming gcc-4.5.0
72483         * lib/utimecmp.c (BILLION): Define using #define rather than an
72484         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72486 2010-01-11  Eric Blake  <ebb9@byu.net>
72488         math: add portability warnings for classification macros
72489         * modules/math (Depends-on): Add warn-on-use.
72490         (Makefile.am): Provide new substitutions.
72491         * m4/math_h.m4 (gl_MATH_H): Require inline.
72492         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72493         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72494         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72495         implement warnings.
72497         unistd: warn on use of environ without module
72498         * modules/unistd (Depends-on): Add warn-on-use.
72499         (Makefile.am): Provide new substitutions.
72500         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72501         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72503         stdio: warn on suspicious uses
72504         * modules/stdio (Depends-on): Add warn-on-use.
72505         (Makefile.am): Provide new substitutions.
72506         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72507         fseeko.
72508         * lib/stdio.in.h (gets): Always warn on use.
72509         (fseek, ftell): Adjust when warnings are issued, and honor
72510         _GL_NO_LARGE_FILES as a way to silence the warning.
72511         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72512         any warning about large file offsets.
72513         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72514         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72515         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72516         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72517         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72518         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72519         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72520         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72522         warn-on-use: new module
72523         * modules/warn-on-use: New file.
72524         * build-aux/warn-on-use.h: Likewise.
72525         * m4/warn-on-use.m4: Likewise.
72526         * MODULES.html.sh (Support for building): Mention it.
72528 2010-01-10  Bruno Haible  <bruno@clisp.org>
72530         Tests for module 'unistr/u32-strdup'.
72531         * modules/unistr/u32-strdup-tests: New file.
72532         * tests/unistr/test-u32-strdup.c: New file.
72534         Tests for module 'unistr/u16-strdup'.
72535         * modules/unistr/u16-strdup-tests: New file.
72536         * tests/unistr/test-u16-strdup.c: New file.
72538         Tests for module 'unistr/u8-strdup'.
72539         * modules/unistr/u8-strdup-tests: New file.
72540         * tests/unistr/test-u8-strdup.c: New file.
72541         * tests/unistr/test-strdup.h: New file.
72543         Tests for module 'unistr/u32-strncmp'.
72544         * modules/unistr/u32-strncmp-tests: New file.
72545         * tests/unistr/test-u32-strncmp.c: New file.
72547         Tests for module 'unistr/u16-strncmp'.
72548         * modules/unistr/u16-strncmp-tests: New file.
72549         * tests/unistr/test-u16-strncmp.c: New file.
72551         Tests for module 'unistr/u8-strncmp'.
72552         * modules/unistr/u8-strncmp-tests: New file.
72553         * tests/unistr/test-u8-strncmp.c: New file.
72554         * tests/unistr/test-strncmp.h: New file.
72556         Tests for module 'unistr/u32-strcoll'.
72557         * modules/unistr/u32-strcoll-tests: New file.
72558         * tests/unistr/test-u32-strcoll.c: New file.
72560         Tests for module 'unistr/u16-strcoll'.
72561         * modules/unistr/u16-strcoll-tests: New file.
72562         * tests/unistr/test-u16-strcoll.c: New file.
72564         Tests for module 'unistr/u8-strcoll'.
72565         * modules/unistr/u8-strcoll-tests: New file.
72566         * tests/unistr/test-u8-strcoll.c: New file.
72568         Tests for module 'unistr/u32-strcmp'.
72569         * modules/unistr/u32-strcmp-tests: New file.
72570         * tests/unistr/test-u32-strcmp.c: New file.
72571         * tests/unistr/test-u32-strcmp.h: New file.
72573         Tests for module 'unistr/u16-strcmp'.
72574         * modules/unistr/u16-strcmp-tests: New file.
72575         * tests/unistr/test-u16-strcmp.c: New file.
72576         * tests/unistr/test-u16-strcmp.h: New file.
72578         Tests for module 'unistr/u8-strcmp'.
72579         * modules/unistr/u8-strcmp-tests: New file.
72580         * tests/unistr/test-u8-strcmp.c: New file.
72581         * tests/unistr/test-u8-strcmp.h: New file.
72582         * tests/unistr/test-strcmp.h: New file.
72584         Tests for module 'unistr/u32-strncat'.
72585         * modules/unistr/u32-strncat-tests: New file.
72586         * tests/unistr/test-u32-strncat.c: New file.
72588         Tests for module 'unistr/u16-strncat'.
72589         * modules/unistr/u16-strncat-tests: New file.
72590         * tests/unistr/test-u16-strncat.c: New file.
72592         Tests for module 'unistr/u8-strncat'.
72593         * modules/unistr/u8-strncat-tests: New file.
72594         * tests/unistr/test-u8-strncat.c: New file.
72595         * tests/unistr/test-strncat.h: New file.
72597         Tests for module 'unistr/u32-strcat'.
72598         * modules/unistr/u32-strcat-tests: New file.
72599         * tests/unistr/test-u32-strcat.c: New file.
72601         Tests for module 'unistr/u16-strcat'.
72602         * modules/unistr/u16-strcat-tests: New file.
72603         * tests/unistr/test-u16-strcat.c: New file.
72605         Tests for module 'unistr/u8-strcat'.
72606         * modules/unistr/u8-strcat-tests: New file.
72607         * tests/unistr/test-u8-strcat.c: New file.
72608         * tests/unistr/test-strcat.h: New file.
72610         Tests for module 'unistr/u32-stpncpy'.
72611         * modules/unistr/u32-stpncpy-tests: New file.
72612         * tests/unistr/test-u32-stpncpy.c: New file.
72614         Tests for module 'unistr/u16-stpncpy'.
72615         * modules/unistr/u16-stpncpy-tests: New file.
72616         * tests/unistr/test-u16-stpncpy.c: New file.
72618         Tests for module 'unistr/u8-stpncpy'.
72619         * modules/unistr/u8-stpncpy-tests: New file.
72620         * tests/unistr/test-u8-stpncpy.c: New file.
72621         * tests/unistr/test-stpncpy.h: New file.
72623         Tests for module 'unistr/u32-strncpy'.
72624         * modules/unistr/u32-strncpy-tests: New file.
72625         * tests/unistr/test-u32-strncpy.c: New file.
72627         Tests for module 'unistr/u16-strncpy'.
72628         * modules/unistr/u16-strncpy-tests: New file.
72629         * tests/unistr/test-u16-strncpy.c: New file.
72631         Tests for module 'unistr/u8-strncpy'.
72632         * modules/unistr/u8-strncpy-tests: New file.
72633         * tests/unistr/test-u8-strncpy.c: New file.
72634         * tests/unistr/test-strncpy.h: New file.
72636         Tests for module 'unistr/u32-stpcpy'.
72637         * modules/unistr/u32-stpcpy-tests: New file.
72638         * tests/unistr/test-u32-stpcpy.c: New file.
72640         Tests for module 'unistr/u16-stpcpy'.
72641         * modules/unistr/u16-stpcpy-tests: New file.
72642         * tests/unistr/test-u16-stpcpy.c: New file.
72644         Tests for module 'unistr/u8-stpcpy'.
72645         * modules/unistr/u8-stpcpy-tests: New file.
72646         * tests/unistr/test-u8-stpcpy.c: New file.
72647         * tests/unistr/test-stpcpy.h: New file.
72649         Tests for module 'unistr/u32-strcpy'.
72650         * modules/unistr/u32-strcpy-tests: New file.
72651         * tests/unistr/test-u32-strcpy.c: New file.
72653         Tests for module 'unistr/u16-strcpy'.
72654         * modules/unistr/u16-strcpy-tests: New file.
72655         * tests/unistr/test-u16-strcpy.c: New file.
72657         Tests for module 'unistr/u8-strcpy'.
72658         * modules/unistr/u8-strcpy-tests: New file.
72659         * tests/unistr/test-u8-strcpy.c: New file.
72660         * tests/unistr/test-strcpy.h: New file.
72662         Tests for module 'unistr/u32-strnlen'.
72663         * modules/unistr/u32-strnlen-tests: New file.
72664         * tests/unistr/test-u32-strnlen.c: New file.
72666         Tests for module 'unistr/u16-strnlen'.
72667         * modules/unistr/u16-strnlen-tests: New file.
72668         * tests/unistr/test-u16-strnlen.c: New file.
72670         Tests for module 'unistr/u8-strnlen'.
72671         * modules/unistr/u8-strnlen-tests: New file.
72672         * tests/unistr/test-u8-strnlen.c: New file.
72673         * tests/unistr/test-strnlen.h: New file.
72675         Tests for module 'unistr/u32-strlen'.
72676         * modules/unistr/u32-strlen-tests: New file.
72677         * tests/unistr/test-u32-strlen.c: New file.
72679         Tests for module 'unistr/u16-strlen'.
72680         * modules/unistr/u16-strlen-tests: New file.
72681         * tests/unistr/test-u16-strlen.c: New file.
72683         Tests for module 'unistr/u8-strlen'.
72684         * modules/unistr/u8-strlen-tests: New file.
72685         * tests/unistr/test-u8-strlen.c: New file.
72687         Tests for module 'unistr/u32-prev'.
72688         * modules/unistr/u32-prev-tests: New file.
72689         * tests/unistr/test-u32-prev.c: New file.
72691         Tests for module 'unistr/u16-prev'.
72692         * modules/unistr/u16-prev-tests: New file.
72693         * tests/unistr/test-u16-prev.c: New file.
72695         Tests for module 'unistr/u8-prev'.
72696         * modules/unistr/u8-prev-tests: New file.
72697         * tests/unistr/test-u8-prev.c: New file.
72699         Tests for module 'unistr/u32-next'.
72700         * modules/unistr/u32-next-tests: New file.
72701         * tests/unistr/test-u32-next.c: New file.
72703         Tests for module 'unistr/u16-next'.
72704         * modules/unistr/u16-next-tests: New file.
72705         * tests/unistr/test-u16-next.c: New file.
72707         Tests for module 'unistr/u8-next'.
72708         * modules/unistr/u8-next-tests: New file.
72709         * tests/unistr/test-u8-next.c: New file.
72711         Tests for module 'unistr/u32-strmbtouc'.
72712         * modules/unistr/u32-strmbtouc-tests: New file.
72713         * tests/unistr/test-u32-strmbtouc.c: New file.
72715         Tests for module 'unistr/u16-strmbtouc'.
72716         * modules/unistr/u16-strmbtouc-tests: New file.
72717         * tests/unistr/test-u16-strmbtouc.c: New file.
72719         Tests for module 'unistr/u8-strmbtouc'.
72720         * modules/unistr/u8-strmbtouc-tests: New file.
72721         * tests/unistr/test-u8-strmbtouc.c: New file.
72723         Tests for module 'unistr/u32-strmblen'.
72724         * modules/unistr/u32-strmblen-tests: New file.
72725         * tests/unistr/test-u32-strmblen.c: New file.
72727         Tests for module 'unistr/u16-strmblen'.
72728         * modules/unistr/u16-strmblen-tests: New file.
72729         * tests/unistr/test-u16-strmblen.c: New file.
72731         Tests for module 'unistr/u8-strmblen'.
72732         * modules/unistr/u8-strmblen-tests: New file.
72733         * tests/unistr/test-u8-strmblen.c: New file.
72735         Tests for module 'unistr/u32-cpy-alloc'.
72736         * modules/unistr/u32-cpy-alloc-tests: New file.
72737         * tests/unistr/test-u32-cpy-alloc.c: New file.
72739         Tests for module 'unistr/u16-cpy-alloc'.
72740         * modules/unistr/u16-cpy-alloc-tests: New file.
72741         * tests/unistr/test-u16-cpy-alloc.c: New file.
72743         Tests for module 'unistr/u8-cpy-alloc'.
72744         * modules/unistr/u8-cpy-alloc-tests: New file.
72745         * tests/unistr/test-u8-cpy-alloc.c: New file.
72746         * tests/unistr/test-cpy-alloc.h: New file.
72748         Tests for module 'unistr/u32-mbsnlen'.
72749         * modules/unistr/u32-mbsnlen-tests: New file.
72750         * tests/unistr/test-u32-mbsnlen.c: New file.
72752         Tests for module 'unistr/u16-mbsnlen'.
72753         * modules/unistr/u16-mbsnlen-tests: New file.
72754         * tests/unistr/test-u16-mbsnlen.c: New file.
72756         Tests for module 'unistr/u8-mbsnlen'.
72757         * modules/unistr/u8-mbsnlen-tests: New file.
72758         * tests/unistr/test-u8-mbsnlen.c: New file.
72760         Tests for module 'unistr/u32-chr'.
72761         * modules/unistr/u32-chr-tests: New file.
72762         * tests/unistr/test-u32-chr.c: New file.
72764         Tests for module 'unistr/u16-chr'.
72765         * modules/unistr/u16-chr-tests: New file.
72766         * tests/unistr/test-u16-chr.c: New file.
72768         Tests for module 'unistr/u8-chr'.
72769         * modules/unistr/u8-chr-tests: New file.
72770         * tests/unistr/test-u8-chr.c: New file.
72771         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72773         Tests for module 'unistr/u32-cmp2'.
72774         * modules/unistr/u32-cmp2-tests: New file.
72775         * tests/unistr/test-u32-cmp2.c: New file.
72777         Tests for module 'unistr/u16-cmp2'.
72778         * modules/unistr/u16-cmp2-tests: New file.
72779         * tests/unistr/test-u16-cmp2.c: New file.
72781         Tests for module 'unistr/u8-cmp2'.
72782         * modules/unistr/u8-cmp2-tests: New file.
72783         * tests/unistr/test-u8-cmp2.c: New file.
72784         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72786         Tests for module 'unistr/u32-cmp'.
72787         * modules/unistr/u32-cmp-tests: New file.
72788         * tests/unistr/test-u32-cmp.c: New file.
72790         Tests for module 'unistr/u16-cmp'.
72791         * modules/unistr/u16-cmp-tests: New file.
72792         * tests/unistr/test-u16-cmp.c: New file.
72794         Tests for module 'unistr/u8-cmp'.
72795         * modules/unistr/u8-cmp-tests: New file.
72796         * tests/unistr/test-u8-cmp.c: New file.
72797         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72799         Tests for module 'unistr/u32-set'.
72800         * modules/unistr/u32-set-tests: New file.
72801         * tests/unistr/test-u32-set.c: New file.
72803         Tests for module 'unistr/u16-set'.
72804         * modules/unistr/u16-set-tests: New file.
72805         * tests/unistr/test-u16-set.c: New file.
72807         Tests for module 'unistr/u8-set'.
72808         * modules/unistr/u8-set-tests: New file.
72809         * tests/unistr/test-u8-set.c: New file.
72810         * tests/unistr/test-set.h: New file.
72812         Tests for module 'unistr/u32-move'.
72813         * modules/unistr/u32-move-tests: New file.
72814         * tests/unistr/test-u32-move.c: New file.
72816         Tests for module 'unistr/u16-move'.
72817         * modules/unistr/u16-move-tests: New file.
72818         * tests/unistr/test-u16-move.c: New file.
72820         Tests for module 'unistr/u8-move'.
72821         * modules/unistr/u8-move-tests: New file.
72822         * tests/unistr/test-u8-move.c: New file.
72823         * tests/unistr/test-move.h: New file.
72825         Tests for module 'unistr/u32-cpy'.
72826         * modules/unistr/u32-cpy-tests: New file.
72827         * tests/unistr/test-u32-cpy.c: New file.
72829         Tests for module 'unistr/u16-cpy'.
72830         * modules/unistr/u16-cpy-tests: New file.
72831         * tests/unistr/test-u16-cpy.c: New file.
72833         Tests for module 'unistr/u8-cpy'.
72834         * modules/unistr/u8-cpy-tests: New file.
72835         * tests/unistr/test-u8-cpy.c: New file.
72836         * tests/unistr/test-cpy.h: New file.
72838 2010-01-09  Bruno Haible  <bruno@clisp.org>
72840         Tests for module 'unistr/u32-uctomb'.
72841         * modules/unistr/u32-uctomb-tests: New file.
72842         * tests/unistr/test-u32-uctomb.c: New file.
72844         Tests for module 'unistr/u16-uctomb'.
72845         * modules/unistr/u16-uctomb-tests: New file.
72846         * tests/unistr/test-u16-uctomb.c: New file.
72848         Tests for module 'unistr/u8-uctomb'.
72849         * modules/unistr/u8-uctomb-tests: New file.
72850         * tests/unistr/test-u8-uctomb.c: New file.
72852         Tests for module 'unistr/u32-mbtoucr'.
72853         * modules/unistr/u32-mbtoucr-tests: New file.
72854         * tests/unistr/test-u32-mbtoucr.c: New file.
72856         Tests for module 'unistr/u16-mbtoucr'.
72857         * modules/unistr/u16-mbtoucr-tests: New file.
72858         * tests/unistr/test-u16-mbtoucr.c: New file.
72860         Tests for module 'unistr/u8-mbtoucr'.
72861         * modules/unistr/u8-mbtoucr-tests: New file.
72862         * tests/unistr/test-u8-mbtoucr.c: New file.
72864         Tests for module 'unistr/u32-mbtouc'.
72865         * modules/unistr/u32-mbtouc-tests: New file.
72866         * tests/unistr/test-u32-mbtouc.c: New file.
72868         Tests for module 'unistr/u16-mbtouc'.
72869         * modules/unistr/u16-mbtouc-tests: New file.
72870         * tests/unistr/test-u16-mbtouc.c: New file.
72872         Tests for module 'unistr/u8-mbtouc'.
72873         * modules/unistr/u8-mbtouc-tests: New file.
72874         * tests/unistr/test-u8-mbtouc.c: New file.
72876         Tests for module 'unistr/u32-mbtouc-unsafe'.
72877         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72878         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72879         * tests/unistr/test-u32-mbtouc.h: New file.
72881         Tests for module 'unistr/u16-mbtouc-unsafe'.
72882         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72883         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72884         * tests/unistr/test-u16-mbtouc.h: New file.
72886         Tests for module 'unistr/u8-mbtouc-unsafe'.
72887         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72888         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72889         * tests/unistr/test-u8-mbtouc.h: New file.
72891         Tests for module 'unistr/u32-mblen'.
72892         * modules/unistr/u32-mblen-tests: New file.
72893         * tests/unistr/test-u32-mblen.c: New file.
72895         Tests for module 'unistr/u16-mblen'.
72896         * modules/unistr/u16-mblen-tests: New file.
72897         * tests/unistr/test-u16-mblen.c: New file.
72899         Tests for module 'unistr/u8-mblen'.
72900         * modules/unistr/u8-mblen-tests: New file.
72901         * tests/unistr/test-u8-mblen.c: New file.
72903         Tests for module 'unistr/u32-to-u16'.
72904         * modules/unistr/u32-to-u16-tests: New file.
72905         * tests/unistr/test-u32-to-u16.c: New file.
72907         Tests for module 'unistr/u32-to-u8'.
72908         * modules/unistr/u32-to-u8-tests: New file.
72909         * tests/unistr/test-u32-to-u8.c: New file.
72911         Tests for module 'unistr/u16-to-u32'.
72912         * modules/unistr/u16-to-u32-tests: New file.
72913         * tests/unistr/test-u16-to-u32.c: New file.
72915         Tests for module 'unistr/u16-to-u8'.
72916         * modules/unistr/u16-to-u8-tests: New file.
72917         * tests/unistr/test-u16-to-u8.c: New file.
72919         Tests for module 'unistr/u8-to-u32'.
72920         * modules/unistr/u8-to-u32-tests: New file.
72921         * tests/unistr/test-u8-to-u32.c: New file.
72923         Tests for module 'unistr/u8-to-u16'.
72924         * modules/unistr/u8-to-u16-tests: New file.
72925         * tests/unistr/test-u8-to-u16.c: New file.
72927         Tests for module 'unistr/u32-check'.
72928         * modules/unistr/u32-check-tests: New file.
72929         * tests/unistr/test-u32-check.c: New file.
72931         Tests for module 'unistr/u16-check'.
72932         * modules/unistr/u16-check-tests: New file.
72933         * tests/unistr/test-u16-check.c: New file.
72935         Tests for module 'unistr/u8-check'.
72936         * modules/unistr/u8-check-tests: New file.
72937         * tests/unistr/test-u8-check.c: New file.
72939         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72940         (category_equals): New function.
72941         (main): Add more tests.
72942         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72944         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72946 2010-01-10  Bruno Haible  <bruno@clisp.org>
72948         unistr/u*-strcoll: Try harder to distinguish different strings.
72949         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72950         compare s1 and s2 to see if they are different.
72952 2010-01-10  Bruno Haible  <bruno@clisp.org>
72954         unistr/u*-stpncpy: Fix the return value.
72955         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72956         description of the return value consistent with stpncpy in glibc.
72957         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72958         written non-NUL unit.
72960 2010-01-10  Bruno Haible  <bruno@clisp.org>
72962         unistr/u*-next: Add missing dependencies.
72963         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72964         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72965         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72967 2010-01-10  Bruno Haible  <bruno@clisp.org>
72969         unistr/u8-mbsnlen: Fix return value for incomplete character.
72970         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72971         u8_mblen.
72972         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72973         Remove unistr/u8-mblen.
72974         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72975         u16_mblen.
72976         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72977         Remove unistr/u16-mblen.
72979 2010-01-10  Bruno Haible  <bruno@clisp.org>
72981         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72982         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72983         Reported by Brian Gough <bjg@gnu.org> and
72984         Chris Clayton <chris2553@googlemail.com> via
72985         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72987 2010-01-09  Bruno Haible  <bruno@clisp.org>
72989         unistr/u16-to-u32: Reject invalid input.
72990         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72991         u16_mbtouc.
72992         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72993         Remove unistr/u16-mbtouc.
72995         unistr/u16-to-u8: Reject invalid input.
72996         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72997         u16_mbtouc.
72998         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72999         Remove unistr/u16-mbtouc.
73001         unistr/u8-to-u32: Reject invalid input.
73002         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
73003         u8_mbtouc.
73004         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
73005         Remove unistr/u8-mbtouc.
73007         unistr/u8-to-u16: Reject invalid input.
73008         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
73009         u8_mbtouc.
73010         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
73011         Remove unistr/u8-mbtouc.
73013 2010-01-09  Bruno Haible  <bruno@clisp.org>
73015         Tests for module 'getlogin'.
73016         * modules/getlogin-tests: New file.
73017         * tests/test-getlogin.c: New file.
73019         New module 'getlogin'.
73020         * lib/unistd.in.h (getlogin): New declaration.
73021         * lib/getlogin.c: New file.
73022         * m4/getlogin.m4: New file.
73023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
73024         HAVE_GETLOGIN.
73025         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
73026         HAVE_GETLOGIN.
73027         * modules/getlogin: New file.
73028         * doc/posix-functions/getlogin.texi: Mention the new module.
73029         Reported by John W. Eaton <jwe@gnu.org>.
73031 2010-01-09  Bruno Haible  <bruno@clisp.org>
73033         getlogin_r: Support for native Windows.
73034         * lib/getlogin_r.c: Include <windows.h>
73035         (getlogin_r): Implement for native Windows.
73036         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
73037         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
73038         via John W. Eaton <jwe@gnu.org>.
73040 2010-01-09  Bruno Haible  <bruno@clisp.org>
73042         getlogin_r: Small fixes.
73043         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
73044         succeeds.
73045         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
73046         before testing whether getlogin_r is declared. No need to set
73047         HAVE_DECL_GETLOGIN_R to 1.
73048         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
73050 2010-01-09  Bruno Haible  <bruno@clisp.org>
73052         * lib/unistd.in.h (getlogin_r): Add comment.
73054 2010-01-09  Bruno Haible  <bruno@clisp.org>
73056         Tests for module 'getlogin_r'.
73057         * modules/getlogin_r-tests: New file.
73058         * tests/test-getlogin_r.c: New file.
73060 2010-01-09  Jim Meyering  <meyering@redhat.com>
73062         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
73063         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
73064         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
73066 2010-01-08  Simon Josefsson  <simon@josefsson.org>
73068         * lib/dup2.c (rpl_dup2): Improve comment.
73070 2010-01-08  Eric Blake  <ebb9@byu.net>
73072         maint.mk: allow packages to add makefile @@ exceptions
73073         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
73074         (sc_makefile_check): Rename...
73075         (sc_makefile_at_at_check): ...to this, and use hook.
73077         dup2: work around mingw bug
73078         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
73079         Reported by Simon Josefsson.
73081 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
73083         glob: Fix C++ compilation.
73084         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
73085         C++.
73087 2010-01-07  Bruno Haible  <bruno@clisp.org>
73089         Fix indentation of wctype.in.h, broken since 2007-01-06.
73090         * lib/wctype.in.h: Fix indentation of preprocessor directives.
73092 2010-01-07  Bruno Haible  <bruno@clisp.org>
73094         mbslen: Avoid collision with system function.
73095         * lib/string.in.h [MirBSD]: Include <wchar.h>.
73096         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
73097         * m4/mbslen.m4: New file.
73098         * modules/mbslen (Files): Add it.
73099         (configure.ac): Invoke gl_MBSLEN.
73100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
73101         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
73102         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
73103         via Ian Beckwith <ianb@erislabs.net>.
73105 2010-01-07  Bruno Haible  <bruno@clisp.org>
73107         dirent: Document the last fix.
73108         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
73110 2010-01-07  Bruno Haible  <bruno@clisp.org>
73112         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
73113         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
73114         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
73115         va_list are defined.
73116         * doc/posix-headers/stdio.texi: Document the bug of missing types.
73117         Reported by Eric Blake.
73119 2010-01-07  Bruno Haible  <bruno@clisp.org>
73121         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
73122         * modules/xlist (Depends-on): Add 'list',
73123         * modules/xoset (Depends-on): Add 'oset'.
73124         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73126 2010-01-07  Bruno Haible  <bruno@clisp.org>
73128         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
73129         * doc/posix-functions/strncasecmp.texi: Likewise.
73131 2010-01-07  Bruno Haible  <bruno@clisp.org>
73133         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
73135 2010-01-07  John W. Eaton  <jwe@octave.org>
73137         wctype: allow C++ use
73138         * lib/wctype.in.h: Add extern "C" block for C++.
73140 2010-01-06  Eric Blake  <ebb9@byu.net>
73142         maint.mk: detect incorrect GFDL usage
73143         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
73145 2010-01-06  Jim Meyering  <meyering@redhat.com>
73146         and Eric Blake  <ebb9@byu.net>
73148         maint.mk: ignore multi-line copyright in NEWS
73149         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
73151 2010-01-06  Eric Blake  <ebb9@byu.net>
73153         select: add missing dependency
73154         * modules/select-tests (Depends-on): Move sockets dependency...
73155         * modules/select (Depends-on): ...here.
73156         Reported by Ian Beckwith.
73158         doc: regenerate INSTALL
73159         * doc/INSTALL: Reflect recent autoconf update.
73160         * doc/INSTALL.ISO: Likewise.
73161         * doc/INSTALL.UTF-8: Likewise.
73163         pread: fix compilation on glibc
73164         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
73165         Reported by Ralf Wildenhues.
73167         dirent: fix test failure
73168         * lib/dirent.in.h (includes): Guarantee ino_t.
73169         Reported by Ralf Wildenhues.
73171 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
73173         linkat, renameat: avoid bad free
73174         * lib/at-func2.c (at_func2): Fix typo.
73175         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
73177 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73179         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
73180         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
73181         to avoid failure of symlink test later.
73183 2010-01-06  Eric Blake  <ebb9@byu.net>
73185         stdio, unistd: guarantee ssize_t
73186         * lib/unistd.in.h (includes): Ensure that types required by POSIX
73187         2008 are exposed when needed.
73188         * lib/stdio.in.h (includes): Likewise.
73189         Reported by Ralf Wildenhues.
73191 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
73193         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
73194         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
73195         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
73197 2010-01-06  Jim Meyering  <meyering@redhat.com>
73199         readtokens: this module *does* require xalloc.h
73200         It uses only functions that were omitted by the old syntax-check rule.
73201         * lib/readtokens.c: Include "xalloc.h" once again.
73202         * modules/readtokens (Depends-on): Add xalloc.
73203         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
73205 2010-01-05  Eric Blake  <ebb9@byu.net>
73207         maint: support 'make announcement' from a VPATH build
73208         * top/maint.mk (announcement): Look for correct NEWS file.
73210 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
73212         utimens (fdutimens): ignore a negative FD, per contract
73213         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
73214         when we have a valid file descriptor.  Otherwise, using a brand
73215         new glibc (with just-patched futimens that now fails with EBADF)
73216         would cause this function to fail with ENOSYS.
73217         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
73218         See also http://bugzilla.redhat.com/552320.
73220 2010-01-05  Eric Blake  <ebb9@byu.net>
73222         strcase: document what it provides
73223         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
73224         gnulib module.
73225         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
73226         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
73228 2010-01-05  Jim Meyering  <meyering@redhat.com>
73230         maint: remove useless inclusions of "xalloc.h"
73231         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
73232         * lib/readtokens.c: Likewise.
73233         * lib/same.c: Likewise.
73234         * modules/getloadavg (Depends-on): Remove xalloc.
73235         * modules/readtokens: Likewise.
73236         * modules/same: Likewise.
73238         maint.mk: include 4 more function names in alloca.h-checking regexp
73239         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
73240         regexp.  Before, we would give a false-positive (saying alloca.h
73241         is included unnecessarily) when the only uses involved omitted symbols.
73243         xalloc.h: use consistent formatting
73244         * lib/xalloc.h: Move declarations to start in the first column.
73246 2010-01-05  Eric Blake  <ebb9@byu.net>
73248         mkdir: avoid xalloc
73249         * lib/mkdir.c (includes): Drop unused header.
73250         Reported by John W. Eaton.
73252 2010-01-04  Jim Meyering  <meyering@redhat.com>
73254         nl_langinfo: avoid configure-time syntax error
73255         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73256         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73257         the empty string.  Don't let that provoke a shell syntax error.
73259         regcomp, regexec, fnmatch: avoid array bounds read error
73260         * lib/regcomp.c (build_equiv_class): From glibc:
73261         Use only the low 24 bits of a findidx return value as an index
73262         into the weights array.  Patch by Ulrich Drepper:
73263         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73264         * lib/regexec.c (check_node_accept_bytes): Likewise.
73265         * lib/fnmatch_loop.c (FCT): Likewise.
73267         regcomp: skip collseq lookup when there are no rules
73268         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73269         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73271         regcomp: recognize ill-formed { } expressions
73272         * lib/regcomp.c (parse_dup_op): From glibc:
73273         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73275         regcomp: fix typo in comment
73276         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73277         s/satisfy/satisfies/.
73279         regcomp: sync from glibc: remove dead store
73280         * lib/regcomp.c (duplicate_node_closure): Remove useless
73281         search_duplicated_node call and dead store.
73283         regcomp: sync from glibc; always use nl_langinfo
73284         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73285         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73286         * modules/regex (Depends-on): Add nl_langinfo.
73288 2010-01-04  Eric Blake  <ebb9@byu.net>
73290         fdopendir: fix configure test
73291         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73293 2010-01-01  Bruno Haible  <bruno@clisp.org>
73295         wchar: Remove unused configure check.
73296         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73298 2010-01-01  Eric Blake  <ebb9@byu.net>
73300         headers: make check of system header explicit
73301         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73302         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73303         ourselves.
73304         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73307         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73308         internals.
73309         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73310         missing.
73311         Suggested by Bruno Haible.
73313 2010-01-01  Jim Meyering  <meyering@redhat.com>
73315         ChangeLog: tweak to eliminate unnecessary copyright line
73316         * ChangeLog: Remove a copyright line that was mistakenly updated
73317         by today's update-copyright run.  Reported by Eric Blake.
73319         test-update-copyright: don't let envvar setting cause test failure
73320         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73322 2010-01-01  Bruno Haible  <bruno@clisp.org>
73324         localename: Avoid gcc warning.
73325         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73326         function if it is not used.
73328 2010-01-01  Jim Meyering  <meyering@redhat.com>
73330         update nearly all FSF copyright year lists to include 2010
73331         Use the same procedure as for 2009, outlined in
73332         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73334         version-etc: set COPYRIGHT_YEAR to 2010
73335         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73337 2009-12-31  Eric Blake  <ebb9@byu.net>
73339         doc: correct availability of cygwin 1.5.x getopt
73340         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73341         variables.
73342         * doc/posix-functions/opterr.texi (opterr): Likewise.
73343         * doc/posix-functions/optind.texi (optind): Likewise.
73344         * doc/posix-functions/optopt.texi (optopt): Likewise.
73345         * doc/posix-functions/tzname.texi (tzname): Likewise.
73347         openat: update maintainer
73348         * modules/openat (Maintainer): Add myself.
73350         utimens: avoid shadowing warning
73351         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73352         buffers into one, to avoid shadowing, as well as avoiding a
73353         redundant stat.
73354         Reported by Jim Meyering.
73356         test-dup2: avoid compiler warning
73357         * tests/test-dup2.c (is_inheritable): Only define if used.
73359 2010-01-01  Bruno Haible  <bruno@clisp.org>
73361         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73362         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73363         defined, use wctomb instead of wcrtomb.
73365 2010-01-01  Bruno Haible  <bruno@clisp.org>
73367         iconv: Reject native Solaris iconv.
73368         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73369         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73371 2009-12-31  Bruno Haible  <bruno@clisp.org>
73373         * tests/test-signal.c (main): Remove test of 'SIG'.
73375 2009-12-31  Bruno Haible  <bruno@clisp.org>
73377         spawn: Fix incomplete fix.
73378         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73379         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73380         warnings for GNULIB_POSIXCHECK again.
73381         Reported by Eric Blake.
73383 2009-12-31  Bruno Haible  <bruno@clisp.org>
73385         Avoid namespace pollution on glibc systems.
73386         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73387         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73388         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73389         glibc systems.
73391 2009-12-31  Bruno Haible  <bruno@clisp.org>
73393         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73394         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73395         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73396         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73397         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73398         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73399         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73401 2009-12-31  Bruno Haible  <bruno@clisp.org>
73403         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73404         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73405         afterwards.
73407 2009-12-31  Bruno Haible  <bruno@clisp.org>
73409         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73410         SYS_UTSNAME_H.
73412 2009-12-31  Bruno Haible  <bruno@clisp.org>
73414         spawn: Fix misapplied patch.
73415         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73416         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73417         warnings for GNULIB_POSIXCHECK.
73419 2009-12-31  Bruno Haible  <bruno@clisp.org>
73421         times: Update after sys_times changed.
73422         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73423         * modules/times (Files): Add it.
73424         (configure.ac): Invoke gl_FUNC_TIMES.
73426 2009-12-31  Bruno Haible  <bruno@clisp.org>
73428         Use AC_C_INLINE where necessary.
73429         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73430         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73432         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73433         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73434         * m4/mbiter.m4 (gl_MBITER): Likewise.
73435         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73436         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73437         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73438         * modules/u64 (configure.ac): Likewise.
73440 2009-12-31  Bruno Haible  <bruno@clisp.org>
73442         Use AC_C_INLINE instead of module 'inline' where possible.
73443         * modules/inline (Description): Clarify purpose.
73444         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73445         * modules/count-one-bits (Depends-on): Remove inline.
73446         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73447         * modules/openat (Depends-on): Remove inline.
73448         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73449         instead of depending on module 'inline'.
73450         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73451         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73452         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73453         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73454         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73455         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73456         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73457         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73458         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73459         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73460         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73461         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73462         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73463         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73464         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73465         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73466         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73467         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73468         Likewise.
73469         * modules/unictype/property-ascii-hex-digit (Depends-on,
73470         configure.ac): Likewise.
73471         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73472         configure.ac): Likewise.
73473         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73474         configure.ac): Likewise.
73475         * modules/unictype/property-bidi-block-separator (Depends-on,
73476         configure.ac): Likewise.
73477         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73478         configure.ac): Likewise.
73479         * modules/unictype/property-bidi-common-separator (Depends-on,
73480         configure.ac): Likewise.
73481         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73482         Likewise.
73483         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73484         configure.ac): Likewise.
73485         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73486         configure.ac): Likewise.
73487         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73488         configure.ac): Likewise.
73489         * modules/unictype/property-bidi-european-digit (Depends-on,
73490         configure.ac): Likewise.
73491         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73492         configure.ac): Likewise.
73493         * modules/unictype/property-bidi-left-to-right (Depends-on,
73494         configure.ac): Likewise.
73495         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73496         configure.ac): Likewise.
73497         * modules/unictype/property-bidi-other-neutral (Depends-on,
73498         configure.ac): Likewise.
73499         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73500         Likewise.
73501         * modules/unictype/property-bidi-segment-separator (Depends-on,
73502         configure.ac): Likewise.
73503         * modules/unictype/property-bidi-whitespace (Depends-on,
73504         configure.ac): Likewise.
73505         * modules/unictype/property-combining (Depends-on, configure.ac):
73506         Likewise.
73507         * modules/unictype/property-composite (Depends-on, configure.ac):
73508         Likewise.
73509         * modules/unictype/property-currency-symbol (Depends-on,
73510         configure.ac): Likewise.
73511         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73512         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73513         Likewise.
73514         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73515         configure.ac): Likewise.
73516         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73517         Likewise.
73518         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73519         Likewise.
73520         * modules/unictype/property-extender (Depends-on, configure.ac):
73521         Likewise.
73522         * modules/unictype/property-format-control (Depends-on, configure.ac):
73523         Likewise.
73524         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73525         Likewise.
73526         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73527         Likewise.
73528         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73529         Likewise.
73530         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73531         Likewise.
73532         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73533         Likewise.
73534         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73535         Likewise.
73536         * modules/unictype/property-id-start (Depends-on, configure.ac):
73537         Likewise.
73538         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73539         Likewise.
73540         * modules/unictype/property-ids-binary-operator (Depends-on,
73541         configure.ac): Likewise.
73542         * modules/unictype/property-ids-trinary-operator (Depends-on,
73543         configure.ac): Likewise.
73544         * modules/unictype/property-ignorable-control (Depends-on,
73545         configure.ac): Likewise.
73546         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73547         Likewise.
73548         * modules/unictype/property-join-control (Depends-on, configure.ac):
73549         Likewise.
73550         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73551         Likewise.
73552         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73553         Likewise.
73554         * modules/unictype/property-logical-order-exception (Depends-on,
73555         configure.ac): Likewise.
73556         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73557         Likewise.
73558         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73559         * modules/unictype/property-non-break (Depends-on, configure.ac):
73560         Likewise.
73561         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73562         Likewise.
73563         * modules/unictype/property-numeric (Depends-on, configure.ac):
73564         Likewise.
73565         * modules/unictype/property-other-alphabetic (Depends-on,
73566         configure.ac): Likewise.
73567         * modules/unictype/property-other-default-ignorable-code-point
73568         (Depends-on, configure.ac): Likewise.
73569         * modules/unictype/property-other-grapheme-extend (Depends-on,
73570         configure.ac): Likewise.
73571         * modules/unictype/property-other-id-continue (Depends-on,
73572         configure.ac): Likewise.
73573         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73574         Likewise.
73575         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73576         Likewise.
73577         * modules/unictype/property-other-math (Depends-on, configure.ac):
73578         Likewise.
73579         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73580         Likewise.
73581         * modules/unictype/property-paired-punctuation (Depends-on,
73582         configure.ac): Likewise.
73583         * modules/unictype/property-paragraph-separator (Depends-on,
73584         configure.ac): Likewise.
73585         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73586         Likewise.
73587         * modules/unictype/property-pattern-white-space (Depends-on,
73588         configure.ac): Likewise.
73589         * modules/unictype/property-private-use (Depends-on, configure.ac):
73590         Likewise.
73591         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73592         Likewise.
73593         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73594         Likewise.
73595         * modules/unictype/property-radical (Depends-on, configure.ac):
73596         Likewise.
73597         * modules/unictype/property-sentence-terminal (Depends-on,
73598         configure.ac): Likewise.
73599         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73600         Likewise.
73601         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73602         * modules/unictype/property-terminal-punctuation (Depends-on,
73603         configure.ac): Likewise.
73604         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73605         Likewise.
73606         * modules/unictype/property-unassigned-code-value (Depends-on,
73607         configure.ac): Likewise.
73608         * modules/unictype/property-unified-ideograph (Depends-on,
73609         configure.ac): Likewise.
73610         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73611         Likewise.
73612         * modules/unictype/property-variation-selector (Depends-on,
73613         configure.ac): Likewise.
73614         * modules/unictype/property-white-space (Depends-on, configure.ac):
73615         Likewise.
73616         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73617         Likewise.
73618         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73619         Likewise.
73620         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73621         Likewise.
73622         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73623         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73624         Likewise.
73626 2009-12-31  Bruno Haible  <bruno@clisp.org>
73628         Remove unnecessary AC_C_INLINE invocation.
73629         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73630         since 2009-08-21.
73632 2009-12-31  Jim Meyering  <meyering@redhat.com>
73634         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73635         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73636         With this change, we can all remove the gpg_key_ID = ... definition
73637         from our respective cfg.mk files.
73639         maint.mk: create announcement template in ~/, not in /tmp
73640         * top/maint.mk (emit_upload_commands): Adjust.
73641         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73642         Remove temporary file, .ci-msg.
73644 2009-12-31  Eric Blake  <ebb9@byu.net>
73646         link-warning: always build headers with link warnings
73647         * modules/arpa_inet (Makefile.am): Always build replacement
73648         header.
73649         * modules/ctype (Makefile.am): Likewise.
73650         * modules/dirent (Makefile.am): Likewise.
73651         * modules/inttypes (Makefile.am): Likewise.
73652         * modules/langinfo (Makefile.am): Likewise.
73653         * modules/locale (Makefile.am): Likewise.
73654         * modules/spawn (Makefile.am): Likewise.
73655         * modules/sys_file (Makefile.am): Likewise.
73656         * modules/sys_ioctl (Makefile.am): Likewise.
73657         * modules/sys_select (Makefile.am): Likewise.
73658         * modules/sys_socket (Makefile.am): Likewise.
73659         * modules/sys_times (Makefile.am): Likewise.
73660         * modules/sys_utsname (Makefile.am): Likewise.
73661         * modules/sys_wait (Makefile.am): Likewise.
73662         * modules/wchar (Makefile.am): Likewise.
73663         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73664         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73665         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73666         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73667         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73668         Likewise.
73669         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73670         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73671         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73672         Likewise.
73673         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73674         Likewise.
73675         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73676         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73677         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73678         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73679         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73680         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73681         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73682         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73683         (gl_WCHAR_H_DEFAULTS): Likewise.
73685 2009-12-31  Eric Blake  <ebb9@byu.net>
73687         signal, spawn: use link warnings
73688         * lib/signal.in.h (sigset_t): Make unconditional.
73689         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73690         (sigpending, sigprocmask, sigaction): Add link warnings.
73691         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73692         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73693         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73694         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73695         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73696         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73697         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73698         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73699         (posix_spawn_file_actions_destroy)
73700         (posix_spawn_file_actions_addopen)
73701         (posix_spawn_file_actions_addclose)
73702         (posix_spawn_file_actions_adddup2): Likewise.
73703         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73704         * tests/test-signal.c (main): Enhance test.
73706         spawn: improve wrapper support
73707         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73708         (gl_SPAWN_H_DEFAULTS): New defaults.
73709         * modules/spawn (Makefile.am): Substitute them.
73710         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73711         Only declare if missing or broken.
73713         sys_times, sys_utsname: use include_next
73714         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73715         header.
73716         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73717         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73718         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73719         * modules/sys_times (Depends-on): Add include_next.
73720         (Makefile.am): Substitute additional values.
73721         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73722         * lib/sys_times.in.h (includes): Include native header, if
73723         available.
73724         * lib/sys_utsname.in.h (includes): Likewise.
73725         * tests/test-sys_times.c (main): Enhance test.
73727         fdutimensat: revert prior patch
73728         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73729         utimens.h.
73730         Reported by Bruno Haible.
73732 2009-12-30  Eric Blake  <ebb9@byu.net>
73734         sys_wait: drop link-warning dependency
73735         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73736         link-warning efforts.
73737         * lib/sys_wait.in.h: Likewise.
73739         fdutimensat: remove bogus dependency
73740         * modules/fdutimensat (Depends-on): Drop inline.
73742         unistd: fix typo
73743         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73745 2009-12-30  Bruno Haible  <bruno@clisp.org>
73747         Fix compilation error with Solaris cc.
73748         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73749         * lib/unicase/u16-is-invariant.c: Likewise.
73750         * lib/unicase/u32-is-invariant.c: Likewise.
73751         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73753 2009-12-30  Bruno Haible  <bruno@clisp.org>
73755         Fix test crash.
73756         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73757         locales.
73758         Reported by Simon Josefsson <simon@josefsson.org>.
73760 2009-12-30  Bruno Haible  <bruno@clisp.org>
73762         Fix compilation error on most platforms.
73763         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73764         Reported by Simon Josefsson <simon@josefsson.org>
73765         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73767 2009-12-30  Eric Blake  <ebb9@byu.net>
73769         futimens, utimensat: work around ntfs-3g bug
73770         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73771         a ctime bug is present, and expand workaround to cover ntfs-3g.
73772         * lib/utimens.c (fdutimens, lutimens): Likewise.
73773         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73774         (validate_timespec): Adjust return value.
73775         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73776         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73777         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73779 2009-12-29  Eric Blake  <ebb9@byu.net>
73781         link-warning: make usage consistent
73782         * modules/ctype (Depends-on): Add link-warning.
73783         (Makefile.am): Update rules accordingly.
73784         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73785         * modules/locale (Depends-on, Makefile.am): Likewise.
73786         * modules/sys_file (Makefile.am): Likewise.
73787         * modules/getopt-posix (Makefile.am): Delete unused link warning
73788         efforts.
73789         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73790         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73791         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73792         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73794         stdio: remove unused variables
73795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73796         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73797         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73799         tests: test more substitute headers
73800         * modules/ctype-tests: New file.
73801         * modules/dirent-tests: Likewise.
73802         * modules/spawn-tests: Likewise.
73803         * modules/sys_file-tests: Likewise.
73804         * modules/sys_ioctl-tests: Likewise.
73805         * modules/sys_wait-tests: Likewise.
73806         * tests/test-ctype.c: Likewise.
73807         * tests/test-dirent.c: Likewise.
73808         * tests/test-spawn.c: Likewise.
73809         * tests/test-sys_file.c: Likewise.
73810         * tests/test-sys_ioctl.c: Likewise.
73811         * tests/test-sys_wait.c: Likewise.
73812         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73813         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73814         whether or not flock is in use.
73816         tests: remove License section from module
73817         * modules/arpa_inet-tests: Remove unneeded section.
73818         * modules/byteswap-tests: Likewise.
73819         * modules/ceilf-tests: Likewise.
73820         * modules/ceill-tests: Likewise.
73821         * modules/crypto/des-tests: Likewise.
73822         * modules/crypto/gc-arcfour-tests: Likewise.
73823         * modules/crypto/gc-arctwo-tests: Likewise.
73824         * modules/crypto/gc-des-tests: Likewise.
73825         * modules/crypto/gc-hmac-md5-tests: Likewise.
73826         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73827         * modules/crypto/gc-md2-tests: Likewise.
73828         * modules/crypto/gc-md4-tests: Likewise.
73829         * modules/crypto/gc-md5-tests: Likewise.
73830         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73831         * modules/crypto/gc-rijndael-tests: Likewise.
73832         * modules/crypto/gc-sha1-tests: Likewise.
73833         * modules/crypto/gc-tests: Likewise.
73834         * modules/crypto/md2-tests: Likewise.
73835         * modules/crypto/md4-tests: Likewise.
73836         * modules/fcntl-h-tests: Likewise.
73837         * modules/floorf-tests: Likewise.
73838         * modules/floorl-tests: Likewise.
73839         * modules/frexp-nolibm-tests: Likewise.
73840         * modules/frexp-tests: Likewise.
73841         * modules/frexpl-nolibm-tests: Likewise.
73842         * modules/frexpl-tests: Likewise.
73843         * modules/getaddrinfo-tests: Likewise.
73844         * modules/inttypes-tests: Likewise.
73845         * modules/isfinite-tests: Likewise.
73846         * modules/isinf-tests: Likewise.
73847         * modules/ldexpl-tests: Likewise.
73848         * modules/locale-tests: Likewise.
73849         * modules/math-tests: Likewise.
73850         * modules/netdb-tests: Likewise.
73851         * modules/netinet_in-tests: Likewise.
73852         * modules/printf-frexp-tests: Likewise.
73853         * modules/printf-frexpl-tests: Likewise.
73854         * modules/priv-set-tests: Likewise.
73855         * modules/random_r-tests: Likewise.
73856         * modules/round-tests: Likewise.
73857         * modules/roundf-tests: Likewise.
73858         * modules/roundl-tests: Likewise.
73859         * modules/search-tests: Likewise.
73860         * modules/select-tests: Likewise.
73861         * modules/signal-tests: Likewise.
73862         * modules/stdbool-tests: Likewise.
73863         * modules/stddef-tests: Likewise.
73864         * modules/stdint-tests: Likewise.
73865         * modules/stdio-tests: Likewise.
73866         * modules/stdlib-tests: Likewise.
73867         * modules/string-tests: Likewise.
73868         * modules/strings-tests: Likewise.
73869         * modules/sys_select-tests: Likewise.
73870         * modules/sys_socket-tests: Likewise.
73871         * modules/sys_stat-tests: Likewise.
73872         * modules/sys_time-tests: Likewise.
73873         * modules/sys_utsname-tests: Likewise.
73874         * modules/sysexits-tests: Likewise.
73875         * modules/time-tests: Likewise.
73876         * modules/trunc-tests: Likewise.
73877         * modules/truncf-tests: Likewise.
73878         * modules/truncl-tests: Likewise.
73879         * modules/tsearch-tests: Likewise.
73880         * modules/unistd-tests: Likewise.
73881         * modules/wchar-tests: Likewise.
73882         * modules/wctype-tests: Likewise.
73884         tests: fix license on several tests
73885         * tests/test-des.c: Update to GPLv3+.
73886         * tests/test-flock.c: Likewise.
73887         * tests/test-fsync.c: Likewise.
73888         * tests/test-futimens.h: Likewise.
73889         * tests/test-gc-arcfour.c: Likewise.
73890         * tests/test-gc-arctwo.c: Likewise.
73891         * tests/test-gc-des.c: Likewise.
73892         * tests/test-gc-hmac-md5.c: Likewise.
73893         * tests/test-gc-hmac-sha1.c: Likewise.
73894         * tests/test-gc-md2.c: Likewise.
73895         * tests/test-gc-md4.c: Likewise.
73896         * tests/test-gc-md5.c: Likewise.
73897         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73898         * tests/test-gc-rijndael.c: Likewise.
73899         * tests/test-gc-sha1.c: Likewise.
73900         * tests/test-gc.c: Likewise.
73901         * tests/test-getcwd.c: Likewise.
73902         * tests/test-link.c: Likewise.
73903         * tests/test-link.h: Likewise.
73904         * tests/test-lutimens.h: Likewise.
73905         * tests/test-md2.c: Likewise.
73906         * tests/test-md4.c: Likewise.
73907         * tests/test-mkdir.h: Likewise.
73908         * tests/test-rename.c: Likewise.
73909         * tests/test-rename.h: Likewise.
73910         * tests/test-safe-alloc.c: Likewise.
73911         * tests/test-utimens-common.h: Likewise.
73912         * tests/test-utimens.h: Likewise.
73914         maint: sync license texts
73915         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73916         * doc/gpl-3.0.texi: Revert copyright year update.
73917         * doc/lgpl-3.0.texi: Likewise.
73919 2009-12-29  Jim Meyering  <meyering@redhat.com>
73921         update nearly all FSF copyright year lists to include 2009
73922         The files named by the following are exempted:
73923             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73924               test -f "$dst" && { echo "$dst"; continue; }
73925               test -d "$dst" || continue
73926               echo "$dst"/$(basename "$src")
73927             done > exempt
73928             git ls-files tests/unictype >> exempt
73929         In the remaining files, convert to all-interval notation if
73930         - there is already at least one year interval like 2000-2003
73931         - the file is maintained by me
73932         - the file is in lib/uni*/, where that style already prevails
73933         Otherwise, use update-copyright's default.
73935 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73936         and Eric Blake  <ebb9@byu.net>
73938         tests: don't require debug system() to pass
73939         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73940         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73941         * tests/test-unlink.h (test_unlink_func): Likewise.
73942         * tests/test-fstatat.c (main): ...into callers.
73943         * tests/test-lstat.c (main): Likewise.
73944         * tests/test-rmdir.c (main): Likewise.
73945         * tests/test-unlink.c (main): Likewise.
73946         * tests/test-unlinkat.c (main): Likewise.
73947         * tests/test-areadlink-with-size.c (main): Don't require a
73948         debug-only system call to pass, aiding cross-testing to mingw.
73949         * tests/test-areadlink.c (main): Likewise.
73950         * tests/test-areadlinkat-with-size.c (main): Likewise.
73951         * tests/test-areadlinkat.c (main): Likewise.
73952         * tests/test-canonicalize-lgpl.c (main): Likewise.
73953         * tests/test-canonicalize.c (main): Likewise.
73954         * tests/test-chown.c (main): Likewise.
73955         * tests/test-fchownat.c (main): Likewise.
73956         * tests/test-lchown.c (main): Likewise.
73957         * tests/test-fdutimensat.c (main): Likewise.
73958         * tests/test-futimens.c (main): Likewise.
73959         * tests/test-link.c (main): Likewise.
73960         * tests/test-linkat.c (main): Likewise.
73961         * tests/test-mkdir.c (main): Likewise.
73962         * tests/test-mkdirat.c (main): Likewise.
73963         * tests/test-mkfifo.c (main): Likewise.
73964         * tests/test-mkfifoat.c (main): Likewise.
73965         * tests/test-mknod.c (main): Likewise.
73966         * tests/test-readlink.c (main): Likewise.
73967         * tests/test-remove.c (main): Likewise.
73968         * tests/test-rename.c (main): Likewise.
73969         * tests/test-renameat.c (main): Likewise.
73970         * tests/test-symlink.c (main): Likewise.
73971         * tests/test-symlinkat.c (main): Likewise.
73972         * tests/test-utimens.c (main): Likewise.
73973         * tests/test-utimensat.c (main): Likewise.
73975 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73977         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73978         on $(UNUSED_PARAMETER_H) to avoid build failure.
73980 2009-12-28  Jim Meyering  <meyering@redhat.com>
73982         update-copyright: you may specify a max. line length other than 72
73983         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73985         maint: use consistent FSF copyright line syntax
73986         * lib/posixtm.c: Add missing comma in FSF copyright line.
73987         * lib/posixtm.h: Likewise.
73988         * lib/getugroups.c: Add missing ", Inc.".
73990         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73991         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73992         FSF copyright line.  Remove trailing blanks.
73994 2009-12-28  Eric Blake  <ebb9@byu.net>
73996         test-dup2: reduce dependencies
73997         * modules/cloexec (Configure.ac): Set witness.
73998         * modules/dup2-tests (Depends-on): Drop cloexec.
73999         * tests/test-dup2.c (main): Skip portion of test if cloexec module
74000         not present.
74001         Suggested by Bruno Haible.
74003 2009-12-26  Bruno Haible  <bruno@clisp.org>
74005         Remove an unneeded dependency.
74006         * modules/fseterr (Depends-on): Remove dup2.
74008 2009-12-26  Eric Blake  <ebb9@byu.net>
74010         tests: use macros.h in more places
74011         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
74012         (ASSERT_STREAM): Provide default of stderr.
74013         * tests/test-dirent-safer.c: Include macros.h, using alternate
74014         stream for assertions.
74015         * tests/test-dup-safer.c: Likewise.
74016         * tests/test-freopen-safer.c: Likewise.
74017         * tests/test-getopt.c: Likewise.
74018         * tests/test-openat-safer.c: Likewise.
74019         * tests/test-pipe.c: Likewise.
74020         * tests/test-popen-safer.c: Likewise.
74021         * modules/dirent-safer-tests (Files): Include macros.h.
74022         * modules/unistd-safer-tests (Files): Likewise.
74023         * modules/freopen-safer-tests (Files): Likewise.
74024         * modules/getopt-posix-tests (Files): Likewise.
74025         * modules/openat-safer-tests (Files): Likewise.
74026         * modules/pipe-tests (Files): Likewise.
74028 2009-12-26  Bruno Haible  <bruno@clisp.org>
74030         javacomp-script: Portability fix.
74031         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
74032         that it also works on Solaris.
74034 2009-12-26  Bruno Haible  <bruno@clisp.org>
74036         localename: Fix storage allocation of gl_locale_name_thread's result.
74037         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
74038         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
74039         all platforms that have 'uselocale'.
74040         (gl_locale_name_thread_unsafe): New function, extracted from
74041         gl_locale_name_thread.
74042         (gl_locale_name_thread): Call struniq on all platforms that have
74043         'uselocale'.
74044         * tests/test-localename.c (test_locale_name_thread): Check that the
74045         resulting strings are permanently allocated.
74046         * modules/localename-tests (Depends-on): Add strdup.
74048 2009-12-26  Bruno Haible  <bruno@clisp.org>
74050         * tests/test-localename.c (categories): Fill in the strings.
74052 2009-12-26  Jim Meyering  <meyering@redhat.com>
74054         isdir: complete the removal of m4/isdir.m4
74055         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
74057         isdir: clean up, since at least grep still uses it
74058         * lib/isdir.c: Include "isdir.h".
74059         (S_ISDIR): Remove now-unneeded definition.
74060         * modules/isdir (Files): Add lib/isdir.h.
74061         * lib/isdir.h: New file, with declaration.
74062         * m4/isdir.m4: Remove file -- unneeded.
74064 2009-12-25  Bruno Haible  <bruno@clisp.org>
74066         selinux-h: Make generated .h files standalone.
74067         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
74068         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
74069         * lib/se-selinux.in.h: Likewise.
74070         * modules/selinux-h (Depends-on): Add unused-parameter.
74071         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
74072         selinux/selinux.h and selinux/context.h.
74073         Suggested by Eric Blake.
74075 2009-12-25  Bruno Haible  <bruno@clisp.org>
74077         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
74078         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
74079         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
74080         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
74081         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
74083 2009-12-24  Bruno Haible  <bruno@clisp.org>
74085         openat: Fix warning.
74086         * lib/openat-proc.c: Include <unistd.h>.
74088 2009-12-24  Bruno Haible  <bruno@clisp.org>
74090         New module 'unused-parameter'.
74091         * build-aux/unused-parameter.h: New file, extracted from earlier
74092         gnulib-common.m4.
74093         * modules/unused-parameter: New file.
74094         * lib/unistr.h: Include unused-parameter.h.
74095         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
74096         _GL_UNUSED.
74097         * modules/unistr/base (Depends-on): Add unused-parameter.
74099 2009-12-24  Bruno Haible  <bruno@clisp.org>
74101         Add missing dependencies to 'extensions' module.
74102         * m4/extensions.m4: Add comment.
74103         * modules/accept4 (Depends-on): Add extensions.
74104         * modules/dup3 (Depends-on): Likewise.
74105         * modules/fcntl (Depends-on): Likewise.
74106         * modules/futimens (Depends-on): Likewise.
74107         * modules/mknod (Depends-on): Likewise.
74108         * modules/pipe2 (Depends-on): Likewise.
74109         * modules/stat-time (Depends-on): Likewise.
74110         * modules/strcasestr-simple (Depends-on): Likewise.
74111         * modules/strsignal (Depends-on): Likewise.
74112         * modules/utimensat (Depends-on): Likewise.
74113         * modules/localcharset (Depends-on): Likewise. Needed because of
74114         gl_FCNTL_O_FLAGS.
74115         * modules/wcrtomb (Depends-on): Likewise. Needed because of
74116         AC_TYPE_MBSTATE_T.
74117         * modules/wcsnrtombs (Depends-on): Likewise.
74118         * modules/wcsrtombs (Depends-on): Likewise.
74120 2009-12-24  Bruno Haible  <bruno@clisp.org>
74122         binary-io: Avoid gcc warning due to SET_BINARY.
74123         * lib/binary-io.h (SET_BINARY): Cast the result to void.
74124         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
74126 2009-12-24  Bruno Haible  <bruno@clisp.org>
74128         Avoid future namespace pollution on glibc systems.
74129         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
74130         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
74131         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
74132         glibc systems.
74134 2009-12-24  Bruno Haible  <bruno@clisp.org>
74136         Refactor common macros used in tests.
74137         * tests/macros.h: New file.
74138         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
74139         and/or <stdlib.h>, if appropriate.
74140         (ASSERT, SIZEOF): Remove macros.
74141         * tests/test-areadlink-with-size.c: Likewise.
74142         * tests/test-areadlinkat.c: Likewise.
74143         * tests/test-areadlinkat-with-size.c: Likewise.
74144         * tests/test-argmatch.c: Likewise.
74145         * tests/test-argv-iter.c: Likewise.
74146         * tests/test-array-mergesort.c: Likewise.
74147         * tests/test-array_list.c: Likewise.
74148         * tests/test-array_oset.c: Likewise.
74149         * tests/test-avltree_list.c: Likewise.
74150         * tests/test-avltree_oset.c: Likewise.
74151         * tests/test-avltreehash_list.c: Likewise.
74152         * tests/test-base64.c: Likewise.
74153         * tests/test-binary-io.c: Likewise.
74154         * tests/test-bitrotate.c: Likewise.
74155         * tests/test-btowc.c: Likewise.
74156         * tests/test-byteswap.c: Likewise.
74157         * tests/test-c-ctype.c: Likewise.
74158         * tests/test-c-stack.c: Likewise.
74159         * tests/test-c-strcasecmp.c: Likewise.
74160         * tests/test-c-strcasestr.c: Likewise.
74161         * tests/test-c-strncasecmp.c: Likewise.
74162         * tests/test-c-strstr.c: Likewise.
74163         * tests/test-canonicalize-lgpl.c: Likewise.
74164         * tests/test-canonicalize.c: Likewise.
74165         * tests/test-carray_list.c: Likewise.
74166         * tests/test-ceilf1.c: Likewise.
74167         * tests/test-ceilf2.c: Likewise.
74168         * tests/test-ceill.c: Likewise.
74169         * tests/test-chown.c: Likewise.
74170         * tests/test-cloexec.c: Likewise.
74171         * tests/test-copy-acl.c: Likewise.
74172         * tests/test-copy-file.c: Likewise.
74173         * tests/test-count-one-bits.c: Likewise.
74174         * tests/test-dprintf-posix.c: Likewise.
74175         * tests/test-dup2.c: Likewise.
74176         * tests/test-dup3.c: Likewise.
74177         * tests/test-duplocale.c: Likewise.
74178         * tests/test-fbufmode.c: Likewise.
74179         * tests/test-fchdir.c: Likewise.
74180         * tests/test-fchownat.c: Likewise.
74181         * tests/test-fcntl-safer.c: Likewise.
74182         * tests/test-fcntl.c: Likewise.
74183         * tests/test-fdopendir.c: Likewise.
74184         * tests/test-fdutimensat.c: Likewise.
74185         * tests/test-fflush2.c: Likewise.
74186         * tests/test-file-has-acl.c: Likewise.
74187         * tests/test-filevercmp.c: Likewise.
74188         * tests/test-flock.c: Likewise.
74189         * tests/test-floorf1.c: Likewise.
74190         * tests/test-floorf2.c: Likewise.
74191         * tests/test-floorl.c: Likewise.
74192         * tests/test-fnmatch.c: Likewise.
74193         * tests/test-fopen.h: Likewise.
74194         * tests/test-fpending.c: Likewise.
74195         * tests/test-fprintf-posix.c: Likewise.
74196         * tests/test-fpurge.c: Likewise.
74197         * tests/test-freadable.c: Likewise.
74198         * tests/test-freadahead.c: Likewise.
74199         * tests/test-freading.c: Likewise.
74200         * tests/test-freadptr.c: Likewise.
74201         * tests/test-freadptr2.c: Likewise.
74202         * tests/test-freadseek.c: Likewise.
74203         * tests/test-freopen.c: Likewise.
74204         * tests/test-frexp.c: Likewise.
74205         * tests/test-frexpl.c: Likewise.
74206         * tests/test-fseek.c: Likewise.
74207         * tests/test-fseeko.c: Likewise.
74208         * tests/test-fstatat.c: Likewise.
74209         * tests/test-fstrcmp.c: Likewise.
74210         * tests/test-fsync.c: Likewise.
74211         * tests/test-ftell.c: Likewise.
74212         * tests/test-ftello.c: Likewise.
74213         * tests/test-func.c: Likewise.
74214         * tests/test-futimens.c: Likewise.
74215         * tests/test-fwritable.c: Likewise.
74216         * tests/test-fwriting.c: Likewise.
74217         * tests/test-getcwd.c: Likewise.
74218         * tests/test-getdate.c: Likewise.
74219         * tests/test-getdelim.c: Likewise.
74220         * tests/test-getdtablesize.c: Likewise.
74221         * tests/test-getgroups.c: Likewise.
74222         * tests/test-getline.c: Likewise.
74223         * tests/test-getndelim2.c: Likewise.
74224         * tests/test-glob.c: Likewise.
74225         * tests/test-hash.c: Likewise.
74226         * tests/test-i-ring.c: Likewise.
74227         * tests/test-iconv-utf.c: Likewise.
74228         * tests/test-iconv.c: Likewise.
74229         * tests/test-idpriv-drop.c: Likewise.
74230         * tests/test-idpriv-droptemp.c: Likewise.
74231         * tests/test-inet_ntop.c: Likewise.
74232         * tests/test-inet_pton.c: Likewise.
74233         * tests/test-isblank.c: Likewise.
74234         * tests/test-isfinite.c: Likewise.
74235         * tests/test-isinf.c: Likewise.
74236         * tests/test-isnan.c: Likewise.
74237         * tests/test-isnand.h: Likewise.
74238         * tests/test-isnanf.h: Likewise.
74239         * tests/test-isnanl.h: Likewise.
74240         * tests/test-lchown.c: Likewise.
74241         * tests/test-ldexpl.c: Likewise.
74242         * tests/test-link.c: Likewise.
74243         * tests/test-linkat.c: Likewise.
74244         * tests/test-linked_list.c: Likewise.
74245         * tests/test-linkedhash_list.c: Likewise.
74246         * tests/test-localename.c: Likewise.
74247         * tests/test-lseek.c: Likewise.
74248         * tests/test-lstat.c: Likewise.
74249         * tests/test-mbmemcasecmp.c: Likewise.
74250         * tests/test-mbmemcasecoll.c: Likewise.
74251         * tests/test-mbrtowc.c: Likewise.
74252         * tests/test-mbscasecmp.c: Likewise.
74253         * tests/test-mbscasestr1.c: Likewise.
74254         * tests/test-mbscasestr2.c: Likewise.
74255         * tests/test-mbscasestr3.c: Likewise.
74256         * tests/test-mbscasestr4.c: Likewise.
74257         * tests/test-mbschr.c: Likewise.
74258         * tests/test-mbscspn.c: Likewise.
74259         * tests/test-mbsinit.c: Likewise.
74260         * tests/test-mbsncasecmp.c: Likewise.
74261         * tests/test-mbsnrtowcs.c: Likewise.
74262         * tests/test-mbspbrk.c: Likewise.
74263         * tests/test-mbspcasecmp.c: Likewise.
74264         * tests/test-mbsrchr.c: Likewise.
74265         * tests/test-mbsrtowcs.c: Likewise.
74266         * tests/test-mbsspn.c: Likewise.
74267         * tests/test-mbsstr1.c: Likewise.
74268         * tests/test-mbsstr2.c: Likewise.
74269         * tests/test-mbsstr3.c: Likewise.
74270         * tests/test-memchr.c: Likewise.
74271         * tests/test-memchr2.c: Likewise.
74272         * tests/test-memcmp.c: Likewise.
74273         * tests/test-memmem.c: Likewise.
74274         * tests/test-memrchr.c: Likewise.
74275         * tests/test-mkdir.c: Likewise.
74276         * tests/test-mkdirat.c: Likewise.
74277         * tests/test-mkfifo.c: Likewise.
74278         * tests/test-mkfifoat.c: Likewise.
74279         * tests/test-mknod.c: Likewise.
74280         * tests/test-nanosleep.c: Likewise.
74281         * tests/test-nl_langinfo.c: Likewise.
74282         * tests/test-obstack-printf.c: Likewise.
74283         * tests/test-open.c: Likewise.
74284         * tests/test-openat.c: Likewise.
74285         * tests/test-pipe-filter-gi1.c: Likewise.
74286         * tests/test-pipe-filter-gi2-main.c: Likewise.
74287         * tests/test-pipe-filter-ii1.c: Likewise.
74288         * tests/test-pipe-filter-ii2-main.c: Likewise.
74289         * tests/test-pipe2.c: Likewise.
74290         * tests/test-popen.h: Likewise.
74291         * tests/test-posixtm.c: Likewise.
74292         * tests/test-pread.c: Likewise.
74293         * tests/test-printf-frexp.c: Likewise.
74294         * tests/test-printf-frexpl.c: Likewise.
74295         * tests/test-printf-posix.c: Likewise.
74296         * tests/test-priv-set.c: Likewise.
74297         * tests/test-quotearg.c: Likewise.
74298         * tests/test-random_r.c: Likewise.
74299         * tests/test-rawmemchr.c: Likewise.
74300         * tests/test-rbtree_list.c: Likewise.
74301         * tests/test-rbtree_oset.c: Likewise.
74302         * tests/test-rbtreehash_list.c: Likewise.
74303         * tests/test-readlink.c: Likewise.
74304         * tests/test-remove.c: Likewise.
74305         * tests/test-rename.c: Likewise.
74306         * tests/test-renameat.c: Likewise.
74307         * tests/test-rmdir.c: Likewise.
74308         * tests/test-round1.c: Likewise.
74309         * tests/test-roundf1.c: Likewise.
74310         * tests/test-roundl.c: Likewise.
74311         * tests/test-safe-alloc.c: Likewise.
74312         * tests/test-sameacls.c: Likewise.
74313         * tests/test-set-mode-acl.c: Likewise.
74314         * tests/test-setenv.c: Likewise.
74315         * tests/test-sigaction.c: Likewise.
74316         * tests/test-signbit.c: Likewise.
74317         * tests/test-sleep.c: Likewise.
74318         * tests/test-snprintf-posix.c: Likewise.
74319         * tests/test-snprintf.c: Likewise.
74320         * tests/test-sprintf-posix.c: Likewise.
74321         * tests/test-stat-time.c: Likewise.
74322         * tests/test-stat.c: Likewise.
74323         * tests/test-strcasestr.c: Likewise.
74324         * tests/test-strchrnul.c: Likewise.
74325         * tests/test-strerror.c: Likewise.
74326         * tests/test-striconv.c: Likewise.
74327         * tests/test-striconveh.c: Likewise.
74328         * tests/test-striconveha.c: Likewise.
74329         * tests/test-strsignal.c: Likewise.
74330         * tests/test-strstr.c: Likewise.
74331         * tests/test-strtod.c: Likewise.
74332         * tests/test-strverscmp.c: Likewise.
74333         * tests/test-symlink.c: Likewise.
74334         * tests/test-symlinkat.c: Likewise.
74335         * tests/test-trunc1.c: Likewise.
74336         * tests/test-trunc2.c: Likewise.
74337         * tests/test-truncf1.c: Likewise.
74338         * tests/test-truncf2.c: Likewise.
74339         * tests/test-truncl.c: Likewise.
74340         * tests/test-uname.c: Likewise.
74341         * tests/test-unlink.c: Likewise.
74342         * tests/test-unlinkat.c: Likewise.
74343         * tests/test-unsetenv.c: Likewise.
74344         * tests/test-usleep.c: Likewise.
74345         * tests/test-utimens.c: Likewise.
74346         * tests/test-utimensat.c: Likewise.
74347         * tests/test-vasnprintf-posix.c: Likewise.
74348         * tests/test-vasnprintf-posix2.c: Likewise.
74349         * tests/test-vasnprintf.c: Likewise.
74350         * tests/test-vasprintf-posix.c: Likewise.
74351         * tests/test-vasprintf.c: Likewise.
74352         * tests/test-vdprintf-posix.c: Likewise.
74353         * tests/test-vfprintf-posix.c: Likewise.
74354         * tests/test-vprintf-posix.c: Likewise.
74355         * tests/test-vsnprintf-posix.c: Likewise.
74356         * tests/test-vsnprintf.c: Likewise.
74357         * tests/test-vsprintf-posix.c: Likewise.
74358         * tests/test-wcrtomb.c: Likewise.
74359         * tests/test-wcsnrtombs.c: Likewise.
74360         * tests/test-wcsrtombs.c: Likewise.
74361         * tests/test-wctype.c: Likewise.
74362         * tests/test-wcwidth.c: Likewise.
74363         * tests/test-xfprintf-posix.c: Likewise.
74364         * tests/test-xmemdup0.c: Likewise.
74365         * tests/test-xprintf-posix.c: Likewise.
74366         * tests/test-xvasprintf.c: Likewise.
74367         * tests/unicase/test-locale-language.c: Likewise.
74368         * tests/unicase/test-mapping-part1.h: Likewise.
74369         * tests/unicase/test-predicate-part1.h: Likewise.
74370         * tests/unicase/test-u8-casecmp.c: Likewise.
74371         * tests/unicase/test-u8-casecoll.c: Likewise.
74372         * tests/unicase/test-u8-casefold.c: Likewise.
74373         * tests/unicase/test-u8-is-cased.c: Likewise.
74374         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74375         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74376         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74377         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74378         * tests/unicase/test-u8-tolower.c: Likewise.
74379         * tests/unicase/test-u8-totitle.c: Likewise.
74380         * tests/unicase/test-u8-toupper.c: Likewise.
74381         * tests/unicase/test-u16-casecmp.c: Likewise.
74382         * tests/unicase/test-u16-casecoll.c: Likewise.
74383         * tests/unicase/test-u16-casefold.c: Likewise.
74384         * tests/unicase/test-u16-is-cased.c: Likewise.
74385         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74386         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74387         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74388         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74389         * tests/unicase/test-u16-tolower.c: Likewise.
74390         * tests/unicase/test-u16-totitle.c: Likewise.
74391         * tests/unicase/test-u16-toupper.c: Likewise.
74392         * tests/unicase/test-u32-casecmp.c: Likewise.
74393         * tests/unicase/test-u32-casecoll.c: Likewise.
74394         * tests/unicase/test-u32-casefold.c: Likewise.
74395         * tests/unicase/test-u32-is-cased.c: Likewise.
74396         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74397         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74398         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74399         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74400         * tests/unicase/test-u32-tolower.c: Likewise.
74401         * tests/unicase/test-u32-totitle.c: Likewise.
74402         * tests/unicase/test-u32-toupper.c: Likewise.
74403         * tests/unicase/test-ulc-casecmp.c: Likewise.
74404         * tests/unicase/test-ulc-casecoll.c: Likewise.
74405         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74406         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74407         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74408         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74409         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74410         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74411         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74412         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74413         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74414         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74415         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74416         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74417         * tests/unictype/test-bidi_byname.c: Likewise.
74418         * tests/unictype/test-bidi_name.c: Likewise.
74419         * tests/unictype/test-bidi_of.c: Likewise.
74420         * tests/unictype/test-bidi_test.c: Likewise.
74421         * tests/unictype/test-block_list.c: Likewise.
74422         * tests/unictype/test-block_of.c: Likewise.
74423         * tests/unictype/test-block_test.c: Likewise.
74424         * tests/unictype/test-categ_and.c: Likewise.
74425         * tests/unictype/test-categ_and_not.c: Likewise.
74426         * tests/unictype/test-categ_byname.c: Likewise.
74427         * tests/unictype/test-categ_name.c: Likewise.
74428         * tests/unictype/test-categ_none.c: Likewise.
74429         * tests/unictype/test-categ_of.c: Likewise.
74430         * tests/unictype/test-categ_or.c: Likewise.
74431         * tests/unictype/test-categ_test_withtable.c: Likewise.
74432         * tests/unictype/test-combining.c: Likewise.
74433         * tests/unictype/test-decdigit.c: Likewise.
74434         * tests/unictype/test-digit.c: Likewise.
74435         * tests/unictype/test-mirror.c: Likewise.
74436         * tests/unictype/test-numeric.c: Likewise.
74437         * tests/unictype/test-pr_byname.c: Likewise.
74438         * tests/unictype/test-pr_test.c: Likewise.
74439         * tests/unictype/test-predicate-part1.h: Likewise.
74440         * tests/unictype/test-scripts.c: Likewise.
74441         * tests/unictype/test-sy_c_ident.c: Likewise.
74442         * tests/unictype/test-sy_java_ident.c: Likewise.
74443         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74444         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74445         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74446         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74447         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74448         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74449         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74450         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74451         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74452         * tests/uninorm/test-compat-decomposition.c: Likewise.
74453         * tests/uninorm/test-composition.c: Likewise.
74454         * tests/uninorm/test-decomposing-form.c: Likewise.
74455         * tests/uninorm/test-decomposition.c: Likewise.
74456         * tests/uninorm/test-u8-nfc.c: Likewise.
74457         * tests/uninorm/test-u8-nfd.c: Likewise.
74458         * tests/uninorm/test-u8-nfkc.c: Likewise.
74459         * tests/uninorm/test-u8-nfkd.c: Likewise.
74460         * tests/uninorm/test-u8-normcmp.c: Likewise.
74461         * tests/uninorm/test-u8-normcoll.c: Likewise.
74462         * tests/uninorm/test-u16-nfc.c: Likewise.
74463         * tests/uninorm/test-u16-nfd.c: Likewise.
74464         * tests/uninorm/test-u16-nfkc.c: Likewise.
74465         * tests/uninorm/test-u16-nfkd.c: Likewise.
74466         * tests/uninorm/test-u16-normcmp.c: Likewise.
74467         * tests/uninorm/test-u16-normcoll.c: Likewise.
74468         * tests/uninorm/test-u32-nfc.c: Likewise.
74469         * tests/uninorm/test-u32-nfd.c: Likewise.
74470         * tests/uninorm/test-u32-nfkc.c: Likewise.
74471         * tests/uninorm/test-u32-nfkd.c: Likewise.
74472         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74473         * tests/uninorm/test-u32-normcmp.c: Likewise.
74474         * tests/uninorm/test-u32-normcoll.c: Likewise.
74475         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74476         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74477         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74478         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74479         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74480         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74481         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74482         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74483         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74484         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74485         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74486         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74487         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74488         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74489         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74490         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74491         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74492         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74493         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74494         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74495         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74496         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74497         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74498         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74499         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74500         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74501         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74502         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74503         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74504         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74505         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74506         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74507         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74508         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74509         * tests/uniwidth/test-u8-width.c: Likewise.
74510         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74511         * tests/uniwidth/test-u16-width.c: Likewise.
74512         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74513         * tests/uniwidth/test-u32-width.c: Likewise.
74514         * tests/uniwidth/test-uc_width.c: Likewise.
74515         * tests/uniwidth/test-uc_width2.c: Likewise.
74516         * modules/acl-tests (Files): Add tests/macros.h.
74517         * modules/areadlink-tests (Files): Likewise.
74518         * modules/areadlink-with-size-tests (Files): Likewise.
74519         * modules/areadlinkat-tests (Files): Likewise.
74520         * modules/areadlinkat-with-size-tests (Files): Likewise.
74521         * modules/argmatch-tests (Files): Likewise.
74522         * modules/argv-iter-tests (Files): Likewise.
74523         * modules/array-list-tests (Files): Likewise.
74524         * modules/array-mergesort-tests (Files): Likewise.
74525         * modules/array-oset-tests (Files): Likewise.
74526         * modules/avltree-list-tests (Files): Likewise.
74527         * modules/avltree-oset-tests (Files): Likewise.
74528         * modules/avltreehash-list-tests (Files): Likewise.
74529         * modules/base64-tests (Files): Likewise.
74530         * modules/binary-io-tests (Files): Likewise.
74531         * modules/bitrotate-tests (Files): Likewise.
74532         * modules/btowc-tests (Files): Likewise.
74533         * modules/byteswap-tests (Files): Likewise.
74534         * modules/c-ctype-tests (Files): Likewise.
74535         * modules/c-stack-tests (Files): Likewise.
74536         * modules/c-strcase-tests (Files): Likewise.
74537         * modules/c-strcasestr-tests (Files): Likewise.
74538         * modules/c-strstr-tests (Files): Likewise.
74539         * modules/canonicalize-lgpl-tests (Files): Likewise.
74540         * modules/canonicalize-tests (Files): Likewise.
74541         * modules/carray-list-tests (Files): Likewise.
74542         * modules/ceilf-tests (Files): Likewise.
74543         * modules/ceill-tests (Files): Likewise.
74544         * modules/chown-tests (Files): Likewise.
74545         * modules/cloexec-tests (Files): Likewise.
74546         * modules/copy-file-tests (Files): Likewise.
74547         * modules/count-one-bits-tests (Files): Likewise.
74548         * modules/dprintf-posix-tests (Files): Likewise.
74549         * modules/dup2-tests (Files): Likewise.
74550         * modules/dup3-tests (Files): Likewise.
74551         * modules/duplocale-tests (Files): Likewise.
74552         * modules/fbufmode-tests (Files): Likewise.
74553         * modules/fchdir-tests (Files): Likewise.
74554         * modules/fcntl-safer-tests (Files): Likewise.
74555         * modules/fcntl-tests (Files): Likewise.
74556         * modules/fdopendir-tests (Files): Likewise.
74557         * modules/fdutimensat-tests (Files): Likewise.
74558         * modules/fflush-tests (Files): Likewise.
74559         * modules/filevercmp-tests (Files): Likewise.
74560         * modules/flock-tests (Files): Likewise.
74561         * modules/floorf-tests (Files): Likewise.
74562         * modules/floorl-tests (Files): Likewise.
74563         * modules/fnmatch-tests (Files): Likewise.
74564         * modules/fopen-safer-tests (Files): Likewise.
74565         * modules/fopen-tests (Files): Likewise.
74566         * modules/fpending-tests (Files): Likewise.
74567         * modules/fprintf-posix-tests (Files): Likewise.
74568         * modules/fpurge-tests (Files): Likewise.
74569         * modules/freadable-tests (Files): Likewise.
74570         * modules/freadahead-tests (Files): Likewise.
74571         * modules/freading-tests (Files): Likewise.
74572         * modules/freadptr-tests (Files): Likewise.
74573         * modules/freadseek-tests (Files): Likewise.
74574         * modules/freopen-tests (Files): Likewise.
74575         * modules/frexp-nolibm-tests (Files): Likewise.
74576         * modules/frexp-tests (Files): Likewise.
74577         * modules/frexpl-nolibm-tests (Files): Likewise.
74578         * modules/frexpl-tests (Files): Likewise.
74579         * modules/fseek-tests (Files): Likewise.
74580         * modules/fseeko-tests (Files): Likewise.
74581         * modules/fstrcmp-tests (Files): Likewise.
74582         * modules/fsync-tests (Files): Likewise.
74583         * modules/ftell-tests (Files): Likewise.
74584         * modules/ftello-tests (Files): Likewise.
74585         * modules/func-tests (Files): Likewise.
74586         * modules/futimens-tests (Files): Likewise.
74587         * modules/fwritable-tests (Files): Likewise.
74588         * modules/fwriting-tests (Files): Likewise.
74589         * modules/getcwd-tests (Files): Likewise.
74590         * modules/getdate-tests (Files): Likewise.
74591         * modules/getdelim-tests (Files): Likewise.
74592         * modules/getdtablesize-tests (Files): Likewise.
74593         * modules/getgroups-tests (Files): Likewise.
74594         * modules/getline-tests (Files): Likewise.
74595         * modules/getndelim2-tests (Files): Likewise.
74596         * modules/glob-tests (Files): Likewise.
74597         * modules/hash-tests (Files): Likewise.
74598         * modules/i-ring-tests (Files): Likewise.
74599         * modules/iconv-tests (Files): Likewise.
74600         * modules/iconv_open-utf-tests (Files): Likewise.
74601         * modules/idpriv-drop-tests (Files): Likewise.
74602         * modules/idpriv-droptemp-tests (Files): Likewise.
74603         * modules/inet_ntop-tests (Files): Likewise.
74604         * modules/inet_pton-tests (Files): Likewise.
74605         * modules/isblank-tests (Files): Likewise.
74606         * modules/isfinite-tests (Files): Likewise.
74607         * modules/isinf-tests (Files): Likewise.
74608         * modules/isnan-tests (Files): Likewise.
74609         * modules/isnand-nolibm-tests (Files): Likewise.
74610         * modules/isnand-tests (Files): Likewise.
74611         * modules/isnanf-nolibm-tests (Files): Likewise.
74612         * modules/isnanf-tests (Files): Likewise.
74613         * modules/isnanl-nolibm-tests (Files): Likewise.
74614         * modules/isnanl-tests (Files): Likewise.
74615         * modules/lchown-tests (Files): Likewise.
74616         * modules/ldexpl-tests (Files): Likewise.
74617         * modules/link-tests (Files): Likewise.
74618         * modules/linkat-tests (Files): Likewise.
74619         * modules/linked-list-tests (Files): Likewise.
74620         * modules/linkedhash-list-tests (Files): Likewise.
74621         * modules/localename-tests (Files): Likewise.
74622         * modules/lseek-tests (Files): Likewise.
74623         * modules/lstat-tests (Files): Likewise.
74624         * modules/mbmemcasecmp-tests (Files): Likewise.
74625         * modules/mbmemcasecoll-tests (Files): Likewise.
74626         * modules/mbrtowc-tests (Files): Likewise.
74627         * modules/mbscasecmp-tests (Files): Likewise.
74628         * modules/mbscasestr-tests (Files): Likewise.
74629         * modules/mbschr-tests (Files): Likewise.
74630         * modules/mbscspn-tests (Files): Likewise.
74631         * modules/mbsinit-tests (Files): Likewise.
74632         * modules/mbsncasecmp-tests (Files): Likewise.
74633         * modules/mbsnrtowcs-tests (Files): Likewise.
74634         * modules/mbspbrk-tests (Files): Likewise.
74635         * modules/mbspcasecmp-tests (Files): Likewise.
74636         * modules/mbsrchr-tests (Files): Likewise.
74637         * modules/mbsrtowcs-tests (Files): Likewise.
74638         * modules/mbsspn-tests (Files): Likewise.
74639         * modules/mbsstr-tests (Files): Likewise.
74640         * modules/memchr-tests (Files): Likewise.
74641         * modules/memchr2-tests (Files): Likewise.
74642         * modules/memcmp-tests (Files): Likewise.
74643         * modules/memmem-tests (Files): Likewise.
74644         * modules/memrchr-tests (Files): Likewise.
74645         * modules/mkdir-tests (Files): Likewise.
74646         * modules/mkfifo-tests (Files): Likewise.
74647         * modules/mkfifoat-tests (Files): Likewise.
74648         * modules/mknod-tests (Files): Likewise.
74649         * modules/nanosleep-tests (Files): Likewise.
74650         * modules/nl_langinfo-tests (Files): Likewise.
74651         * modules/obstack-printf-tests (Files): Likewise.
74652         * modules/open-tests (Files): Likewise.
74653         * modules/openat-tests (Files): Likewise.
74654         * modules/pipe-filter-gi-tests (Files): Likewise.
74655         * modules/pipe-filter-ii-tests (Files): Likewise.
74656         * modules/pipe2-tests (Files): Likewise.
74657         * modules/popen-safer-tests (Files): Likewise.
74658         * modules/popen-tests (Files): Likewise.
74659         * modules/posixtm-tests (Files): Likewise.
74660         * modules/pread-tests (Files): Likewise.
74661         * modules/printf-frexp-tests (Files): Likewise.
74662         * modules/printf-frexpl-tests (Files): Likewise.
74663         * modules/printf-posix-tests (Files): Likewise.
74664         * modules/priv-set-tests (Files): Likewise.
74665         * modules/quotearg-tests (Files): Likewise.
74666         * modules/random_r-tests (Files): Likewise.
74667         * modules/rawmemchr-tests (Files): Likewise.
74668         * modules/rbtree-list-tests (Files): Likewise.
74669         * modules/rbtree-oset-tests (Files): Likewise.
74670         * modules/rbtreehash-list-tests (Files): Likewise.
74671         * modules/readlink-tests (Files): Likewise.
74672         * modules/remove-tests (Files): Likewise.
74673         * modules/rename-tests (Files): Likewise.
74674         * modules/renameat-tests (Files): Likewise.
74675         * modules/rmdir-tests (Files): Likewise.
74676         * modules/round-tests (Files): Likewise.
74677         * modules/roundf-tests (Files): Likewise.
74678         * modules/roundl-tests (Files): Likewise.
74679         * modules/safe-alloc-tests (Files): Likewise.
74680         * modules/setenv-tests (Files): Likewise.
74681         * modules/sigaction-tests (Files): Likewise.
74682         * modules/signbit-tests (Files): Likewise.
74683         * modules/sleep-tests (Files): Likewise.
74684         * modules/snprintf-posix-tests (Files): Likewise.
74685         * modules/snprintf-tests (Files): Likewise.
74686         * modules/sprintf-posix-tests (Files): Likewise.
74687         * modules/stat-tests (Files): Likewise.
74688         * modules/stat-time-tests (Files): Likewise.
74689         * modules/strcasestr-tests (Files): Likewise.
74690         * modules/strchrnul-tests (Files): Likewise.
74691         * modules/strerror-tests (Files): Likewise.
74692         * modules/striconv-tests (Files): Likewise.
74693         * modules/striconveh-tests (Files): Likewise.
74694         * modules/striconveha-tests (Files): Likewise.
74695         * modules/strsignal-tests (Files): Likewise.
74696         * modules/strstr-tests (Files): Likewise.
74697         * modules/strtod-tests (Files): Likewise.
74698         * modules/strverscmp-tests (Files): Likewise.
74699         * modules/symlink-tests (Files): Likewise.
74700         * modules/symlinkat-tests (Files): Likewise.
74701         * modules/trunc-tests (Files): Likewise.
74702         * modules/truncf-tests (Files): Likewise.
74703         * modules/truncl-tests (Files): Likewise.
74704         * modules/uname-tests (Files): Likewise.
74705         * modules/unicase/cased-tests (Files): Likewise.
74706         * modules/unicase/ignorable-tests (Files): Likewise.
74707         * modules/unicase/locale-language-tests (Files): Likewise.
74708         * modules/unicase/tolower-tests (Files): Likewise.
74709         * modules/unicase/totitle-tests (Files): Likewise.
74710         * modules/unicase/toupper-tests (Files): Likewise.
74711         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74712         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74713         * modules/unicase/u8-casefold-tests (Files): Likewise.
74714         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74715         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74716         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74717         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74718         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74719         * modules/unicase/u8-tolower-tests (Files): Likewise.
74720         * modules/unicase/u8-totitle-tests (Files): Likewise.
74721         * modules/unicase/u8-toupper-tests (Files): Likewise.
74722         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74723         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74724         * modules/unicase/u16-casefold-tests (Files): Likewise.
74725         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74726         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74727         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74728         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74729         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74730         * modules/unicase/u16-tolower-tests (Files): Likewise.
74731         * modules/unicase/u16-totitle-tests (Files): Likewise.
74732         * modules/unicase/u16-toupper-tests (Files): Likewise.
74733         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74734         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74735         * modules/unicase/u32-casefold-tests (Files): Likewise.
74736         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74737         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74738         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74739         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74740         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74741         * modules/unicase/u32-tolower-tests (Files): Likewise.
74742         * modules/unicase/u32-totitle-tests (Files): Likewise.
74743         * modules/unicase/u32-toupper-tests (Files): Likewise.
74744         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74745         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74746         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74747         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74748         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74749         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74750         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74751         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74752         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74753         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74754         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74755         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74756         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74757         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74758         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74759         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74760         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74761         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74762         * modules/unictype/block-list-tests (Files): Likewise.
74763         * modules/unictype/block-of-tests (Files): Likewise.
74764         * modules/unictype/block-test-tests (Files): Likewise.
74765         * modules/unictype/category-C-tests (Files): Likewise.
74766         * modules/unictype/category-Cc-tests (Files): Likewise.
74767         * modules/unictype/category-Cf-tests (Files): Likewise.
74768         * modules/unictype/category-Cn-tests (Files): Likewise.
74769         * modules/unictype/category-Co-tests (Files): Likewise.
74770         * modules/unictype/category-Cs-tests (Files): Likewise.
74771         * modules/unictype/category-L-tests (Files): Likewise.
74772         * modules/unictype/category-Ll-tests (Files): Likewise.
74773         * modules/unictype/category-Lm-tests (Files): Likewise.
74774         * modules/unictype/category-Lo-tests (Files): Likewise.
74775         * modules/unictype/category-Lt-tests (Files): Likewise.
74776         * modules/unictype/category-Lu-tests (Files): Likewise.
74777         * modules/unictype/category-M-tests (Files): Likewise.
74778         * modules/unictype/category-Mc-tests (Files): Likewise.
74779         * modules/unictype/category-Me-tests (Files): Likewise.
74780         * modules/unictype/category-Mn-tests (Files): Likewise.
74781         * modules/unictype/category-N-tests (Files): Likewise.
74782         * modules/unictype/category-Nd-tests (Files): Likewise.
74783         * modules/unictype/category-Nl-tests (Files): Likewise.
74784         * modules/unictype/category-No-tests (Files): Likewise.
74785         * modules/unictype/category-P-tests (Files): Likewise.
74786         * modules/unictype/category-Pc-tests (Files): Likewise.
74787         * modules/unictype/category-Pd-tests (Files): Likewise.
74788         * modules/unictype/category-Pe-tests (Files): Likewise.
74789         * modules/unictype/category-Pf-tests (Files): Likewise.
74790         * modules/unictype/category-Pi-tests (Files): Likewise.
74791         * modules/unictype/category-Po-tests (Files): Likewise.
74792         * modules/unictype/category-Ps-tests (Files): Likewise.
74793         * modules/unictype/category-S-tests (Files): Likewise.
74794         * modules/unictype/category-Sc-tests (Files): Likewise.
74795         * modules/unictype/category-Sk-tests (Files): Likewise.
74796         * modules/unictype/category-Sm-tests (Files): Likewise.
74797         * modules/unictype/category-So-tests (Files): Likewise.
74798         * modules/unictype/category-Z-tests (Files): Likewise.
74799         * modules/unictype/category-Zl-tests (Files): Likewise.
74800         * modules/unictype/category-Zp-tests (Files): Likewise.
74801         * modules/unictype/category-Zs-tests (Files): Likewise.
74802         * modules/unictype/category-and-not-tests (Files): Likewise.
74803         * modules/unictype/category-and-tests (Files): Likewise.
74804         * modules/unictype/category-byname-tests (Files): Likewise.
74805         * modules/unictype/category-name-tests (Files): Likewise.
74806         * modules/unictype/category-none-tests (Files): Likewise.
74807         * modules/unictype/category-of-tests (Files): Likewise.
74808         * modules/unictype/category-or-tests (Files): Likewise.
74809         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74810         * modules/unictype/combining-class-tests (Files): Likewise.
74811         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74812         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74813         * modules/unictype/ctype-blank-tests (Files): Likewise.
74814         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74815         * modules/unictype/ctype-digit-tests (Files): Likewise.
74816         * modules/unictype/ctype-graph-tests (Files): Likewise.
74817         * modules/unictype/ctype-lower-tests (Files): Likewise.
74818         * modules/unictype/ctype-print-tests (Files): Likewise.
74819         * modules/unictype/ctype-punct-tests (Files): Likewise.
74820         * modules/unictype/ctype-space-tests (Files): Likewise.
74821         * modules/unictype/ctype-upper-tests (Files): Likewise.
74822         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74823         * modules/unictype/decimal-digit-tests (Files): Likewise.
74824         * modules/unictype/digit-tests (Files): Likewise.
74825         * modules/unictype/mirror-tests (Files): Likewise.
74826         * modules/unictype/numeric-tests (Files): Likewise.
74827         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74828         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74829         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74830         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74831         Likewise.
74832         * modules/unictype/property-bidi-block-separator-tests (Files):
74833         Likewise.
74834         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74835         Likewise.
74836         * modules/unictype/property-bidi-common-separator-tests (Files):
74837         Likewise.
74838         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74839         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74840         Likewise.
74841         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74842         Likewise.
74843         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74844         Likewise.
74845         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74846         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74847         Likewise.
74848         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74849         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74850         Likewise.
74851         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74852         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74853         * modules/unictype/property-bidi-segment-separator-tests (Files):
74854         Likewise.
74855         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74856         * modules/unictype/property-byname-tests (Files): Likewise.
74857         * modules/unictype/property-combining-tests (Files): Likewise.
74858         * modules/unictype/property-composite-tests (Files): Likewise.
74859         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74860         * modules/unictype/property-dash-tests (Files): Likewise.
74861         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74862         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74863         Likewise.
74864         * modules/unictype/property-deprecated-tests (Files): Likewise.
74865         * modules/unictype/property-diacritic-tests (Files): Likewise.
74866         * modules/unictype/property-extender-tests (Files): Likewise.
74867         * modules/unictype/property-format-control-tests (Files): Likewise.
74868         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74869         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74870         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74871         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74872         * modules/unictype/property-hyphen-tests (Files): Likewise.
74873         * modules/unictype/property-id-continue-tests (Files): Likewise.
74874         * modules/unictype/property-id-start-tests (Files): Likewise.
74875         * modules/unictype/property-ideographic-tests (Files): Likewise.
74876         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74877         * modules/unictype/property-ids-trinary-operator-tests (Files):
74878         Likewise.
74879         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74880         * modules/unictype/property-iso-control-tests (Files): Likewise.
74881         * modules/unictype/property-join-control-tests (Files): Likewise.
74882         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74883         * modules/unictype/property-line-separator-tests (Files): Likewise.
74884         * modules/unictype/property-logical-order-exception-tests (Files):
74885         Likewise.
74886         * modules/unictype/property-lowercase-tests (Files): Likewise.
74887         * modules/unictype/property-math-tests (Files): Likewise.
74888         * modules/unictype/property-non-break-tests (Files): Likewise.
74889         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74890         * modules/unictype/property-numeric-tests (Files): Likewise.
74891         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74892         * modules/unictype/property-other-default-ignorable-code-point-tests
74893         (Files): Likewise.
74894         * modules/unictype/property-other-grapheme-extend-tests (Files):
74895         Likewise.
74896         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74897         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74898         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74899         * modules/unictype/property-other-math-tests (Files): Likewise.
74900         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74901         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74902         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74903         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74904         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74905         * modules/unictype/property-private-use-tests (Files): Likewise.
74906         * modules/unictype/property-punctuation-tests (Files): Likewise.
74907         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74908         * modules/unictype/property-radical-tests (Files): Likewise.
74909         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74910         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74911         * modules/unictype/property-space-tests (Files): Likewise.
74912         * modules/unictype/property-terminal-punctuation-tests (Files):
74913         Likewise.
74914         * modules/unictype/property-test-tests (Files): Likewise.
74915         * modules/unictype/property-titlecase-tests (Files): Likewise.
74916         * modules/unictype/property-unassigned-code-value-tests (Files):
74917         Likewise.
74918         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74919         * modules/unictype/property-uppercase-tests (Files): Likewise.
74920         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74921         * modules/unictype/property-white-space-tests (Files): Likewise.
74922         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74923         * modules/unictype/property-xid-start-tests (Files): Likewise.
74924         * modules/unictype/property-zero-width-tests (Files): Likewise.
74925         * modules/unictype/scripts-tests (Files): Likewise.
74926         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74927         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74928         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74929         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74930         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74931         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74932         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74933         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74934         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74935         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74936         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74937         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74938         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74939         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74940         * modules/uninorm/composition-tests (Files): Likewise.
74941         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74942         * modules/uninorm/decomposition-tests (Files): Likewise.
74943         * modules/uninorm/filter-tests (Files): Likewise.
74944         * modules/uninorm/nfc-tests (Files): Likewise.
74945         * modules/uninorm/nfd-tests (Files): Likewise.
74946         * modules/uninorm/nfkc-tests (Files): Likewise.
74947         * modules/uninorm/nfkd-tests (Files): Likewise.
74948         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74949         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74950         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74951         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74952         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74953         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74954         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74955         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74956         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74957         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74958         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74959         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74960         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74961         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74962         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74963         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74964         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74965         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74966         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74967         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74968         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74969         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74970         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74971         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74972         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74973         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74974         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74975         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74976         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74977         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74978         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74979         * modules/uniwidth/u8-width-tests (Files): Likewise.
74980         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74981         * modules/uniwidth/u16-width-tests (Files): Likewise.
74982         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74983         * modules/uniwidth/u32-width-tests (Files): Likewise.
74984         * modules/uniwidth/width-tests (Files): Likewise.
74985         * modules/unlink-tests (Files): Likewise.
74986         * modules/unsetenv-tests (Files): Likewise.
74987         * modules/usleep-tests (Files): Likewise.
74988         * modules/utimens-tests (Files): Likewise.
74989         * modules/utimensat-tests (Files): Likewise.
74990         * modules/vasnprintf-posix-tests (Files): Likewise.
74991         * modules/vasnprintf-tests (Files): Likewise.
74992         * modules/vasprintf-posix-tests (Files): Likewise.
74993         * modules/vasprintf-tests (Files): Likewise.
74994         * modules/vdprintf-posix-tests (Files): Likewise.
74995         * modules/vfprintf-posix-tests (Files): Likewise.
74996         * modules/vprintf-posix-tests (Files): Likewise.
74997         * modules/vsnprintf-posix-tests (Files): Likewise.
74998         * modules/vsnprintf-tests (Files): Likewise.
74999         * modules/vsprintf-posix-tests (Files): Likewise.
75000         * modules/wcrtomb-tests (Files): Likewise.
75001         * modules/wcsnrtombs-tests (Files): Likewise.
75002         * modules/wcsrtombs-tests (Files): Likewise.
75003         * modules/wctype-tests (Files): Likewise.
75004         * modules/wcwidth-tests (Files): Likewise.
75005         * modules/xmemdup0-tests (Files): Likewise.
75006         * modules/xprintf-posix-tests (Files): Likewise.
75007         * modules/xvasprintf-tests (Files): Likewise.
75009 2009-12-24  Eric Blake  <ebb9@byu.net>
75011         test-nanosleep: fix typo
75012         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
75013         patch.
75014         Reported by Bruno Haible.
75016 2009-12-24  Bruno Haible  <bruno@clisp.org>
75018         Reduce namespace pollution on glibc systems.
75019         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
75020         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
75021         systems.
75022         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
75023         <getopt.h> on glibc systems.
75024         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
75025         systems.
75026         * lib/fcntl.c: Include <unistd.h> here instead.
75028 2009-12-24  Bruno Haible  <bruno@clisp.org>
75030         * lib/stdlib.in.h (includes): Fix typo in today's commit.
75032 2009-12-24  Eric Blake  <ebb9@byu.net>
75034         tests: add signature checks
75035         * tests/signature.h (SIGNATURE_CHECK): New file.
75036         * modules/atexit-tests (Files): Use it.
75037         * modules/btowc-tests (Files): Likewise.
75038         * modules/canonicalize-lgpl-tests (Files): Likewise.
75039         * modules/ceilf-tests (Files): Likewise.
75040         * modules/ceill-tests (Files): Likewise.
75041         * modules/chown-tests (Files): Likewise.
75042         * modules/dprintf-posix-tests (Files): Likewise.
75043         * modules/dup2-tests (Files): Likewise.
75044         * modules/dup3-tests (Files): Likewise.
75045         * modules/duplocale-tests (Files): Likewise.
75046         * modules/fchdir-tests (Files): Likewise.
75047         * modules/fcntl-tests (Files): Likewise.
75048         * modules/fdopendir-tests (Files): Likewise.
75049         * modules/fflush-tests (Files): Likewise.
75050         * modules/flock-tests (Files): Likewise.
75051         * modules/floorf-tests (Files): Likewise.
75052         * modules/floorl-tests (Files): Likewise.
75053         * modules/fnmatch-tests (Files): Likewise.
75054         * modules/fopen-tests (Files): Likewise.
75055         * modules/fprintf-posix-tests (Files): Likewise.
75056         * modules/freopen-tests (Files): Likewise.
75057         * modules/frexp-nolibm-tests (Files): Likewise.
75058         * modules/frexp-tests (Files): Likewise.
75059         * modules/frexpl-nolibm-tests (Files): Likewise.
75060         * modules/frexpl-tests (Files): Likewise.
75061         * modules/fseek-tests (Files): Likewise.
75062         * modules/fseeko-tests (Files): Likewise.
75063         * modules/fsync-tests (Files): Likewise.
75064         * modules/ftell-tests (Files): Likewise.
75065         * modules/ftello-tests (Files): Likewise.
75066         * modules/futimens-tests (Files): Likewise.
75067         * modules/getaddrinfo-tests (Files): Likewise.
75068         * modules/getcwd-tests (Files): Likewise.
75069         * modules/getdelim-tests (Files): Likewise.
75070         * modules/getdtablesize-tests (Files): Likewise.
75071         * modules/getgroups-tests (Files): Likewise.
75072         * modules/gethostname-tests (Files): Likewise.
75073         * modules/getline-tests (Files): Likewise.
75074         * modules/getopt-posix-tests (Files): Likewise.
75075         * modules/gettimeofday-tests (Files): Likewise.
75076         * modules/glob-tests (Files): Likewise.
75077         * modules/iconv-tests (Files): Likewise.
75078         * modules/inet_ntop-tests (Files): Likewise.
75079         * modules/inet_pton-tests (Files): Likewise.
75080         * modules/isblank-tests (Files): Likewise.
75081         * modules/lchown-tests (Files): Likewise.
75082         * modules/ldexpl-tests (Files): Likewise.
75083         * modules/link-tests (Files): Likewise.
75084         * modules/linkat-tests (Files): Likewise.
75085         * modules/lseek-tests (Files): Likewise.
75086         * modules/lstat-tests (Files): Likewise.
75087         * modules/mbrtowc-tests (Files): Likewise.
75088         * modules/mbsinit-tests (Files): Likewise.
75089         * modules/mbsnrtowcs-tests (Files): Likewise.
75090         * modules/mbsrtowcs-tests (Files): Likewise.
75091         * modules/memchr-tests (Files): Likewise.
75092         * modules/memcmp-tests (Files): Likewise.
75093         * modules/memmem-tests (Files): Likewise.
75094         * modules/memrchr-tests (Files): Likewise.
75095         * modules/mkdir-tests (Files): Likewise.
75096         * modules/mkfifo-tests (Files): Likewise.
75097         * modules/mkfifoat-tests (Files): Likewise.
75098         * modules/mknod-tests (Files): Likewise.
75099         * modules/nanosleep-tests (Files): Likewise.
75100         * modules/nl_langinfo-tests (Files): Likewise.
75101         * modules/obstack-printf-tests (Files): Likewise.
75102         * modules/open-tests (Files): Likewise.
75103         * modules/openat-tests (Files): Likewise.
75104         * modules/perror-tests (Files): Likewise.
75105         * modules/pipe2-tests (Files): Likewise.
75106         * modules/poll-tests (Files): Likewise.
75107         * modules/popen-tests (Files): Likewise.
75108         * modules/posix_spawn-tests (Files): Likewise.
75109         * modules/posix_spawnp-tests (Files): Likewise.
75110         * modules/pread-tests (Files): Likewise.
75111         * modules/printf-posix-tests (Files): Likewise.
75112         * modules/pty-tests (Files): Likewise.
75113         * modules/random_r-tests (Files): Likewise.
75114         * modules/rawmemchr-tests (Files): Likewise.
75115         * modules/readlink-tests (Files): Likewise.
75116         * modules/remove-tests (Files): Likewise.
75117         * modules/rename-tests (Files): Likewise.
75118         * modules/renameat-tests (Files): Likewise.
75119         * modules/rmdir-tests (Files): Likewise.
75120         * modules/round-tests (Files): Likewise.
75121         * modules/roundf-tests (Files): Likewise.
75122         * modules/roundl-tests (Files): Likewise.
75123         * modules/select-tests (Files): Likewise.
75124         * modules/setenv-tests (Files): Likewise.
75125         * modules/sigaction-tests (Files): Likewise.
75126         * modules/sleep-tests (Files): Likewise.
75127         * modules/snprintf-posix-tests (Files): Likewise.
75128         * modules/snprintf-tests (Files): Likewise.
75129         * modules/sprintf-posix-tests (Files): Likewise.
75130         * modules/stat-tests (Files): Likewise.
75131         * modules/strcasestr-tests (Files): Likewise.
75132         * modules/strchrnul-tests (Files): Likewise.
75133         * modules/strerror-tests (Files): Likewise.
75134         * modules/strsignal-tests (Files): Likewise.
75135         * modules/strstr-tests (Files): Likewise.
75136         * modules/strtod-tests (Files): Likewise.
75137         * modules/strverscmp-tests (Files): Likewise.
75138         * modules/symlink-tests (Files): Likewise.
75139         * modules/symlinkat-tests (Files): Likewise.
75140         * modules/times-tests (Files): Likewise.
75141         * modules/trunc-tests (Files): Likewise.
75142         * modules/truncf-tests (Files): Likewise.
75143         * modules/truncl-tests (Files): Likewise.
75144         * modules/tsearch-tests (Files): Likewise.
75145         * modules/uname-tests (Files): Likewise.
75146         * modules/unlink-tests (Files): Likewise.
75147         * modules/unsetenv-tests (Files): Likewise.
75148         * modules/usleep-tests (Files): Likewise.
75149         * modules/utimensat-tests (Files): Likewise.
75150         * modules/vasprintf-tests (Files): Likewise.
75151         * modules/vdprintf-posix-tests (Files): Likewise.
75152         * modules/vfprintf-posix-tests (Files): Likewise.
75153         * modules/vprintf-posix-tests (Files): Likewise.
75154         * modules/vsnprintf-posix-tests (Files): Likewise.
75155         * modules/vsnprintf-tests (Files): Likewise.
75156         * modules/vsprintf-posix-tests (Files): Likewise.
75157         * modules/wcrtomb-tests (Files): Likewise.
75158         * modules/wcsnrtombs-tests (Files): Likewise.
75159         * modules/wcsrtombs-tests (Files): Likewise.
75160         * modules/wcwidth-tests (Files): Likewise.
75161         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
75162         * tests/test-isinf.c (isinf): Likewise.
75163         * tests/test-isnan.c (isnan): Likewise.
75164         * tests/test-signbit.c (signbit): Likewise.
75165         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
75166         declaration, either as macro or with correct signature.
75167         (select): Ensure function under test is declared with correct
75168         signature in correct header.
75169         * tests/test-atexit.c (atexit): Likewise.
75170         * tests/test-btowc.c (btowc): Likewise.
75171         * tests/test-canonicalize-lgpl.c (realpath)
75172         (canonicalize_file_name): Likewise.
75173         * tests/test-ceilf1.c (ceilf): Likewise.
75174         * tests/test-ceill.c (ceill): Likewise.
75175         * tests/test-chown.c (chown): Likewise.
75176         * tests/test-dprintf-posix.c (dprintf): Likewise.
75177         * tests/test-dup2.c (dup2): Likewise.
75178         * tests/test-dup3.c (dup3): Likewise.
75179         * tests/test-duplocale.c (duplocale): Likewise.
75180         * tests/test-fchdir.c (fchdir): Likewise.
75181         * tests/test-fchownat.c (fchownat): Likewise.
75182         * tests/test-fcntl.c (fcntl): Likewise.
75183         * tests/test-fdopendir.c (fdopendir): Likewise.
75184         * tests/test-fflush.c (fflush): Likewise.
75185         * tests/test-flock.c (flock): Likewise.
75186         * tests/test-floorf1.c (floorf): Likewise.
75187         * tests/test-floorl.c (floorl): Likewise.
75188         * tests/test-fnmatch.c (fnmatch): Likewise.
75189         * tests/test-fopen.c (fopen): Likewise.
75190         * tests/test-fprintf-posix.c (fprintf): Likewise.
75191         * tests/test-freopen.c (freopen): Likewise.
75192         * tests/test-frexp.c (frexp): Likewise.
75193         * tests/test-frexpl.c (frexpl): Likewise.
75194         * tests/test-fseek.c (fseek): Likewise.
75195         * tests/test-fseeko.c (fseeko): Likewise.
75196         * tests/test-fstatat.c (fstatat): Likewise.
75197         * tests/test-fsync.c (fsync): Likewise.
75198         * tests/test-ftell.c (ftell): Likewise.
75199         * tests/test-ftello.c (ftello): Likewise.
75200         * tests/test-futimens.c (futimens): Likewise.
75201         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
75202         (gai_strerror): Likewise.
75203         * tests/test-getcwd.c (getcwd): Likewise.
75204         * tests/test-getdelim.c (getdelim): Likewise.
75205         * tests/test-getdtablesize.c (getdtablesize): Likewise.
75206         * tests/test-getgroups.c (getgroups): Likewise.
75207         * tests/test-gethostname.c (gethostname): Likewise.
75208         * tests/test-getline.c (getline): Likewise.
75209         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
75210         Likewise.
75211         * tests/test-gettimeofday.c (gettimeofday): Likewise.
75212         * tests/test-glob.c (glob, globfree): Likewise.
75213         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
75214         * tests/test-inet_ntop.c (inet_ntop): Likewise.
75215         * tests/test-inet_pton.c (inet_pton): Likewise.
75216         * tests/test-isblank.c (isblank): Likewise.
75217         * tests/test-lchown.c (lchown): Likewise.
75218         * tests/test-ldexpl.c (ldexpl): Likewise.
75219         * tests/test-link.c (link): Likewise.
75220         * tests/test-linkat.c (linkat): Likewise.
75221         * tests/test-lseek.c (lseek): Likewise.
75222         * tests/test-lstat.c (lstat): Likewise.
75223         * tests/test-mbrtowc.c (mbrtowc): Likewise.
75224         * tests/test-mbsinit.c (mbsinit): Likewise.
75225         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
75226         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
75227         * tests/test-memchr.c (memchr): Likewise.
75228         * tests/test-memcmp.c (memcmp): Likewise.
75229         * tests/test-memmem.c (memmem): Likewise.
75230         * tests/test-memrchr.c (memrchr): Likewise.
75231         * tests/test-mkdir.c (mkdir): Likewise.
75232         * tests/test-mkdirat.c (mkdirat): Likewise.
75233         * tests/test-mkfifo.c (mkfifo): Likewise.
75234         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
75235         * tests/test-mknod.c (mknod): Likewise.
75236         * tests/test-nanosleep.c (nanosleep): Likewise.
75237         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
75238         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
75239         Likewise.
75240         * tests/test-open.c (open): Likewise.
75241         * tests/test-openat.c (openat): Likewise.
75242         * tests/test-perror.c (perror): Likewise.
75243         * tests/test-pipe2.c (pipe2): Likewise.
75244         * tests/test-poll.c (poll): Likewise.
75245         * tests/test-popen.c (popen, pclose): Likewise.
75246         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
75247         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
75248         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
75249         (posix_spawn_file_actions_destroy)
75250         (posix_spawn_file_actions_addclose)
75251         (posix_spawn_file_actions_addopen)
75252         (posix_spawn_file_actions_adddup2): Likewise.
75253         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75254         * tests/test-pread.c (pread): Likewise.
75255         * tests/test-printf-posix.c (printf): Likewise.
75256         * tests/test-pty.c (openpty, forkpty): Likewise.
75257         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75258         (random_r): Likewise.
75259         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75260         * tests/test-readlink.c (readlink): Likewise.
75261         * tests/test-remove.c (remove): Likewise.
75262         * tests/test-rename.c (rename): Likewise.
75263         * tests/test-renameat.c (renameat): Likewise.
75264         * tests/test-rmdir.c (rmdir): Likewise.
75265         * tests/test-round1.c (round): Likewise.
75266         * tests/test-roundf1.c (roundf): Likewise.
75267         * tests/test-roundl.c (roundl): Likewise.
75268         * tests/test-setenv.c (setenv): Likewise.
75269         * tests/test-sigaction.c (sigaction): Likewise.
75270         * tests/test-sleep.c (sleep): Likewise.
75271         * tests/test-snprintf.c (snprintf): Likewise.
75272         * tests/test-sprintf-posix.c (sprintf): Likewise.
75273         * tests/test-stat.c (stat): Likewise.
75274         * tests/test-stpncpy.c (stpncpy): Likewise.
75275         * tests/test-strcasestr.c (strcasestr): Likewise.
75276         * tests/test-strchrnul.c (strchrnul): Likewise.
75277         * tests/test-strerror.c (strerror): Likewise.
75278         * tests/test-strsignal.c (strsignal): Likewise.
75279         * tests/test-strstr.c (strstr): Likewise.
75280         * tests/test-strtod.c (strtod): Likewise.
75281         * tests/test-strverscmp.c (strverscmp): Likewise.
75282         * tests/test-symlink.c (symlink): Likewise.
75283         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75284         * tests/test-times.c (times): Likewise.
75285         * tests/test-trunc1.c (trunc): Likewise.
75286         * tests/test-truncf1.c (truncf): Likewise.
75287         * tests/test-truncl.c (truncl): Likewise.
75288         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75289         Likewise.
75290         * tests/test-uname.c (uname): Likewise.
75291         * tests/test-unlink.c (unlink): Likewise.
75292         * tests/test-unlinkat.c (unlinkat): Likewise.
75293         * tests/test-unsetenv.c (unsetenv): Likewise.
75294         * tests/test-usleep.c (usleep): Likewise.
75295         * tests/test-utimensat.c (utimensat): Likewise.
75296         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75297         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75298         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75299         * tests/test-vprintf-posix.c (vprintf): Likewise.
75300         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75301         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75302         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75303         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75304         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75305         * tests/test-wcwidth.c (wcwidth): Likewise.
75307         build: pull in conditional headers during GNULIB_POSIXCHECK
75308         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75309         definitions from any conditionally-included headers.
75310         * lib/stdlib.in.h (includes): Likewise.
75311         * lib/unistd.in.h (includes): Likewise.
75313 2009-12-24  Bruno Haible  <bruno@clisp.org>
75315         * tests/test-argv-iter.c: Include header file being tested immediately
75316         after config.h.
75317         * tests/test-base64.c: Likewise.
75318         * tests/test-flock.c: Likewise.
75319         * tests/test-fsync.c: Likewise.
75320         * tests/test-getdate.c: Likewise.
75321         * tests/test-getndelim2.c: Likewise.
75322         * tests/test-isfinite.c: Likewise.
75323         * tests/test-isinf.c: Likewise.
75324         * tests/test-strerror.c: Likewise.
75325         * tests/test-strsignal.c: Likewise.
75327 2009-12-23  Eric Blake  <ebb9@byu.net>
75329         unistd: work around cygwin bug
75330         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75331         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75332         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75334 2009-12-23  Bruno Haible  <bruno@clisp.org>
75336         localename: More tests.
75337         * tests/test-localename.c (SIZEOF): New macro.
75338         (categories): New variable.
75339         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75340         test_locale_name_default): Add test w.r.t. thread locale.
75341         (test_locale_name_thread): New function.
75342         (main): Invoke it.
75344         localename: Make aware of thread locale.
75345         * lib/localename.h (gl_locale_name_thread): New declaration.
75346         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75347         behaviour with respect to thread locale.
75348         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75349         <langinfo.h>, glthread/lock.h.
75350         (SIZE_BITS): New macro.
75351         (string_hash): New function.
75352         (struct hash_node): New type.
75353         (HASH_TABLE_SIZE): New macro.
75354         (struniq_hash_table, struniq_lock): New variables.
75355         (struniq): New function.
75356         (gl_locale_name_thread): New function.
75357         (gl_locale_name): Invoke it.
75358         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75359         * modules/localename (Depends-on): Add lock.
75360         Reported by Mike Gran <spk121@yahoo.com>.
75362 2009-12-23  Eric Blake  <ebb9@byu.net>
75364         va-args: new module
75365         * modules/va-args: New file.
75366         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75367         * MODULES.html.sh (Core language properties): Mention it.
75369         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75370         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75371         named alias for __attribute__((__unused__)).
75372         * lib/chown.c: Update client.
75373         * lib/fchmodat.c: Likewise.
75374         * lib/fts.c: Likewise.
75375         * lib/getdate.y: Likewise.
75376         * lib/getgroups.c: Likewise.
75377         * lib/getopt.c: Likewise.
75378         * lib/getugroups.c: Likewise.
75379         * lib/mkdir.c: Likewise.
75380         * lib/mkfifo.c: Likewise.
75381         * lib/mkfifoat.c: Likewise.
75382         * lib/mknod.c: Likewise.
75383         * lib/mknodat.c: Likewise.
75384         * lib/readlink.c: Likewise.
75385         * lib/se-context.in.h: Likewise.
75386         * lib/se-selinux.in.h: Likewise.
75387         * lib/sockets.c: Likewise.
75388         * lib/symlink.c: Likewise.
75389         * lib/symlinkat.c: Likewise.
75390         * lib/unicodeio.c: Likewise.
75391         * lib/unistr.h: Likewise.
75392         * tests/test-areadlink.c: Likewise.
75393         * tests/test-areadlinkat.c: Likewise.
75394         * tests/test-filenamecat.c: Likewise.
75395         * tests/test-fseeko.c: Likewise.
75396         * tests/test-ftello.c: Likewise.
75397         * tests/test-getdate.c: Likewise.
75398         * tests/test-getgroups.c: Likewise.
75399         * tests/test-gethostname.c: Likewise.
75400         * tests/test-quotearg.c: Likewise.
75401         * tests/test-version-etc.c: Likewise.
75402         * tests/test-xalloc-die.c: Likewise.
75403         * tests/test-xfprintf-posix.c: Likewise.
75404         * tests/test-xprintf-posix.c: Likewise.
75405         * tests/test-xvasprintf.c: Likewise.
75407         tests: avoid compiler warnings
75408         * tests/test-fcntl.c (main): Delete unused parameters.
75409         * tests/test-freopen-safer.c (main): Likewise.
75410         * tests/test-xalloc-die.c (main): Mark unused parameters.
75411         * tests/test-fseeko.c (main): Likewise.
75412         * tests/test-ftello.c (main): Likewise.
75413         * tests/test-nanosleep.c (main): Avoid declaration warning.
75414         * tests/test-sleep.c (main): Likewise.
75415         * tests/test-unsetenv.c (main): Silence warning about string
75416         literal.
75417         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75419 2009-12-23  Bruno Haible  <bruno@clisp.org>
75421         * tests/test-localename.c (test_locale_name): New function, extracted
75422         from main. Also test mixed situations.
75423         (test_locale_name_posix, test_locale_name_environ,
75424         test_locale_name_default): New functions.
75425         (main): Invoke them all.
75426         * modules/localename-tests (configure.ac): Test for newlocale.
75428 2009-12-23  Bruno Haible  <bruno@clisp.org>
75430         unistd: Ensure getcwd gets declared before being overridden.
75431         * lib/unistd.in.h: Conditionally include <io.h>.
75433 2009-12-22  Bruno Haible  <bruno@clisp.org>
75435         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75436         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75437         (gl_WCHAR_H): Invoke it.
75438         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75439         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75440         Reported by Karl Berry <karl@freefriends.org>.
75442 2009-12-22  Eric Blake  <ebb9@byu.net>
75444         math, unistd: avoid redundant includes
75445         * lib/math.in.h (isnan): No need to re-include <math.h>.
75446         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75448         getsubopt: work around cygwin bug
75449         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75450         avoid conflicting with system getsubopt.
75451         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75452         bug.
75454         getopt: synchronize from glibc
75455         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75456         parameter order.  Adjust all callers.
75457         (_getopt_internal_r, main): Adjust quoting in error messages.
75458         Drop considerations for outdated POSIX 1003.2 error message.
75459         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75460         callers.
75461         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75463         test-getopt: test stderr behavior
75464         * modules/getopt-posix-tests (Depends-on): Add dup2.
75465         * tests/test-getopt.c (ASSERT): Avoid stderr.
75466         (main): Move stderr to a temporary file.
75467         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75468         Instead, add parameter to inform caller if output occurred.
75469         (test_getopt): Adjust all existing tests to expect silence, and
75470         add new tests of leading ":".
75471         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75472         glibc shortcomings with leading "-:" or "+:" in optstring.
75473         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75474         Likewise.
75475         * doc/posix-functions/getopt.texi (getopt): Likewise.
75477         test-getopt: enhance test
75478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75479         supports optind=0.
75480         * tests/test-getopt.c (OPTIND_MIN): Move...
75481         * tests/test-getopt.h (OPTIND_MIN): ...here.
75482         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75483         Require that optind=0 works, since modern BSD supports it in
75484         addition to optreset, and since coreutils expects it.
75485         (test_getopt_long_only): New test.
75486         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75487         glibc shortcomings with 'W;', and enforcement of optind=0.
75488         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75489         Likewise.
75491 2009-12-21  Bruno Haible  <bruno@clisp.org>
75493         localename: Improvements for MacOS X and Cygwin.
75494         * lib/localename.h (gl_locale_name_environ): New declaration.
75495         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75496         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75497         (gl_locale_name_posix): Invoke it.
75498         (gl_locale_name_default): Add comments. Use Windows native API also on
75499         Cygwin.
75501 2009-12-21  Bruno Haible  <bruno@clisp.org>
75503         Update list of Win32 locale ids.
75504         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75505         (LANG_SAMI): Renamed from LANG_SAAMI.
75506         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75507         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75508         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75509         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75510         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75511         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75512         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75513         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75514         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75515         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75516         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75517         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75518         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75519         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75520         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75521         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75522         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75523         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75524         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75525         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75526         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75527         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75528         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75529         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75530         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75531         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75532         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75533         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75534         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75535         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75536         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75537         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75538         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75539         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75540         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75541         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75542         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75543         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75544         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75545         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75546         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75547         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75548         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75549         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75550         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75551         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75552         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75553         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75554         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75555         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75556         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75557         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75558         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75559         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75560         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75561         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75562         Add more languages and countries for Sami, Sorbian. Add more countries
75563         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75564         for Pashto. Change country for Syriac, Tswana.
75566 2009-12-21  Eric Blake  <ebb9@byu.net>
75568         test-utimens: avoid spurious failure
75569         * tests/test-chown.h (nap): Factor...
75570         * tests/nap.h: ...into new file.
75571         * tests/test-lchown.h (nap): Avoid duplication.
75572         * tests/test-utimens-common.h (nap): Use shared implementation,
75573         necessary on file systems with 1-second resolution.
75574         * modules/chown-tests (Files): Include new file.
75575         * modules/fdutimensat-tests (Files): Likewise.
75576         * modules/futimens-tests (Files): Likewise.
75577         * modules/lchown-tests (Files): Likewise.
75578         * modules/openat-tests (Files): Likewise.
75579         * modules/utimens-tests (Files): Likewise.
75580         * modules/utimensat-tests (Files): Likewise.
75582 2009-12-19  Eric Blake  <ebb9@byu.net>
75584         futimens, utimensat: work around Linux bug
75585         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75586         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75587         * lib/utimensat.c (rpl_utimensat): Work around it.
75588         * lib/futimens.c (rpl_futimens): Adjust comment.
75590         utimens: work around Linux ctime bug
75591         * lib/utimens.c (detect_ctime_bug): New helper function.
75592         (update_timespec): Differentiate between workaround needed for
75593         this bug vs. what is needed for systems that lack utimensat.
75594         (fdutimens, lutimens): Work around bug.
75596         utimens: check for ctime update
75597         * tests/test-utimens-common.h (check_ctime): Define.
75598         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75599         * tests/test-futimens.h (test_futimens): Likewise.
75600         * tests/test-lutimens.h (test_lutimens): Likewise.
75601         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75602         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75604 2009-12-19  Bruno Haible  <bruno@clisp.org>
75606         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75607         * tests/test-dprintf-posix2.sh: New file.
75608         * tests/test-dprintf-posix2.c: New file.
75609         * modules/dprintf-posix-tests (Files): Add them.
75610         (configure.ac): Check for getrlimit and setrlimit.
75611         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75613 2009-12-19  Bruno Haible  <bruno@clisp.org>
75615         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75616         * tests/test-fprintf-posix3.sh: New file.
75617         * tests/test-fprintf-posix3.c: New file.
75618         * modules/fprintf-posix-tests (Files): Add them.
75619         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75621 2009-12-19  Eric Blake  <ebb9@byu.net>
75623         dirfd: fix prototype
75624         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75625         * lib/dirfd.c (dirfd): Likewise.
75627         canonicalize: reduce memory usage
75628         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75629         allocation to size.
75630         Reported by Solar Designer <solar@openwall.com>.
75632 2009-12-19  Bruno Haible  <bruno@clisp.org>
75634         New module attribute 'Applicability'.
75635         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75636         * gnulib-tool: New option --extract-applicability.
75637         (func_usage): Document it.
75638         (sed_extract_prog): Recognize it.
75639         (func_get_applicability): New function.
75640         (func_import): Generalize handling of 'link-warning' module.
75641         * modules/link-warning (Applicability): New section.
75642         * modules/arg-nonnull (Applicability): New section.
75643         Repoted by Simon Josefsson <simon@josefsson.org>.
75645 2009-12-19  Bruno Haible  <bruno@clisp.org>
75647         fflush: tweak
75648         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75649         * lib/fseeko.c (rpl_fseeko): Likewise.
75651 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75653         * lib/gl_list.h: Fix typo in comment.
75655 2009-12-16  Eric Blake  <ebb9@byu.net>
75657         fcntl: use to simplify other modules
75658         * modules/cloexec (Depends-on): Add fcntl.
75659         * modules/fchdir (Depends-on): Likewise.
75660         * modules/fd-safer-flag (Depends-on): Likewise.
75661         * modules/unistd-safer (Depends-on): Likewise.
75662         * modules/dup3 (configure.ac): Set module indicator.
75663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75664         missing.
75665         * lib/fchdir.c (_gl_register_dup): Fix comment.
75666         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75667         * lib/dup-safer.c (dup_safer): Likewise.
75668         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75669         * lib/dup3.c (dup3): Likewise.
75670         * tests/test-fchdir.c (main): Enhance test.
75671         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75673         fcntl: port portions of fcntl to mingw
75674         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75675         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75676         replacement for mingw.
75677         * modules/fcntl (Description): Update.
75678         (Depends-on): Add dup2.
75679         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75680         * modules/fcntl-h (Makefile.am): Substitute it.
75681         * lib/fcntl.in.h (fcntl): Update declaration.
75682         (F_DUPFD, F_GETFD): New macros, when needed.
75683         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75684         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75685         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75686         we now guarantee.
75688         fcntl: work around cygwin bug in F_DUPFD
75689         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75690         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75691         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75692         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75693         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75695         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75696         * modules/fcntl (Files): List new files.
75697         (configure.ac): Run a test.
75698         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75699         * lib/fcntl.c (rpl_fcntl): Likewise.
75700         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75701         (gl_FCNTL_H): Always replace fcntl.h.
75702         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75703         * lib/fcntl.in.h (fcntl): Declare replacement.
75704         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75705         needed, plus a witness.
75706         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75707         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75708         * tests/test-fcntl.c: New file.
75709         * modules/fcntl-tests: Likewise.
75711         binary-io: avoid potential compilation warning
75712         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75713         directives.
75715         fflush: avoid compilation error on NetBSD
75716         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75717         between off_t and fpos_t, since the latter is sometimes a struct.
75718         * lib/fseeko.c (rpl_fseeko): Likewise.
75719         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75721 2009-12-15  Eric Blake  <ebb9@byu.net>
75723         fcntl-h, stdio, sys_ioctl: fix declarations
75724         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75725         function must not take arguments.
75726         * lib/sys_ioctl.in.h (ioctl): Likewise.
75727         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75728         (open): Add a link warning.
75730 2009-12-15  Jim Meyering  <meyering@redhat.com>
75732         areadlink, areadlink-with-size: relax license to LGPLv2+
75733         * modules/areadlink (License): Relax to LGPLv2+.
75734         * modules/areadlink-with-size (License): Likewise.
75736 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75737             Bruno Haible  <bruno@clisp.org>
75739         *printf: Fix memory leak.
75740         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75741         * lib/vfprintf.c (vfprintf): Likewise.
75742         * lib/dprintf.c (dprintf): Likewise.
75743         * lib/vdprintf.c (vdprintf): Likewise.
75745 2009-12-14  Eric Blake  <ebb9@byu.net>
75747         accept4: adjust module dependencies
75748         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75750         utimens: one more try at avoiding compiler warning
75751         * lib/utimens.c (lutimens): Lower scope of result.
75753 2009-12-13  Bruno Haible  <bruno@clisp.org>
75755         Move the malloc checking from module 'list' to new module 'xlist'.
75756         * modules/xlist: New file.
75757         * lib/gl_xlist.h: New file.
75758         * lib/gl_xlist.c: New file.
75759         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75760         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75761         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75762         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75763         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75764         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75765         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75766         gl_sortedlist_nx_add): New declarations.
75767         (struct gl_list_implementation): Rename and change methods accordingly.
75768         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75769         (gl_list_nx_create): Renamed from gl_list_create.
75770         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75771         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75772         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75773         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75774         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75775         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75776         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75777         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75778         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75779         gl_list_create_empty.
75780         (gl_list_nx_create): Renamed from gl_list_create.
75781         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75782         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75783         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75784         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75785         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75786         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75787         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75788         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75789         * lib/gl_array_list.c: Don't include xalloc.h.
75790         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75791         NULL upon out-of-memory.
75792         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75793         out-of-memory.
75794         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75795         Change return type to 'int'.
75796         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75797         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75798         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75799         upon out-of-memory.
75800         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75801         upon out-of-memory.
75802         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75803         upon out-of-memory.
75804         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75805         upon out-of-memory.
75806         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75807         out-of-memory.
75808         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75809         Update.
75810         (gl_array_list_implementation): Update.
75811         * lib/gl_carray_list.c: Don't include xalloc.h.
75812         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75813         Return NULL upon out-of-memory.
75814         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75815         out-of-memory.
75816         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75817         Change return type to 'int'.
75818         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75819         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75820         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75821         upon out-of-memory.
75822         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75823         upon out-of-memory.
75824         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75825         out-of-memory.
75826         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75827         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75828         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75829         Update.
75830         (gl_carray_list_implementation): Update.
75831         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75832         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75833         gl_linked_create_empty. Return NULL upon out-of-memory.
75834         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75835         out-of-memory.
75836         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75837         Change return type to 'int'. Return -1 upon out-of-memory.
75838         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75839         out-of-memory.
75840         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75841         upon out-of-memory.
75842         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75843         upon out-of-memory.
75844         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75845         NULL upon out-of-memory.
75846         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75847         upon out-of-memory.
75848         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75849         out-of-memory.
75850         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75851         Update.
75852         * lib/gl_linked_list.c: Don't include xalloc.h.
75853         (gl_linked_list_implementation): Update.
75854         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75855         (add_to_bucket): Change return type to 'int'.
75856         (gl_linkedhash_list_implementation): Update.
75857         * lib/gl_anytree_list1.h (free_subtree): New function.
75858         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75859         gl_tree_create_empty. Return NULL upon out-of-memory.
75860         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75861         Change return type to 'int'. Return -1 upon out-of-memory.
75862         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75863         out-of-memory.
75864         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75865         (gl_tree_remove_node): New function, moved here from
75866         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75867         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75868         Update.
75869         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75870         malloc, not xmalloc. Return NULL upon out-of-memory.
75871         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75872         out-of-memory.
75873         (gl_tree_remove_node_from_tree): New function, extracted from
75874         gl_tree_remove_node.
75875         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75876         upon out-of-memory.
75877         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75878         out-of-memory.
75879         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75880         upon out-of-memory.
75881         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75882         upon out-of-memory.
75883         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75884         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75885         not xmalloc. Return NULL upon out-of-memory.
75886         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75887         out-of-memory.
75888         (gl_tree_remove_node_from_tree): New function, extracted from
75889         gl_tree_remove_node.
75890         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75891         upon out-of-memory.
75892         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75893         out-of-memory.
75894         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75895         upon out-of-memory.
75896         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75897         upon out-of-memory.
75898         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75899         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75900         gl_anytree_list1.h before gl_anyavltree_list2.h.
75901         (gl_avltree_list_implementation): Update.
75902         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75903         gl_anytree_list1.h before gl_anyavltree_list2.h.
75904         (gl_rbtree_list_implementation): Update.
75905         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75906         Change return type to 'int'. Return -1 upon out-of-memory. Use
75907         __builtin_expect.
75908         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75909         (gl_avltreehash_list_implementation): Update.
75910         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75911         (gl_rbtreehash_list_implementation): Update.
75912         * modules/array-list (Depends-on): Remove xalloc.
75913         * modules/carray-list (Depends-on): Likewise.
75914         * modules/linked-list (Depends-on): Likewise.
75915         * modules/linkedhash-list (Depends-on): Likewise.
75916         * modules/avltree-list (Depends-on): Likewise.
75917         * modules/rbtree-list (Depends-on): Likewise.
75918         * modules/avltreehash-list (Depends-on): Likewise.
75919         * modules/rbtreehash-list (Depends-on): Likewise.
75921         * modules/xsublist: New file.
75922         * lib/gl_xsublist.h: New file.
75923         * lib/gl_xsublist.c: New file.
75924         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75925         (gl_sublist_nx_create): New declaration.
75926         * lib/gl_sublist.c: Don't include xalloc.h.
75927         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75928         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75929         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75930         Change return type to 'int'. Return -1 upon out-of-memory.
75931         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75932         upon out-of-memory.
75933         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75934         NULL upon out-of-memory.
75935         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75936         upon out-of-memory.
75937         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75938         NULL upon out-of-memory.
75939         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75940         NULL upon out-of-memory.
75941         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75942         upon out-of-memory.
75943         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75944         (gl_sublist_list_implementation): Update.
75945         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75946         upon out-of-memory.
75947         * modules/sublist (Depends-on): Remove xalloc.
75949         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75950         * tests/test-carray_list.c: Likewise.
75951         * tests/test-linked_list.c: Likewise.
75952         * tests/test-linkedhash_list.c: Likewise.
75953         * tests/test-avltree_list.c: Likewise.
75954         * tests/test-rbtree_list.c: Likewise.
75955         * tests/test-avltreehash_list.c: Likewise.
75956         * tests/test-rbtreehash_list.c: Likewise.
75957         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75958         * modules/carray-list-tests (Makefile.am): Likewise.
75959         * modules/linked-list-tests (Makefile.am): Likewise.
75960         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75961         * modules/avltree-list-tests (Makefile.am): Likewise.
75962         * modules/rbtree-list-tests (Makefile.am): Likewise.
75963         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75964         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75966         * NEWS: Mention the changes.
75968         * lib/clean-temp.c: Include gl_xlist.h.
75969         * modules/clean-temp (Depends-on): Add xlist.
75971         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75972         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75974         * tests/test-array_oset.c: Include gl_xlist.h.
75975         * modules/array-oset-tests (Depends-on): Add xlist.
75977         Reported by José E. Marchesi <jemarch@gnu.org>.
75979 2009-12-13  Bruno Haible  <bruno@clisp.org>
75981         Move the malloc checking from module 'oset' to new module 'xoset'.
75982         * modules/xoset: New file.
75983         * lib/gl_xoset.h: New file.
75984         * lib/gl_xoset.c: New file.
75985         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75986         declarations.
75987         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75988         (struct gl_oset_implementation): Rename and change methods accordingly.
75989         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75990         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75991         'int'. Mark as __warn_unused_result__.
75992         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75993         gl_oset_create_empty.
75994         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75995         'int'.
75996         * lib/gl_array_oset.c: Don't include xalloc.h.
75997         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75998         malloc, not xmalloc.
75999         (grow): Change return type to 'int'. Don't call xalloc_die.
76000         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
76001         to 'int'.
76002         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
76003         'int'.
76004         (gl_array_oset_implementation): Update.
76005         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
76006         gl_tree_create_empty.
76007         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
76008         'int'.
76009         * lib/gl_avltree_oset.c: Don't include xalloc.h.
76010         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76011         xmalloc.
76012         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76013         not xmalloc.
76014         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76015         xmalloc.
76016         (gl_avltree_oset_implementation): Update.
76017         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
76018         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
76019         xmalloc.
76020         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
76021         not xmalloc.
76022         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
76023         xmalloc.
76024         (gl_rbtree_oset_implementation): Update.
76025         * modules/array-oset (Depends-on): Remove xalloc.
76026         * modules/avltree-oset (Depends-on): Likewise.
76027         * modules/rbtree-oset (Depends-on): Likewise.
76028         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
76029         * tests/test-avltree_oset.c: Likewise.
76030         * tests/test-rbtree_oset.c: Likewise.
76031         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76032         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
76033         * modules/rbtree-oset-tests (Makefile.am): Likewise.
76034         * NEWS: Mention the change.
76036 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
76038         maint.mk: allow a project to override release-prep commands
76039         * top/maint.mk (alpha, beta, stable): Move release-preparatory
76040         commands into a new rule.
76041         (release-prep): New rule.
76042         (release-prep-hook): New overridable variable.
76044 2009-12-13  Bruno Haible  <bruno@clisp.org>
76046         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
76048 2009-12-13  Jim Meyering  <meyering@redhat.com>
76050         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
76051         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
76053 2009-12-12  Bruno Haible  <bruno@clisp.org>
76055         duplocale: Tweak.
76056         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
76058 2009-12-12  Karl Berry  <karl@gnu.org>
76060         * config/srclist.txt (strtoll.c): tab changes, no more sync.
76062 2009-12-12  Bruno Haible  <bruno@clisp.org>
76064         * m4/po.m4: Undo incorrect untabification.
76066 2009-12-12  Bruno Haible  <bruno@clisp.org>
76068         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
76069         * modules/c-strtod (Depends-on): Add locale.
76070         * modules/c-strtold (Depends-on): Likewise.
76072 2009-12-12  Bruno Haible  <bruno@clisp.org>
76074         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
76076 2009-12-11  Eric Blake  <ebb9@byu.net>
76078         setenv: relax requirement in light of POSIX ruling
76079         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
76080         not NULL.
76081         * tests/test-setenv.c (main): Relax test.
76082         * tests/test-unsetenv.c (main): Likewise.
76083         * doc/posix-functions/setenv.texi (setenv): Document this.
76084         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76086 2009-12-11  Bruno Haible  <bruno@clisp.org>
76088         New module 'fd-safer-flag'.
76089         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
76090         * lib/dup-safer.c (dup_safer_flag): Remove function.
76091         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
76092         * lib/fd-safer.c (fd_safer_flag): Remove function.
76093         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
76094         * modules/cloexec (configure.ac): Drop indicator macro.
76095         * modules/fd-safer-flag: New file.
76096         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
76097         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
76098         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
76100 2009-12-11  Bruno Haible  <bruno@clisp.org>
76102         Tests for module 'nl_langinfo'.
76103         * modules/nl_langinfo-tests: New file.
76104         * tests/test-nl_langinfo.sh: New file.
76105         * tests/test-nl_langinfo.c: New file.
76107         New module 'nl_langinfo'.
76108         * lib/nl_langinfo.c: New file.
76109         * m4/nl_langinfo.m4: New file.
76110         * modules/nl_langinfo: New file.
76111         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
76113 2009-12-11  Bruno Haible  <bruno@clisp.org>
76115         Tests for module 'langinfo'.
76116         * modules/langinfo-tests: New file.
76117         * tests/test-langinfo.c: New file.
76119         New module 'langinfo'.
76120         * lib/langinfo.in.h: New file.
76121         * m4/langinfo_h.m4: New file.
76122         * modules/langinfo: New file.
76123         * doc/posix-headers/langinfo.texi: Mention the new module.
76125 2009-12-11  Bruno Haible  <bruno@clisp.org>
76127         * lib/config.charset: Untabify.
76129 2009-12-11  Bruno Haible  <bruno@clisp.org>
76131         * modules/unistd-safer (configure.ac): Drop indicator macro.
76133 2009-12-11  Bruno Haible  <bruno@clisp.org>
76135         Move pipe2-safer code to its own file.
76136         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
76137         * lib/pipe-safer.c (pipe2_safer): Remove function.
76138         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
76139         (Makefile.am): Add it to lib_SOURCES.
76141 2009-12-10  Bruno Haible  <bruno@clisp.org>
76143         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
76145 2009-12-10  Bruno Haible  <bruno@clisp.org>
76147         Declare which arguments expect non-NULL values, for GCC and clang.
76148         * build-aux/arg-nonnull.h: New file.
76149         * modules/arg-nonnull: New file.
76150         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
76151         (inet_ntop, inet_pton): Use it.
76152         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
76153         (closedir, dirfd, opendir, scandir, alphasort): Use it.
76154         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
76155         (open, openat): Use it.
76156         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
76157         (fnmatch): Use it.
76158         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
76159         (getopt, getopt_long, getopt_long_only): Use it.
76160         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
76161         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
76162         Use it.
76163         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
76164         (iconv_open): Use it.
76165         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
76166         (strtoimax, strtoumax): Use it.
76167         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
76168         (duplocale): Use it.
76169         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
76170         (frexp, frexpl): Use it.
76171         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
76172         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
76173         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
76174         (tsearch, tfind, tdelete, twalk): Use it.
76175         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
76176         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
76177         sigpending): Use it.
76178         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
76179         (posix_spawn, posix_spawnp, posix_spawnattr_init,
76180         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
76181         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
76182         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
76183         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
76184         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
76185         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
76186         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
76187         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
76188         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
76189         Use it.
76190         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
76191         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
76192         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
76193         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
76194         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
76195         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
76196         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
76197         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
76198         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
76199         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
76200         strtoull, unsetenv): Use it.
76201         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
76202         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
76203         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
76204         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
76205         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
76206         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
76207         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
76208         (strcasecmp, strncasecmp): Use it.
76209         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
76210         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
76211         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
76212         rpl_setsockopt): Use it.
76213         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
76214         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
76215         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
76216         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
76217         (gettimeofday): Use it.
76218         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
76219         (times): Use it.
76220         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
76221         (uname): Use it.
76222         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
76223         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
76224         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
76225         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
76226         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
76227         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
76228         unlinkat, write): Use it.
76229         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
76230         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
76231         * lib/argv-iter.h: Include arg-nonnull.h.
76232         (_ATTRIBUTE_NONNULL_): Remove macro.
76233         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
76234         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
76235         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
76236         optimization.
76237         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
76238         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
76239         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
76240         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
76241         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
76242         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
76243         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
76244         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
76245         * modules/arpa_inet (Depends-on): Add arg-nonnull.
76246         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
76247         * modules/dirent (Depends-on): Add arg-nonnull.
76248         (Makefile.am): Insert arg-nonnull.h into dirent.h.
76249         * modules/fcntl-h (Depends-on): Add arg-nonnull.
76250         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
76251         * modules/fnmatch (Depends-on): Add arg-nonnull.
76252         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
76253         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76254         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76255         * modules/glob (Depends-on): Add arg-nonnull.
76256         (Makefile.am): Insert arg-nonnull.h into glob.h.
76257         * modules/iconv_open (Depends-on): Add arg-nonnull.
76258         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76259         * modules/inttypes (Depends-on): Add arg-nonnull.
76260         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76261         * modules/locale (Depends-on): Add arg-nonnull.
76262         (Makefile.am): Insert arg-nonnull.h into locale.h.
76263         * modules/math (Depends-on): Add arg-nonnull.
76264         (Makefile.am): Insert arg-nonnull.h into math.h.
76265         * modules/netdb (Depends-on): Add arg-nonnull.
76266         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76267         * modules/search (Depends-on): Add arg-nonnull.
76268         (Makefile.am): Insert arg-nonnull.h into search.h.
76269         * modules/signal (Depends-on): Add arg-nonnull.
76270         (Makefile.am): Insert arg-nonnull.h into signal.h.
76271         * modules/spawn (Depends-on): Add arg-nonnull.
76272         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76273         * modules/stdio (Depends-on): Add arg-nonnull.
76274         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76275         * modules/stdlib (Depends-on): Add arg-nonnull.
76276         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76277         * modules/string (Depends-on): Add arg-nonnull.
76278         (Makefile.am): Insert arg-nonnull.h into string.h.
76279         * modules/strings (Depends-on): Add arg-nonnull.
76280         (Makefile.am): Insert arg-nonnull.h into strings.h.
76281         * modules/sys_socket (Depends-on): Add arg-nonnull.
76282         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76283         * modules/sys_stat (Depends-on): Add arg-nonnull.
76284         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76285         * modules/sys_time (Depends-on): Add arg-nonnull.
76286         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76287         * modules/sys_times (Depends-on): Add arg-nonnull.
76288         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76289         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76290         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76291         * modules/time (Depends-on): Add arg-nonnull.
76292         (Makefile.am): Insert arg-nonnull.h into time.h.
76293         * modules/unistd (Depends-on): Add arg-nonnull.
76294         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76295         * modules/wchar (Depends-on): Add arg-nonnull.
76296         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76297         * modules/argv-iter (Depends-on): Add arg-nonnull.
76298         * tests/test-canonicalize.c (null_ptr): New function.
76299         (main): Use it.
76300         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76301         (main): Use it.
76302         * tests/test-memmem.c (null_ptr): New function.
76303         (main): Use it.
76304         Reported by Jim Meyering.
76306 2009-12-10  Bruno Haible  <bruno@clisp.org>
76308         Use spaces for indentation, not tabs.
76309         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76310         * m4/*.m4: Untabify.
76311         * build-aux/*.h: Untabify.
76312         * tests/**/*.[hc]: Untabify.
76313         * README: New section "Indent with spaces, not TABs", based on
76314         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76315         * NEWS: Mention the change.
76317 2009-12-10  Bruno Haible  <bruno@clisp.org>
76319         pty test: Fix link error.
76320         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76321         test_pty_LDADD.
76323 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76325         * modules/pty: New file.
76326         * modules/pty-tests: New file.
76327         * m4/pty.m4: New file.
76328         * tests/test-pty.c: New file.
76329         * doc/glibc-headers/pty.texi: Modified.
76330         * doc/glibc-functions/forkpty.texi: Modified.
76331         * doc/glibc-functions/openpty.texi: Modified.
76333 2009-12-10  Bruno Haible  <bruno@clisp.org>
76335         Avoid syntax error in C++ mode.
76336         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76338 2009-12-10  Bruno Haible  <bruno@clisp.org>
76340         Use sed with option -e.
76341         * gnulib-tool (func_version, func_emit_copyright_notice,
76342         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76343         option -e to sed.
76344         * modules/link-warning (Makefile.am): Likewise.
76346 2009-12-10  Jim Meyering  <meyering@redhat.com>
76348         mgetgroups: do not write bytes beyond end of malloc'd buffer
76349         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76350         username, we call getgroups with a one-element-shorter buffer,
76351         but still told it the length was original, max_n_groups.
76353 2009-12-09  Eric Blake  <ebb9@byu.net>
76355         cloexec: relax license
76356         * modules/cloexec (Maintainer): Add myself.
76357         (License): Use LGPL, not GPL.
76359         link-warning: optimize generation
76360         * modules/link-warning (Makefile.am): Reduce process usage.
76362 2009-12-09  Bruno Haible  <bruno@clisp.org>
76364         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76365         workaround was added on 2009-11-17.
76367 2009-12-09  Jim Meyering  <meyering@redhat.com>
76368             Bruno Haible  <bruno@clisp.org>
76370         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76371         * modules/link-warning (Makefile.am): Make the comment-removing sed
76372         command more robust in the face of bootstrap-prepended comment lines.
76374 2009-12-09  Bruno Haible  <bruno@clisp.org>
76376         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76377         most one group.
76379 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76380             Bruno Haible  <bruno@clisp.org>
76382         * build-aux/link-warning.h: Add copyright notice.
76383         * modules/link-warning (Makefile.am): Generate link-warning.h from
76384         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76385         * NEWS: Mention change in link-warning module.
76386         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76387         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76388         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76389         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76390         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76391         * modules/math (Makefile.am): Add dependency to math.h.
76392         * modules/search (Makefile.am): Add dependency to search.h.
76393         * modules/signal (Makefile.am): Add dependency to signal.h.
76394         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76395         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76396         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76397         * modules/string (Makefile.am): Add dependency to string.h.
76398         * modules/strings (Makefile.am): Add dependency to strings.h.
76399         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76400         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76401         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76402         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76403         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76404         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76405         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76406         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76407         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76409 2009-12-09  Bruno Haible  <bruno@clisp.org>
76411         fchdir: Optimize away rpl_fstat when possible.
76412         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76413         REPLACE_OPEN_DIRECTORY.
76414         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76416 2009-12-09  Bruno Haible  <bruno@clisp.org>
76418         * lib/fchdir.c: Update comment.
76420 2009-12-09  Bruno Haible  <bruno@clisp.org>
76422         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76424 2009-12-08  Eric Blake  <ebb9@byu.net>
76426         fchdir: avoid memory leak on re-registration.
76427         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76429 2009-12-08  Jim Meyering  <meyering@redhat.com>
76431         init.sh: avoid Solaris 10 /bin/sh portability problem
76432         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76433         sourced script:
76434           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76435           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76436           bar
76437         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76438         and two tests used that idiom.
76439         * tests/init.sh: Update suggested usage comments.
76440         (path_prepend_): New function, to be used in place
76441         of the --src-path=DIR option.
76442         (setup_): Move PATH-prepending code into path_prepend_.
76443         * tests/test-pread.sh: Adapt to new usage.
76444         * tests/test-xalloc-die.sh: Likewise.
76446 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76448         * doc/gnulib.texi (Glibc pty.h): Add.
76449         * doc/glibc-functions/forkpty.texi: Add.
76450         * doc/glibc-functions/openpty.texi: Add.
76451         Suggested by Bruno Haible.
76453 2009-12-08  Eric Blake  <ebb9@byu.net>
76455         fchdir: fix logic bugs
76456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76457         * tests/test-fchdir.c (main): Enhance test.
76458         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76459         is in use.
76461         dup2: fix logic bugs
76462         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76463         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76464         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76465         exists.
76466         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76468 2009-12-07  Eric Blake  <ebb9@byu.net>
76470         unlink: fix m4 detection
76471         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76473         unistd-safer: add unit test
76474         * modules/unistd-safer-tests: New file.
76475         * tests/test-dup-safer.c: Likewise.
76476         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76477         * tests/test-dup2.c (setmode): Likewise.
76478         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76480         cloexec: preserve text vs. binary across dup_cloexec
76481         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76482         mode.
76483         * modules/dup2-tests (Depends-on): Add binary-io.
76484         * modules/cloexec-tests (Depends-on): Likewise.
76485         * tests/test-dup2.c (setmode, is_mode): New helpers.
76486         (main): Add tests that translation mode is preserved.
76487         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76488         Reported by Bruno Haible.
76490         mgetgroups: reduce duplicate listings
76491         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76492         resulting array.
76493         * tests/test-chown.h (test_chown): Simplify client.
76494         * tests/test-lchown.h (test_lchown): Likewise.
76496 2009-12-06  Bruno Haible  <bruno@clisp.org>
76498         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76499         value.
76501 2009-12-06  Bruno Haible  <bruno@clisp.org>
76503         * lib/progname.c: Include stdio.h, stdlib.h.
76504         (set_program_name): Reject a NULL argument.
76506 2009-12-05  Eric Blake  <ebb9@byu.net>
76508         pipe2-safer: new module
76509         * modules/pipe2-safer: New file.
76510         * lib/unistd-safer.h (pipe2_safer): New prototype.
76511         * lib/unistd--.h (pipe2): New wrapper.
76512         * lib/pipe-safer.c (pipe2_safer): New function.
76513         * modules/pipe (Depends-on): Add pipe2-safer.
76514         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76516         stdlib-safer: preserve cloexec flag for mkostemp[s]
76517         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76518         fd_safer_flag.
76520         unistd-safer: allow preservation of cloexec status via flag
76521         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76522         prototypes.
76523         * lib/dup-safer.c (dup_safer_flag): New function.
76524         * lib/fd-safer.c (fd_safer_flag): Likewise.
76525         * modules/cloexec (configure.ac): Set witness.
76527         test-dup2: enhance test
76528         * modules/dup2-tests (Depends-on): Add cloexec.
76529         * tests/test-dup2.c (main): Enhance test.
76531         cloexec: add dup_cloexec
76532         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76533         header and comments.
76534         * lib/cloexec.c (set_cloexec_flag): Add comments.
76535         (dup_cloexec): New function, with mingw implementation borrowed
76536         from...
76537         * lib/w32spawn.h (dup_noinherit): ...here.
76538         * modules/execute (Depends-on): Add cloexec.
76539         * modules/pipe (Depends-on): Likewise.
76540         * modules/cloexec (Depends-on): Add dup2.
76541         * modules/cloexec-tests (Files): New file.
76542         * tests/test-cloexec.c: Likewise.
76544         test-xalloc-die: fix test for mingw
76545         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76546         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76547         directory and .exe suffix off argv[0] output.
76549         test-fseeko: fix test for mingw
76550         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76551         than undefining fseek, so test will pass on mingw.
76553 2009-12-05  Bruno Haible  <bruno@clisp.org>
76555         * lib/progname.h (set_program_name): Clarify specification.
76556         * lib/progname.c (set_program_name): Likewise.
76557         Reported by Jim Meyering.
76559 2009-12-05  Jim Meyering  <meyering@redhat.com>
76561         maint.mk: backslash-escape parens in default regexp
76562         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76563         backslash-escape the literal parentheses.
76565         maint.mk: news-date-check: use grep -E
76566         * top/maint.mk (today): Define a Make variable, not a...
76567         (news-date-check): ...shell variable.
76568         (news-date-regexp): Use the Make variable.
76569         Use grep's -E option.  Change the failing diagnostic to mention
76570         the variable, $(news-date-regexp).
76572 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76574         maintainer-makefile: allow customization of NEWS entry format
76575         * top/maint.mk (news-date-regexp): New overridable variable.
76576         (news-date-check): Use it.
76578 2009-12-04  Eric Blake  <ebb9@byu.net>
76580         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76581         * lib/mgetgroups.h (xgetgroups): New prototype.
76582         * lib/mgetgroups.c (xgetgroups): New wrapper.
76583         (mgetgroups): Handle ENOSYS.
76584         * modules/mgetgroups (Depends-on): Add realloc.
76585         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76587         mgetgroups: avoid argument promotion issues with -1
76588         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76589         for invalid gid_t.
76590         * tests/test-chown.h (getegid, test_chown): Likewise.
76591         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76593 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76595         exclude: Fix header file problems.
76596         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76598 2009-12-01  Jim Meyering  <meyering@redhat.com>
76600         fts: fts_open: do not let an empty string cause immediate failure
76601         This is required in support of GNU rm, for which the command
76602         "rm A '' B" must process and remove both A and B, in spite of
76603         the empty string argument.
76604         * lib/fts.c (fts_open): Do not let the presence of an empty string
76605         cause fts_open to fail immediately.  Most fts-using tools must be
76606         able to process all arguments, in order, and can be expected to
76607         diagnose such arguments themselves.
76609 2009-11-30  Eric Blake  <ebb9@byu.net>
76611         utimens: fix compilation error
76612         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76613         Declare variable at right scope.
76615 2009-11-29  Jim Meyering  <meyering@redhat.com>
76617         bootstrap: handle perl-5.11's changed --version output
76618         * build-aux/bootstrap (get_version): Handle perl separately,
76619         since perl-5.11's --version output is different.
76621 2009-11-28  Jim Meyering  <meyering@redhat.com>
76623         userspec: depend on the inttostr module, too
76624         * modules/userspec (Depends-on): Add inttostr.
76626         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76627         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76628         number of MAXUID when it evaluates to (uid_t) -1.
76629         Likewise for group ID.  Reported by Matt McCutchen in
76630         <http://savannah.gnu.org/bugs/?28113>
76632         userspec: reformat to use spaces, not TABs
76633         * lib/userspec.c: Expand TABs to spaces.
76634         Add Emacs' "indent-tabs-mode: nil" hint.
76636 2009-11-27  Eric Blake  <ebb9@byu.net>
76638         getopt-gnu: flush out another BSD bug
76639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76640         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76641         flush out BSD bug.
76642         * tests/test-getopt.h (test_getopt): End lists with NULL.
76643         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76644         (test_getopt_long_posix): Enhance test.
76645         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76646         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76647         getopt-gnu.
76648         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76649         Likewise.
76651 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76653         * modules/idpriv-droptemp-tests (Notice): Fix text.
76655 2009-11-27  Jim Meyering  <meyering@redhat.com>
76657         test-xalloc-die: avoid spurious failure due to libtool argv difference
76658         In a libtool-enabled project, this test would fail due to a difference
76659         in the emitted program name, e.g.,
76660         -test-xalloc-die: memory exhausted
76661         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76662         Use program to avoid that.
76663         * modules/xalloc-die-tests (Depends-on): Add progname.
76664         * tests/test-xalloc-die.c: Include progname.h".
76665         (program_name): Remove decl.
76666         (main): Call set_program_name.
76667         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76669 2009-11-26  Richard Jones  <rjones@redhat.com>
76671         w32sock: leave win32 error in place.
76672         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76674 2009-11-26  Eric Blake  <ebb9@byu.net>
76676         init.sh: suggest to use skip_ and fail_ functions in comments
76677         * tests/init.sh: Add a sentence.
76679 2009-11-25  Bruno Haible  <bruno@clisp.org>
76681         init.sh: add documentation in comments
76682         * tests/init.sh: Add some developer and user documentation.
76684 2009-11-26  Jim Meyering  <meyering@redhat.com>
76686         init.sh: accommodate even those who specify bogus srcdir manually
76687         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76688         configure-time tests to be sanitized, so that there is no need to
76689         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76690         (with no double quotes) suffices.  However, since tests may be
76691         invoked manually, and since you may explicitly set srcdir to the
76692         name of a directory containing spaces, do quote its uses here.
76693         * tests/test-pread.sh: Likewise.
76694         Suggested by Bruno Haible.
76696         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76697         * tests/test-pread.sh: Write no data into the pipe, because
76698         test-pread actually reads none.  This avoids a diagnostic,
76699         "bash: echo: write error: Broken pipe", that arises in the unusual
76700         event something is ignoring SIGPIPE, and might be interpreted
76701         as some sort of failure.  Reported by Bruno Haible.
76703 2009-11-25  Jim Meyering  <meyering@redhat.com>
76705         test-pread: cover failure with ESPIPE and EINVAL
76706         * tests/test-pread.c (main): Test for failure, too.
76707         * tests/test-pread.sh: Invoke with stdin on a pipe.
76708         Suggested by Eric Blake.
76710         pread: improvement and fix
76711         * modules/pread (Depends-on): Depend on lseek, for portability to
76712         e.g., mingw.  Suggested by Eric Blake.
76713         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76715         unistd.in.h: correct declaration of pread
76716         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76717         Reported by Richard W.M. Jones.
76719         test-pread.sh: distribute the test script
76720         * modules/pread-tests (Files): Include test-pread.sh.
76722         test-pread.sh: clean up
76723         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76724         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76725         That is unnecessary, since it's always ".".
76726         Suggestion from Eric Blake.
76728         test-pread.sh: make executable
76729         * tests/test-pread.sh: Set executable bit.
76730         Reported by Eric Blake.
76732         correct typo in test-pread.sh
76733         * tests/test-pread.sh: Add #! line.
76735         test pread
76736         * tests/test-pread.c: New file.
76737         * tests/test-pread.sh: Likewise.
76738         * modules/pread-tests: Likewise.
76740         pread: new module
76741         * modules/pread: New file.
76742         * lib/unistd.in.h (pread): Define/declare.
76743         * lib/pread.c (pread): New file.
76744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76745         * modules/unistd (Makefile.am): Substitute witnesses.
76746         * doc/posix-functions/pread.texi (pread): Update.
76747         * MODULES.html.sh: Add pread.
76749 2009-11-25  Jim Meyering  <meyering@redhat.com>
76751         tests/init.sh: new file to be used via most *.sh tests
76752         * tests/init.sh: New file.
76754 2009-11-25  Eric Blake  <ebb9@byu.net>
76756         utimens: work around older Linux failure with symlinks
76757         * lib/utimens.c (lutimensat_works_really): New variable.
76758         (fdutimens, lutimens): Use it to manage kernels that support
76759         nanosecond times on files, but not on symlinks.
76760         Reported by Ondřej Vašík.
76762         utimes: fix configure grammar
76763         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76765 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76767         regex: Fix fastmap for multibyte character ranges.
76768         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76769         characters when a multibyte character range is included.
76771 2009-11-22  Andy Wingo  <wingo@pobox.com>
76773         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76774         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76776 2009-11-24  Bruno Haible  <bruno@clisp.org>
76778         doc: Most *_l functions exist in MacOS X 10.5.
76779         * doc/posix-functions/duplocale.texi: Update platforms list.
76780         * doc/posix-functions/freelocale.texi: Likewise.
76781         * doc/posix-functions/newlocale.texi: Likewise.
76782         * doc/posix-functions/uselocale.texi: Likewise.
76783         * doc/posix-functions/isalnum_l.texi: Likewise.
76784         * doc/posix-functions/isalpha_l.texi: Likewise.
76785         * doc/posix-functions/isblank_l.texi: Likewise.
76786         * doc/posix-functions/iscntrl_l.texi: Likewise.
76787         * doc/posix-functions/isdigit_l.texi: Likewise.
76788         * doc/posix-functions/isgraph_l.texi: Likewise.
76789         * doc/posix-functions/islower_l.texi: Likewise.
76790         * doc/posix-functions/isprint_l.texi: Likewise.
76791         * doc/posix-functions/ispunct_l.texi: Likewise.
76792         * doc/posix-functions/isspace_l.texi: Likewise.
76793         * doc/posix-functions/isupper_l.texi: Likewise.
76794         * doc/posix-functions/iswalnum_l.texi: Likewise.
76795         * doc/posix-functions/iswalpha_l.texi: Likewise.
76796         * doc/posix-functions/iswblank_l.texi: Likewise.
76797         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76798         * doc/posix-functions/iswctype_l.texi: Likewise.
76799         * doc/posix-functions/iswdigit_l.texi: Likewise.
76800         * doc/posix-functions/iswgraph_l.texi: Likewise.
76801         * doc/posix-functions/iswlower_l.texi: Likewise.
76802         * doc/posix-functions/iswprint_l.texi: Likewise.
76803         * doc/posix-functions/iswpunct_l.texi: Likewise.
76804         * doc/posix-functions/iswspace_l.texi: Likewise.
76805         * doc/posix-functions/iswupper_l.texi: Likewise.
76806         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76807         * doc/posix-functions/isxdigit_l.texi: Likewise.
76808         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76809         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76810         * doc/posix-functions/strcoll_l.texi: Likewise.
76811         * doc/posix-functions/strfmon_l.texi: Likewise.
76812         * doc/posix-functions/strftime_l.texi: Likewise.
76813         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76814         * doc/posix-functions/strxfrm_l.texi: Likewise.
76815         * doc/posix-functions/tolower_l.texi: Likewise.
76816         * doc/posix-functions/toupper_l.texi: Likewise.
76817         * doc/posix-functions/towctrans_l.texi: Likewise.
76818         * doc/posix-functions/towlower_l.texi: Likewise.
76819         * doc/posix-functions/towupper_l.texi: Likewise.
76820         * doc/posix-functions/wcscoll_l.texi: Likewise.
76821         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76822         * doc/posix-functions/wctrans_l.texi: Likewise.
76823         * doc/posix-functions/wctype_l.texi: Likewise.
76824         * doc/glibc-functions/strptime_l.texi: Likewise.
76825         * doc/glibc-functions/strtod_l.texi: Likewise.
76826         * doc/glibc-functions/strtof_l.texi: Likewise.
76827         * doc/glibc-functions/strtol_l.texi: Likewise.
76828         * doc/glibc-functions/strtold_l.texi: Likewise.
76829         * doc/glibc-functions/strtoll_l.texi: Likewise.
76830         * doc/glibc-functions/strtoul_l.texi: Likewise.
76831         * doc/glibc-functions/strtoull_l.texi: Likewise.
76832         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76833         * doc/glibc-functions/wcstod_l.texi: Likewise.
76834         * doc/glibc-functions/wcstof_l.texi: Likewise.
76835         * doc/glibc-functions/wcstol_l.texi: Likewise.
76836         * doc/glibc-functions/wcstold_l.texi: Likewise.
76837         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76838         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76839         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76841 2009-11-24  Bruno Haible  <bruno@clisp.org>
76843         duplocale: Fix logic bug.
76844         * lib/duplocale.c: Don't include <langinfo.h>.
76845         (_NL_LOCALE_NAME): Remove macro.
76846         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76847         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76849 2009-11-23  Jim Meyering  <meyering@redhat.com>
76851         test-update-copyright: don't hard-code /usr/bin/perl
76852         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76853         perl to print the current year.  Gilles Espinasse reported that
76854         the replaced use of perl was hard-coded as /usr/bin/perl.
76856 2009-11-23  Bruno Haible  <bruno@clisp.org>
76858         duplocale: Add support for glibc 2.3.x.
76859         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76861 2009-11-22  Bruno Haible  <bruno@clisp.org>
76863         vasnprintf: Tiny optimization.
76864         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76865         MacOS X.
76867 2009-11-22  Bruno Haible  <bruno@clisp.org>
76869         Tests for module 'duplocale'.
76870         * modules/duplocale-tests: New file.
76871         * tests/test-duplocale.c: New file.
76873         New module 'duplocale'.
76874         * m4/duplocale.m4: New file.
76875         * lib/locale.in.h (duplocale): New declaration.
76876         * lib/duplocale.c: New file.
76877         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76878         gl_LOCALE_H_DEFAULTS): New macros.
76879         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76880         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76881         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76882         REPLACE_DUPLOCALE.
76883         * modules/duplocale: New file.
76884         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76886 2009-11-22  Bruno Haible  <bruno@clisp.org>
76888         * modules/locale-tests (configure.ac): Test for newlocale function.
76889         * tests/test-locale.c: When the system has extended locale functions,
76890         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76892         locale: Make locale_t available when possible.
76893         * lib/locale.in.h: Include <xlocale.h> when it exists.
76894         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76895         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76896         * modules/locale (Depends-on): Add extensions.
76897         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76898         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76900 2009-11-22  Bruno Haible  <bruno@clisp.org>
76902         Add comments.
76903         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76904         invocation.
76905         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76906         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76907         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76909 2009-11-22  Bruno Haible  <bruno@clisp.org>
76911         error: account for the possibility of freopen (stdout).
76912         * lib/error.c: Include <unistd.h>.
76913         (flush_stdout): New function, extracted from error and error_at_line.
76914         Determine stdout's fd dynamically.
76915         (error, error_at_line): Invoke flush_stdout.
76916         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76917         * modules/error (Depends-on): Add unistd.
76919 2009-11-22  Bruno Haible  <bruno@clisp.org>
76921         diffseq: Add comment.
76922         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76924 2009-11-22  Jim Meyering  <meyering@redhat.com>
76926         c-stack: avoid defining an unused static function
76927         * lib/c-stack.c (find_stack_direction): Do not define this function
76928         when it will not be used.
76930         diffseq: avoid spurious gcc warnings
76931         * lib/diffseq.h (IF_LINT2): Define.
76932         (compareseq): Use it to initialize two members of "part".
76933         This avoids two used-uninitialized warnings.
76935 2009-11-21  Jim Meyering  <meyering@redhat.com>
76937         c-stack: avoid "ignoring return value of `write'" warning
76938         * lib/c-stack.c: Include "ignore-value.h".
76939         (die): Explicitly ignore each write return value.
76940         * modules/c-stack (Depends-on): Add ignore-value.
76942 2009-11-21  Bruno Haible  <bruno@clisp.org>
76944         diffseq: reduce scope of variable 'best'.
76945         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76946         variable, earlier used for two different purposes.
76948 2009-11-21  Jim Meyering  <meyering@redhat.com>
76950         diffseq: remove useless assignment to "best"
76951         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76952         assignment.  At that point "best" is already guaranteed to be zero.
76954 2009-11-20  Eric Blake  <ebb9@byu.net>
76956         build: mention ftp redirector in release announcements
76957         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76958         values that used to come from cfg.mk; mention FTP redirect URL.
76959         * build-aux/announce-gen: Mention the mirror list.
76960         Suggested by Karl Berry.
76962         nanosleep: improve port to mingw
76963         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76965         LIB_NANOSLEEP, but only when needed.
76966         * modules/select (Link): Document LIBSOCKET.
76967         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76968         enough.
76970         nanosleep: work around cygwin bug
76971         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76972         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76973         bug.
76974         (getnow): Delete, not needed.
76975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76976         LIB_CLOCK_GETTIME.
76977         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76978         clock-time, gettime.
76979         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76980         bug.
76981         * modules/nanosleep-tests: New test.
76982         * tests/test-nanosleep.c: New file.
76984         sleep: work around cygwin bug
76985         * lib/sleep.c (rpl_sleep): Work around the bug.
76986         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76987         (gl_PREREQ_SLEEP): Delete unused macro.
76988         * modules/sleep (Depends-on): Add verify.
76989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76990         * modules/unistd (Makefile.am): Substitute witness.
76991         * lib/unistd.in.h (sleep): Update prototype.
76992         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76993         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76994         * modules/sleep-tests (Depends-on): Check for alarm.
76996 2009-11-20  Jim Meyering  <meyering@redhat.com>
76998         maint.mk: improve sc_prohibit_magic_number_exit
76999         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
77000         so it does not match uses like System.exit(1).
77001         Add comments showing how to correct all offenders.
77003 2009-11-19  Eric Blake  <ebb9@byu.net>
77005         xalloc-die-tests: add missing library
77006         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
77008         test-xvasprintf: silence compiler warnings
77009         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
77010         empty string from gcc.
77012 2009-11-19  Jim Meyering  <meyering@redhat.com>
77014         xfreopen: new module, from coreutils
77015         * modules/xfreopen: New module.
77016         * lib/xfreopen.c: New file.
77017         * lib/xfreopen.h: New file.
77018         * MODULES.html.sh (File stream based Input/Output"): Add it.
77020 2009-11-19  Eric Blake  <ebb9@byu.net>
77022         manywarnings: depend on warnings
77023         * modules/manywarnings (Depends-on): Add warnings.
77025         build: avoid compiler warnings
77026         * lib/select.c (rpl_select): Delete unused variable.
77027         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
77029 2009-11-18  Eric Blake  <ebb9@byu.net>
77031         tests: avoid false negative with --with-packager
77032         * tests/test-version-etc.sh: Discard packager information.
77033         * tests/test-argp-version-etc-1.sh: Likewise.
77034         Reported by Mike Frysinger.
77036         utimens: fix regression on Solaris
77037         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
77038         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
77039         can only change fd timestamps via futimesat.  Instead, use an
77040         additional witness macro to avoid BSD bug.
77041         Reported by Jim Meyering.
77043 2009-11-17  Eric Blake  <ebb9@byu.net>
77045         usleep: use it to simplify tests
77046         * modules/stat-time-tests (Depends-on): Add usleep.
77047         (configure.ac): Drop usleep check.
77048         * modules/chown-tests (Depends-on, configure.ac): Likewise.
77049         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
77050         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
77051         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
77052         * modules/openat-tests (Depends-on, configure.ac): Likewise.
77053         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
77054         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
77055         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
77056         Likewise.
77057         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
77058         * tests/test-lchown.h (nap): Likewise.
77059         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
77060         * tests/test-stat-time.c (nap): Likewise.
77061         * tests/test-utimens-common.h (nap): Update comments.
77063         usleep: new module
77064         * modules/usleep: New file.
77065         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
77066         * lib/usleep.c (usleep): Likewise.
77067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
77068         * modules/unistd (Makefile.am): Substitute witnesses.
77069         * lib/unistd.in.h (usleep): Add declaration.
77070         * doc/pastposix-functions/usleep.texi (usleep): Document this.
77071         * MODULES.html.sh (Date and time): Likewise.
77072         * modules/usleep-tests (Depends-on): New test.
77073         * tests/test-usleep.c: New file.
77075         chown: work around OpenBSD bug
77076         * lib/chown.c (rpl_chown): Work around the bug.
77077         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
77078         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
77079         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
77080         * modules/chown (Depends-on): Add stdbool.
77081         * modules/lchown (Depends-on): Likewise.
77082         * doc/posix-functions/chown.texi (chown): Document the bug.
77083         * doc/posix-functions/lchown.texi (lchown): Likewise.
77084         * tests/test-lchown.h (test_chown): Relax test.
77086         mkstemp: avoid conflict with C++ keyword template
77087         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
77088         * lib/mkostemp.c (mkostemp): Likewise.
77089         * lib/mkostemps.c (mkostemps): Likewise.
77090         * lib/mkstemp.c (mkstemp): Likewise.
77091         * lib/mkstemps.c (mkstemps): Likewise.
77093         xalloc-die-tests: optimize
77094         * tests/test-xalloc-die.sh: Reduce number of processes.
77096 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77098         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
77099         patch from ludo@gnu.org (Ludovic Courtès).
77101 2009-11-17  Jim Meyering  <meyering@redhat.com>
77103         version-etc: use proper license string
77104         * modules/version-etc (License): Use LGPL, not LGPLv3+.
77105         * modules/version-etc-fsf: Likewise.
77107 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77109         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
77110         printed to stdout.  Deal with EOL differences.
77112 2009-11-17  Eric Blake  <ebb9@byu.net>
77114         unsetenv: work around Solaris bug
77115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
77116         * lib/unsetenv.c (rpl_unsetenv): Work around it.
77117         Reported by Jim Meyering.
77119         vasnprintf: avoid compiler warnings
77120         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
77121         variables.
77122         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
77124 2009-11-17  Simon Josefsson  <simon@josefsson.org>
77126         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
77127         settings since xalloc-die is no longer the self test,
77128         xalloc-die.sh is.
77130 2009-11-17  Jim Meyering  <meyering@redhat.com>
77132         test-xalloc-die.sh: make the code agree with the commit log
77133         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
77134         at the end, just in case you happen to have a test-xalloc-die
77135         program in some other PATH directory.
77137         test-xalloc-die.sh: fix a portability bug
77138         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
77139         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
77140         Otherwise, argv[0] (as often seen in diagnostics) would be too
77141         system-dependent, sometimes with, and sometimes without the leading "./".
77143         version-etc-fsf: relax license to LGPLv3+
77144         * modules/version-etc-fsf (License): Relax license.
77146 2009-11-16  Eric Blake  <ebb9@byu.net>
77148         xalloc-die-tests: avoid printing null pointer
77149         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
77150         shell script.
77151         * tests/test-xalloc-die.c (program_name): Declare.
77152         * tests/test-xalloc-die.sh (tmpfiles): New file.
77154         setenv, unsetenv: work around various bugs
77155         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
77156         (setenv) [HAVE_SETENV]: Work around bugs.
77157         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
77158         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
77159         for bugs.
77160         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
77161         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
77162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
77163         * modules/stdlib (Makefile.am): Update substitutions.
77164         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
77165         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
77166         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77167         * modules/setenv-tests: New test.
77168         * modules/unsetenv-tests: Likewise.
77169         * tests/test-setenv.c: New file.
77170         * tests/test-unsetenv.c: Likewise.
77172 2009-11-16  Jim Meyering  <meyering@redhat.com>
77174         version-etc: relax license to LGPLv3+
77175         * modules/version-etc (License): Relax license.
77177         better AC_REQUIRE expanded-before-required-warning avoidance
77178         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
77179         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
77180         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
77181         which is no longer needed.
77183 2009-11-16  Eric Blake  <ebb9@byu.net>
77185         test-freading: clean up temporary file
77186         * tests/test-freading.c (main): Remove file on success, and use
77187         ASSERT more liberally.
77188         Reported by Jim Meyering.
77190 2009-11-16  Jim Meyering  <meyering@redhat.com>
77192         avoid new AC_REQUIRE expanded-before-required warnings
77193         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
77194         merely using it.
77195         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
77196         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
77198 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77200         * tests/test-xalloc-die.c: New file.
77201         * modules/xalloc-die-tests: New file.
77202         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
77203         XFAIL_TESTS so it can be appended by modules.
77205 2009-11-15  Simon Josefsson  <simon@josefsson.org>
77207         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
77208         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
77210 2009-11-14  Eric Blake  <ebb9@byu.net>
77212         fnmatch: avoid compiler warning
77213         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
77214         to silence compiler warning about mismatch signedness in ?:.
77215         Reported by Robert Millan.
77217         intprops: add double-inclusion guard
77218         * lib/intprops.h: Allow idempotent includes.
77219         Suggested by Bruce Korb.
77221         openat: detect Solaris fchownat bug
77222         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
77223         penalizing glibc chownat when only lchownat is broken.
77224         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
77225         trailing slash bugs.
77226         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
77227         * modules/openat-tests (Files): Include more files.
77228         (Depends-on): Add mgetgroups, sleep, stat-time.
77229         (configure.ac): Add additional checks.
77230         (Makefile.am): Build new test.
77231         * tests/test-fchownat.c: New file.
77233         lchown: detect Solaris and FreeBSD bug
77234         * lib/lchown.c (rpl_lchown): Work around bug.
77235         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
77236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77237         * modules/unistd (Makefile.am): Populate it.
77238         * lib/unistd.in.h (lchown): Update declaration.
77239         * doc/posix-functions/lchown.texi (lchown): Document the bug.
77240         * modules/lchown-tests: New file.
77241         * tests/test-lchown.h (test_lchown): Likewise.
77242         * tests/test-lchown.c (main): Likewise.
77244         chown: detect Solaris and FreeBSD bug
77245         * lib/chown.c (rpl_chown): Work around bug.
77246         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
77247         (gl_PREREQ_CHOWN): Delete.
77248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77249         * modules/unistd (Makefile.am): Populate it.
77250         * lib/unistd.in.h (chown): Update declaration.
77251         * lib/lchown.c (chown): Update client.
77252         * modules/lchown (Depends-on): Add lstat.
77253         * doc/posix-functions/chown.texi (chown): Document the bug.
77254         * doc/posix-functions/getgroups.texi (getgroups): Document
77255         getgroups pitfall.
77256         * modules/chown-tests: New file.
77257         * tests/test-chown.h (test_chown): Likewise.
77258         * tests/test-chown.c (main): Likewise.
77260 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77262         gnulib-tool: correctly detect absence of m4 directories
77263         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77265 2009-11-14  Jim Meyering  <meyering@redhat.com>
77267         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77268         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77270 2009-11-14  John W. Eaton  <jwe@gnu.org>
77272         strftime.h: wrap function declaration in extern "C" block
77273         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77275 2009-11-13  Eric Blake  <ebb9@byu.net>
77277         getgroups: avoid compiler warning
77278         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77280         getgroups: work around FreeBSD bug
77281         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77282         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77283         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77284         * tests/test-getgroups.c (main): Fix buffer overrun.
77286         getgroups: avoid compilation failure
77287         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77288         * modules/getgroups (Depends-on): Add stdint.
77290 2009-11-13  Jim Meyering  <meyering@redhat.com>
77292         test-getgroups: avoid compilation failure
77293         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77295 2009-11-13  Eric Blake  <ebb9@byu.net>
77297         mgetgroups: new module, taken from coreutils
77298         * modules/mgetgroups: New file.
77299         * lib/mgetgroups.h: Likewise.
77300         * lib/mgetgroups.c (mgetgroups): Likewise.
77301         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77302         * MODULES.html.sh (Users and groups): Mention it.
77304         getgroups: don't expose GETGROUPS_T to user
77305         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77306         an element at a time if GETGROUPS_T is wrong size.
77307         * lib/getugroups.h (getugroups): Change signature.
77308         * lib/unistd.in.h (getgroups): Likewise.
77309         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77310         signature needs fixing.
77311         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77312         AC_TYPE_GETGROUPS.
77313         * modules/group-member (Depends-on): Add getgroups.
77314         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77315         (group_member): Rely on getgroups replacement.
77316         * lib/getugroups.c (getugroups): Use gid_t.
77317         * tests/test-getgroups.c (main): Likewise.
77318         * NEWS: Mention the signature change.
77319         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77320         problem with signature.
77321         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77322         GETGROUPS_T is still useful for setgroups.
77324         getgroups, getugroups: provide stubs for mingw
77325         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77326         * lib/getugroups.c (getugroups): Likewise.
77327         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77328         function.  Modernize replacement scheme.
77329         (gl_PREREQ_GETGROUPS): Delete.
77330         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77331         * modules/getgroups (configure.ac): Declare witness.
77332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77333         * modules/unistd (Depends-on): Substitute witness.
77334         * lib/unistd.in.h (getgroups): Declare replacement.
77336         getgroups: avoid calling exit
77337         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77338         drop xalloc.
77339         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77340         dependencies.
77341         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77342         exiting, in the rare case of malloc failure.
77344         getgroups: fix logic error
77345         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77346         has more than 20 groups.
77347         * modules/getgroups-tests: New test.
77348         * tests/test-getgroups.c: New file.
77350 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77352         * tests/test-base64.c: Improve.
77354 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77356         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77357         Blake <ebb9@byu.net>.
77359 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77361         * tests/test-xvasprintf.c: Add %s%s related checks.
77363 2009-11-12  Eric Blake  <ebb9@byu.net>
77365         version-etc: match standards.texi style
77366         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77367         and use <> only for URLs.
77369 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77371         fts: do not fail on a submount during traversal
77372         * lib/fts.c (fts_build): Read the stat info again after opening
77373         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77374         Original report at http://bugzilla.redhat.com/501848.
77376 2009-11-12  Jim Meyering  <meyering@redhat.com>
77378         bootstrap: sync from coreutils
77379         * build-aux/bootstrap (bootstrap_epilogue): New function.
77380         Use git_modules_config in one more place.  This make bootstrap's
77381         --gnulib-srcdir option more useful for testing.
77383         bootstrap: generalize autoheader check
77384         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77385         AC_CONFIG_HEADERS.
77387 2009-11-11  Eric Blake  <ebb9@byu.net>
77389         mkfifoat: use new modules for Solaris and BSD bugs
77390         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77391         * lib/mkfifoat.c (mknodat): Split...
77392         * lib/mknodat.c (mknodat): ...into new file.
77393         * modules/mkfifoat (Files): Ship new file.
77394         (Depends-on): Add mkfifo, mknod.
77395         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77396         (Depends-on): Add symlink.
77397         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77398         redundant with test_mkfifo.h.
77399         (do_mkfifoat, do_mknodat): New helpers.
77401         mknod: new module
77402         * modules/mknod: New file.
77403         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77404         * lib/mknod.c (mknod): Likewise.
77405         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77406         defaults.
77407         * modules/sys_stat (Makefile.am): Substitute them.
77408         * lib/sys_stat.in.h (mknod): Declare replacement.
77409         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77410         Document it.
77411         * doc/posix-functions/mknod.texi (mknod): Likewise.
77412         * modules/mknod-tests: New test.
77413         * tests/test-mknod.c: Likewise.
77415         mkfifo: new module
77416         * modules/mkfifo: New file.
77417         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77418         * lib/mkfifo.c (mkfifo): Likewise.
77419         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77420         defaults.
77421         * modules/sys_stat (Makefile.am): Substitute them.
77422         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77423         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77424         Document it.
77425         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77426         * modules/mkfifo-tests: New test.
77427         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77428         from test-mkfifoat.c.
77429         * tests/test-mkfifo.c: New file.
77431         readlink: detect FreeBSD bug
77432         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77433         slash on symlink.
77434         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77435         * tests/test-readlink.h (test_readlink): Enhance test.
77437         symlink: detect FreeBSD bug
77438         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77439         slash on symlink.
77440         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77441         * tests/test-symlink.h (test_symlink): Enhance test.
77443 2009-11-10  Eric Blake  <ebb9@byu.net>
77445         link: detect FreeBSD bug
77446         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77447         symlink.
77448         * doc/posix-functions/link.texi (link): Document the bug.
77449         * tests/test-link.h (test_link): Enhance test.
77450         * tests/test-linkat.c (main): Update caller.
77452         unlink, remove: detect FreeBSD bug
77453         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77454         slash on symlink.
77455         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77456         * doc/posix-functions/remove.texi (remove): Likewise.
77457         * tests/test-unlink.h (test_unlink): Enhance test.
77458         * tests/test-remove.c (main): Likewise.
77460 2009-11-09  Eric Blake  <ebb9@byu.net>
77462         rename: detect FreeBSD bug
77463         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77464         slash on symlink.
77465         * modules/renameat-tests (Depends-on): Add filenamecat.
77466         * tests/test-rename.h (test_rename): Allow one more errno.
77467         * tests/test-renameat.c (main): Likewise.
77468         * doc/posix-functions/rename.texi (rename): Document the bug.
77470         open: detect FreeBSD bug
77471         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77472         symlink.
77473         * doc/posix-functions/open.texi (open): Document the bug.
77474         * doc/posix-functions/utimes.texi (utimes): Likewise.
77475         * tests/test-open.h (test_open): Add parameters, and test symlink
77476         handling.
77477         * tests/test-open.c (main): Adjust caller.
77478         * tests/test-fcntl-safer.c (main): Likewise.
77479         * modules/open-tests (Depends-on): Add stdbool, symlink.
77480         * modules/fcntl-safer-tests (Depends-on): Likewise.
77481         * tests/test-openat.c (main): Add test-open tests.
77483         stat: detect FreeBSD bug
77484         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77485         symlink.
77486         * doc/posix-functions/stat.texi (stat): Document the bug.
77487         * tests/test-stat.h (test_stat_func): Add argument.
77488         * tests/test-stat.c (main): Adjust caller.
77489         * tests/test-fstatat.c (main): Likewise.
77490         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77491         Reported by Jim Meyering.
77493 2009-11-09  James Youngman  <jay@gnu.org>
77495         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77496         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77498 2009-11-08  Jim Meyering  <meyering@redhat.com>
77500         utimens: remove invalid futimesat call
77501         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77502         It used the file descriptor of the target file as the DIR_FD
77503         parameter and NULL as the file name.  That caused failure with
77504         errno == EFAULT on FreeBSD-8.0-rc2
77506 2009-11-07  Eric Blake  <ebb9@byu.net>
77508         fflush, freadseek: use fseeko, not fseek
77509         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77510         (clear_ungetc_buffer): Avoid potential problems on large files.
77511         * lib/freadseek.c (freadseek): Likewise.
77512         * modules/freadseek (Depends-on): Add fseeko.
77513         * modules/fseek (configure.ac): Set a witness.
77514         * tests/test-fflush.c (main): Use fseeko.
77515         * tests/test-fpurge.c (fseek): Disable link warning.
77516         * tests/test-freadable.c (fseek): Likewise.
77517         * tests/test-freading.c (fseek): Likewise.
77518         * tests/test-fseeko.c (fseek): Likewise.
77519         * tests/test-ftell.c (fseek): Likewise.
77520         * tests/test-ftello.c (fseek): Likewise.
77521         * tests/test-fwritable.c (fseek): Likewise.
77522         * tests/test-fwriting.c (fseek): Likewise.
77524 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77526         * modules/memchr (Depends-on): Drop getpagesize dependency.
77528 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77530         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77531         Reported by Ludovic Courtès.
77532         * build-aux/pmccabe2html: Improve example usage.
77533         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77535 2009-11-06  Jim Meyering  <meyering@redhat.com>
77537         do-release-commit-and-tag: New module.
77538         Automate the release-commit and tag process.
77539         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77540         * modules/do-release-commit-and-tag: New file.
77541         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77543 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77545         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77546         because test-select.c uses inet_pton.
77548 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77550         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77551         GETADDRINFO_LIB.  Bump serial number.
77552         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77553         Suggested by Eric Blake <ebb9@byu.net>.
77555 2009-11-05  Eric Blake  <ebb9@byu.net>
77557         strtod: detect darwin bug
77558         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77559         Reported by Leo Davis.
77561         freopen-safer: new module
77562         * modules/freopen-safer: New module.
77563         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77564         * lib/freopen-safer.c (freopen_safer): New file.
77565         * lib/stdio-safer.h (freopen_safer): New declaration.
77566         * lib/stdio--.h (freopen): New override.
77567         * MODULES.html.sh (File stream based Input/Output): Mention it.
77568         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77569         freopen-safer module.
77570         * doc/posix-functions/stderr.texi (stderr): Likewise.
77571         * doc/posix-functions/stdin.texi (stdin): Likewise.
77572         * doc/posix-functions/stdout.texi (stdout): Likewise.
77573         * modules/freopen-safer-tests: New test.
77574         * tests/test-reopen-safer.c: New file.
77576 2009-11-05  Jim Meyering  <meyering@redhat.com>
77578         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77579         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77581 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77583         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77585 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77587         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77589 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77591         Fix link error.
77592         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77593         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77595 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77597         * tests/test-func.c: Also test value of __func__.
77599 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77601         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77602         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77604 2009-11-05  Bruno Haible  <bruno@clisp.org>
77606         Fix link error.
77607         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77608         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77609         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77611 2009-11-05  Bruno Haible  <bruno@clisp.org>
77613         Tests for module 'inet_pton'.
77614         * modules/inet_pton-tests: New file.
77615         * tests/test-inet_pton.c: New file.
77617 2009-11-05  Bruno Haible  <bruno@clisp.org>
77619         Tests for module 'inet_ntop'.
77620         * modules/inet_ntop-tests: New file.
77621         * tests/test-inet_ntop.c: New file.
77623 2009-11-04  Eric Blake  <ebb9@byu.net>
77625         stdlib-safer: wrap all mkstemp variants
77626         * modules/mkostemp (configure.ac): Set witness.
77627         * modules/mkostemps (configure.ac): Likewise.
77628         * modules/mkstemps (configure.ac): Likewise.
77629         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77630         (mkstemps_safer): Wrap more functions.
77631         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77632         wrapping.
77633         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77634         (mkstemps_safer): Implement the wrappers.
77636         mkstemps, mkostemps: new modules
77637         * modules/mkostemps: New module.
77638         * modules/mkstemps: Likewise.
77639         * lib/mkostemps.c (mkostemps): New file.
77640         * lib/mkstemps.c (mkstemps): Likewise.
77641         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77642         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77644         * modules/stdlib (Makefile.am): Substitute them.
77645         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77646         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77647         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77648         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77649         * MODULES.html.sh (File system functions): Mention them.
77651         tempname: resync from glibc
77652         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77653         same values for __GT_FILE as glibc.  Abort even when assertions
77654         are disabled.
77655         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77656         match its value otherwise.  Allow idempotent inclusion.
77657         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77658         * lib/mkostemp.c (mkostemp): Likewise.
77659         * lib/mkstemp.c (mkstemp): Likewise.
77660         * lib/tmpfile.c (tmpfile): Likewise.
77661         * NEWS: Document this.
77663         utimens: fix use of futimens on older Linux
77664         * lib/utimens.c (fdutimens): Use updated, rather than original,
77665         timespec to avoid bug in older Linux kernel.
77666         Reported by Simon Josefsson.
77668 2009-11-04  Bruno Haible  <bruno@clisp.org>
77670         Make num_processors more flexible and consistent.
77671         * lib/nproc.h (enum nproc_query): New type.
77672         (num_processors): Add a 'query' argument.
77673         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77674         (num_processors): Add a 'query' argument. Test the value of the
77675         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77676         mingw, count the number of CPUs available for the current process.
77677         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77678         Check for sched_getaffinity and sched_getaffinity_np.
77679         * modules/nproc (Depends-on): Add c-ctype, extensions.
77680         * NEWS: Mention the change.
77682 2009-11-03  Bruno Haible  <bruno@clisp.org>
77684         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77686 2009-11-03  Jim Meyering  <meyering@redhat.com>
77688         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77689         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77690         if it is defined.
77692 2009-11-02  Eric Blake  <ebb9@byu.net>
77694         mktime, timegm: share common declaration
77695         * lib/mktime-internal.h: New file.
77696         * lib/mktime.c: Use it rather than open-coding a declaration.
77697         * lib/timegm.c: Likewise.
77698         * modules/mktime (Files): Ship it.
77699         * modules/timegm (Files): Likewise.
77700         Suggested by Bruno Haible.
77702         test-update-copyright: update test to match script changes
77703         * tests/test-update-copyright.sh: Avoid hard-coding perl
77704         location.  Don't update *.bak created by earlier runs.
77706 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77707             Simon Josefsson  <simon@josefsson.org>
77708             Bruno Haible  <bruno@clisp.org>
77710         Fix link error on Solaris 8.
77711         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77712         also in libnsl. Define also INET_PTON_LIB.
77713         * modules/inet_pton (Link): New section.
77715 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77716             Bruno Haible  <bruno@clisp.org>
77718         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77719         * modules/inet_ntop (Link): New section.
77720         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77722 2009-11-02  Eric Blake  <ebb9@byu.net>
77724         maint: avoid compiler warnings in m4 macros
77725         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77726         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77728 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77730         * m4/pmccabe2html.m4: Remove file.
77731         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77732         function.  Change maintainer.
77733         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77734         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77735         Courtès).
77737 2009-10-31  Eric Blake  <ebb9@byu.net>
77739         fseeko: fix m4 regression
77740         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77741         regression from 2009-10-27.
77742         Reported by Ralf Wildenhues.
77744 2009-10-31  Jim Meyering  <meyering@redhat.com>
77746         inttostr: aesthetics and improved (compile-time) safety
77747         Define inttype_is_signed rather than inttype_is_unsigned,
77748         since the sole use is via "#if inttype_is_signed".
77749         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77750         inttype_is_unsigned.
77751         * lib/offtostr.c (inttype_is_signed): Likewise.
77752         * lib/uinttostr.c (inttype_is_signed): Likewise.
77753         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77754         * lib/inttostr.c (inttostr): Use verify to cross-check the
77755         inttype_is_signed value and the signedness of the actual type.
77756         * modules/inttostr (Depends-on): Add verify.
77758 2009-10-30  Eric Blake  <ebb9@byu.net>
77760         build: avoid compiler warnings
77761         * lib/fchmodat.c (lchmod): Mark unused variables.
77762         * lib/getopt.c (_getopt_initialize): Likewise.
77763         * lib/mktime.c (__mktime_internal): Provide prototype.
77764         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77765         older gcc that do not understand #pragma GCC diagnostic.
77766         * lib/uinttostr.c (inttype_is_unsigned): Define.
77767         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77769 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77771         stat: fix compilation on AIX
77772         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77773         only see struct stat64.
77775 2009-10-30  Eric Blake  <ebb9@byu.net>
77777         exclude: make more robust
77778         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77779         rather than masking a coding bug.
77780         Suggested by Bruno Haible.
77782 2009-10-30  Jim Meyering  <meyering@redhat.com>
77784         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77785         Rather than putting #!/usr/bin/perl on the first line,
77786         start with a variant of what's recommended by "man perlrun" that
77787         invokes the first "perl" program from your shell's search path.
77788         * build-aux/gitlog-to-changelog: Replace #!... as above.
77789         Add a "Local Variables" perl mode setting.
77790         Prompted by a patch from Ludovic Courtès.
77791         Improved by Eric Blake.
77792         * build-aux/useless-if-before-free: Likewise.
77793         * build-aux/announce-gen: Likewise.
77794         * build-aux/update-copyright: Likewise.
77796 2009-10-29  Eric Blake  <ebb9@byu.net>
77798         filenamecat-lgpl: adjust clients
77799         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77800         filenamecat.
77801         * modules/renameat (Depends-on): Likewise.
77803         filenamecat: split into filenamecat-lgpl
77804         * modules/filenamecat-lgpl: New module.
77805         * modules/filenamecat (Files): Move library-safe files into
77806         filenamecat-lgpl.
77807         (Depends-on): Add filenamecat-lgpl.
77808         (configure.ac): Declare witness.
77809         * lib/filenamecat.h (file_name_concat): Only declare when using
77810         GPL module.
77811         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77812         Move...
77813         * lib/filenamecat-lgpl.c: ...into new file.
77814         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77815         (gl_FILE_NAME_CONCAT): Use it.
77816         * MODULES.html.sh (File system functions): Mention new module.
77818         argp: avoid memory leak
77819         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77820         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77821         base_name, since the latter malloc()s and can call exit().
77822         Leak introduced 2006-07-03.
77824         dirname-lgpl: adjust clients that don't need full dirname
77825         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77826         * modules/filenamecat (Depends-on): Likewise.
77827         * modules/linkat (Depends-on): Likewise.
77828         * modules/mkancesdirs (Depends-on): Likewise.
77829         * modules/mkdir (Depends-on): Likewise.
77830         * modules/openat (Depends-on): Likewise.
77831         * modules/savewd (Depends-on): Likewise.
77832         * modules/rename (Depends-on): Likewise.
77833         (License): Relax license.
77834         * modules/mkdir-tests (Depends-on): Drop progname.
77835         (Makefile.am): Delete unneeded LDADD.
77836         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77838         dirname: split into dirname-lgpl
77839         * modules/dirname-lgpl: New module.
77840         * modules/dirname (Files): Move library-safe files into
77841         dirname-lgpl.
77842         (Depends-on): Add dirname-lgpl.
77843         (configure.ac): Declare witness.
77844         * modules/double-slash-root (License): Relax license.
77845         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77846         module.
77847         * lib/dirname.c (dir_len, mdir_name): Move...
77848         * lib/dirname-lgpl.c: ...into new file.
77849         * lib/basename.c (last_component, base_len): Move...
77850         * lib/basename-lgpl.c: ...into new file.
77851         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77852         (gl_DIRNAME): Use it.
77853         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77854         Mention new module.
77855         * modules/dirname-tests (Depends-on): Add progname.
77856         * tests/test-dirname.c (program_name): Delete.
77858         mkdir: make safe for libraries
77859         * modules/mkdir (Depends-on): Drop xalloc.
77860         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77861         exit.
77863         tests: avoid some compiler warnings
77864         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77865         literals.
77866         * tests/test-memchr.c (main): Avoid type mismatch.
77867         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77868         * tests/test-base64.c (main): Likewise.
77869         * tests/test-getdelim.c (main): Likewise.
77870         * tests/test-gethostname.c (main): Likewise.
77871         * tests/test-getline.c (main): Likewise.
77872         * tests/test-netinet_in.c (main): Likewise.
77873         * tests/test-select.c (open_server_socket, main): Likewise.
77874         * tests/test-select-stdin.c (main): Likewise.
77875         * tests/test-sockets.c (main): Likewise.
77876         * tests/test-strsignal.c (main): Likewise.
77877         * tests/test-sys_select.c (main): Likewise.
77878         * tests/test-sys_socket.c (main): Likewise.
77879         * tests/test-u64.c (main): Likewise.
77880         * tests/test-xfprintf-posix.c (main): Likewise.
77881         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77883         sockets: avoid compiler warning
77884         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77886         maint: detect usage(1) and other suspicious exits
77887         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77889 2009-10-29  Jim Meyering  <meyering@redhat.com>
77891         timespec: long-to-int truncation could make timespec_cmp malfunction
77892         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77893         a multiple of 2^32 nanoseconds as no difference.
77895 2009-10-28  Jim Meyering  <meyering@redhat.com>
77897         fprintftime: wrap macro code argument in "do {...} while(0)"
77898         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77899         cpy macro must be a statement that can be followed by a semicolon.
77900         Now that the else clause contains a comment and is hence longer
77901         than one line, I require curly braces.  That in turn requires
77902         that we wrap this code block in the standard do...while(0).
77904         fprintftime: remove stray semicolon from previous change
77905         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77907         fprintftime: avoid a warning about ignored fwrite return value
77908         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77909         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77910         that is unsafe.
77911         * modules/fprintftime (Depends-on): Add ignore-value.
77913         exclude: avoid an unwarranted warning
77914         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77916 2009-10-27  Eric Blake  <ebb9@byu.net>
77918         fseek: avoid compilation failure when fflush is replaced
77919         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77920         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77921         module is in use.
77922         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77923         module is not in use; since REPLACE_FSEEK worked otherwise.
77924         (GNULIB_FTELLO): Likewise for ftell.
77925         Reported by Ian Beckwith and others.
77927 2009-10-27  Bruno Haible  <bruno@clisp.org>
77929         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77930         Reported by Jim Meyering.
77932 2009-10-27  Jim Meyering  <jim@meyering.net>
77933             Bruno Haible  <bruno@clisp.org>
77935         Avoid warning despite dropping the return value of fwrite.
77936         * lib/unicodeio.c: Include ignore-value.h.
77937         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77938         * modules/unicodeio (Depends-on): Add ignore-value.
77940 2009-10-26  Eric Blake  <ebb9@byu.net>
77942         areadlinkat: fix fallback path
77943         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77944         pointer and zero.
77946 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77948         Use a better IO block size for modern systems
77949         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77950         * lib/md2.c: Likewise.
77951         * lib/md4.c: Likewise.
77952         * lib/md5.c: Likewise.
77953         * lib/sha1.c: Likewise.
77954         * lib/sha256.c: Likewise.
77955         * lib/sha512.c: Likewise.
77957 2009-10-22  Eric Blake  <ebb9@byu.net>
77959         tests: avoid several compiler warnings
77960         * tests/test-getcwd.c (main): Avoid buffer underflow.
77961         * tests/test-getdate.c (main): String literals are not safe with
77962         putenv, so use setenv.  Declare unused argument.
77963         * modules/getdate-tests (Depends-on): Add setenv.
77964         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77965         problems with string literals in char *.
77966         * tests/test-hash.c (main): Avoid shadowing declaration.
77967         (insert_new): Treat string literals as char const *.
77968         * tests/test-getopt.h (test_getopt): Likewise.
77969         (getopt_loop): Alter types to minimize casting elsewhere.
77970         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77971         (test_getopt_long_posix): Likewise.
77972         (do_getopt_long): Add wrapper to minimize casting.
77973         * tests/test-atexit.c (clear_temp_file): Use void.
77974         * tests/test-areadlink-with-size.c (main): Declare unused
77975         arguments.
77976         * tests/test-areadlink.c (main): Likewise.
77977         * tests/test-areadlinkat-with-size.c (main): Likewise.
77978         * tests/test-areadlinkat.c (main): Likewise.
77979         * tests/test-canonicalize-lgpl.c (main): Likewise.
77980         * tests/test-canonicalize.c (main): Likewise.
77981         * tests/test-dirent-safer.c (main): Likewise.
77982         * tests/test-dirname.c (main): Likewise.
77983         * tests/test-dup2.c (main): Likewise.
77984         * tests/test-fchdir.c (main): Likewise.
77985         * tests/test-fcntl-h.c (main): Likewise.
77986         * tests/test-fcntl-safer.c (main): Likewise.
77987         * tests/test-fdopendir.c (main): Likewise.
77988         * tests/test-fdutimensat.c (main): Likewise.
77989         * tests/test-fflush.c (main): Likewise.
77990         * tests/test-filenamecat.c (main): Likewise.
77991         * tests/test-filevercmp.c (main): Likewise.
77992         * tests/test-fopen-safer.c (main): Likewise.
77993         * tests/test-fopen.c (main): Likewise.
77994         * tests/test-fpending.c (main): Likewise.
77995         * tests/test-fpurge.c (main): Likewise.
77996         * tests/test-freading.c (main): Likewise.
77997         * tests/test-fstatat.c (main): Likewise.
77998         * tests/test-fsync.c (main): Likewise.
77999         * tests/test-futimens.c (main): Likewise.
78000         * tests/test-getndelim2.c (main): Likewise.
78001         * tests/test-gettimeofday.c (main): Likewise.
78002         * tests/test-getopt.c (main): Likewise.
78003         * tests/test-i-ring.c (main): Likewise.
78004         * tests/test-inttypes.c (main): Likewise.
78005         * tests/test-link.c (main): Likewise.
78006         * tests/test-lstat.c (main): Likewise.
78007         * tests/test-math.c (main): Likewise.
78008         * tests/test-md5.c (main): Likewise.
78009         * tests/test-memchr2.c (main): Likewise.
78010         * tests/test-memrchr.c (main): Likewise.
78011         * tests/test-mkdir.c (main): Likewise.
78012         * tests/test-mkdirat.c (main): Likewise.
78013         * tests/test-mkfifoat.c (main): Likewise.
78014         * tests/test-open.c (main): Likewise.
78015         * tests/test-openat-safer.c (main): Likewise.
78016         * tests/test-openat.c (main): Likewise.
78017         * tests/test-quotearg.c (main): Likewise.
78018         * tests/test-rawmemchr.c (main): Likewise.
78019         * tests/test-readlink.c (main): Likewise.
78020         * tests/test-remove.c (main): Likewise.
78021         * tests/test-rename.c (main): Likewise.
78022         * tests/test-renameat.c (main): Likewise.
78023         * tests/test-rmdir.c (main): Likewise.
78024         * tests/test-sha1.c (main): Likewise.
78025         * tests/test-signal.c (main): Likewise.
78026         * tests/test-sigaction.c (main): Likewise.
78027         * tests/test-stat.c (main): Likewise.
78028         * tests/test-stat-time.c (main): Likewise.
78029         * tests/test-stddef.c (main): Likewise.
78030         * tests/test-stdint.c (main): Likewise.
78031         * tests/test-stdio.c (main): Likewise.
78032         * tests/test-stdlib.c (main): Likewise.
78033         * tests/test-strchrnul.c (main): Likewise.
78034         * tests/test-strerror.c (main): Likewise.
78035         * tests/test-string.c (main): Likewise.
78036         * tests/test-strtod.c (main): Likewise.
78037         * tests/test-strverscmp.c (main): Likewise.
78038         * tests/test-symlink.c (main): Likewise.
78039         * tests/test-symlinkat.c (main): Likewise.
78040         * tests/test-sys_stat.c (main): Likewise.
78041         * tests/test-sys_time.c (main): Likewise.
78042         * tests/test-time.c (main): Likewise.
78043         * tests/test-unistd.c (main): Likewise.
78044         * tests/test-unlink.c (main): Likewise.
78045         * tests/test-unlinkat.c (main): Likewise.
78046         * tests/test-utimens.c (main): Likewise.
78047         * tests/test-utimensat.c (main): Likewise.
78048         * tests/test-version-etc.c (main): Likewise.
78049         * tests/test-wchar.c (main): Likewise.
78050         * tests/test-wctype.c (main): Likewise.
78051         * tests/test-xprintf-posix.c (main): Likewise.
78052         * tests/test-posixtm.c (main): Likewise.
78053         (STREQ): Delete unused macro.
78054         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
78055         shadowed variables.
78056         * tests/test-memchr.c (main): Likewise.
78058 2009-10-21  Eric Blake  <ebb9@byu.net>
78060         areadlinkat: avoid failure on older glibc
78061         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
78062         rather than mis-comparing 0 against FUNC_RESULT of char*.
78064 2009-10-21  Bruno Haible  <bruno@clisp.org>
78066         * modules/stpncpy (License): Relicense under LGPLv2+.
78067         Reported by David Lutterkort <lutter@redhat.com>.
78069 2009-10-20  Eric Blake  <ebb9@byu.net>
78071         utimensat: work around Solaris 9 bug
78072         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
78073         has trailing slash bugs.
78074         * tests/test-lutimens.h (test_lutimens): Enhance test.
78075         * tests/test-utimens.h (test_utimens): Likewise.
78076         * doc/posix-functions/utime.texi (utime): Enhance documentation.
78077         * doc/posix-functions/utimes.texi (utimes): Likewise.
78078         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78079         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
78080         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
78081         * doc/posix-functions/futimens.texi (futimens): Likewise.
78083         fdutimensat: new module
78084         * modules/fdutimensat: New file.
78085         * lib/fdutimensat.c (fdutimensat): Likewise.
78086         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
78087         * MODULES.html.sh (File system functions): Mention module.
78088         * modules/fdutimensat-tests: New test.
78089         * tests/test-fdutimensat.c: Likewise.
78091         doc: regenerate INSTALL
78092         * doc/INSTALL: Reflect recent autoconf update.
78093         * doc/INSTALL.ISO: Likewise.
78094         * doc/INSTALL.UTF-8: Likewise.
78096 2009-10-20  Pádraig Brady  <P@draigBrady.com>
78098         acl: warn if ACL support is not detected
78099         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
78101 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
78103         * lib/nproc.h: Add extern "C" block for C++.
78105 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
78106             Bruno Haible  <bruno@clisp.org>
78108         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
78109         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
78110         * doc/posix-functions/isalpha.texi: Likewise.
78111         * doc/posix-functions/isblank.texi: Likewise.
78112         * doc/posix-functions/iscntrl.texi: Likewise.
78113         * doc/posix-functions/isdigit.texi: Likewise.
78114         * doc/posix-functions/isgraph.texi: Likewise.
78115         * doc/posix-functions/islower.texi: Likewise.
78116         * doc/posix-functions/isprint.texi: Likewise.
78117         * doc/posix-functions/ispunct.texi: Likewise.
78118         * doc/posix-functions/isspace.texi: Likewise.
78119         * doc/posix-functions/isupper.texi: Likewise.
78120         * doc/posix-functions/isxdigit.texi: Likewise.
78122 2009-10-18  Bruno Haible  <bruno@clisp.org>
78124         Tests for module 'isblank'.
78125         * modules/isblank-tests: New file.
78126         * tests/test-isblank.c: New file.
78128         New module 'isblank'.
78129         * lib/isblank.c: New file.
78130         * m4/isblank.m4: New file.
78131         * modules/isblank: New file.
78132         * doc/posix-functions/isblank.texi: Mention the new module.
78134 2009-10-18  Bruno Haible  <bruno@clisp.org>
78136         New module 'ctype'.
78137         * lib/ctype.in.h: New file.
78138         * m4/ctype.m4: New file.
78139         * modules/ctype: New file.
78140         * doc/posix-headers/ctype.texi: Mention the new module.
78142 2009-10-18  Jim Meyering  <meyering@redhat.com>
78144         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
78145         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
78146         right after its initialization, rather than farther down.
78147         Keeping these in close proximity makes it easier to ensure
78148         that each such variable is initialized.  E.g.,
78150             LIB_CLOCK_GETTIME=
78151             AC_SUBST([LIB_CLOCK_GETTIME])
78153         This change also increments these serial numbers.
78154         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
78155         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78158 2009-10-18  Bruno Haible  <bruno@clisp.org>
78160         Don't let environment variables perturb build.
78161         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
78162         (gl_PREREQ_GETHRXTIME): ... not here.
78164 2009-10-18  Bruno Haible  <bruno@clisp.org>
78166         Avoid symlink attack in localcharset module.
78167         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
78168         (O_NOFOLLOW): Define fallback.
78169         (get_charset_aliases): Don't open the file if it is a symbolic link.
78170         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
78171         gl_FCNTL_H.
78172         (gl_FCNTL_H): Require it.
78173         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
78174         * modules/localcharset (Files): Add m4/fcntl_h.m4.
78175         Reported by Fergal Glynn <fglynn@veracode.com>.
78177 2009-10-18  Bruno Haible  <bruno@clisp.org>
78179         Implement nproc for mingw.
78180         * lib/nproc.c: Include <windows.h>
78181         (num_processors): On native Windows platforms, try GetSystemInfo.
78183 2009-10-18  Bruno Haible  <bruno@clisp.org>
78185         Implement nproc for IRIX.
78186         * lib/nproc.c: Include <sys/sysmp.h>.
78187         (num_processors): On IRIX systems, try sysmp.
78188         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
78190 2009-10-18  Bruno Haible  <bruno@clisp.org>
78192         Implement nproc for HP-UX.
78193         * lib/nproc.c: Include <sys/pstat.h>
78194         (num_processors): On HP-UX systems, try pstat_getdynamic.
78195         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
78196         pstat_getdynamic.
78198 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
78199             Bruno Haible  <bruno@clisp.org>
78201         Implement nproc for NetBSD, OpenBSD.
78202         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
78203         (ARRAY_SIZE): New macro.
78204         (num_processors): On BSD systems, try sysctl of HW_NCPU.
78205         * m4/nproc.m4: New file.
78206         * modules/nproc (Files): Add m4/nproc.m4.
78207         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
78208         (Makefile.am): Instead, augment lib_SOURCES.
78210 2009-10-18  Bruno Haible  <bruno@clisp.org>
78212         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
78213         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
78214         sys/param.h.
78216 2009-10-16  Eric Blake  <ebb9@byu.net>
78218         utimensat: new module
78219         * modules/utimensat: New file.
78220         * lib/utimensat.c (utimensat): Likewise.
78221         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
78222         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
78223         so we can work around Linux bugs.
78224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78225         * modules/sys_stat (Makefile.am): Substitute them.
78226         * lib/sys_stat.in.h (utimensat): Declare it.
78227         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78228         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78229         * modules/utimensat-tests: New test.
78230         * tests/test-utimensat.c: Likewise.
78232         utimens: let lutimens work on non-symlinks
78233         * lib/utimens.c (lutimens): Fall back to utimens rather than
78234         failing with ENOSYS, when file is not a symlink.
78235         (utimens): Reduce redirection.
78236         * tests/test-lutimens.h (test_lutimens): Update test to cover
78237         non-symlinks.
78238         * tests/test-utimens.h (test_utimens): Update test to cover
78239         symlinks.
78240         * tests/test-utimens.c (main): Update caller.
78242         utimens: cache whether utimensat syscall works
78243         * lib/utimens.c (utimensat_works_really): New cache variable.
78244         (fdutimens, lutimens): Use it to avoid failing syscall.
78246         test-stat-time, test-utimens: improve portability
78247         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
78248         ext4 on alpha, and for cygwin.
78249         * tests/test-utimens-common.h: New file.
78250         (nap): Factor delays into single function.
78251         * tests/test-lutimens.h (test_lutimens): Use new header.
78252         * tests/test-futimens.h (test_futimens): Likewise.
78253         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78254         timestamps to occur from same machine, as was done previously for
78255         test_utimens.
78256         * modules/utimens-tests (Files): Ship new file.
78257         * modules/futimens-tests (Files): Likewise.
78258         Reported in part by Jim Meyering.
78260         sys_stat: sort replacement declarations
78261         * lib/sys_stat.in.h: Sort declarations.
78262         * lib/futimens.c (futimens): Fix typo.
78264 2009-10-15  Jim Meyering  <meyering@redhat.com>
78266         don't let environment settings perturb build
78267         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78268         could cause a configure-time and/or build-time malfunction.
78269         Typically, a configure-time function-in-library test is performed
78270         via code like this:
78272           LIB_VAR=
78273           AC_SUBST([LIB_VAR])
78274           prefix_saved_LIBS=$LIBS
78275             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78276                        [test "$ac_cv_search_FUNC" = "none required" ||
78277                         LIB_VAR=$ac_cv_search_FUNC])
78278           LIBS=$prefix_saved_LIBS
78280         However, in each of the files affected by this change, the LIB_VAR=
78281         initialization was omitted.  Thus, when set in the environment, its
78282         value would propagate into generated Makefiles when FUNC is not found
78283         in LIB_NAME.
78284         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78285         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78288 2009-10-14  Eric Blake  <ebb9@byu.net>
78290         fchdir: avoid infinite recursion in mingw
78291         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78292         recursing.
78294         test-stat-time: port to mingw
78295         * tests/test-stat-time.c (force_unlink): Return a value.
78296         (test_ctime) [W32]: Fix compilation error.
78297         (nap): Don't call usleep with too large an argument.  Use
78298         force_unlink.
78299         * doc/pastposix-functions/usleep.texi (usleep): Document the
78300         portability issue.
78302 2009-10-13  Jim Meyering  <meyering@redhat.com>
78304         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78305         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78306         * modules/pipe-filter-ii: Likewise.
78307         * modules/sys_socket-tests: Likewise.
78308         * modules/tsearch-tests: Likewise.
78309         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78310         (check): Depend on it.
78312 2009-10-12  Eric Blake  <ebb9@byu.net>
78314         utimens-tests: port to NFS file systems
78315         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78316         comparisons to avoid spurious failures from timestamp drift
78317         between NFS machines.
78319 2009-10-12  Eric Blake  <ebb9@byu.net>
78321         stat-time-tests: minor cleanups
78322         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78323         * tests/test-stat-time.c (nap): Separate assignment from call.
78324         Suggested by Paolo Bonzini and Bruno Haible.
78326         sys_stat: guarantee struct timespec
78327         * lib/sys_stat.in.h (includes): Always include <time.h>
78328         * modules/sys_stat (Depends-on): Add time.
78329         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78330         mode_t permission values.
78331         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78332         get at subsecond timestamps.
78334 2009-10-10  Eric Blake  <ebb9@byu.net>
78336         futimens: new module
78337         * modules/futimens: New file.
78338         * lib/futimens.c (futimens): Likewise.
78339         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78340         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78341         we can work around Linux bugs.
78342         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78343         * modules/sys_stat (Makefile.am): Substitute them.
78344         * lib/sys_stat.in.h (futimens): Declare it.
78345         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78346         * doc/posix-functions/futimens.texi (futimens): Likewise.
78347         * modules/futimens-tests: New test.
78348         * tests/test-futimens.c: Likewise.
78350         utimens: introduce fdutimens
78351         * lib/utimens.h (fdutimens): New prototype.
78352         * lib/utimens.c (gl_futimens): Move guts...
78353         (fdutimens): ...to new interface.
78354         * tests/test-utimens.c (do_fdutimens): Use it.
78356         utimens: add UTIME_NOW and UTIME_OMIT support
78357         * lib/utimens.c (validate_timespec, update_timespec): New helper
78358         functions.
78359         (gl_futimens, lutimens): Use them.
78360         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78361         stdbool, sys_stat.
78362         (Link): Mention resulting library dependency.
78363         * modules/utimecmp (Link): Likewise.
78364         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78365         (Makefile.am): Pick up library dependency.
78366         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78367         definition.
78368         * tests/test-sys_stat.c: Test the definitions.
78369         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78370         * NEWS: Document library dependency.
78372         utimecmp: support symlink timestamps
78373         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78374         hashing when possible.  Use pathconf when available.
78375         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78376         * modules/utimecmp (Depends-on): Add lstat.
78378         utimens: add lutimens interface
78379         * lib/utimens.c (lutimens): New function.
78380         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78381         * lib/utimens.h (lutimens): Declare new interface.
78382         * tests/test-utimens.c (main): Enhance test.
78383         * tests/test-lutimens.h (test_lutimens): New file.
78384         * modules/utimens-tests (Files): Distribute it.
78385         (Depends-on): Add symlink.
78386         (configure.ac): Check for usleep.
78388         utimens: validate futimens usage
78389         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78390         fewer syscalls on failure later on.  Avoid compiler warning on
78391         mingw.
78392         * modules/utimens (Depends-on): Add dup2.
78394         utimens: add test
78395         * modules/utimens-tests: New test.
78396         * tests/test-utimens.h: New file.
78397         * tests/test-futimens.h: Likewise.
78398         * tests/test-utimens.c: Likewise.
78400         doc: mention timestamp portability issues
78401         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78402         instead.
78403         * doc/posix-functions/utime.texi (utime): Likewise.
78404         * doc/posix-functions/utimes.texi (utimes): Likewise.
78405         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78406         instead.
78407         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78408         module.
78409         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78410         Mention weakness with symlink timestamps.
78411         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78412         to utimensat/futimens instead.
78413         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78415         test-dup2: enhance test
78416         * tests/test-dup2.c (main): Also check AT_FDCWD.
78418         test-stat-time: avoid more spurious failures
78419         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78420         xfs; and avoid race if the two timestamps cross quantization edge.
78422         relocatable: prefer 'file system' over 'filesystem'
78423         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78424         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78425         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78426         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78427         * lib/relocatable.c (compute_curr_prefix): Likewise.
78429 2009-10-10  Jim Meyering  <meyering@redhat.com>
78431         stat-time-tests: check for the usleep function
78432         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78434 2009-10-10  Bruno Haible  <bruno@clisp.org>
78436         * modules/xnanosleep: Put the Link section after the Include section.
78438 2009-10-09  Eric Blake  <ebb9@byu.net>
78440         dup2: work around FreeBSD 6.1 bug
78441         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78442         * doc/posix-functions/dup2.texi (dup2): Document it.
78443         Reported by Nelson H. F. Beebe and Jim Meyering.
78445         test-stat-time: port to buggy NFS clients
78446         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78447         (test_ctime): Also skip test if mtime and ctime are skewed.
78449         maint: prefer 'file system' over 'filesystem'
78450         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78451         * doc/posix-functions/lstat.texi (lstat): Likewise.
78452         * lib/file-has-acl.c (file_has_acl): Likewise.
78453         * lib/fwriteerror.c [TEST]: Likewise.
78454         * tests/test-areadlink.h (test_areadlink): Likewise.
78455         * tests/test-areadlinkat-with-size.c (main): Likewise.
78456         * tests/test-areadlinkat.c (main): Likewise.
78457         * tests/test-canonicalize-lgpl.c (main): Likewise.
78458         * tests/test-canonicalize.c (main): Likewise.
78459         * tests/test-fstatat.c (main): Likewise.
78460         * tests/test-linkat.c (main): Likewise.
78461         * tests/test-lstat.h (test_lstat_func): Likewise.
78462         * tests/test-mkdir.h (test_mkdir): Likewise.
78463         * tests/test-readlink.h (test_readlink): Likewise.
78464         * tests/test-remove.c (main): Likewise.
78465         * tests/test-rename.h (test_rename): Likewise.
78466         * tests/test-renameat.c (main): Likewise.
78467         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78468         * tests/test-symlink.h (test_symlink): Likewise.
78469         * tests/test-symlinkat.c (main): Likewise.
78470         * tests/test-unlink.h (test_unlink_func): Likewise.
78471         * tests/test-unlinkat.c (main): Likewise.
78473         maint: make realtime library usage explicit
78474         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78475         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78476         * modules/settime (Link): Likewise.
78477         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78479         test-stat-time: speed up execution
78480         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78481         warning on mingw.
78482         (nap): New helper function.
78483         (prepare_test): Use it to reduce sleep time.
78484         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78485         execution.
78486         * modules/stat-time-tests (configure.ac): Check for usleep.
78488 2009-10-09  Jim Meyering  <meyering@redhat.com>
78490         selinux-h: always use getfilecon wrappers
78491         * lib/getfilecon.c: New file.
78492         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78493         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78494         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78495         (fgetfilecon): Provide a stub.
78496         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78497         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78498         file unconditionally.
78499         When <selinux/selinux.h> is found, arrange to use wrappers.
78500         * modules/selinux-h (Files): Add getfilecon.c.
78501         (Makefile.am): Substitute include-next-related bits
78502         into the now-always-generated selinux/selinux.h file.
78503         * doc/glibc-functions/lgetfilecon.texi: New file.
78504         * doc/glibc-functions/fgetfilecon.texi: New file.
78505         * doc/glibc-functions/getfilecon.texi: New file.
78506         * doc/glibc-functions/getfilecon-desc.texi: New file.
78507         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78508         which to pull in the new files.
78509         * MODULES.html.sh (Misc): Add selinux-h.
78511 2009-10-08  Jim Meyering  <meyering@redhat.com>
78513         unistd: fix comment typo
78514         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78516 2009-10-08  Eric Blake  <ebb9@byu.net>
78518         areadlink: use SIZE_MAX consistently
78519         * modules/areadlink (Depends-on): Add stdint.
78520         * modules/areadlink-with-size (Depends-on): Likewise.
78521         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78522         gives NULL; drop sys/types, since unistd gives size_t; and add
78523         stdint for SIZE_MAX.
78524         (SIZE_MAX): Rely on headers.
78525         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78526         and add stdint.
78527         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78528         (SIZE_MAX): Likewise.
78529         (INITIAL_BUF_SIZE): Turn into enum.
78530         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78532 2009-10-08  Jim Meyering  <meyering@redhat.com>
78534         areadlinkat: avoid compilation failure
78535         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78536         Fix typo in comment.
78538 2009-10-07  Eric Blake  <ebb9@byu.net>
78540         areadlinkat-with-size: new module
78541         * modules/areadlinkat-with-size: New module.
78542         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78543         * lib/areadlink.h (areadlinkat): Declare it.
78544         * MODULES.html.sh (File system functions): Mention it.
78545         * modules/areadlinkat-with-size-tests: New test.
78546         * tests/test-areadlinkat-with-size.c: New file.
78548         xreadlinkat: new module
78549         * modules/xreadlinkat: New module.
78550         * lib/xreadlinkat.c (xreadlinkat): New file.
78551         * lib/xreadlink.h (xreadlinkat): Declare it.
78552         * MODULES.html.sh (File system functions): Mention it.
78554         areadlinkat: new module
78555         * lib/at-func.c (FUNC_FAIL): New define.
78556         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78557         * modules/areadlinkat: New module.
78558         * lib/linkat.c (areadlinkat): Move...
78559         * lib/areadlinkat.c (areadlinkat): ...to new file.
78560         * lib/areadlink.h (areadlinkat): Declare it.
78561         * modules/linkat (Depends-on): Add areadlinkat.
78562         * MODULES.html.sh (File system functions): Mention it.
78563         * modules/areadlinkat-tests: New test.
78564         * tests/test-areadlinkat.c: New file.
78566         areadlink, areadlink-with-size: add tests
78567         * modules/areadlink-tests: New test.
78568         * modules/areadlink-with-size-tests: Likewise.
78569         * tests/test-areadlink.h: New file.
78570         * tests/test-areadlink.c: Likewise.
78571         * tests/test-areadlink-with-size.c: Likewise.
78573         maint: minor cleanups
78574         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78575         _UNUSED_PARAMETER_ instead.
78576         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78577         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78578         * modules/linkat-tests (Files): Distribute test-link.h.
78580         openat, utimens: whitespace cleanup
78581         * lib/openat.c: Prefer space throughout, rather than mix of 8
78582         spaces vs. tabs.
78583         * lib/at-func.c: Likewise.
78584         * lib/utimens.c: Likewise.
78586         openat: avoid using wrong fd
78587         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78588         working directory chooses same fd.
78589         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78591         mkdir, mkdirat: fix cygwin 1.5.x bug
78592         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78593         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78594         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78595         bug.
78596         (gl_PREREQ_MKDIR): Delete unused macro.
78597         * modules/mkdir (Files): Track file rename.
78598         (configure.ac): Update macro name.
78599         * modules/openat (Depends-on): Add mkdir.
78600         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78602         mkdir, mkdirat: add tests
78603         * modules/mkdir-tests: New test.
78604         * tests/test-mkdir.h: New file.
78605         * tests/test-mkdir.c: Likewise.
78606         * tests/test-mkdirat.c: Likewise.
78607         * modules/openat-tests (Files): Add new files.
78608         (Makefile.am): Run new test.
78610 2009-10-06  Eric Blake  <ebb9@byu.net>
78612         doc: tweak *at function documentation
78613         * doc/posix-functions/faccessat.texi (faccessat): Mention
78614         known issue with replacement.
78615         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78616         * doc/posix-functions/linkat.texi (linkat): Likewise.
78617         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78618         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78619         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78620         * doc/posix-functions/renameat.texi (renameat): Likewise.
78621         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78623         openat: fix GNU/Hurd bug in unlinkat
78624         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78625         broken.
78626         * doc/posix-functions/unlink.texi (unlink): Document this.
78627         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78629         fdopendir: fix GNU/Hurd bug
78630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78631         allowing non-directory fds.
78632         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78633         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78634         * modules/dirent (Makefile.am): Substitute it.
78635         * lib/dirent.in.h (fdopendir): Declare replacement.
78636         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78637         * tests/test-fdopendir.c (main): Test something other than
78638         /dev/null, since on Hurd that behaves like a directory.
78640         test-symlink: port to GNU/Hurd
78641         * tests/test-symlink.h (test_symlink): Relax expected errno.
78643         doc: tweak more cygwin information
78644         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78645         now compatible with glibc.
78646         * doc/posix-functions/getopt.texi (getopt): Likewise.
78648         getopt-gnu: add another test
78649         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78650         guarantee behavior relied on by m4.
78651         * tests/test-getopt.c (main): Use it.
78652         * modules/getopt-posix-tests (Depends-on): Add setenv.
78653         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78655         getopt: fix compilation on darwin
78656         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78657         include.
78658         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78659         Reported by Ludovic Courtès.
78661 2009-10-06  Bruno Haible  <bruno@clisp.org>
78663         * modules/size_max (Description): Discourage its use.
78664         Reported by Simon Josefsson.
78666 2009-10-06  Jim Meyering  <meyering@redhat.com>
78668         linkat: avoid compilation failure
78669         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78671 2009-10-05  Eric Blake  <ebb9@byu.net>
78673         linkat: support Linux 2.6.17
78674         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78675         linkat on Linux, but allow cache variable override.
78676         * lib/linkat.c (rpl_linkat): Define override.
78677         * modules/linkat (Depends-on): Add symlinkat.
78678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78679         * modules/unistd (Makefile.am): Substitute it.
78680         * lib/unistd.in.h (linkat): Declare replacement.
78681         Reported by Pádraig Brady.
78683         quotearg: port test to systems with C.UTF-8 locale
78684         * tests/test-quotearg.c (struct result_strings): Add another
78685         member, differentiating between C.ASCII and C.UTF-8 handling.
78686         (compare_strings): Add parameter.
78687         (main): Adjust all callers.
78689         getopt: avoid clash with FreeBSD _getopt_internal
78690         * lib/getopt.in.h (_getopt_internal): Override the name.
78691         * lib/getopt_int.h (includes): Pick up any overrides.
78692         Reported by Reuben Thomas.
78694         hash: allow C89 compilation
78695         * lib/hash.c (check_tuning): Move declaration before statement.
78696         Reported by Reuben Thomas.
78698 2009-10-05  Karl Berry  <karl@gnu.org>
78700         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78702 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78703             Bruno Haible  <bruno@clisp.org>
78705         * lib/uname.c (uname): Use a table-driven algorithm to compute
78706         Windows NT versions.
78708 2009-10-04  Bruno Haible  <bruno@clisp.org>
78710         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78711         program_invocation_short_name.
78712         * modules/progname (configure.ac): Test for presence of
78713         program_invocation_short_name.
78714         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78716 2009-10-04  Bruno Haible  <bruno@clisp.org>
78718         * lib/progname.c (set_program_name): Fix comment.
78719         Reported by Jim Meyering.
78721 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78722             Bruno Haible  <bruno@clisp.org>
78724         * lib/uname.c: Include <string.h>.
78725         (uname): Do only one call to GetVersionEx in the common case.
78727 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78728             Bruno Haible  <bruno@clisp.org>
78730         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78731         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78732         (uname): Add support for Windows CE and various non-x86 CPU types.
78734 2009-10-03  Bruno Haible  <bruno@clisp.org>
78736         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78737         invocation to tests/configure.ac.
78738         Reported by Ian Beckwith <ianb@erislabs.net>.
78740 2009-10-02  Eric Blake  <ebb9@byu.net>
78742         fchdir: avoid compiler warning
78743         * lib/fchdir.c (canonicalize_file_name)
78744         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78746         test-open: support mingw errno values
78747         * tests/test-open.h (test_open): Relax test.
78748         * tests/test-fopen.h (test_fopen): Likewise.
78749         * tests/test-openat-safer.c (main): Likewise.
78751         open: fix opening directory on mingw
78752         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78754         test-open: on GNU/Hurd, /dev/null is a directory
78755         * tests/test-fopen.h (main): Rename...
78756         (test_fopen): ...to this.  Use a guaranteed non-directory when
78757         confirming open behavior on trailing slash.
78758         * tests/test-openat-safer.c (main): Likewise.
78759         * tests/test-open.h (main): Likewise....
78760         (test_open): ...to this.
78761         * tests/test-fopen.c (main): Adjust caller.
78762         * tests/test-fopen-safer.c (main): Likewise.
78763         * tests/test-open.c (main): Likewise.
78764         * tests/test-fcntl-safer.c (main): Likewise.
78765         Reported by Samuel Thibault.
78767         rename, fchdir: don't ignore chdir failure
78768         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78769         * lib/rename.c (rpl_rename) [W32]: Likewise.
78770         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78771         an empty destination directory if source cannot be renamed,
78772         although there is still possibility for failure.
78773         * doc/posix-functions/rename.texi (rename): Document the race.
78774         Reported by Jim Meyering.
78776         maint: cleanup whitespace in recent commits
78777         * lib/rename.c (rpl_rename): Remove tabs.
78778         * tests/test-link.h (test_link): Likewise.
78779         * lib/fchdir.c (get_name): Likewise.
78780         Reported by Jim Meyering.
78782 2009-10-02  Ben Pfaff  <blp@gnu.org>
78784         relocatable-prog-wrapper: Add missing dependency on
78785         double-slash-root.
78786         * modules/relocatable-prog-wrapper: Add dependency.
78787         Reported by Ian Beckwith <ianb@erislabs.net>.
78789 2009-10-02  Eric Blake  <ebb9@byu.net>
78791         renameat: fix Solaris bugs
78792         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78793         needed fixing.
78794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78795         * modules/stdio (Makefile.am): Substitute it.
78796         * lib/stdio.in.h (renameat): Declare replacement.
78797         * lib/renameat.c (rpl_renameat): Implement fix.
78799         renameat: new module
78800         * modules/renameat: New file.
78801         * lib/renameat.c (renameat): Likewise.
78802         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78804         * modules/stdio (Makefile.am): Substitute them.
78805         * lib/stdio.in.h (renameat): Declare it.
78806         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78807         * doc/posix-functions/renameat.texi (renameat): Likewise.
78808         * modules/renameat-tests: New test.
78809         * tests/test-renameat.c: Likewise.
78811         rename: fix mingw bugs
78812         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78813         directory overwrite bugs.
78815         rename: fix another cygwin 1.5 bug
78816         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78817         checks.
78818         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78819         unnecessary cygwin workarounds.  Also work around bug with moving
78820         full directory onto an empty one.
78821         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78823         rename-dest-slash: merge into rename module
78824         * modules/rename-dest-slash (Status): Mark obsolete.
78825         (Depends-on): Add rename.
78826         (Files): Let rename do it all.
78827         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78828         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78829         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78830         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78831         * lib/rename.c (rpl_rename): Update comments.
78833         rename: fix cygwin 1.5.x bugs
78834         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78835         * lib/rename.c (rpl_rename): Work around them.
78836         * modules/rename (Depends-on): Add same-inode.
78838         rename: fix Solaris 10 bug
78839         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78840         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78841         was the only bug.
78843         rename: fix Solaris 9 bug
78844         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78845         on non-directory.  Avoid calling exit.
78846         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78847         strdup.
78848         * modules/rename-tests (Depends-on): Drop lstat.
78849         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78850         (gl_PREREQ_RENAME): Delete unused macro.
78852         rename-dest-slash: fix NetBSD bug
78853         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78854         links.
78855         * modules/rename-dest-slash (Depends-on): Add same-inode.
78857         rename-tests: new test, exposes several platform bugs
78858         * modules/rename-tests: New file.
78859         * tests/test-rename.h: Likewise.
78860         * tests/test-rename.c: Likewise.
78861         * doc/posix-functions/rename.texi (rename): Improve documentation,
78862         including bugs that will eventually be fixed in gnulib.
78864 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78866         * lib/uname.c: Include <stdlib.h>
78867         (uname): Assume version info is available.
78869 2009-10-02  Jim Meyering  <meyering@redhat.com>
78871         gnu-web-doc-update: correct --help output
78872         * build-aux/gnu-web-doc-update: Make --help output relevant.
78874         gnu-web-doc-update: add standard options
78875         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78877         gnu-web-doc-update: New module.
78878         Use this script to automatically update the on-line web documentation
78879         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78880         * modules/gnu-web-doc-update: New file, from coreutils.
78881         * build-aux/gnu-web-doc-update: New script.
78883 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78885         link: LoadLibrary is not needed.
78886         * lib/link.c: Use GetModuleHandle.
78888 2009-10-01  Eric Blake  <ebb9@byu.net>
78890         getopt: bump serial number
78891         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78892         change.
78894         tests: tighten link, rmdir, and remove tests
78895         * tests/test-link.h (includes): No need to use <config.h> here.
78896         Clean up if directory hard link was created, otherwise test for
78897         trailing '.'.
78898         * tests/test-linkat.c (main): Simplify.
78899         * tests/test-remove.c (main): Enhance test for trailing '.'.
78900         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78902 2009-10-01  Jim Meyering  <meyering@redhat.com>
78904         maint.mk: requiring "make major" was annoying, for a "minor" release.
78905         What is intended is "stable", to contrast with alpha and beta,
78906         so require "make stable", not "make major".
78907         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78908         (get_tool_versions): Likewise.
78909         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78911 2009-09-30  Ben Pfaff  <blp@gnu.org>
78913         Fix broken build of replacement for Windows tmpfile().
78914         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78915         flags argument added along with the 'mkostemp' module.
78917 2009-09-28  Bruno Haible  <bruno@clisp.org>
78919         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78920         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78921         to 'remove_elt'.
78922         (gl_list_remove): Update.
78923         * lib/gl_list.c (gl_list_remove): Update.
78924         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78925         to 'remove_elt'.
78926         (gl_oset_remove): Update.
78927         * lib/gl_list.c (gl_oset_remove): Update.
78928         Reported by Eric Blake.
78930 2009-09-28  Eric Blake  <ebb9@byu.net>
78932         doc: mention yet more cygwin 1.7 status
78933         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78934         cygwin.
78935         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78936         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78938         argp: fix test failure
78939         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78940         that are not upper-case.  Pass correct range to tolower.
78942 2009-09-27  Jim Meyering  <meyering@redhat.com>
78944         test-yesno: work around sparc-dash here-document infelicity
78945         Without this change, the literal \177 byte in a here document
78946         would make dash 0.5.5.1-3 access uninitialized memory.
78947         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78948         Instead, use a marker, "@", and filter through tr to create the desired
78949         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78951 2009-09-27  Bruno Haible  <bruno@clisp.org>
78953         Disable untested support for new flavours of ACLs on AIX.
78954         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78955         progress.
78956         * lib/set-mode-acl.c (qset_acl): Likewise.
78958 2008-12-07  Bruno Haible  <bruno@clisp.org>
78960         Add support for new flavours of ACLs on AIX. (Untested.)
78961         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78962         (file_has_acl): Add support for newer AIX.
78963         * lib/set-mode-acl.c (qset_acl): Likewise.
78964         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78965         Rainer Tammer <tammer@tammer.net>.
78967 2009-09-26  Eric Blake  <ebb9@byu.net>
78969         argp: fix compilation of getopt
78970         * lib/getopt.in.h (includes): Use different guard than glibc.
78971         Reported by Sergey Poznyakoff.
78973         doc: mention more cygwin 1.7 status
78974         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78975         bug.
78976         * doc/posix-functions/execl.texi (execl): Likewise.
78977         * doc/posix-functions/execle.texi (execle): Likewise.
78978         * doc/posix-functions/execlp.texi (execlp): Likewise.
78979         * doc/posix-functions/execv.texi (execv): Likewise.
78980         * doc/posix-functions/execve.texi (execve): Likewise.
78981         * doc/posix-functions/execvp.texi (execvp): Likewise.
78982         * doc/glibc-functions/canonicalize_file_name.texi
78983         (canonicalize_file_name): Cygwin 1.7 now provides this.
78984         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78985         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78986         on AT_SYMLINK_NOFOLLOW.
78988 2009-09-24  Eric Blake  <ebb9@byu.net>
78990         test-linkat: make test more robust
78991         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78993         getopt: fix inclusion guards for cygwin
78994         * modules/getopt-posix (Depends-on): Add include-next.
78995         (Makefile.am): Substitute more items in replacement header.
78996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78997         <getopt.h>.
78998         * lib/getopt.in.h (includes): Use split inclusion guard, and
78999         prefer <getopt.h> over include <unistd.h> when one is present.
79000         (option): Also override name of 'struct option'.
79002         same-inode: revert prior change; it is not yet ready
79003         * NEWS: Undo mention of this change.
79004         * lib/same-inode.h (same-inode.h): Undo tri-state change.
79005         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79006         * lib/cycle-check.c (cycle_check): Likewise.
79007         * lib/same.c (same_name): Likewise.
79008         * lib/at-func2.c (at_func2): Likewise.
79010 2009-09-23  Eric Blake  <ebb9@byu.net>
79012         linkat: new module
79013         * modules/linkat: New file.
79014         * lib/at-func2.c (at_func2): Likewise.
79015         * lib/linkat.c (linkat): Likewise.
79016         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
79017         * lib/openat-priv.h (at_func2): Add declaration.
79018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79019         * modules/unistd (Makefile.am): Substitute them.
79020         * lib/unistd.in.h (linkat): Declare it.
79021         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79022         * doc/posix-functions/linkat.texi (linkat): Likewise.
79023         * doc/posix-functions/link.texi (link): Tweak wording.
79024         * tests/test-link.c (main): Move guts...
79025         * tests/test-link.h (test_link): ...into new file.
79026         * modules/linkat-tests: New test.
79027         * tests/test-linkat.c: Likewise.
79028         * modules/link-tests (Files): Ship new file.
79029         (Depends-on): Add stdbool.
79031         dirname: add library-safe mdir_name
79032         * lib/dirname.h (mdir_name): New prototype.
79033         * lib/dirname.c (dir_name): Move guts...
79034         (mdir_name): ...to new function that avoids xalloc_die.
79036         fchdir: another mingw fix
79037         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
79038         * lib/fchdir.c (get_name): New helper method; skips canonicalize
79039         on mingw (where it has not yet been ported), and make it optional
79040         elsewhere.
79041         (_gl_register_fd): Use it.
79043         same-inode: make SAME_INODE tri-state, to port to mingw
79044         * NEWS: Mention this change.
79045         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
79046         st_ino always being 0.
79047         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
79048         * lib/cycle-check.c (cycle_check): Likewise.
79049         * lib/same.c (same_name): Likewise.
79051         lstat: avoid mingw compilation error
79052         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
79053         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
79054         lstat ourselves.
79055         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
79056         was adequate.
79057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
79058         the checks for lstat.
79059         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
79061         link: fix test failure on Solaris 9
79062         * lib/link.c (rpl_link): Don't assume link will catch bogus
79063         trailing slash on source.
79065         test-symlinkat: enhance test
79066         * tests/test-readlink.c (main): Move guts...
79067         * tests/test-readlink.h (test_readlink): ...into new file.
79068         * tests/test-symlink.c (main): Move guts...
79069         * tests/test-symlink.h (test_symlink): ...into new file.
79070         * tests/test-symlinkat.c (main): Use new files for further
79071         coverage.
79072         (do_symlink, do_readlink): New helper functions.
79073         * modules/symlink-tests (Files): Ship new file.
79074         (Depends-on): Add stdbool.
79075         * modules/readlink-tests (Files): Ship new file.
79076         (Depends-on): Add stdbool.
79077         * modules/symlinkat-tests (Files): Use new files.
79079 2009-09-23  Eric Blake  <ebb9@byu.net>
79081         readlink: document portability issue with symlink length
79082         * doc/posix-functions/lstat.texi (lstat): Mention that some file
79083         systems have bogus st_size on symlinks, and mention the
79084         areadlink-with-size module.
79085         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79086         * doc/posix-functions/readlink.texi (readlink): Mention the
79087         areadlink module, and ERANGE failure.
79088         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79089         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
79091         readlink: fix Solaris 9 bug with trailing slash
79092         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
79093         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
79094         * doc/posix-functions/readlink.texi (readlink): Document this.
79095         * modules/readlink-tests: New test.
79096         * tests/test-readlink.c: Likewise.
79098         readlink: fix cygwin 1.5.x bug with return type
79099         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
79100         * lib/unistd.in.h (readlink): Use ssize_t.
79101         * lib/readlink.c (readlink): Likewise.
79102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79103         * modules/unistd (Makefile.am): Substitute it.
79104         * lib/unistd.in.h (readlink): Declare replacement.
79105         * doc/posix-functions/readlink.texi (readlink): Document this.
79107         symlink: use throughout gnulib
79108         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
79109         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
79110         symlink is not used.
79111         * modules/symlinkat (Depends-on): Add symlink.
79112         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79113         * modules/canonicalize-tests (Depends-on): Likewise.
79114         * modules/lstat-tests (Depends-on): Likewise.
79115         * modules/openat-tests (Depends-on): Likewise.
79116         * modules/remove-tests (Depends-on): Likewise.
79117         * modules/rmdir-tests (Depends-on): Likewise.
79118         * modules/unlink-tests (Depends-on): Likewise.
79119         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
79120         * tests/test-canonicalize.c (symlink): Likewise.
79121         * tests/test-fstatat.c (symlink): Likewise.
79122         * tests/test-lstat.c (symlink): Likewise.
79123         * tests/test-remove.c (symlink): Likewise.
79124         * tests/test-rmdir.c (symlink): Likewise.
79125         * tests/test-unlink.c (symlink): Likewise.
79126         * tests/test-unlinkat.c (symlink): Likewise.
79128         symlink: new module, for Solaris 9 bug
79129         * modules/symlink: New file.
79130         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
79131         * lib/symlink.c: Likewise.
79132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
79133         * modules/unistd (Makefile.am): Substitute them.
79134         * lib/unistd.in.h (symlink): Declare replacement.
79135         * MODULES.html.sh (File system functions): Mention it.
79136         * doc/posix-functions/symlink.texi (symlink): Likewise.
79137         * modules/symlink-tests: New test.
79138         * tests/test-symlink.c: Likewise.
79140 2009-09-23  Bruno Haible  <bruno@clisp.org>
79142         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
79143         when needed.
79144         Test case: gnulib-tool --import --with-tests atexit inttypes.
79145         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
79147 2009-09-23  Bruno Haible  <bruno@clisp.org>
79149         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
79150         subcommand, not in a subshell.
79152 2009-09-22  Eric Blake  <ebb9@byu.net>
79154         unistd: sort replacement declarations
79155         * lib/unistd.in.h: Sort declarations.
79157         open, openat: minor optimization
79158         * lib/open.c (open): If open succeeded, len is non-zero.
79159         * lib/openat.c (rpl_openat): Likewise.
79161         link-follow: ensure correct result
79162         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
79163         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
79164         distinguish between possible failures.
79166 2009-09-21  Eric Blake  <ebb9@byu.net>
79168         fts: avoid compiler warning
79169         * lib/fts.c (dirent_inode_sort_may_be_useful)
79170         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
79172 2009-09-19  Bruno Haible  <bruno@clisp.org>
79174         * lib/progreloc.c (canonicalize_file_name): New declaration.
79176 2009-09-19  Eric Blake  <ebb9@byu.net>
79178         link: fix quoting
79179         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
79181         openat: fix openat bugs on Solaris 9
79182         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
79183         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
79184         * modules/openat (Depends-on): Add open.
79185         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
79186         * modules/fcntl-h (Makefile.am): Substitute it.
79187         * lib/fcntl.in.h (openat): Declare replacement.
79188         * doc/posix-functions/openat.texi (openat): Document this.
79190         openat: move fstatat and unlinkat into correct files
79191         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
79192         compiled.
79193         * lib/openat.c (fstatat, unlinkat): Move...
79194         * lib/fstatat.c (fstatat): ...into correct files.
79195         * lib/unlinkat.c (unlinkat): Likewise.
79197         openat: fix unlinkat bugs on Solaris 9
79198         * lib/unlinkat.c (unlinkat): New file.
79199         * modules/openat (Depends-on): Add unlink.
79200         (Files): Distribute it.
79201         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
79202         trailing slash behavior is broken.
79203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79204         * modules/unistd (Makefile.am): Substitute it.
79205         * lib/unistd.in.h (unlinkat): Declare replacement.
79206         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
79208         openat: fix fstatat bugs on Solaris 9
79209         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
79210         stat.
79211         * doc/posix-functions/fstatat.texi (fstatat): Document this.
79213         test-unlinkat: enhance test, to expose Solaris 9 bug
79214         * tests/test-unlink.c (main): Factor guts...
79215         * tests/test-unlink.h (test_rmdir_func): ...into new file.
79216         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
79217         * tests/test-rmdir.c (main): Adjust caller.
79218         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
79219         (unlinker): New helper function.
79220         (rmdirat): Enhance check.
79221         * modules/rmdir-tests (Depends-on): Add stdbool.
79222         * modules/unlink-tests (Depends-on): Likewise.
79223         (Files): Add test-unlink.h.
79224         * modules/openat-tests (Files): Likewise.
79225         (Depends-on): Add unlinkdir.
79227         test-fstatat: new test, to expose Solaris 9 bugs
79228         * tests/test-stat.c (main): Factor guts...
79229         * tests/test-stat.h (test_stat_func): ...into new file.
79230         * tests/test-lstat.c (main): Factor guts...
79231         * tests/test-lstat.h (test_lstat_func): ...into new file.
79232         * tests/test-fstatat.c: New file.
79233         * modules/stat-tests (Files): Add test-stat.h.
79234         * modules/lstat-tests (Files): Add test-lstat.h.
79235         (Depends-on): Add stdbool.
79236         * modules/openat-tests (Depends-on): Add pathmax.
79237         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
79238         (Makefile.am): Run new test.
79240         remove: new module, for mingw and Solaris 9 bugs
79241         * modules/remove: New file.
79242         * lib/remove.c: Likewise.
79243         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
79244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79245         * modules/stdio (Makefile.am): Use them.
79246         * lib/stdio.in.h (remove): Declare replacement.
79247         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79248         * doc/posix-functions/remove.texi (remove): Likewise.
79249         * modules/remove-tests: New test.
79250         * tests/test-remove.c: Likewise.
79252         unlink: new module, for Solaris 9 bug
79253         * modules/unlink: New file.
79254         * lib/unlink.c: Likewise.
79255         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79257         * modules/unistd (Makefile.am): Use them.
79258         * lib/unistd.in.h (stat): Declare replacement.
79259         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79260         * doc/posix-functions/unlink.texi (unlink): Likewise.
79261         * modules/unlink-tests: New test.
79262         * tests/test-unlink.c: Likewise.
79264         lstat: fix Solaris 9 bug
79265         * lib/lstat.c (lstat): Also check for trailing slash on
79266         non-symlink, non-directories.  Use stat module to simplify logic.
79267         * doc/posix-functions/lstat.texi (lstat): Document it.
79268         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79269         (configure.ac): Check for symlink.
79270         * tests/test-lstat.c (main): Add more tests.
79272         stat: add as dependency to other modules
79273         * modules/chown (Depends-on): Add stat.
79274         * modules/euidaccess (Depends-on): Likewise.
79275         * modules/fchdir (Depends-on): Likewise.
79276         * modules/isdir (Depends-on): Likewise.
79277         * modules/link (Depends-on): Likewise.
79278         * modules/lstat (Depends-on): Likewise.
79279         * modules/mkdir-p (Depends-on): Likewise.
79280         * modules/modechange (Depends-on): Likewise.
79281         * modules/open (Depends-on): Likewise.
79282         * modules/readlink (Depends-on): Likewise.
79283         * modules/same (Depends-on): Likewise.
79285         stat: fix Solaris 9 bug
79286         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79287         slash.
79288         * lib/stat.c (rpl_stat): Work around it.
79289         * doc/posix-functions/stat.texi (stat): Update documentation.
79291         stat: new module, for mingw bug
79292         * modules/stat: New file.
79293         * lib/stat.c: Likewise.
79294         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79296         * modules/sys_stat (Makefile.am): Use them.
79297         * lib/sys_stat.in.h (stat): Declare replacement.
79298         * lib/openat.c (fstatat): Deal with lstat and stat being function
79299         macros.
79300         * modules/openat (Depends-on): Add inline.
79301         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79302         * doc/posix-functions/stat.texi (stat): Likewise.
79303         * modules/stat-tests: New test.
79304         * tests/test-stat.c: Likewise.
79306 2009-09-19  Jim Meyering  <meyering@redhat.com>
79308         syntax-check: detect unnecessary inclusion of canonicalize.h
79309         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79311 2009-09-19  Eric Blake  <ebb9@byu.net>
79313         canonicalize-lgpl: adjust clients to use correct header
79314         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79315         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79316         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79317         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79318         * lib/progreloc.c (includes): Likewise.
79320 2009-09-19  Jim Meyering  <meyering@redhat.com>
79322         test-posixtm.c: correct a comment
79323         * tests/test-posixtm.c: Correct first-line comment.
79324         Spotted by Eric Blake.
79326 2009-09-16  Jim Meyering  <meyering@redhat.com>
79328         posixtm-tests: make T const-correct; add a test case
79329         * tests/test-posixtm.c (T): Declare const.
79330         Add a test for -(2^31+1).
79331         Remove useless can-succeed-only-in-2002 test.
79333         posixtm-tests: adjust the sole failing test
79334         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79335         expected output matches what mktime now produces.  Cross-checked via
79336         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79338         posixtm: move #ifdef'd tests into a new module
79339         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79340         * tests/test-posixtm.c: ... this new file.
79341         * modules/posixtm-tests: New module.
79343 2009-09-19  Eric Blake  <ebb9@byu.net>
79345         openat: simplify use of at-func.c
79346         * lib/at-func.c (includes): Include prerequisites here, to
79347         simplify requirements on client files.
79348         * lib/openat-priv.h: Add double-inclusion guard.
79349         * lib/faccessat.c (includes): Simplify.
79350         * lib/fchmodat.c (includes): Likewise.
79351         * lib/fchownat.c (includes): Likewise.
79352         * lib/mkdirat.c (includes): Likewise.
79353         * lib/mkfifoat.c (includes): Likewise.
79354         * lib/symlinkat.c (includes): Likewise.
79356         openat: allow return of fd 0
79357         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79358         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79359         unistd-safer.
79360         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79361         <fcntl.h>; this module does not leak fds.
79362         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79363         must be allowed to return 0, leaving openat_safer to add the
79364         safety.
79365         (openat_permissive): Avoid writing to just-opened fd 2 if
79366         restoring the current directory fails.
79367         * lib/openat-die.c (openat_restore_fail): Add comment.
79368         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79369         (save_cwd): Guarantee safe fd, but without use of open_safer.
79370         * tests/test-openat.c: New test.
79371         * modules/openat-tests (Files, Makefile.am): Distribute and build
79372         new file.
79374         relocatable-prog-wrapper: fix build
79375         * modules/relocatable-prog-wrapper (Files): Update name of
79376         canonicalize m4 file, broken on 2009-09-17.
79377         Reported by emad hajjar <aleppos@hotmail.com>.
79379 2009-09-19  Bruno Haible  <bruno@clisp.org>
79381         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79382         * lib/safe-alloc.c: Likewise.
79383         Reported by Ian Beckwith <ianb@erislabs.net>.
79385 2009-09-18  Bruno Haible  <bruno@clisp.org>
79387         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79388         Reported by <erobles@sensacd.com.mx>.
79390 2009-09-17  Eric Blake  <ebb9@byu.net>
79392         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79393         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79394         slashes when checking if last component is missing.
79395         * tests/test-canonicalize.c (main): Test this.
79397         canonicalize, canonicalize-lgpl: honor // if distinct from /
79398         * modules/canonicalize (Files): Add double-slash-root.m4.
79399         * modules/canonicalize-lgpl (Files): Likewise.
79400         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79401         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79402         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79403         fallback definition.
79404         (canonicalize_filename_mode): Use it to protect //.
79405         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79406         (__realpath): Likewise.
79407         * tests/test-canonicalize.c (main): Test this.
79408         * tests/test-canonicalize-lgpl.c (main): Likewise.
79409         * modules/canonicalize-tests (Depends-on): Add same-inode.
79410         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79412         canonicalize-lgpl: fix glibc bug with trailing slash
79413         * m4/canonicalize-lgpl.m4: Move contents...
79414         * m4/canonicalize.m4: ...here.
79415         (gl_CANONICALIZE_LGPL): Factor realpath check...
79416         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79417         glibc 2.3.5 bug, fixed 2005-04-27.
79418         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79419         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79420         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79421         * modules/canonicalize-lgpl (Files): Manage file rename.
79422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79423         * modules/stdlib (Makefile.am): Substitute witness.
79424         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79425         is needed.
79426         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79427         replacement is required.
79428         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79429         * doc/glibc-functions/canonicalize_file_name.texi
79430         (canonicalize_file_name): Document this.
79431         * doc/posix-functions/realpath.texi (realpath): Likewise.
79433         canonicalize-lgpl: reject non-directory with trailing slash
79434         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79435         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79436         catches failures in glibc 2.3.5.
79437         * tests/test-canonicalize.c (main): Likewise.
79439         canonicalize-lgpl: use native realpath if it works
79440         * lib/canonicalize-lgpl.c (realpath): Guard with
79441         FUNC_REALPATH_WORKS.
79442         * lib/stdlib.in.h (realpath): Make declaration optional based on
79443         HAVE_REALPATH.
79444         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79445         native realpath works.
79446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79447         * modules/stdlib (Makefile.am): Substitute witness.
79449         canonicalize, canonicalize-lgpl: use <stdlib.h>
79450         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79451         (Include): Mention <stdlib.h>.
79452         (configure.ac): Mention functions we provide.
79453         * modules/canonicalize (configure.ac): Likewise.
79454         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79455         realpath if canonicalize_file_name is missing.
79456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79457         * modules/stdlib (Makefile.am): Substitute witnesses.
79458         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79459         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79460         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79461         * NEWS: Document this.
79462         * doc/glibc-functions/canonicalize_file_name.texi
79463         (canonicalize_file_name): Likewise.
79464         * doc/posix-functions/realpath.texi (realpath): Likewise.
79465         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79467         test-canonicalize: consolidate into single C program
79468         * tests/test-canonicalize.sh: Delete; move setup into...
79469         * tests/test-canonicalize.c (main): ...the program, making it
79470         easier to run in debugger.  Add some tests.
79471         * modules/canonicalize-tests (Files): Remove unused file.
79472         (Depends-on): Add progname.
79473         (configure.ac, Makefile.am): Simplify.
79475         test-canonicalize-lgpl: consolidate into single C program
79476         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79477         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79478         easier to run in debugger.  Add some tests.
79479         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79480         (configure.ac, Makefile.am): Simplify.
79482         canonicalize: avoid resolvepath
79483         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79484         unnecessary checks.
79485         * lib/canonicalize.c (includes): Simplify.
79486         (canonicalize_file_name): Drop resolvepath implementation.
79487         * modules/canonicalize (Depends-on): Drop filenamecat.
79489         canonicalize: don't lose errno
79490         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79491         over calls to free.
79493         canonicalize: simplify errno handling
79494         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79495         assignment.
79497         canonicalize, canonicalize-lgpl: update module dependencies
79498         * modules/canonicalize (Depends-on): Add extensions, lstat,
79499         pathmax, stdlib.
79500         (Files): Drop pathmax.h.
79501         (configure.ac): Adjust macro name.
79502         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79503         lstat, stdlib, sys_stat.
79504         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79505         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79506         extensions.
79507         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79508         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79509         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79510         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79511         declaration, if available.
79512         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79513         we can rely on the readlink module.
79514         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79515         (includes): Use <unistd.h> unconditionally.
79517 2009-09-17  Eric Blake  <ebb9@byu.net>
79519         maint: make Include sections of modules consistent
79520         * modules/alloca: Use only header name; no need to list #include.
79521         * modules/alloca-opt: Likewise.
79522         * modules/arpa_inet: Likewise.
79523         * modules/canon-host: Likewise.
79524         * modules/configmake: Likewise.
79525         * modules/dirent: Likewise.
79526         * modules/eealloc: Likewise.
79527         * modules/environ: Likewise.
79528         * modules/fchdir: Likewise.
79529         * modules/fcntl: Likewise.
79530         * modules/fcntl-h: Likewise.
79531         * modules/gethrxtime: Likewise.
79532         * modules/gettime: Likewise.
79533         * modules/ignore-value: Likewise.
79534         * modules/inet_ntop: Likewise.
79535         * modules/inet_pton: Likewise.
79536         * modules/inttypes: Likewise.
79537         * modules/isnand-nolibm: Likewise.
79538         * modules/isnanf-nolibm: Likewise.
79539         * modules/mbchar: Likewise.
79540         * modules/mbfile: Likewise.
79541         * modules/mbiter: Likewise.
79542         * modules/mbuiter: Likewise.
79543         * modules/netdb: Likewise.
79544         * modules/netinet_in: Likewise.
79545         * modules/nproc: Likewise.
79546         * modules/pagealign_alloc: Likewise.
79547         * modules/poll: Likewise.
79548         * modules/printf-frexp: Likewise.
79549         * modules/pthread: Likewise.
79550         * modules/putenv: Likewise.
79551         * modules/random_r: Likewise.
79552         * modules/relocatable-prog: Likewise.
79553         * modules/search: Likewise.
79554         * modules/select: Likewise.
79555         * modules/selinux-h: Likewise.
79556         * modules/settime: Likewise.
79557         * modules/signal: Likewise.
79558         * modules/size_max: Likewise.
79559         * modules/socklen: Likewise.
79560         * modules/ssize_t: Likewise.
79561         * modules/stdarg: Likewise.
79562         * modules/stdbool: Likewise.
79563         * modules/stddef: Likewise.
79564         * modules/stdint: Likewise.
79565         * modules/stdio: Likewise.
79566         * modules/stdlib: Likewise.
79567         * modules/string: Likewise.
79568         * modules/strings: Likewise.
79569         * modules/sys_file: Likewise.
79570         * modules/sys_ioctl: Likewise.
79571         * modules/sys_select: Likewise.
79572         * modules/sys_socket: Likewise.
79573         * modules/sys_stat: Likewise.
79574         * modules/sys_time: Likewise.
79575         * modules/sys_times: Likewise.
79576         * modules/sys_utsname: Likewise.
79577         * modules/sys_wait: Likewise.
79578         * modules/sysexits: Likewise.
79579         * modules/time: Likewise.
79580         * modules/times: Likewise.
79581         * modules/tmpfile: Likewise.
79582         * modules/trim: Likewise.
79583         * modules/unistd: Likewise.
79584         * modules/wchar: Likewise.
79585         * modules/wctype: Likewise.
79587 2009-09-17  Bruno Haible  <bruno@clisp.org>
79589         Make getdate.y compile on QNX and NetBSD 5 / i386.
79590         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79591         TIME_T_FITS_IN_LONG_INT.
79592         * lib/getdate.y (long_time_t): New type.
79593         (relative_time): Change type of 'seconds' field to long_time_t.
79594         (get_date): Update types of local variables. Check against overflow
79595         during conversion from long_time_t to time_t.
79596         Reported by Matt Kraai <kraai@ftbfs.org>
79597         and Hasso Tepper <hasso@netbsd.org>.
79599 2009-09-17  Bruno Haible  <bruno@clisp.org>
79601         * modules/COPYING: Update copyright years.
79602         * modules/README: Likeiwse.
79603         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79604         Reported by Ian Beckwith <ianb@erislabs.net>.
79606 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79608         * users.txt: Update references for gnuit package.
79610 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79612         * m4/getdelim.m4: Fix typo in copyright line.
79614 2009-09-17  Bruno Haible  <bruno@clisp.org>
79616         * lib/atoll.c: Use the standard header with GPL copyright.
79617         * lib/argz.in.h: Likewise.
79618         * lib/glob.c: Likewise.
79619         * lib/glob-libc.h: Likewise.
79620         * lib/random_r.c: Likewise.
79621         * lib/siglist.h: Likewise.
79622         * lib/strsignal.c: Likewise.
79623         Reported by Ian Beckwith <ianb@erislabs.net>.
79625 2009-09-17  Eric Blake  <ebb9@byu.net>
79627         rmdir: ensure correct dependency order
79628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79630 2009-09-17  Bruno Haible  <bruno@clisp.org>
79632         Disable assertion that fails on NetBSD 5 / i386.
79633         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79634         Reported by Sam Steingold <sds@gnu.org>
79635         and Hasso Tepper <hasso@netbsd.org>.
79637 2009-09-16  Eric Blake  <ebb9@byu.net>
79639         unlinkdir: port to mingw
79640         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79641         on which no one can unlink a directory.
79643         stdlib: sort witness names
79644         * modules/stdlib (Makefile.am): Sort replacements.
79645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79646         * lib/stdlib.in.h: Likewise.
79648         parse-duration-tests: avoid link failure
79649         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79650         LIBINTL.
79651         Reported by Tom G. Christensen.
79653         openat-tests: ensure unlinkat behaves like rmdir
79654         * tests/test-rmdir.c (main): Factor guts...
79655         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79656         * modules/rmdir-tests (Files): Ship new file.
79657         * modules/openat-tests: New test.
79658         * tests/test-unlinkat.c: Likewise.
79660         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79661         * modules/rmdir-errno (Status, Notice): Now obsolete.
79663         rmdir: work around cygwin 1.5.x and mingw bugs
79664         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79665         * lib/rmdir.c (rmdir): Work around it.
79666         * modules/rmdir (Status, Notice): No longer obsolete.
79667         (Files): Add dos.m4.
79668         (Depends-on): Add unistd.
79669         (configure.ac): Set witnesses.
79670         (License): Relax to LGPLv2+.
79671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79672         * modules/unistd (Makefile.am): Substitute witnesses.
79673         * lib/unistd.in.h (rmdir): Declare replacement.
79674         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79675         * modules/rmdir-tests: New tests.
79676         * tests/test-rmdir.c: Likewise.
79678 2009-09-15  Eric Blake  <ebb9@byu.net>
79680         fchdir: improve use of replacement functions
79681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79682         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79683         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79684         REPLACE_CLOSEDIR.
79685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79686         * modules/sys_stat (Makefile.am): Substitute correct witness.
79687         * modules/dirent (Makefile.am): Likewise.
79688         * modules/unistd (Makefile.am): Likewise.
79689         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79690         * lib/unistd.in.h (dup): Likewise.
79691         * lib/sys_stat.in.h (fstat): Likewise.
79693         maint: ignore gnulib-tool temp files
79694         * .gitignore: Ignore files created during gnulib-tool --test.
79696 2009-09-13  Jim Meyering  <meyering@redhat.com>
79698         posixtm: don't reject a time that specify "60" as the number of seconds
79699         * lib/posixtm.c (posixtime): The code to reject invalid dates
79700         would also reject a time specified with the .60 suffix.
79701         But POSIX allows that, in order to accommodate leap seconds.
79702         So don't reject it.
79703         (main): Adjust tests accordingly.
79704         * modules/posixtm (Depends-on): Add stpcpy.
79706 2009-09-11  Jim Meyering  <meyering@redhat.com>
79708         announce-gen: include [$release_type] in emitted Subject:
79709         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79710         e.g., [stable] in the emitted Subject: line.
79712 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79714         Remove obsolete macros from several modules.
79715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79716         obsolete Autoconf macros with their modern counterparts.
79717         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79718         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79719         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79720         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79721         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79722         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79723         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79724         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79725         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79726         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79727         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79728         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79729         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79730         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79731         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79732         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79733         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79734         * m4/time_r.m4 (gl_TIME_R): Likewise.
79735         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79736         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79737         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79739         Fix copyright header in build-aux scripts.
79740         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79741         recommendation.
79742         * build-aux/ncftpput-ftp: Likewise.
79743         * build-aux/update-copyright: Likewise.
79745 2009-09-09  Eric Blake  <ebb9@byu.net>
79747         test-link: allow Linux choice of errno
79748         * tests/test-link.c (main): Relax test for alternate error.
79750         strndup: fix improper m4 caching
79751         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79752         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79753         (gl_PREREQ_STRNDUP): Delete.
79754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79755         * modules/string (Makefile.am): Substitute it.
79756         * lib/string.in.h (strndup): Modernize prototype.
79758         getcwd: port to mingw
79759         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79760         different from the POSIX assumptions made throughout the getcwd
79761         module; fortunately, the mingw getcwd does not need replacement.
79762         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79763         * modules/getcwd-tests: New test.
79764         * tests/test-getcwd.c: Likewise.
79766         link: fix platform bugs
79767         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79768         * lib/link.c (link): Work around them.  Fix related mingw bug.
79769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79770         * modules/unistd (Makefile.am): Substitute it.
79771         * lib/unistd.in.h (link): Declare replacement.
79772         * doc/posix-functions/link.texi (link): Document this.
79773         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79775         test-link: consolidate into single C program, test more cases
79776         * tests/test-link.sh: Delete.
79777         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79778         at least Cygwin and Solaris.
79779         * modules/link-tests (Files): Remove unused file.
79780         (Depends-on): Add errno, sys_stat.
79781         (Makefile.am): Simplify.
79783 2009-09-08  Bruno Haible  <bruno@clisp.org>
79785         Work around towlower, towupper bug on mingw.
79786         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79787         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79788         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79789         * doc/posix-functions/towupper.texi: Likewise.
79790         Reported by Eric Blake.
79792 2009-09-08  Jim Meyering  <meyering@redhat.com>
79794         build: don't try to run autoheader if we don't use it
79795         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79796         is not used in configure.ac.
79798 2009-09-08  Eric Blake  <ebb9@byu.net>
79800         euidaccess: fix compilation error
79801         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79803         rawmemchr: relax license
79804         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79805         okay.
79806         Reported by Jim Meyering.
79808         mkfifoat: new module
79809         * modules/mkfifoat: New file.
79810         * lib/mkfifoat.c: Likewise.
79811         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79813         * modules/sys_stat (Makefile.am): Use them.
79814         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79815         * MODULES.html.sh (File system functions): Mention module.
79816         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79817         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79818         * modules/mkfifoat-tests: New test.
79819         * tests/test-mkfifoat.c: Likewise.
79821         strchrnul: relax license
79822         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79823         okay.
79824         Reported by Jim Meyering.
79826 2009-09-08  Eric Blake  <ebb9@byu.net>
79828         fstatat: fix compilation on Solaris
79829         * lib/fstatat.c (includes): Add fcntl.h.
79830         Reported by Pádraig Brady.
79832 2009-09-07  Eric Blake  <ebb9@byu.net>
79834         rename: modernize replacement
79835         * modules/rename (Depends-on): Add stdio.
79836         (configure.ac): Declare witness.
79837         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79838         stdio take care of replacement.
79839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79840         * modules/stdio (Makefile.am): Substitute them.
79841         * lib/stdio.in.h (rename): Declare replacement.
79842         * lib/rename.c (includes): Allow cross-compilation to non-windows
79843         machines.
79844         * doc/posix-functions/rename.texi (rename): Improve
79845         documentation.
79847         stdio: sort witness names
79848         * modules/stdio (Makefile.am): Sort replacements.
79849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79850         * lib/stdio.in.h: Likewise.
79852         getcwd: minor cleanups
79853         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79854         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79856         openat: provide more convenience names
79857         * modules/faccessat (configure.ac): Add C witness.
79858         * lib/unistd.in.h (readlinkat): Fix typo.
79859         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79860         convenience wrappers.
79861         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79862         wrappers in syntax checks.
79864 2009-09-06  Eric Blake  <ebb9@byu.net>
79866         doc: fix comments in recent patches
79867         * lib/faccessat.c: Mention correct function.
79868         * lib/fchmodat.c: Likewise.
79869         * lib/fchownat.c: Likewise.
79870         * lib/symlinkat.c: Likewise.
79871         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79872         constants.
79874         faccessat, symlinkat: continue cleanup of previous patch
79875         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79876         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79877         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79879         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79880         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79881         set.
79883 2009-09-06  Bruno Haible  <bruno@clisp.org>
79885         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79886         (fstatat): Declare if GNULIB_FSTATAT is set.
79887         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79888         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79889         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79890         * modules/fcntl-h (Files): Remove m4/openat.m4.
79891         * modules/sys_stat (Files): Remove m4/openat.m4.
79892         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79893         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79894         * modules/unistd (Files): Remove m4/openat.m4.
79895         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79896         GNULIB_OPENAT.
79897         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79898         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79900         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79901         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79902         gl_OPENAT_DEFAULTS.
79903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79904         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79905         Don't require gl_OPENAT_DEFAULTS.
79906         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79907         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79908         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79909         (gl_OPENAT_DEFAULTS): Remove macro.
79911 2009-09-06  Bruno Haible  <bruno@clisp.org>
79913         * modules/openat (configure.ac): Remove unneeded witness.
79915 2009-09-06  Bruno Haible  <bruno@clisp.org>
79917         Set errno to ENOSYS when a function is entirely unsupported.
79918         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79919         EOPNOTSUPP.
79920         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79921         * modules/chown (Depends-on): Remove errno.
79923 2009-09-06  Bruno Haible  <bruno@clisp.org>
79925         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79927 2009-09-06  Bruno Haible  <bruno@clisp.org>
79929         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79931 2009-09-06  Ben Pfaff  <blp@gnu.org>
79932             Bruno Haible  <bruno@clisp.org>
79934         Work around a glibc bug in strtok_r.
79935         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79936         Undefine if UNDEFINE_STRTOK_R is set.
79937         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79938         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79939         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79940         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79941         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79942         UNDEFINE_STRTOK_R.
79943         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79945 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79947         exclude: minor fix
79948         * lib/exclude.c: Include wctype.h
79950 2009-09-06  Akim Demaille  <demaille@gostai.com>
79952         bootstrap: improve error message
79953         * build-aux/bootstrap (find_tool): Upon failure, report the list
79954         of candidates.
79955         Honor the initial value of the envvar.
79957 2009-09-05  Eric Blake  <ebb9@byu.net>
79959         symlinkat: new module
79960         * modules/symlinkat: New file.
79961         * lib/symlinkat.c: Likewise.
79962         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79964         * modules/unistd (Makefile.am): Use them.
79965         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79966         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79967         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79968         * MODULES.html.sh (File system functions): Mention module.
79969         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79970         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79971         * modules/symlinkat-tests: New test.
79972         * tests/test-symlinkat.c: Likewise.
79974         test-openat-safer: add more checks
79975         * tests/test-openat-safer.c (main): Check more code paths.
79977 2009-09-05  Jim Meyering  <meyering@redhat.com>
79979         syntax-check: detect unnecessary inclusion of openat.h
79980         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79982 2009-09-05  Bruno Haible  <bruno@clisp.org>
79984         Support towlower, towupper.
79985         * doc/posix-functions/towlower.texi: Mention module wctype.
79986         * doc/posix-functions/towupper.texi: Likewise.
79987         * lib/wctype.in.h (towlower, towupper): New functions.
79988         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79989         (ASSERT): New macro.
79990         (e): New variable.
79991         (main): Test also towlower, towupper. Test WEOF argument.
79992         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79994 2009-09-05  Bruno Haible  <bruno@clisp.org>
79996         Fix conversion behaviour when the input is invalid.
79997         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79998         mark occurring in first pass of indirect conversion.
79999         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
80000         input.
80001         Found by clang's static analyzer.
80003 2009-09-05  Bruno Haible  <bruno@clisp.org>
80005         * tests/test-striconveh.c (main): Test indirect conversion on platforms
80006         where direct conversion is possible.
80008 2009-09-04  Eric Blake  <ebb9@byu.net>
80010         openat: fail with ENOENT on empty name
80011         * lib/openat-proc.c (openat_proc_name): Special-case the empty
80012         buffer.
80014         link-follow: fix logic bug in prior patch
80015         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
80016         reversed sense of yes and no in prior patch.  Avoid confusing
80017         compilation failure with desired semantics.
80019         link-follow: accommodate mingw and cross-compilation
80020         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
80021         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
80022         cross-compilation results to -1, to make linkat easier to
80023         implement when cross-compiling.  Trivially support mingw.
80024         * modules/link-follow (configure.ac): Call new name.
80025         * NEWS: Mention this.
80027 2009-09-03  Eric Blake  <ebb9@byu.net>
80029         faccessat: compile replacement
80030         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
80031         needed.
80033         fts: fix compilation error
80034         * lib/fts.c (includes): Re-add "openat.h", for
80035         openat_needs_fchdir.
80037         faccessat: new module
80038         * modules/faccessat: New file.
80039         * lib/faccessat.c: Likewise.
80040         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80042         * modules/unistd (Makefile.am): Use it.
80043         * lib/unistd.in.h (faccessat): Declare it.
80044         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
80045         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
80046         * MODULES.html.sh (File system functions): Mention it.
80047         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
80048         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
80050         euidaccess: prefer POSIX over non-standard implementation
80051         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
80052         * lib/euidaccess.c (euidaccess): Use it if available.
80054         openat: make template easier to use
80055         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
80056         AT_FUNC_F2 to be undefined.
80057         (VALIDATE_FLAG): New macro; use it to reject bad flags.
80058         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
80059         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
80060         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
80061         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
80062         Likewise.
80063         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
80064         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
80065         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
80066         Likewise.
80068         openat: declare in POSIX headers
80069         * NEWS: Mention this.
80070         * modules/openat (configure.ac): Declare witnesses.
80071         (Depends-on): Add fcntl-h, sys_stat, unistd.
80072         (Include): Mention correct headers.
80073         * modules/fcntl-h (Depends-on): Add link-warning.
80074         (Files): Add openat.m4.
80075         (Makefile.am): Substitute witnesses.
80076         * modules/sys_stat (Files, Makefile.am): Likewise.
80077         * modules/unistd (Files, Makefile.am): Likewise.
80078         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
80079         (gl_OPENAT_DEFAULTS): New macro.
80080         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
80081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
80082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
80083         (SYS_STAT_H): Remove unused variable.
80084         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
80085         * lib/fcntl--.h (includes): Remove unneeded header.
80086         * lib/openat-safer.c (includes): Likewise.
80087         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
80088         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
80089         appropriate headers.
80090         (__OPENAT_PREFIX): Delete.
80091         * lib/fcntl.in.h (openat): Provide declaration.
80092         (AT_FDCWD): Fix Solaris bug.
80093         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
80094         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
80095         * lib/fchmodat.c (includes):  Adjust to find declaration.
80096         * lib/fchownat.c (includes): Likewise.
80097         * lib/mkdirat.c (includes): Likewise.
80098         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
80099         still visible.
80101 2009-09-02  Eric Blake  <ebb9@byu.net>
80103         errno: use consistently
80104         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
80105         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
80106         * lib/canonicalize.c (ELOOP): Likewise.
80107         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
80108         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
80109         * lib/lchown.c (EOPNOTSUPP): Likewise.
80110         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
80111         * lib/savewd.c (ESTALE): Likewise.
80112         * lib/settime.c (ENOSYS): Likewise.
80113         * lib/utimens.c (ENOSYS): Likewise.
80114         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
80115         * lib/chdir-safer.c (ELOOP): Likewise.
80116         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
80117         * modules/c-stack (Depends-on): Add errno.
80118         * modules/canonicalize (Depends-on): Likewise.
80119         * modules/chdir-safer (Depends-on): Likewise.
80120         * modules/fdopendir (Depends-on): Likewise.
80121         * modules/inet_ntop (Depends-on): Likewise.
80122         * modules/inet_pton (Depends-on): Likewise.
80123         * modules/lchown (Depends-on): Likewise.
80124         * modules/openat (Depends-on): Likewise.
80125         * modules/savewd (Depends-on): Likewise.
80126         * modules/settime (Depends-on): Likewise.
80127         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
80129         fts: avoid leaking fds
80130         * modules/fts (Depends-on): Add cloexec.
80131         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
80132         flag.
80134         fts: make directory fds more robust
80135         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
80136         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
80138         backupfile, chdir-long, fts, savedir: make safer
80139         * lib/backupfile.c (includes): Use "dirent--.h", since
80140         numbered_backup can write to stderr during readdir.
80141         * lib/savedir.c (includes): Likewise.
80142         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
80143         emulation can write to stderr on failure.
80144         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
80145         * lib/getcwd.c: Document why opendir_safer is unused.
80146         * lib/glob.c: Likewise.
80147         * lib/scandir.c: Likewise.
80148         * lib/openat-proc.c: Likewise, for open_safer.
80149         * modules/backupfile (Depends-on): Add dirent-safer.
80150         * modules/savedir (Depends-on): Likewise.
80151         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
80152         * modules/chdir-long (Depends-on): Add openat-safer.
80154         openat-safer: new module
80155         * modules/openat-safer: New file.
80156         * lib/openat-safer.c: Likewise.
80157         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
80158         * lib/fcntl-safer.h (openat_safer): Declare.
80159         * lib/fcntl--.h (openat): Override.
80160         * MODULES.html.sh (File descriptor based I/O): Mention it.
80161         * lib/openat.h: Add double-inclusion guards.
80162         * lib/openat.c (includes): Only include "fcntl-safer.h", not
80163         "fcntl--.h", so we can implement openat.
80164         * modules/openat-safer-tests: New test.
80165         * tests/test-openat-safer.c: New file.
80167         dirent-safer: new module
80168         * modules/dirent-safer: New file.
80169         * lib/dirent--.h: Likewise.
80170         * lib/dirent-safer.h: Likewise.
80171         * lib/opendir-safer.c: Likewise.
80172         * m4/dirent-safer.m4: Likewise.
80173         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
80174         * modules/dirent-safer-tests: New test.
80175         * tests/test-dirent-safer.c: New file.
80176         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
80178         fdopendir: optimize on mingw
80179         * lib/unistd.in.h (_gl_directory_name): New prototype.
80180         * lib/fchdir.c (_gl_directory_name): Implement it.
80181         (fchdir): Use it to simplify implementation.
80182         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
80183         fchdir, when available, to avoid calling [f]chdir().
80185         fdopendir: split into its own module
80186         * lib/openat.c (fdopendir): Move...
80187         * lib/fdopendir.c: ...into new file.
80188         * modules/fdopendir: New module.
80189         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
80190         * modules/openat (Depends-on): Add fdopendir.
80191         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
80192         fdopendir here.
80193         * modules/savedir (Depends-on): Only need fdopendir, not full
80194         openat.
80195         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
80196         * lib/openat.h (fdopendir): Drop prototype.
80197         * lib/dirent.in.h (fdopendir): Provide prototype.
80198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
80199         * modules/dirent (Makefile.am): Substitute them.
80200         * MODULES.html.sh (File system functions): Mention it.
80201         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
80202         * modules/fdopendir-tests: New file.
80203         * tests/test-fdopendir.c: Likewise.
80205         fchdir: use more consistent macro convention
80206         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
80207         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
80208         REPLACE_FCHDIR, rather than relying on config.h macros.
80209         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
80210         inside a single make-time REPLACE_FCHDIR block, rather than using
80211         the config.h FCHDIR_REPLACEMENT.
80212         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
80213         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
80214         Manage fstat replacement.
80215         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
80216         REPLACE_FCHDIR.
80217         * modules/sys_stat (Files): Add m4/unistd_h.m4.
80218         (Makefile.am): Substitute REPLACE_FCHDIR.
80219         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
80220         FCHDIR_REPLACEMENT.
80221         * lib/dup-safer.c (dup_safer): Likewise.
80222         * lib/dup2.c (rpl_dup2): Likewise.
80223         * lib/dup3.c (rpl_dup3): Likewise.
80224         * lib/open.c (rpl_open): Likewise.
80226         fchdir: simplify error handling, and support dup3
80227         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
80228         stdbool, malloc-posix, realloc-posix.
80229         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
80230         (ensure_dirs_slot): Return false on allocation failure.
80231         (rpl_dup2): Delete.
80232         (_gl_register_dup): New function.
80233         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
80234         (_gl_register_fd): Close fd on allocation failure.
80235         * lib/fcntl.in.h (_gl_register_fd): Update signature.
80236         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
80237         prototype.
80238         (rpl_dup2_fchdir): Delete prototype.
80239         * lib/open.c (open): Update caller.
80240         * lib/dup2.c (dup2): Track fchdir metadata.
80241         * lib/dup3.c (dup3): Likewise.
80242         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
80243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
80245 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80247         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
80248         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
80249         don't pass arguments to AC_OUTPUT.
80251 2009-09-02  Bruno Haible  <bruno@clisp.org>
80253         * modules/mkdtemp (License): Relicense under LGPLv2+.
80254         Reported by Paolo Bonzini.
80256 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80258         Replace uses of obsolete autoconf macros in Jim's modules.
80259         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80260         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80261         can evoke a warning from autoconf when run with -Wobsolete
80262         enabled.  They were declared obsolete for good reasons (see
80263         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80264         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80265         should not continue using the deprecated macros.
80266         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80267         obsolete Autoconf macros with modern counterparts.
80268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80269         * m4/dos.m4 (gl_AC_DOS): Likewise.
80270         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80271         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80272         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80273         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80274         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80275         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80276         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80277         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80278         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80279         Likewise.
80280         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80281         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80282         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80283         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80284         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80285         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80287 2009-09-01  Eric Blake  <ebb9@byu.net>
80289         fchdir: fix off-by-one bug in previous patch
80290         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80291         (_gl_unregister_fd): Delete useless if.
80293 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80295         maint.mk: sort the list of syntax-check rules
80296         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80297         easier to get a sense of progress when the rules are run sequentially
80298         and take a long time.
80300 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80302         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80303         * modules/netinet_in: Likewise.
80304         * modules/sys_file: Likewise.
80305         * modules/sys_ioctl: Likewise.
80306         * modules/sys_select: Likewise.
80307         * modules/sys_socket: Likewise.
80308         * modules/sys_stat: Likewise.
80309         * modules/sys_time: Likewise.
80310         * modules/sys_times: Likewise.
80311         * modules/sys_utsname: Likewise.
80312         * modules/sys_wait: Likewise.
80314 2009-09-01  Jim Meyering  <meyering@redhat.com>
80316         fts: help ensure that return values are not ignored
80317         * lib/fts_.h (__GNUC_PREREQ): Define.
80318         (__attribute_warn_unused_result__): Define.
80319         (fts_children, fts_close, fts_open, fts_read): Declare with
80320         __attribute_warn_unused_result__.
80322         fts: fts_close now fails also when closing a dir file descriptor fails
80323         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80324         and propagate to caller, along with errno.
80326         announce-gen: correct formatting in --help output
80327         * build-aux/announce-gen (usage): Move the one-line description in
80328         --help output "up", to where it belongs, just after Usage:.
80330 2009-08-31  Eric Blake  <ebb9@byu.net>
80332         fchdir: port to mingw
80333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80334         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80335         opened, then use a substitute.
80336         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80337         replacement.
80338         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80339         (_gl_register_fd): No need to check stat if open already filters
80340         all directories.
80341         (fchdir): Fix error condition to match POSIX.
80342         * modules/fchdir (Depends-on): Add sys_stat.
80343         * doc/posix-functions/open.texi (open): Document the limitation.
80344         * modules/fchdir-tests: New file.
80345         * tests/test-fchdir.c: Likewise.
80347         canonicalize: allow cross-testing from cygwin to mingw
80348         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80349         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80350         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80351         Likewise.
80352         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80353         target does not support symlinks.
80354         * tests/test-canonicalize-lgpl.sh: Likewise.
80356         chown: avoid compilation warning on mingw
80357         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80358         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80359         mingw.
80360         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80361         * modules/chown (Depends-on): Add errno.
80363 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80365         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80366         command.
80368 2009-08-31  Jim Meyering  <meyering@redhat.com>
80370         canonicalize: remove useless initialization
80371         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80372         initialization of local, "end".
80374 2009-08-30  Bruno Haible  <bruno@clisp.org>
80376         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80377         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80378         ENOSYS.
80380 2009-08-30  Bruno Haible  <bruno@clisp.org>
80382         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80383         /usr/xpg4/bin/tr when it exists.
80384         * tests/test-pipe-filter-gi1.sh: Likewise.
80386 2009-08-30  Bruno Haible  <bruno@clisp.org>
80388         Work around deficient /usr/bin/id program on Solaris.
80389         * tests/test-file-has-acl.sh (ID): New variable.
80390         * tests/test-set-mode-acl.sh (ID): Likewise.
80391         * tests/test-copy-acl.sh (ID): Likewise.
80392         * tests/test-copy-file.sh (ID): Likewise.
80394 2009-08-30  Bruno Haible  <bruno@clisp.org>
80396         New module 'xstriconveh'.
80397         * lib/xstriconveh.h: New file.
80398         * lib/xstriconveh.c: New file.
80399         * modules/xstriconveh: New file.
80401 2009-08-30  Bruno Haible  <bruno@clisp.org>
80403         Make it easier to use mem_cd_iconveh.
80404         * lib/striconveh.h (iconveh_t): New type.
80405         (iconveh_open, iconveh_close): New declarations.
80406         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80407         with a single 'const iconveh_t *' argument.
80408         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80409         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80410         with a single 'const iconveh_t *' argument.
80411         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80412         * tests/test-striconveh.c (main): Update.
80413         * NEWS: Mention the change.
80415 2009-08-30  Bruno Haible  <bruno@clisp.org>
80417         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80418         problem.
80420 2009-08-30  Bruno Haible  <bruno@clisp.org>
80422         Work around iconv_open problem on Solaris.
80423         * lib/iconv_open-solaris.gperf: New file.
80424         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80425         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80426         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80427         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80428         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80429         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80431 2009-08-29  Jim Meyering  <meyering@redhat.com>
80433         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80434         * top/maint.mk (cvs-check): Remove target; it was just an alias
80435         to the better-named vc-diff-check.
80436         (maintainer-distcheck): Remove rule.  It was used only from
80437         the (alpha/beta/major) target, and all of its commands but one
80438         were coreutils-specific.
80439         (vc-dist): Remove rule.
80440         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80441         Run vc-diff-check, not vc-dist.
80442         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80444 2009-08-27  Bruno Haible  <bruno@clisp.org>
80446         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80447         of 0.
80449 2009-08-27  Bruno Haible  <bruno@clisp.org>
80451         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80452         compilers.
80453         * doc/func.texi: Document the SunPRO C bug.
80455 2009-08-27  Bruno Haible  <bruno@clisp.org>
80457         Fix link error on Solaris.
80458         * tests/test-parse-duration.c (xstrdup): Remove function.
80460 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80462         ignore-value: handle pointer types, too
80463         * lib/ignore-value.h (__attribute__): Remove definition.
80464         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80465         of a more concise and more-often effective "(void) i" statement.
80466         (ignore_ptr): New function to suppress warnings from functions that
80467         return pointers, and to make it explicit that one function doesn't
80468         handle all cases.
80470 2009-08-25  Bruno Haible  <bruno@clisp.org>
80472         dup2: work around a Linux bug.
80473         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80474         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80475         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80476         Reported by Simon Josefsson.
80478 2009-08-25  Jim Meyering  <meyering@redhat.com>
80480         libguestfs uses gnulib
80481         * users.txt: Add libguestfs.
80483 2009-08-24  Eric Blake  <ebb9@byu.net>
80485         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80486         * lib/pipe2.c (includes): Add binary-io.h.
80487         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80489 2009-08-24  Bruno Haible  <bruno@clisp.org>
80491         Tolerate declared but missing accept4 syscall.
80492         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80493         available.
80494         * lib/sys_socket.in.h (accept4): If the function is already present,
80495         override it.
80496         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80497         * modules/accept4 (Makefile.am): Compile accept4.c always.
80498         Reported by Paolo Bonzini and Eric Blake.
80500 2009-08-23  Bruno Haible  <bruno@clisp.org>
80502         New module 'accept4'.
80503         * lib/sys_socket.in.h (accept4): New declaration.
80504         * lib/accept4.c: New file.
80505         * m4/accept4.m4: New file.
80506         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80507         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80508         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80509         HAVE_ACCEPT4.
80510         * modules/accept4: New file.
80511         * doc/glibc-functions/accept4.texi: Mention the new module.
80513 2009-08-24  Jim Meyering  <meyering@redhat.com>
80515         progname: also set global program_invocation_name, when possible
80516         Before this change, a libtool-enabled program that calls glibc's
80517         error function would report the program name as
80518         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80519         * modules/progname (configure.ac): Check for a declaration of
80520         program_invocation_name.
80521         * lib/progname.c:  Include <errno.h>.
80522         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80523         Set program_invocation_name.
80525 2009-08-23  Bruno Haible  <bruno@clisp.org>
80527         * lib/dup3.c: Include <string.h>.
80529 2009-08-23  Bruno Haible  <bruno@clisp.org>
80531         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80532         * lib/pipe2.c (pipe2): Likewise.
80533         Suggested by Eric Blake.
80535 2009-08-23  Bruno Haible  <bruno@clisp.org>
80537         Tolerate declared but missing dup3 syscall.
80538         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80539         * lib/unistd.in.h (dup3): If the function is already present,
80540         override it.
80541         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80542         * modules/dup3 (Makefile.am): Compile dup3.c always.
80543         Reported by Paolo Bonzini.
80545 2009-08-23  Bruno Haible  <bruno@clisp.org>
80547         Tolerate declared but missing pipe2 syscall.
80548         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80549         available.
80550         * lib/unistd.in.h (pipe2): If the function is already present,
80551         override it.
80552         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80553         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80554         Reported by Paolo Bonzini.
80556 2009-08-23  Bruno Haible  <bruno@clisp.org>
80558         * lib/pipe2.c (pipe2): Move #ifs inside function.
80560 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80562         quotearg: document limitations of quote_these_too
80563         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80564         those limitations are created.
80565         * lib/quotearg.h (set_char_quoting): Document that digits and
80566         letters that are special after backslash are not permitted.
80567         (quotearg_char): Cross-reference set_char_quoting documentation.
80569 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80571         quotearg: implement custom_quoting_style
80572         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80573         right_quote fields.
80574         (set_custom_quoting): New public function.
80575         (quotearg_buffer_restyled): Add left_quote and right_quote
80576         arguments, handle them very much like locale quoting, and update
80577         all uses.
80578         (quotearg_n_custom): New public function.
80579         (quotearg_n_custom_mem): New public function.
80580         (quotearg_custom): New public function.
80581         (quotearg_custom_mem): New public function.
80582         * lib/quotearg.h: Prototype and document new public functions.
80583         (enum quoting_style): For escape_quoting_style and
80584         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80585         ignored even though they're otherwise like c_quoting_style.
80586         Add custom_quoting_style member and document with comparison to
80587         clocale_quoting_style.
80588         * tests/test-quotearg.c (custom_quotes): New array.
80589         (custom_results): New array.
80590         (main): Extend to test custom quoting.
80592 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80594         quotearg: fix right quote escaping when it's in quote_these_too
80595         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80596         quote, be sure to prepend only one backslash.
80597         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80598         (main): Test it.
80600 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80602         quotearg-tests: test escaping of embedded locale quotes
80603         * tests/test-quotearg.c (struct result_strings): Add member for
80604         new input.
80605         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80606         (inputs): Add new input.
80607         (results_g): Add expected results.
80608         (flag_results): Likewise.
80609         (locale_results): Likewise.
80610         (compare_strings): Check those.
80612 2009-08-23  Bruno Haible  <bruno@clisp.org>
80614         Tests for module 'dup3'.
80615         * modules/dup3-tests: New file.
80616         * tests/test-dup3.c: New file.
80618         New module 'dup3'.
80619         * lib/unistd.in.h (dup3): New declaration.
80620         * lib/dup3.c: New file.
80621         * m4/dup3.m4: New file.
80622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80623         HAVE_DUP3.
80624         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80625         * modules/dup3: New file.
80626         * doc/glibc-functions/dup3.texi: Mention the new module.
80628 2009-08-23  Bruno Haible  <bruno@clisp.org>
80630         Tweak the dup2 test.
80631         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80632         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80633         the test file is still empty. Fix argument order of lseek.
80635 2009-08-23  Bruno Haible  <bruno@clisp.org>
80637         Avoid test link errors when the modules getopt-gnu, gettext are used.
80638         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80641 2009-08-23  Bruno Haible  <bruno@clisp.org>
80643         Fix getdtablesize() on mingw.
80644         * lib/getdtablesize.c (getdtablesize): Implement differently.
80645         * lib/unistd.in.h (getdtablesize): Improve comment.
80647 2009-08-23  Bruno Haible  <bruno@clisp.org>
80649         New module 'mkostemp'.
80650         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80651         * lib/stdlib.in.h (mksotemp): New declaration.
80652         * lib/mkostemp.c: New file, from glibc with modifications.
80653         * lib/tempname.h (GT_FILE): Remove outdated comment.
80654         (gen_tempname): Add flags argument.
80655         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80656         (__GT_FILE): Map to 1.
80657         (small_open, large_open): Remove macros.
80658         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80659         * lib/mkstemp.c (mkstemp): Update.
80660         * lib/mkdtemp.c (mkdtemp): Likewise.
80661         * m4/mkostemp.m4: New file.
80662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80663         HAVE_MKOSTEMP.
80664         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80665         HAVE_MKOSTEMP.
80666         * modules/mkostemp: New file, based on modules/mkstemp.
80667         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80668         * NEWS: Mention the change.
80670 2009-08-23  Bruno Haible  <bruno@clisp.org>
80672         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80673         Reported by Eric Blake.
80675 2009-08-23  Bruno Haible  <bruno@clisp.org>
80677         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80678         Reported by Eric Blake.
80680 2009-08-23  Bruno Haible  <bruno@clisp.org>
80682         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80683         * modules/pipe2 (Depends-on): Likewise.
80685 2009-08-23  Eric Blake  <ebb9@byu.net>
80687         fcntl-h: add O_TTY_INIT support
80688         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80689         * tests/test-fcntl-h.c (o): Test it.
80690         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80692         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80693         * modules/fcntl: Move <fcntl.h> header replacement...
80694         * modules/fcntl-h: ...to new name, so as not to collide with
80695         like-named function.
80696         * tests/test-fcntl.c: Rename...
80697         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80698         * modules/fcntl-tests: Rename...
80699         * modules/fcntl-h-tests: ...to this.  Update test file name.
80700         * modules/chdir-long (Depends-on): Update clients.
80701         * modules/chdir-safer (Depends-on): Likewise.
80702         * modules/fcntl-safer (Depends-on): Likewise.
80703         * modules/fts (Depends-on): Likewise.
80704         * modules/mkancesdirs (Depends-on): Likewise.
80705         * modules/mkdir-p (Depends-on): Likewise.
80706         * modules/open (Depends-on): Likewise.
80707         * modules/savewd (Depends-on): Likewise.
80708         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80709         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80711 2009-08-22  Bruno Haible  <bruno@clisp.org>
80713         * modules/binary-io (License): Relicense under LGPL.
80714         * modules/pipe2 (License): Likewise.
80716 2009-08-22  Bruno Haible  <bruno@clisp.org>
80718         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80719         return value.
80720         * lib/pipe-filter-gi.c (filter_init): Likewise.
80721         Reported by Eric Blake.
80723 2009-08-22  Bruno Haible  <bruno@clisp.org>
80725         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80726         * modules/pipe (Depends-on): Add pipe2.
80728 2009-08-22  Bruno Haible  <bruno@clisp.org>
80730         Tests for module 'pipe2'.
80731         * modules/pipe2-tests: New file.
80732         * tests/test-pipe2.c: New file.
80734         New module 'pipe2'.
80735         * lib/unistd.in.h (pipe2): New declaration.
80736         * lib/pipe2.c: New file.
80737         * m4/pipe2.m4: New file.
80738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80739         HAVE_PIPE2.
80740         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80741         * modules/pipe2: New file.
80742         * doc/glibc-functions/pipe2.texi: Mention the new module.
80744 2009-08-22  Bruno Haible  <bruno@clisp.org>
80746         Reference some new glibc functions.
80747         * doc/glibc-functions/accept4.texi: New file.
80748         * doc/glibc-functions/dup3.texi: New file.
80749         * doc/glibc-functions/mkostemp.texi: New file.
80750         * doc/glibc-functions/pipe2.texi: New file.
80751         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80752         (Glibc sys/socket.h): Refer to accept4.
80753         (Glibc unistd.h): Refer to dup3, pipe2.
80754         Reported by Eric Blake.
80756 2009-08-22  Jim Meyering  <meyering@redhat.com>
80757             Bruno Haible  <bruno@clisp.org>
80759         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80760         This makes it so packages using automake-1.11's silent-rules option
80761         can print e.g., a single "GEN    configmake.h" line, rather than
80762         the 30+ statements that perform the job.  If you want to see the
80763         actual commands, you can still run "make V=1".
80764         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80765         so that make output is abbreviated when those variables are defined
80766         appropriately.
80767         * modules/argz: Likewise.
80768         * modules/arpa_inet: Likewise.
80769         * modules/byteswap: Likewise.
80770         * modules/configmake: Likewise.
80771         * modules/dirent: Likewise.
80772         * modules/errno: Likewise.
80773         * modules/fcntl: Likewise.
80774         * modules/float: Likewise.
80775         * modules/fnmatch: Likewise.
80776         * modules/getopt-posix: Likewise.
80777         * modules/glob: Likewise.
80778         * modules/iconv_open: Likewise.
80779         * modules/inttypes: Likewise.
80780         * modules/localcharset: Likewise.
80781         * modules/locale: Likewise.
80782         * modules/math: Likewise.
80783         * modules/netdb: Likewise.
80784         * modules/netinet_in: Likewise.
80785         * modules/poll: Likewise.
80786         * modules/posix_spawnp-tests: Likewise.
80787         * modules/sched: Likewise.
80788         * modules/search: Likewise.
80789         * modules/selinux-h: Likewise.
80790         * modules/signal: Likewise.
80791         * modules/spawn: Likewise.
80792         * modules/stdarg: Likewise.
80793         * modules/stdbool: Likewise.
80794         * modules/stddef: Likewise.
80795         * modules/stdint: Likewise.
80796         * modules/stdio: Likewise.
80797         * modules/stdlib: Likewise.
80798         * modules/string: Likewise.
80799         * modules/strings: Likewise.
80800         * modules/sys_file: Likewise.
80801         * modules/sys_ioctl: Likewise.
80802         * modules/sys_select: Likewise.
80803         * modules/sys_socket: Likewise.
80804         * modules/sys_stat: Likewise.
80805         * modules/sys_time: Likewise.
80806         * modules/sys_times: Likewise.
80807         * modules/sys_utsname: Likewise.
80808         * modules/sys_wait: Likewise.
80809         * modules/sysexits: Likewise.
80810         * modules/time: Likewise.
80811         * modules/unistd: Likewise.
80812         * modules/wchar: Likewise.
80813         * modules/wctype: Likewise.
80815 2009-08-22  Jim Meyering  <meyering@redhat.com>
80817         announce-gen: detect write failure
80818         * build-aux/announce-gen: Add Coda at end.
80819         Remove equivalent-but-more-verbose block at top.
80821 2009-08-19  Akim Demaille  <demaille@gostai.com>
80823         bootstrap: --help to stdout.
80824         * bootstrap (usage): Don't send --help to stderr.
80825         Use a here doc instead of a long string.
80827 2009-08-21  Eric Blake  <ebb9@byu.net>
80829         test-popen-safer: split from test-popen
80830         * tests/test-popen.c (main): Move...
80831         * tests/test-popen.h: ...into new file.
80832         * tests/test-popen-safer2.c: New file.
80833         * modules/popen-tests (Files): Add test-popen.h.
80834         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80835         Suggested by Bruno Haible.
80837         test-fcntl-safer: split from test-open
80838         * tests/test-open.c (main): Move...
80839         * tests/test-open.h: ...into new file.
80840         * tests/test-fcntl-safer.c: New file.
80841         * modules/open-tests (Files): Add test-open.h.
80842         * modules/fcntl-safer-tests: New file.
80843         Suggested by Bruno Haible.
80845         test-fopen-safer: split from test-fopen
80846         * tests/test-fopen.c (main): Move...
80847         * tests/test-fopen.h: ...into new file.
80848         * tests/test-fopen-safer.c: New file.
80849         * modules/fopen-tests (Files): Add test-fopen.h.
80850         * modules/fopen-safer-tests: New file.
80851         Suggested by Bruno Haible.
80853 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80855         popen-safer: test O_CLOEXEC at run-time.
80856         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80858 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80860         fcntl: move more flags to the header
80861         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80862         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80863         * lib/fcntl.in.h: Do both things here.
80865 2009-08-21  Jim Meyering  <meyering@redhat.com>
80867         consistently remove $@-t before redirecting to it
80868         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80869         * modules/alloca-opt: Likewise.
80870         * modules/byteswap: Likewise.
80871         * modules/fnmatch: Likewise.
80872         * modules/getopt-posix: Likewise.
80873         * modules/glob: Likewise.
80874         * modules/poll: Likewise.
80875         * modules/posix_spawnp-tests: Likewise.
80876         * modules/sys_socket: Likewise.
80877         * modules/sysexits: Likewise.
80879 2009-08-21  Eric Blake  <ebb9@byu.net>
80881         popen: simplify access to original popen
80882         * lib/popen.c (rpl_popen): No need to worry about popen being a
80883         macro.
80884         Reported by Bruno Haible.
80886 2009-08-20  Eric Blake  <ebb9@byu.net>
80888         build: avoid some compiler warnings
80889         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80890         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80891         type.
80892         (new_exclude_segment, excluded_file_pattern_p)
80893         (excluded_file_name_p): Reduce scope.
80894         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80895         old-style declaration.
80897 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80899         * tests/test-exclude1.sh: Handle Windows EOL.
80900         * tests/test-exclude2.sh: Likewise.
80901         * tests/test-exclude3.sh: Likewise.
80902         * tests/test-exclude4.sh: Likewise.
80903         * tests/test-exclude5.sh: Likewise.
80904         * tests/test-exclude6.sh: Likewise.
80905         * tests/test-exclude7.sh: Likewise.
80907 2009-08-19  Akim Demaille  <demaille@gostai.com>
80909         bootstrap: find sha1sum when named gsha1sum.
80910         * bootstrap (find_tool): New.
80911         ($SHA1SUM): New.
80912         Use it.
80914 2009-08-20  Jim Meyering  <meyering@redhat.com>
80916         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80917         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80918         expression that converts "." in a file name to "\." in the resulting
80919         regexp.  Start with a dummy statement, so that prior shell variable
80920         definitions are expanded portably.  Reported by Simon Josefsson.
80922 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80924         Fix polling for writeability of a screen buffer.
80925         * lib/poll.c: Distinguish input and screen buffers for the
80926         Win32 implementation.
80927         * lib/select.c: Likewise.
80929 2009-08-19  Eric Blake  <ebb9@byu.net>
80931         popen-safer: prevent popen from clobbering std descriptors
80932         * modules/popen-safer: New file.
80933         * lib/popen-safer.c: Likewise.
80934         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80935         * lib/stdio--.h (popen): Provide override.
80936         * lib/stdio-safer.h (popen_safer): Provide declaration.
80937         * tests/test-popen.c (includes): Partially test this.
80938         * modules/popen-safer-tests: New file, for more tests.
80939         * tests/test-popen-safer.c: Likewise.
80940         * MODULES.html.sh (file stream based Input/Output): Mention it.
80942         tests: test some of the *-safer modules
80943         * modules/fopen-safer (Depends-on): Add fopen.
80944         * modules/fcntl-safer (Depends-on): Add fcntl.
80945         * modules/stdlib-safer (Depends-on): Add stdlib.
80946         (configure.ac): Set indicator.
80947         * modules/unistd-safer (configure.ac): Likewise.
80948         * modules/tmpfile-safer (configure.ac): Likewise.
80949         (Depends-on): Add tmpfile.
80950         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80951         active.
80952         * tests/test-fopen.c (includes): Test safer versions when they are
80953         in use.
80954         * tests/test-open.c (includes): Likewise.
80956         popen: fix cygwin 1.5 bug when stdin closed
80957         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80958         * modules/popen: New file.
80959         * modules/popen-tests: Likewise.
80960         * tests/test-popen.c: Likewise.
80961         * m4/popen.m4: Likewise.
80962         * lib/popen.c: Likewise.
80963         * lib/stdio.in.h (popen): New declaration.
80964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80965         * modules/stdio (Makefile.am): Likewise.
80966         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80968 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80970         maint.mk: give full control over update-copyright exclusions
80971         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80972         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80973         (update-copyright): Don't force inclusion of top-level
80974         ChangeLog.  Don't force exclusion of all COPYING files, but make
80975         them the default exclusion instead.
80977 2009-08-16  Bruno Haible  <bruno@clisp.org>
80979         Fix test failures on Solaris 10.
80980         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80981         tests when Solaris iconv() is used.
80982         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80983         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80984         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80985         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80986         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80988 2009-08-16  Bruno Haible  <bruno@clisp.org>
80990         Fix test failures on Solaris 10.
80991         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80992         'tr' program and pass it as first argument.
80993         * tests/test-pipe-filter-gi1.sh: Likewise.
80994         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80995         program as first argument.
80996         * tests/test-pipe-filter-gi1.c (main): Likewise.
80998 2009-08-16  Eric Blake  <ebb9@byu.net>
81000         fpurge: fix previous commits
81001         * modules/fpurge (Makefile.am): Make replacement conditional,
81002         partially reverting 2007-04-29 change; missed in previous
81003         attempt.
81004         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
81005         is missing.
81007 2009-08-16  Bruno Haible  <bruno@clisp.org>
81009         Clarify fpurge's effect on the file position.
81010         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
81011         * tests/test-fpurge.c (main): Make a second pass for checking the file
81012         position.
81014 2009-08-16  Bruno Haible  <bruno@clisp.org>
81016         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
81017         declaration of fpurge is missing.
81018         * tests/test-fpurge.c (main): Check that the file has not more contents
81019         than expected. Close the file before removing it.
81021 2009-08-15  Eric Blake  <ebb9@byu.net>
81023         fpurge: don't wrap working cygwin implementation
81024         * lib/fpurge.c (fpurge): Fix comment typo.
81025         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
81026         1.7 to avoid replacement.
81027         * tests/test-fpurge.c (main): Enhance test.
81029 2009-08-15  Eric Blake  <ebb9@byu.net>
81030         and Jim Meyering  <meyering@redhat.com>
81032         test-update-copyright: skip if perl is insufficient
81033         * tests/test-update-copyright.sh: Failure to run maintainer tool
81034         should not cause testsuite failure on cygwin 1.5.
81036 2009-08-14  Eric Blake  <ebb9@byu.net>
81038         doc: mention more functions added in cygwin 1.7.0
81039         * doc/posix-headers/limits.texi (limits.h): Update for recent
81040         cygwin additions.
81041         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
81042         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
81043         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
81044         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
81045         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
81047 2009-08-14  Eric Blake  <ebb9@byu.net>
81049         maint.mk: simplify update-copyright rule
81050         * top/maint.mk (update-copyright-local): Delete, and document how
81051         to do it in cfg.mk instead.
81052         (update-copyright-exclude-regexp): Delete, and document how to do
81053         it in .x-update-copyright instead.
81054         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
81055         exclude ChangeLog.
81057 2009-08-14  Bruno Haible  <bruno@clisp.org>
81059         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
81061 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81063         maint.mk: support update-copyright-env
81064         * top/maint.mk (update-copyright-env): Define place-holder.
81065         (update-copyright): Expand $(update-copyright-env) before
81066         invoking update-copyright.
81068 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81070         update-copyright: implement forced reformatting
81071         * build-aux/update-copyright: Implement and document
81072         UPDATE_COPYRIGHT_FORCE.
81073         * tests/test-update-copyright.sh: Test it.
81075 2009-08-14  Eric Blake  <ebb9@byu.net>
81076         and Bruno Haible  <bruno@clisp.org>
81078         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
81079         * tests/test-locale.c: Revert previous patch related to NULL.
81080         * tests/test-stdio.c: Likewise.
81081         * tests/test-stdlib.c: Likewise.
81082         * tests/test-string.c: Likewise.
81083         * tests/test-unistd.c: Likewise.
81084         * modules/time-tests (Depends-on): Add verify.
81085         * modules/wchar-tests (Depends-on): Likewise.
81086         * tests/test-time.c: Test for NULL compliance.
81087         * tests/test-wchar.c: Likewise.
81088         * modules/locale (Depends-on): Add stddef.
81089         * modules/stdio (Depends-on): Likewise.
81090         * modules/stdlib (Depends-on): Likewise.
81091         * modules/string (Depends-on): Likewise.
81092         * modules/time (Depends-on): Likewise.
81093         * modules/unistd (Depends-on): Likewise.
81094         * modules/wchar (Depends-on): Likewise.
81095         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
81096         * lib/stdlib.in.h (includes): Likewise.
81097         * lib/string.in.h (includes): Likewise.
81098         * lib/time.in.h (includes): Likewise.
81099         * lib/unistd.in.h (includes): Likewise.
81100         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
81101         replaced.
81102         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81103         * m4/stddef_h.m4: New file.
81104         * modules/stddef: Likewise.
81105         * lib/stddef.in.h: Likewise.
81106         * modules/stddef-tests: Likewise.
81107         * tests/test-stddef.c: Likewise.
81108         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
81109         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
81110         * doc/posix-headers/locale.texi (locale.h): Likewise.
81111         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
81112         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
81113         * doc/posix-headers/string.texi (string.h): Likewise.
81114         * doc/posix-headers/time.texi (time.h): Likewise.
81115         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
81116         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
81118 2009-08-14  Eric Blake  <ebb9@byu.net>
81120         doc: improve git diff of texinfo files
81121         * .gitattributes: Add rule for *.texi files, with hint on how to
81122         use it.
81123         Copied from m4, and based on a report by Bruno Haible.
81125 2009-08-14  Bruno Haible  <bruno@clisp.org>
81127         Disable multithread support by default on Cygwin 1.5.x for real.
81128         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
81130 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
81132         update-copyright: much ado about intervals
81133         * build-aux/update-copyright: Implement and document
81134         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
81135         of copyright year intervals.
81136         Also, document UPDATE_COPYRIGHT_YEAR.
81137         * tests/test-update-copyright.sh: Test it.
81139         update-copyright: convert 2-digit to 4-digit years
81140         * build-aux/update-copyright: Implement and document.
81141         * tests/test-update-copyright.sh: Update.
81143 2009-08-14  Jim Meyering  <meyering@redhat.com>
81145         test-exclude: avoid coreutils "make check" failure
81146         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
81147         just as in test-argmatch.c.
81149 2009-08-13  Eric Blake  <ebb9@byu.net>
81151         test-dup2: fix bad assumption
81152         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
81153         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
81155         test-version-etc: fix CRLF portability issue
81156         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
81157         recognize \r.
81158         * tests/test-argp-version-etc-1.sh: Likewise.
81160         getopt: update client modules
81161         * modules/argp (Depends-on): Use getopt-gnu.
81162         * modules/git-merge-changelog (Depends-on): Likewise.
81163         * modules/long-options (Depends-on): Likewise.
81164         * modules/xstrtol (Depends-on): Likewise.
81166 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81168         * tests/test-version-etc.sh: Don't fail on different
81169         project/version.  Don't fail on CRLF differences.  Rewrite to use
81170         multiple -e instead of multiple sed forks, suggested by Eric Blake
81171         <ebb9@byu.net>.
81172         * tests/test-argp-version-etc-1.sh: Likewise.
81174 2009-08-13  Simon Josefsson  <simon@josefsson.org>
81176         * tests/test-version-etc.sh: Don't fail on different
81177         project/version.
81179 2009-08-12  Bruno Haible  <bruno@clisp.org>
81181         Tests for modules 'getopt-posix', 'getopt-gnu'.
81182         * modules/getopt-posix-tests: New file.
81183         * tests/test-getopt.c: New file.
81184         * tests/test-getopt.h: New file.
81185         * tests/test-getopt_long.h: New file.
81187         New modules 'getopt-posix', 'getopt-gnu'.
81188         * modules/getopt-gnu: New file, renamed from modules/getopt.
81189         * modules/getopt-posix: New file.
81190         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
81191         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
81192         (gl_GETOPT): Remove macro.
81193         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
81194         Disable the test against BSD systems that declare optreset. Test
81195         against mingw bug. Test against lack of support of optional arguments
81196         on many platforms.
81197         * doc/glibc-headers/getopt.texi: Update module name and list of
81198         relevant platforms.
81199         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
81200         'getopt-gnu' and more portability problems.
81201         * NEWS: Mention the changes.
81203 2009-08-12  Bruno Haible  <bruno@clisp.org>
81205         Ensure that optarg etc. get declared by <unistd.h>.
81206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
81207         AC_USE_SYSTEM_EXTENSIONS.
81208         * modules/getopt (Depends-on): Add 'extensions'.
81210 2009-08-12  Bruno Haible  <bruno@clisp.org>
81212         Avoid test link errors.
81213         * modules/pipe-filter-ii-tests (Makefile.am): Define
81214         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
81215         * modules/pipe-filter-gi-tests (Makefile.am): Define
81216         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
81217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81219 2009-08-12  Bruno Haible  <bruno@clisp.org>
81221         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
81222         gl_GETOPT_SUBSTITUTE before.
81223         (gl_GETOPT): Use it.
81224         * m4/argp.m4 (gl_ARGP): Update.
81225         Reported by Sergey Poznyakoff.
81227         * m4/getopt.m4: Reorder macros.
81228         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
81229         (gl_GETOPT_SUBSTITUTE): Remove macro.
81231 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81233         Minor improvement in gitlog-to-changelog
81235         * build-aux/gitlog-to-changelog: New option `--format' makes
81236         output format string configurable.
81238 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
81240         Optimize exclude: use hash tables for non-wildcard patterns.
81242         * lib/exclude.c: Include hash.h and mbuiter.h
81243         (struct exclude_pattern, exclude_segment): New data types.
81244         (struct exclude): Rewrite.
81245         (fnmatch_pattern_has_wildcards): New function.
81246         (new_exclude_segment, free_exclude_segment): New functions.
81247         (excluded_file_pattern_p, excluded_file_name_p): New functions.
81248         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
81249         * lib/exclude.h (is_fnmatch_pattern): New prototype.
81250         * modules/exclude: Depend on hash and mbuiter.
81252         * modules/exclude-tests: New file.
81253         * tests/test-exclude.c: New file.
81254         * tests/test-exclude1.sh: New file.
81255         * tests/test-exclude2.sh: New file.
81256         * tests/test-exclude3.sh: New file.
81257         * tests/test-exclude4.sh: New file.
81258         * tests/test-exclude5.sh: New file.
81259         * tests/test-exclude6.sh: New file.
81260         * tests/test-exclude7.sh: New file.
81262 2009-08-12  Bruno Haible  <bruno@clisp.org>
81264         Ensure that getopt() gets declared by <unistd.h>.
81265         * lib/unistd.in.h: Conditionally include getopt.h.
81266         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81267         Set GNULIB_UNISTD_H_GETOPT.
81268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81269         GNULIB_UNISTD_H_GETOPT.
81270         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81272 2009-08-12  Bruno Haible  <bruno@clisp.org>
81274         Clarify logic.
81275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81276         gl_replace_getopt instead of GETOPT_H.
81278 2009-08-12  Bruno Haible  <bruno@clisp.org>
81280         * m4/getopt.m4: Add comments.
81282 2009-08-12  Bruno Haible  <bruno@clisp.org>
81284         Disable multithread support by default on Cygwin 1.5.x.
81285         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81286         set gl_use_threads=no if not specified otherwise.
81288 2009-08-11  Bruno Haible  <bruno@clisp.org>
81290         Avoid compilation error on NetBSD 5.0.
81291         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81292         * tests/test-stdio.c: Likewise.
81293         * tests/test-stdlib.c: Likewise.
81294         * tests/test-string.c: Likewise.
81295         * tests/test-unistd.c: Likewise.
81296         Reported by Greg Troxel <gdt@ir.bbn.com>
81297         at <https://savannah.gnu.org/support/?106973>.
81299 2009-08-11  Bruno Haible  <bruno@clisp.org>
81301         * modules/dup2-tests (Depends-on): Remove close.
81303         Undo 2009-07-19 commit.
81304         * modules/acl-tests (Depends-on): Remove close.
81305         * modules/binary-io-tests (Depends-on): Likewise.
81306         * modules/closein-tests (Depends-on): Likewise.
81307         * modules/flock-tests (Depends-on): Likewise.
81308         * modules/fsync-tests (Depends-on): Likewise.
81309         * modules/lseek-tests (Depends-on): Likewise.
81310         * modules/pipe-tests (Depends-on): Likewise.
81311         * modules/posix_spawn-tests (Depends-on): Likewise.
81312         * modules/posix_spawnp-tests (Depends-on): Likewise.
81313         * modules/stat-time-tests (Depends-on): Likewise.
81314         * modules/yesno-tests (Depends-on): Likewise.
81316 2009-08-10  Bruno Haible  <bruno@clisp.org>
81318         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81320 2009-08-10  Bruno Haible  <bruno@clisp.org>
81322         Fix a gcc warning.
81323         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81325 2009-08-10  Bruno Haible  <bruno@clisp.org>
81327         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81328         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81329         not only the first time.
81330         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81331         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81332         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81333         is 1, not only the first time.
81335 2009-08-10  Bruno Haible  <bruno@clisp.org>
81337         Make it possible to use module 'gethostname' without module 'close'.
81338         * lib/unistd.in.h (close): Evoke a link error only if
81339         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81341         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81342         * modules/unistd (Makefile.am): Substitute
81343         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81344         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81345         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81346         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81347         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81348         * modules/sys_ioctl (Makefile.am): Substitute
81349         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81350         * modules/socket (configure.ac): On native Windows, set
81351         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81352         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81353         Reported by Sam Steingold <sds@gnu.org>.
81355 2009-08-10  Bruno Haible  <bruno@clisp.org>
81357         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81358         * modules/ioctl (configure.ac): Likewise.
81360 2009-08-10  Bruno Haible  <bruno@clisp.org>
81362         Avoid collision between gnulib wrapper and libintl wrapper.
81363         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81364         already defined in intl/printf.c.
81365         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81366         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81368 2009-08-09  Bruno Haible  <bruno@clisp.org>
81370         Make <sys/select.h> really self-contained, also on Solaris 10.
81371         * lib/sys_select.in.h: Include <string.h>.
81372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81373         Solaris 10 problem.
81374         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81375         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81376         Reported by Jim Meyering.
81378 2009-08-09  Bruno Haible  <bruno@clisp.org>
81380         Avoid warnings from 'aclocal' that are due to a use of macro name
81381         AM_XGETTEXT_OPTION that is not defined in automake.
81382         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81383         automake.
81384         * modules/error (configure.ac): Likewise.
81385         * modules/propername (configure.ac): Likewise.
81386         * modules/vasprintf (configure.ac): Likewise.
81387         * modules/verror (configure.ac): Likewise.
81388         * modules/xprintf (configure.ac): Likewise.
81389         * modules/xvasprintf (configure.ac): Likewise.
81391 2009-08-08  Bruno Haible  <bruno@clisp.org>
81393         Avoid compilation error in C++ mode.
81394         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81395         Reported by Sam Steingold <sds@gnu.org>.
81397 2009-08-08  Bruno Haible  <bruno@clisp.org>
81399         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81400         for the various Unix platforms.
81401         * doc/posix-headers/limits.texi: Update platforms list regarding
81402         HOST_NAME_MAX.
81403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81405 2009-08-07  Jim Meyering  <meyering@redhat.com>
81407         selinux-at: fix typo in a comment
81408         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81409         Spotted by Paolo Bonzini.
81411         selinux-at: remove redundant m4 code, add documentation
81412         * modules/selinux-at (configure.ac): Remove redundant code.
81413         LIB_SELINUX is already set via the dependent module, selinux-h.
81414         (Include): Add quotes around selinux-at.h.
81415         * lib/selinux-at.h: Add documentation.
81416         Reported by Bruno Haible in
81417         http://marc.info/?l=gnulib-bug&m=124958988300749
81419 2009-08-07  Bruno Haible  <bruno@clisp.org>
81421         Avoid link error on MacOS X 10.3 and 10.4.
81422         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81423         on non-ELF systems.
81424         * lib/argp-pv.c (argp_program_version): Likewise.
81425         Reported by Simon Josefsson.
81427 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81429         * tests/test-version-etc.sh: Use $EXEEXT.
81431 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81433         update-copyright: update documentation to point to maint.mk
81434         * build-aux/update-copyright: Here.
81436 2009-08-06  Jim Meyering  <meyering@redhat.com>
81438         maint.mk: support update-copyright-local
81439         * top/maint.mk (update-copyright-local): Define place-holder.
81440         (update-copyright): Depend on $(update-copyright-local).
81442 2009-08-06  Jim Meyering  <meyering@redhat.com>
81444         selinux-at: new module
81445         Initially written for coreutils, this module will soon be
81446         used by findutils, too.
81447         * MODULES.html.sh [Misc]: Add selinux-at.
81448         * lib/selinux-at.h: New file, from coreutils.
81449         * lib/selinux-at.c: Likewise.
81450         * modules/selinux-at: Likewise.
81451         (License): Change from LGPL to GPL, since it depends
81452         on the GPL'd openat module.
81454         doc: update README
81455         * README: Remove references to cogito.
81456         Remove cvs-repo-updating instructions from 2007.
81457         Don't imply that CVS is better if you have limited disk space.
81459 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81461         update-copyright: support C-style comments
81462         * build-aux/update-copyright: Implement and document.
81463         * tests/test-update-copyright.sh: Test.
81465 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81467         update-copyright: support omitted "(C)"
81468         * build-aux/update-copyright: Implement and document.  Also,
81469         allow variable whitespace before "(C)".
81470         * tests/test-update-copyright.sh: Test.
81472 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81474         update-copyright: don't trip on non-FSF copyright statements
81475         * build-aux/update-copyright: Fix so that the first correctly
81476         formatted FSF copyright statement is recognized no matter what
81477         appears before it.  Update documentation.
81478         * tests/test-update-copyright.sh: Test that.
81480 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81482         update-copyright: clean up code a little
81483         * build-aux/update-copyright: Append "_re" to the name of any
81484         variable holding a regular expression.
81485         Replace "old" and "new" with "stmt" in variable names.
81486         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81487         handled correctly.
81488         Format code more consistently.
81490 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81492         update-copyright-tests: improve portability
81493         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81494         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81496 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81498         update-copyright: support @copyright{} and &copy;
81499         * build-aux/update-copyright: Implement and document.
81500         * tests/test-update-copyright.sh: Test.
81502 2009-08-04  Jim Meyering  <meyering@redhat.com>
81504         update-copyright-tests: correctly test EOL=\r\n handling
81505         * tests/test-update-copyright.sh: Put \r at the end of some lines
81506         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81508         maint.mk: make update-copyright exclusion list more configurable
81509         * top/maint.mk (update-copyright): Default to excluding COPYING,
81510         but allow an override, in case someone does want to update that file.
81512         maint.mk: don't update copyright date in COPYING
81513         * top/maint.mk (update-copyright): Exclude COPYING.
81515         maint.mk: add a copyright-updating rule
81516         * top/maint.mk (update-copyright): New rule.
81517         Derived from coreutils/Makefile.am.
81519         update-copyright: rename some variables
81520         * build-aux/update-copyright: Rename a few variables for clarity.
81521         Tweak syntax.  List Joel E. Denny as coauthor.
81523 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81525         update-copyright: fix bug for 2-digit last year and add tests
81526         * build-aux/update-copyright: Fix bug.
81527         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81528         specified.
81529         * modules/update-copyright-tests: New
81530         * tests/test-update-copyright.sh: New.
81532 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81534         update-copyright: handle leading tabs in line prefix
81535         * build-aux/update-copyright: Count leading tabs as 8 spaces
81536         when computing margin.  This helps with the formatting of
81537         ChangeLogs, for example.
81538         Fix documentation a little.
81540 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81542         update-copyright: support EOL=\r\n
81543         * build-aux/update-copyright: Implement that.
81545 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81547         update-copyright: automatically format copyright statements
81548         * build-aux/update-copyright: Implement that.
81549         Also, be a little more predictable and safer by always failing
81550         when the full copyright format is not perfectly recognized as an
81551         unbroken whole.  Discussed at
81552         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81553         Rewrite documentation.
81555 2009-08-03  Bruno Haible  <bruno@clisp.org>
81557         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81559 2009-08-02  Bruno Haible  <bruno@clisp.org>
81561         Tests for module 'uname'.
81562         * modules/uname-tests: New file.
81563         * tests/test-uname.c: New file.
81565         New module 'uname'.
81566         * lib/uname.c: New file.
81567         * m4/uname.m4: New file.
81568         * modules/uname: New file.
81569         * doc/posix-functions/uname.texi: Mention the new module.
81571 2009-08-02  Bruno Haible  <bruno@clisp.org>
81573         Tests for module 'sys_utsname'.
81574         * modules/sys_utsname-tests: New file.
81575         * tests/test-sys_utsname.c: New file.
81577         New module 'sys_utsname'.
81578         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81579         * m4/sys_utsname_h.m4: New file.
81580         * modules/sys_utsname: New file.
81581         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81583 2009-08-02  Bruno Haible  <bruno@clisp.org>
81585         Implicitly initialize the sockets library.
81586         * lib/gethostname.c: Include sockets.h.
81587         (rpl_gethostname): Invoke gl_sockets_startup.
81588         * lib/socket.c: Include sockets.h.
81589         (rpl_socket): Invoke gl_sockets_startup.
81590         * modules/gethostname (Depends-on): Add sockets.
81591         * modules/socket (Depends-on): Likewise.
81592         * tests/test-poll.c: Don't include sockets.h.
81593         (main): Don't invoke gl_sockets_startup.
81594         * tests/test-select.c: Don't include sockets.h.
81595         (main): Don't invoke gl_sockets_startup.
81597 2009-08-02  Bruno Haible  <bruno@clisp.org>
81599         Allow multiple calls to gl_sockets_startup.
81600         * lib/sockets.c (initialized_sockets_version): New variable.
81601         (gl_sockets_startup): Do nothing if already called for this or a higher
81602         version.
81603         (gl_sockets_cleanup): Reset initialized_sockets_version.
81605 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81607         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81608         different project/version.
81610 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81611             Bruno Haible  <bruno@clisp.org>
81613         Tests for module 'pipe-filter-gi'.
81614         * modules/pipe-filter-gi-tests: New file.
81615         * tests/test-pipe-filter-gi1.sh: New file.
81616         * tests/test-pipe-filter-gi1.c: New file.
81617         * tests/test-pipe-filter-gi2.sh: New file.
81618         * tests/test-pipe-filter-gi2-main.c: New file.
81619         * tests/test-pipe-filter-gi2-child.c: New file.
81621         New module 'pipe-filter-gi'.
81622         * lib/pipe-filter-gi.c: New file.
81623         * modules/pipe-filter-gi: New file.
81625 2009-08-02  Bruno Haible  <bruno@clisp.org>
81626             Paolo Bonzini  <bonzini@gnu.org>
81628         Tests for module 'pipe-filter-ii'.
81629         * modules/pipe-filter-ii-tests: New file.
81630         * tests/test-pipe-filter-ii1.sh: New file.
81631         * tests/test-pipe-filter-ii1.c: New file.
81632         * tests/test-pipe-filter-ii2.sh: New file.
81633         * tests/test-pipe-filter-ii2-main.c: New file.
81634         * tests/test-pipe-filter-ii2-child.c: New file.
81636         New module 'pipe-filter-ii'.
81637         * lib/pipe-filter.h: New file.
81638         * lib/pipe-filter-ii.c: New file.
81639         * lib/pipe-filter-aux.h: New file.
81640         * modules/pipe-filter-ii: New file.
81642 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81644         * lib/gc-libgcrypt.c: Change copyright to FSF.
81645         * lib/gc-gnulib.c: Likewise.
81647 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81649         * lib/gethostname.c: Include limits.h.
81651 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81652             Bruno Haible  <bruno@clisp.org>
81654         Ensure HOST_NAME_MAX as part of the gethostname module.
81655         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81656         define also HOST_NAME_MAX.
81657         * tests/test-gethostname.c: Include <limits.h>.
81658         (main): Check also HOST_NAME_MAX.
81659         * doc/posix-headers/limits.texi: Document the mingw problem.
81661 2009-08-02  Bruno Haible  <bruno@clisp.org>
81663         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81664         Add comments.
81666 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81668         * lib/gethostname.c: Add Windows wrapper.
81669         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81670         * modules/gethostname: Depend on sys_socket & errno, for also
81671         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81672         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81674 2009-07-31  Jim Meyering  <meyering@redhat.com>
81676         getloadavg: fix symbol name in comment
81677         * lib/getloadavg.c: Correct a typo I introduced when adding
81678         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81679         Matt Kraai spotted the problem.
81681 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81683         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81684         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81685         code also if ! defined N_NAME_POINTER.
81686         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81687         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81688         but the n_name member is a 12-byte array.
81690 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81692         update-copyright: generalize comment handling
81693         * build-aux/update-copyright: Handle copyright statements
81694         within more comment styles.
81695         Document usage.
81696         Report any file with an external copyright holder or parse failure.
81698 2009-07-29  Jim Meyering  <meyering@redhat.com>
81700         mktime: correct setting of REPLACE_MKTIME
81701         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81703         update-copyright: new module
81704         * modules/update-copyright: New file.
81705         * build-aux/update-copyright: New file.
81706         * MODULES.html.sh (maint+release support): Add update-copyright.
81708 2009-07-27  Bruno Haible  <bruno@clisp.org>
81710         Fix compilation error when <ctime> is used and mktime is replaced.
81711         * lib/time.in.h (mktime): New declaration.
81712         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81713         REPLACE_MKTIME instead of defining mktime in config.h.
81714         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81715         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81716         Reported by Ross McFarland <rwmcfa1@neces.com>.
81718 2009-07-27  Bruno Haible  <bruno@clisp.org>
81720         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81721         Reported by Matt Kraai <mkraai@beckman.com>.
81723 2009-07-25  Jim Meyering  <meyering@redhat.com>
81725         maint.mk: avoid warnings about missing files
81726         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81727         diagnostic when .prev-version does not exist.
81728         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81729         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81730         nonexistent cfg.mk.
81731         Suggestions from Simon Josefsson.
81733 2009-07-25  Bruno Haible  <bruno@clisp.org>
81735         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81736         defined as macros. Needed on QNX 6.4.1.
81737         Reported by Matt Kraai <mkraai@beckman.com>.
81739 2009-07-23  Jim Meyering  <meyering@redhat.com>
81741         maint.mk: invoke "make dist" with a working value of XZ_OPT
81742         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81744 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81746         Make fseeko.c compile on QNX.
81747         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81749 2009-07-22  Peter Simons  <simons@cryp.to>
81751         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81752         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81753         * lib/md4.h: Likewise.
81754         * lib/md5.h: Likewise.
81755         * lib/sha1.h: Likewise.
81756         * lib/sha256.h: Likewise.
81757         * lib/sha512.h: Likewise.
81759         tests-sha1: don't assign literal string to 'char *' variable
81760         * tests/test-sha1.c (main): Declare locals with "const" to match
81761         attributes of the right hand side.
81763 2009-07-21  Eric Blake  <ebb9@byu.net>
81765         dup2: fix more mingw problems
81766         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81767         fd to itself.
81768         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81769         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81770         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81771         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81772         care of mingw bugs.
81774 2009-07-21  Jim Meyering  <meyering@redhat.com>
81776         vc-list-files: avoid failure when /bin/sh is dash
81777         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81778         On some Debian based systems, /bin/sh is a symlink to dash, and running
81779         this command would omit the "/" following each 'tests' prefix:
81780           dash -x build-aux/vc-list-files -C . tests
81781         That is because bash and dash work differently:
81782           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81783           bash ok
81784           dash odd
81786 2009-07-21  Eric Blake  <ebb9@byu.net>
81788         dup2-tests: test previous patch
81789         * modules/dup2-tests: New file.
81790         * tests/test-dup2.c: Likewise.
81791         * tests/test-open.c (main): Avoid unspecified behavior.
81792         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81793         test.
81795         dup2: work around mingw and cygwin 1.5 bug
81796         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81798         * modules/unistd (Makefile.am): Substitute it.
81799         * lib/unistd.in.h (dup2): Declare the replacement.
81800         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81801         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81802         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81803         * modules/execute (Depends-on): Add dup2.
81804         * modules/fseterr (Depends-on): Likewise.
81805         * modules/pipe (Depends-on): Likewise.
81806         * modules/posix_spawn-internal (Depends-on): Likewise.
81808 2009-07-21  Bruno Haible  <bruno@clisp.org>
81810         * modules/.gitattributes: New file.
81812 2009-07-20  Bruno Haible  <bruno@clisp.org>
81814         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81815         (main): Use it.
81817 2009-07-20  Eric Blake  <ebb9@byu.net>
81819         test-pipe: make a bit more robust.
81820         * tests/test-pipe.c (myerr): Allow error messages regardless of
81821         what we do to stderr.
81822         (test_pipe): Rearrange to avoid deadlock.
81823         (child_main): Try a larger read, to ensure we avoided deadlock.
81824         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81825         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81826         if misused.
81828 2009-07-19  Jim Meyering  <meyering@redhat.com>
81830         fts: avoid false-positive cycle-detection
81831         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81832         for each new command line argument.
81834 2009-07-19  Bruno Haible  <bruno@clisp.org>
81836         Fix build error on mingw with the modules sys_select and unistd.
81837         * modules/acl-tests (Depends-on): Add close.
81838         * modules/binary-io-tests (Depends-on): Likewise.
81839         * modules/closein-tests (Depends-on): Likewise.
81840         * modules/flock-tests (Depends-on): Likewise.
81841         * modules/fsync-tests (Depends-on): Likewise.
81842         * modules/lseek-tests (Depends-on): Likewise.
81843         * modules/pipe-tests (Depends-on): Likewise.
81844         * modules/posix_spawn-tests (Depends-on): Likewise.
81845         * modules/posix_spawnp-tests (Depends-on): Likewise.
81846         * modules/stat-time-tests (Depends-on): Likewise.
81847         * modules/yesno-tests (Depends-on): Likewise.
81849 2009-07-19  Bruno Haible  <bruno@clisp.org>
81851         Unify conditionals.
81852         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81853         macros, not at the compiler macros.
81854         * lib/pipe.c: Likewise.
81855         * lib/execute.c: Likewise.
81856         * lib/spawni.c: Likewise.
81858 2009-07-19  Bruno Haible  <bruno@clisp.org>
81860         Fix handling of closed stdin/stdout/stderr on mingw.
81861         * lib/w32spawn.h: Include unistd.h.
81862         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81863         file descriptor with O_NOINHERIT flag.
81864         (fd_safer_noinherit): New function, based on fd-safer.c.
81865         (dup_safer_noinherit): New function, based on dup-safer.c.
81866         (undup_safer_noinherit): New function.
81867         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81868         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81869         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81870         instead of fd_safer.
81871         * tests/test-pipe.c: Include <windows.h>.
81872         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81873         result.
81875         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81876         from main.
81877         (test_pipe): Pass an extra argument for disambiguation.
81878         (main): Invoke parent_main or child_main.
81880         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81881         consistently.
81883 2009-07-18  Eric Blake  <ebb9@byu.net>
81885         test-pipe: fix mingw build
81886         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81888 2009-07-18  Bruno Haible  <bruno@clisp.org>
81890         * modules/pipe-tests (Makefile.am): Fix typo.
81892 2009-07-18  Eric Blake  <ebb9@byu.net>
81894         error: fix mingw build
81895         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81896         Reported by Bruno Haible.
81898         error: avoid undefined use of stdout
81899         * lib/error.c (error, error_at_line): Check that fd 1 is open
81900         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81901         is handling faults and the close_stdout module wants to report the
81902         detection of closed stdout as an error.
81904 2009-07-17  Eric Blake  <ebb9@byu.net>
81906         pipe: be robust in face of closed fds
81907         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81908         should cause child to misbehave.
81909         * modules/pipe-tests: New module.
81910         * tests/test-pipe.c: New file.
81911         * tests/test-pipe.sh: New file.
81912         Reported by Akim Demaille.
81914 2009-07-14  Bruno Haible  <bruno@clisp.org>
81916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81917         Reported by anonymous kc.
81919 2009-07-07  Jim Meyering  <meyering@redhat.com>
81921         maint.mk: don't look for translatable strings in *.m4 or *.mk
81922         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81923         when searching for translatable strings.
81925 2009-07-05  Jim Meyering  <meyering@redhat.com>
81927         remove superfluous parentheses in STREQ definition
81928         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81929         * lib/getugroups.c (STREQ): Likewise.
81930         * lib/fnmatch.c (STREQ): Likewise.
81931         Spotted by Bruno Haible.
81933 2009-07-04  Jim Meyering  <meyering@redhat.com>
81935         argv-iter: new module
81936         * MODULES.html.sh: Add argv-iter.
81937         * lib/argv-iter.c, lib/argv-iter.h: New files.
81938         * modules/argv-iter: New file.
81939         * modules/argv-iter-tests: New file.
81940         * tests/test-argv-iter.c: Test it.
81942 2009-07-04  Bruno Haible  <bruno@clisp.org>
81944         Fix assertion.
81945         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81946         contains more exact copies of a given entry than file2, leave the extra
81947         copies unpaired rather than aborting.
81948         Reported by Eric Blake.
81950 2009-07-02  Bruno Haible  <bruno@clisp.org>
81952         Speedup git-merge-changelog for git cherry-pick.
81953         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81954         (entries_mapping_get): New function, extracted from compute_mapping.
81955         (entries_mapping_reverse_get): New function.
81956         (compute_mapping): Add a 'full' argument. Return the result in a
81957         'struct entries_mapping'.
81958         (main): Update. Access the mappings through entries_mapping_get.
81959         Reported by Eric Blake.
81961 2009-07-02  Bruno Haible  <bruno@clisp.org>
81963         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81964         best_i.
81966 2009-07-02  Bruno Haible  <bruno@clisp.org>
81968         Speed up approximate search for matching ChangeLog entries.
81969         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81970         argument. Call fstrcmp_bounded instead of fstrcmp.
81971         (compute_mapping, try_split_merged_entry, main): Update callers.
81973 2009-07-02  Bruno Haible  <bruno@clisp.org>
81975         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81977 2009-06-30  Bruno Haible  <bruno@clisp.org>
81979         Reduce the number of uc_is_cased calls.
81980         * lib/unicase.h (casing_suffix_context_t): Add
81981         'first_char_except_ignorable' field.
81982         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81983         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81984         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81985         Update initializer.
81986         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81987         case-ignorable characters.
81988         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81989         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81990         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81991         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81992         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81994 2009-06-30  Bruno Haible  <bruno@clisp.org>
81996         Tests for module 'unicase/ignorable'.
81997         * modules/unicase/ignorable-tests: New file.
81998         * tests/unicase/test-ignorable.c: New file, generated by
81999         gen-uni-tables.
82001         Tests for module 'unicase/cased'.
82002         * modules/unicase/cased-tests: New file.
82003         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
82004         * tests/unicase/test-predicate-part1.h: New file, derived from
82005         tests/unictype/test-predicate-part1.h.
82006         * tests/unicase/test-predicate-part2.h: New file, same as
82007         tests/unictype/test-predicate-part2.h.
82009         Fix evaluation of "Before C" condition of FINAL_SIGMA.
82010         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
82011         (output_casing_properties): New function.
82012         (main): Call it.
82013         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
82014         * lib/unicase/cased.c: Include unictype/bitmap.h.
82015         (uc_is_cased): Define through a bitmap lookup.
82016         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
82017         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
82018         (uc_is_case_ignorable): Define through a bitmap lookup.
82019         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
82020         lib/unictype/bitmap.h.
82021         (Depends-on): Add inline. Clean up.
82022         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
82023         lib/unictype/bitmap.h.
82024         (Depends-on): Add inline. Clean up.
82025         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
82026         recognition.
82027         * tests/unicase/test-u16-tolower.c (main): Likewise.
82028         * tests/unicase/test-u32-tolower.c (main): Likewise.
82030 2009-06-30  Bruno Haible  <bruno@clisp.org>
82032         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
82033         * lib/unicase/u16-casemap.c: Likewise.
82034         * lib/unicase/u32-casemap.c: Likewise.
82036 2009-06-29  Bruno Haible  <bruno@clisp.org>
82038         Define u32_casefold as a wrapper around u32_ct_casefold.
82039         * lib/unicase/u32-casefold.c: Update.
82040         * modules/unicase/u32-casefold (Depends-on): Add
82041         unicase/u32-ct-casefold, unicase/empty-prefix-context,
82042         unicase/empty-suffix-context. Clean up.
82044         Define u16_casefold as a wrapper around u16_ct_casefold.
82045         * lib/unicase/u16-casefold.c: Update.
82046         * modules/unicase/u16-casefold (Depends-on): Add
82047         unicase/u16-ct-casefold, unicase/empty-prefix-context,
82048         unicase/empty-suffix-context. Clean up.
82050         Define u8_casefold as a wrapper around u8_ct_casefold.
82051         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
82052         * lib/unicase/u8-casefold.c: Update.
82053         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
82054         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82056         Define u32_totitle as a wrapper around u32_ct_totitle.
82057         * lib/unicase/u32-totitle.c: Update.
82058         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
82059         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82061         Define u16_totitle as a wrapper around u16_ct_totitle.
82062         * lib/unicase/u16-totitle.c: Update.
82063         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
82064         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82066         Define u8_totitle as a wrapper around u8_ct_totitle.
82067         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
82068         functions.
82069         (FUNC): Delegate to U_CT_TOTITLE.
82070         * lib/unicase/u8-totitle.c: Update.
82071         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
82072         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
82074         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
82075         invocation.
82076         * modules/unicase/u32-tolower (Depends-on): Add
82077         unicase/empty-prefix-context, unicase/empty-suffix-context.
82079         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
82080         invocation.
82081         * modules/unicase/u16-tolower (Depends-on): Add
82082         unicase/empty-prefix-context, unicase/empty-suffix-context.
82084         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
82085         * modules/unicase/u8-tolower (Depends-on): Add
82086         unicase/empty-prefix-context, unicase/empty-suffix-context.
82088         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
82089         invocation.
82090         * modules/unicase/u32-toupper (Depends-on): Add
82091         unicase/empty-prefix-context, unicase/empty-suffix-context.
82093         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
82094         invocation.
82095         * modules/unicase/u16-toupper (Depends-on): Add
82096         unicase/empty-prefix-context, unicase/empty-suffix-context.
82098         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
82099         * modules/unicase/u8-toupper (Depends-on): Add
82100         unicase/empty-prefix-context, unicase/empty-suffix-context.
82102         New module 'unicase/u32-ct-casefold'.
82103         * lib/unicase/u32-ct-casefold.c: New file.
82104         * modules/unicase/u32-ct-casefold: New file.
82106         New module 'unicase/u16-ct-casefold'.
82107         * lib/unicase/u16-ct-casefold.c: New file.
82108         * modules/unicase/u16-ct-casefold: New file.
82110         New module 'unicase/u8-ct-casefold'.
82111         * lib/unicase/u8-ct-casefold.c: New file.
82112         * lib/unicase/u-ct-casefold.h: New file, derived from
82113         lib/unicase/u-casefold.h.
82114         * modules/unicase/u8-ct-casefold: New file.
82116         New module 'unicase/u32-ct-totitle'.
82117         * lib/unicase/u32-ct-totitle.c: New file.
82118         * modules/unicase/u32-ct-totitle: New file.
82120         New module 'unicase/u16-ct-totitle'.
82121         * lib/unicase/u16-ct-totitle.c: New file.
82122         * modules/unicase/u16-ct-totitle: New file.
82124         New module 'unicase/u8-ct-totitle'.
82125         * lib/unicase/u8-ct-totitle.c: New file.
82126         * lib/unicase/u-ct-totitle.h: New file, derived from
82127         lib/unicase/u-totitle.h.
82128         * modules/unicase/u8-ct-totitle: New file.
82130         New module 'unicase/u32-ct-tolower'.
82131         * lib/unicase/u32-ct-tolower.c: New file.
82132         * modules/unicase/u32-ct-tolower: New file.
82134         New module 'unicase/u16-ct-tolower'.
82135         * lib/unicase/u16-ct-tolower.c: New file.
82136         * modules/unicase/u16-ct-tolower: New file.
82138         New module 'unicase/u8-ct-tolower'.
82139         * lib/unicase/u8-ct-tolower.c: New file.
82140         * modules/unicase/u8-ct-tolower: New file.
82142         New module 'unicase/u32-ct-toupper'.
82143         * lib/unicase/u32-ct-toupper.c: New file.
82144         * modules/unicase/u32-ct-toupper: New file.
82146         New module 'unicase/u16-ct-toupper'.
82147         * lib/unicase/u16-ct-toupper.c: New file.
82148         * modules/unicase/u16-ct-toupper: New file.
82150         New module 'unicase/u8-ct-toupper'.
82151         * lib/unicase/u8-ct-toupper.c: New file.
82152         * modules/unicase/u8-ct-toupper: New file.
82154         Add context arguments to u*_casemap functions.
82155         * lib/unicase/unicasemap.h: Include unicase.h.
82156         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
82157         suffix_context arguments.
82158         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
82159         functions.
82160         (FUNC): Add prefix_context and suffix_context arguments. Use
82161         uc_is_cased and uc_is_case_ignorable.
82162         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
82163         * lib/unicase/u16-casemap.c: Likewise.
82164         * lib/unicase/u32-casemap.c: Likewise.
82165         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
82166         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82167         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
82168         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82169         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
82170         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
82172         New module 'unicase/u32-suffix-context'.
82173         * lib/unicase/u32-suffix-context.c: New file.
82174         * modules/unicase/u32-suffix-context: New file.
82176         New module 'unicase/u16-suffix-context'.
82177         * lib/unicase/u16-suffix-context.c: New file.
82178         * modules/unicase/u16-suffix-context: New file.
82180         New module 'unicase/u8-suffix-context'.
82181         * lib/unicase/u8-suffix-context.c: New file.
82182         * lib/unicase/u-suffix-context.h: New file.
82183         * modules/unicase/u8-suffix-context: New file.
82185         New module 'unicase/empty-suffix-context'.
82186         * lib/unicase/empty-suffix-context.c: New file.
82187         * modules/unicase/empty-suffix-context: New file.
82189         New module 'unicase/u32-prefix-context'.
82190         * lib/unicase/u32-prefix-context.c: New file.
82191         * modules/unicase/u32-prefix-context: New file.
82193         New module 'unicase/u16-prefix-context'.
82194         * lib/unicase/u16-prefix-context.c: New file.
82195         * modules/unicase/u16-prefix-context: New file.
82197         New module 'unicase/u8-prefix-context'.
82198         * lib/unicase/u8-prefix-context.c: New file.
82199         * lib/unicase/u-prefix-context.h: New file.
82200         * lib/unicase/context.h: New file.
82201         * modules/unicase/u8-prefix-context: New file.
82203         New module 'unicase/empty-prefix-context'.
82204         * lib/unicase/empty-prefix-context.c: New file.
82205         * modules/unicase/empty-prefix-context: New file.
82207         New module 'unicase/ignorable'.
82208         * lib/unicase/ignorable.c: New file.
82209         * modules/unicase/ignorable: New file.
82211         New module 'unicase/cased'.
82212         * lib/unicase/caseprop.h: New file.
82213         * lib/unicase/cased.c: New file.
82214         * modules/unicase/cased: New file.
82216         New functions for case mapping of substrings.
82217         * lib/unicase.h (casing_prefix_context_t): New type.
82218         (unicase_empty_prefix_context): New variable.
82219         (u8_casing_prefix_context, u16_casing_prefix_context,
82220         u32_casing_prefix_context, u8_casing_prefixes_context,
82221         u16_casing_prefixes_context, u32_casing_prefixes_context): New
82222         declarations.
82223         (casing_suffix_context_t): New type.
82224         (unicase_empty_suffix_context): New variable.
82225         (u8_casing_suffix_context, u16_casing_suffix_context,
82226         u32_casing_suffix_context, u8_casing_suffixes_context,
82227         u16_casing_suffixes_context, u32_casing_suffixes_context,
82228         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
82229         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
82230         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
82231         declarations.
82233 2009-06-28  Jim Meyering  <meyering@redhat.com>
82235         boostrap: indent only with spaces
82236         * build-aux/bootstrap: Indent only with spaces, never TABs.
82238         bootstrap: split long lines
82239         * build-aux/bootstrap: Keep line length < 80.
82241         bootstrap: sync from coreutils
82242         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
82243         just as autoreconf does.  Verify a list of prerequisite
82244         package-name,version-number pairs if defined in bootstrap.conf.
82245         Refer to README-prereq, if prerequisites are not satisfied.
82247 2009-06-27  Eric Blake  <ebb9@byu.net>
82249         tests: add test for bogus NULL definition
82250         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
82251         * tests/test-stdlib.c: Likewise.
82252         * tests/test-string.c: Likewise.
82253         * tests/test-locale.c: Likewise.
82254         * tests/test-unistd.c: Likewise.
82255         * modules/stdio-tests (Depends-on): Add verify.
82256         * modules/stdlib-tests (Depends-on): Likewise.
82257         * modules/string-tests (Depends-on): Likewise.
82258         * modules/locale-tests (Depends-on): Likewise.
82259         * modules/unistd-tests (Depends-on): Likewise.
82261 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82263         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82264         self-explaining comment.
82265         * m4/selinux-selinux-h: Update serial.
82266         (gl_LIBSELINUX): New macro, adding a warning for missing development
82267         packages to code extracted from...
82268         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82269         Add warning for missing development packages here, too.
82271 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82273         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82275 2009-06-25  Eric Blake  <ebb9@byu.net>
82277         version-etc: fix regression
82278         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82279         gcc.
82280         (version_etc): Use it, to catch bugs with trailing NULL.
82281         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82282         (version_etc_va): Fix logic bug.
82283         * modules/version-etc-tests: Add test.
82284         * tests/test-version-etc.c: New file.
82285         * tests/test-version-etc.sh: Likewise.
82287 2009-06-25  Sam Steingold  <sds@gnu.org>
82289         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82290         mbtowc declaration.
82292 2009-06-25  Eric Blake  <ebb9@byu.net>
82294         fpurge: migrate into <stdio.h>
82295         * lib/fpurge.h: Delete...
82296         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82297         * lib/fpurge.c (fpurge): Change declaring header.
82298         * modules/fpurge (Files): Drop deleted file.
82299         (Depends-on): Add stdio.
82300         (configure.ac): Set witness.
82301         * modules/stdio (Makefile.am): Support fpurge macros.
82302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82303         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82304         * lib/fflush.c: Update client.
82305         * tests/test-fpurge.c: Likewise.
82306         * NEWS: Mention the change.
82308 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82310         * lib/argp-version-etc.c (program_authors): Add const
82311         qualifier.
82312         * lib/version-etc.c: Fix typos in the comments.
82313         * modules/argp-version-etc: Depends on version-etc.
82315 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82317         argp-version-etc: new module.
82319         * lib/argp-version-etc.c: New file.
82320         * lib/argp-version-etc.h: New file.
82321         * modules/argp-version-etc: New file.
82322         * modules/argp-version-etc-tests: New file.
82323         * tests/test-argp-version-etc.c: New test.
82324         * tests/test-argp-version-etc-1.sh: New test.
82326 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82328         Provide additional interfaces and documentation for version-etc
82329         module.
82331         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82332         interfaces.
82333         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82334         prototypes.
82336 2009-06-24  Bruno Haible  <bruno@clisp.org>
82338         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82339         HAVE_LIB${NAME} macro.
82340         Reported by Sam Steingold <sds@gnu.org>.
82342 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82344         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82345         needed.
82347 2009-06-21  Bruno Haible  <bruno@clisp.org>
82349         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82350         work.
82351         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82352         together with LIB${NAME}, LTLIB${NAME}.
82353         Reported by Sam Steingold <sds@gnu.org>.
82355 2009-06-20  Jim Meyering  <meyering@redhat.com>
82357         tests: make sc_require_test_exit_idiom more generic
82358         * top/maint.mk (Exit_witness_file): New overridable variable.
82359         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82360         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82362 2009-06-19  Jim Meyering  <meyering@redhat.com>
82364         hash: reverse order of src/dst parameters in an internal interface
82365         * lib/hash.c (transfer_entries): Reverse order of parameters to
82366         put DST before SRC.  Adjust callers.
82368         tests: test-hash: avoid wholesale duplication
82369         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82370         Instead, use a loop and add a single conditional.
82372         tests: test-hash: allow seed selection via a command line argument
82373         * tests/test-hash.c (get_seed): New function.
82374         (main): Use it.
82376 2009-06-19  Eric Blake  <ebb9@byu.net>
82378         hash: avoid memory leak on allocation failure
82379         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82380         failure.  Factor repeated algorithm...
82381         (transfer_entries): ...into new helper routine.
82382         (hash_delete): React to hash_rehash return value.
82384         hash: reduce memory pressure in hash_rehash no-op case
82385         * lib/hash.c (next_prime): Avoid overflow.
82386         (hash_initialize): Factor bucket size computation...
82387         (compute_bucket_size): ...into new helper function.
82388         (hash_rehash): Use new function and open coding to reduce memory
82389         pressure, and avoid a memory leak in USE_OBSTACK code.
82390         Reported by Jim Meyering.
82392 2009-06-18  Eric Blake  <ebb9@byu.net>
82394         hash: make rotation more obvious
82395         * modules/hash (Depends-on): Add bitrotate and stdint.
82396         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82397         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82398         (SIZE_MAX): Rely on headers for definition.
82399         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82400         (raw_hasher): Use rotr_sz.
82401         Suggested by Jim Meyering.
82403         hash: fix memory leak in last patch
82404         * lib/hash.c (hash_rehash): Avoid memory leak.
82406         hash: avoid no-op rehashing
82407         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82409         hash: provide default callback functions
82410         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82411         (hash_initialize): Use them as defaults.
82412         * tests/test-hash.c (main): Test this.
82414         hash: minor optimization
82415         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82416         when possible.
82417         (hash_initialize): Document this promise.
82418         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82419         * tests/test-hash.c (hash_compare_strings): Test this.
82421 2009-06-18  Bruno Haible  <bruno@clisp.org>
82423         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82424         going to be replaced anyway.
82426 2009-06-18  Bruno Haible  <bruno@clisp.org>
82428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82429         in one place.
82430         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82431         be replaced anyway.
82433 2009-06-18  Eric Blake  <ebb9@byu.net>
82435         hash: check for resize before insertion
82436         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82437         threshold before insertion, so that a pathological hash_rehash
82438         that fills every bucket can still trigger another rehash.
82440 2009-06-18  Jim Meyering  <meyering@redhat.com>
82442         hash-tests: add a loop around the small tests
82443         * tests/test-hash.c (main): Repeat small tests with selected
82444         small initial table sizes.
82446 2009-06-17  Eric Blake  <ebb9@byu.net>
82448         hash: minor cleanups
82449         * lib/hash.h (hash_entry): Make opaque, by moving...
82450         * lib/hash.c (hash_entry): ...here.
82451         (hash_insert): Clarify restrictions on what can be inserted.
82452         (hash_get_next): Clarify when it is safe to remove an element
82453         during traversal.
82454         (check_tuning): Skip verification when tuning is known safe.
82455         (hash_initialize): Clarify restrictions on tuning.
82457 2009-06-17  Jim Meyering  <jim@meyering.net>
82458         and Eric Blake  <ebb9@byu.net>
82460         hash-tests: new module
82461         * modules/hash-tests: New file.
82462         * tests/test-hash.c: New file.
82464 2009-06-17  Eric Blake  <ebb9@byu.net>
82466         strstr-simple: document new module
82467         * MODULES.html.sh: Document new module.
82469         strstr, strcasestr: replace on platforms with broken memchr
82470         * modules/strstr: Split into...
82471         * modules/strstr-simple: ...new module that does not care about
82472         performance, but does care about glibc bug.
82473         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82474         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82475         if platform memchr is broken, per Debian bug 521737.
82476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82477         memchr.
82478         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82479         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82480         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82481         * modules/mountlist (Depends-on): Add strstr-simple.
82482         * modules/gen-uni-tables (Depends-on): Likewise.
82483         * modules/argz (Depends-on): Add strstr.
82485 2009-06-17  Bruno Haible  <bruno@clisp.org>
82487         * modules/posix_spawn-internal (Depends-on): Add errno.
82489 2009-06-17  Bruno Haible  <bruno@clisp.org>
82491         Define missing ESTALE on Interix 3.5.
82492         * lib/errno.in.h (ESTALE): Assign a value if missing.
82493         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82494         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82495         missing.
82496         * doc/posix-headers/errno.texi: Mention the Interix bug.
82497         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82499 2009-06-15  Eric Blake  <ebb9@byu.net>
82501         memchr, memchr2: add valgrind exception
82502         * lib/memchr.valgrind: New file.
82503         * lib/memchr2.valgrind: New file.
82504         * modules/memchr (Files): Distribute valgrind file.
82505         * modules/memchr2 (Files): Likewise.
82507         docs: memchr is no longer obsolete
82508         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82509         * lib/string.in.h (memchr): Simplify logic.
82511 2009-06-14  Jim Meyering  <meyering@redhat.com>
82513         link-follow: fix the "checking..." message to not mention trailing slash
82514         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82515         never considered trailing slashes.
82517 2009-06-14  Bruno Haible  <bruno@clisp.org>
82519         * m4/memchr.m4: Mention also the bug on IA-64.
82520         * doc/posix-functions/memchr.texi: Likewise.
82522 2009-06-12  Eric Blake  <ebb9@byu.net>
82524         memchr: detect broken x86_64 and alpha implementations
82525         * modules/memchr-tests (Depends-on): Move mmap detection...
82526         * modules/memchr (Depends-on): ...here.
82527         (configure.ac): Set indicator.
82528         * lib/string.in.h (memchr): Declare replacement.
82529         * modules/string (Makefile.am): Trigger replacement.
82530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82531         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82532         bugs.
82533         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82534         * modules/getpagesize (License): Relax license.
82536 2009-06-11  Bruno Haible  <bruno@clisp.org>
82538         * lib/idpriv.h: Add more references.
82540 2009-06-08  Bruno Haible  <bruno@clisp.org>
82542         Tests for module 'idpriv-droptemp'.
82543         * modules/idpriv-droptemp-tests: New file.
82544         * tests/test-idpriv-droptemp.sh: New file.
82545         * tests/test-idpriv-droptemp.su.sh: New file.
82546         * tests/test-idpriv-droptemp.c: New file.
82548         New module 'idpriv-droptemp'.
82549         * lib/idpriv-droptemp.c: New file.
82550         * modules/idpriv-droptemp: New file.
82552 2009-06-08  Bruno Haible  <bruno@clisp.org>
82554         Tests for module 'idpriv-drop'.
82555         * modules/idpriv-drop-tests: New file.
82556         * tests/test-idpriv-drop.sh: New file.
82557         * tests/test-idpriv-drop.su.sh: New file.
82558         * tests/test-idpriv-drop.c: New file.
82560         New module 'idpriv-drop'.
82561         * lib/idpriv.h: New file.
82562         * lib-idpriv-drop.c: New file.
82563         * m4/idpriv.m4: New file.
82564         * modules/idpriv-drop: New file.
82566 2009-06-08  Bruno Haible  <bruno@clisp.org>
82568         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82569         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82570         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82571         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82572         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82573         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82574         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82576 2009-06-08  Eric Blake  <ebb9@byu.net>
82578         test-strstr: use memory fence, when possible
82579         * tests/test-strstr.c (main): Use memory fence, in order to be
82580         more likely to trigger Debian bug 521737.
82581         * modules/strstr-tests (Files): Pull in additional files.
82583         memchr: no longer obsolete, for wider field testing
82584         * modules/memchr (Status, Notice): Delete, this module is no
82585         longer obsolete.
82586         * modules/vasnprintf (Depends-on): Add memchr.
82588 2009-06-07  Jim Meyering  <meyering@redhat.com>
82590         hash: declare some functions with the warn_unused_result attribute
82591         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82593 2009-06-07  Bruno Haible  <bruno@clisp.org>
82595         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82596         Reported by Eric Blake.
82598 2009-06-06  Eric Blake  <ebb9@byu.net>
82600         test-alignof: fix typo with long double
82601         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82602         compiler error.
82604 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82606         Escape non-texinfo { and }s.
82607         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82608         markup error.
82610 2009-06-04  Jim Meyering  <meyering@redhat.com>
82612         gitlog-to-changelog: don't infloop on an empty commit log
82613         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82614         Reported by Boris Petersen <transacid@centerim.org>.
82616 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82618         version-etc: extend for packagers
82619         Add three new configure options, intended for packagers:
82620           --with-packager="packager name"
82621           --with-packager-version="packager-specific version"
82622           --with-packager-bug-reports="packager bug reporting"
82623         An example with coreutils:
82624           $ ./configure \
82625             --with-packager=Gentoo \
82626             --with-packager-bug-report=http://bugs.gentoo.org/ \
82627             --with-packager-version="patchset 1.6"
82628           $ ./src/ls --version | head -n2
82629           ls (GNU coreutils) 7.1-dirty
82630           Packaged by Gentoo (patchset 1.6)
82631         Note that the bug reporting info via --help doesn't show up because
82632         coreutils uses its own custom emit_bug_reporting_address() implementation
82633         in src/system.h.  If it didn't, it'd look like:
82634           $ ./src/ls --help | tail -n4
82635           Report bugs to <bug-coreutils@gnu.org>.
82636           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82637           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82638           General help using GNU software: <http://www.gnu.org/gethelp/>.
82639         * lib/version-etc.c: Print new information, if provided.
82640         * m4/version-etc.m4: New file.
82641         * modules/version-etc (Files): Add m4/version-etc.m4.
82642         (configure.ac): Add gl_VERSION_ETC.
82644 2009-05-31  Bruno Haible  <bruno@clisp.org>
82646         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82647         and 'int64_t'.
82648         * modules/alignof-tests (Dependencies): Add stdint.
82649         Reported by Eric Blake.
82651 2009-05-31  Bruno Haible  <bruno@clisp.org>
82653         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82654         restriction due to compiler bugs.
82655         Reported by Eric Blake.
82657 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82658             Bruno Haible  <bruno@clisp.org>
82660         Fix test-alignof failure.
82661         * lib/alignof.h (alignof_slot): New macro.
82662         (alignof_type): New macro, with the same semantics as the previous
82663         'alignof'.
82664         (alignof): Alias to alignof_slot.
82665         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82666         check that the results are usable as constant expressions.
82668 2009-05-31  Bruno Haible  <bruno@clisp.org>
82670         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82671         * tests/test-memchr.c (main): Check that memchr does not read past the
82672         first occurrence of the byte.
82673         * tests/test-strstr.c (main): Update comment.
82674         Suggested by Eric Blake.
82676 2009-05-30  Bruno Haible  <bruno@clisp.org>
82678         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82679         detail how to use dumpbin.
82680         Reported by David Byron <dbyron@dbyron.com>.
82682 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82684         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82686 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82688         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82690 2009-05-28  Bruno Haible  <bruno@clisp.org>
82692         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82693         build-aux/ files.
82695 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82697         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82699 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82701         * gnulib-tool (sed_transform_main_lib_file)
82702         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82703         regexps.
82705 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82707         * tests/test-strstr.c: Add another self-test.
82708         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82709         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82711 2009-05-23  Bruno Haible  <bruno@clisp.org>
82713         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82714         change.
82716 2009-05-21  Bruno Haible  <bruno@clisp.org>
82718         Simplify use of mode_t varargs.
82719         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82720         uses 'mode_t' or 'int'.
82721         * lib/openat.c (openat): Likewise.
82722         * lib/open-safer.c (open_safer): Likewise.
82723         * m4/mode_t.m4: New file.
82724         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82725         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82726         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82727         * modules/open (Files): Add m4/mode_t.m4.
82728         * modules/openat (Files): Likewise.
82729         * modules/fcntl-safer (Files): Likewise.
82730         Suggested by Eric Blake.
82732 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82734         * doc/glibc-functions/fallocate.texi: New file.
82735         * doc/gnulib.texi: Include it.
82737 2009-05-21  Eric Blake  <ebb9@byu.net>
82738             Bruno Haible  <bruno@clisp.org>
82740         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82741         invocations.
82742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82744 2009-05-21  Eric Blake  <ebb9@byu.net>
82745             Bruno Haible  <bruno@clisp.org>
82747         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82748         include_next. Fix of 2008-11-20 commit.
82749         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82750         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82751         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82752         NEXT_MATH_H.
82753         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82754         instead of NEXT_MATH_H.
82756 2009-05-21  Bruno Haible  <bruno@clisp.org>
82758         Avoid redefinition warnings for SIZE_MAX.
82759         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82760         Reported by Simon Josefsson.
82762 2009-05-21  Bruno Haible  <bruno@clisp.org>
82764         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82765         AC_CACHE_VAL.
82767 2009-05-20  Bruno Haible  <bruno@clisp.org>
82769         Make zeroptr.h work on mingw.
82770         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82771         mprotect.
82772         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82773         * modules/memchr2-tests (configure.ac): Likewise.
82774         * modules/memcmp-tests (configure.ac): Likewise.
82775         * modules/memmem-tests (configure.ac): Likewise.
82776         * modules/memrchr-tests (configure.ac): Likewise.
82777         Reported by Simon Josefsson.
82779 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82781         * tests/test-glob.c: Include string.h for strcmp prototype.
82783 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82785         * modules/getdelim (Depends-on): Add explicit stdint, although it
82786         was implicitly already pulled in via realloc-posix.
82787         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82789 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82791         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82792         G. Christensen" <tgc@jupiterrise.com>.
82793         * m4/sys_socket_h.m4: Check for sa_family_t.
82794         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82795         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82796         * tests/test-sys_socket.c: Check that sa_family_t works.
82798 2009-05-18  Eric Blake  <ebb9@byu.net>
82800         maint.mk: allow gnulib_dir in VPATH build
82801         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82803 2009-05-15  Jim Meyering  <meyering@redhat.com>
82805         maint.mk: Give gnulib_dir a default definition.
82806         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82807         Thus, most packages no longer need to specify this variable in cfg.mk
82809 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82811         rename.m4: fix typos that would make non-mingw cross-configure fail
82812         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82814 2009-05-13  Eric Blake  <ebb9@byu.net>
82816         mmap-anon: avoid out-of-order autoconf expansion
82817         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82818         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82819         * modules/memchr-tests (Depends-on): Add extensions.
82820         * modules/memchr2-tests (Depends-on): Add extensions.
82821         * modules/memcmp-tests (Depends-on): Add extensions.
82822         * modules/memmem-tests (Depends-on): Add extensions.
82823         * modules/memrchr-tests (Depends-on): Add extensions.
82825 2009-05-13  Bruno Haible  <bruno@clisp.org>
82827         Make some tests ISO C 99 compliant.
82828         * tests/zerosize-ptr.h: New file.
82829         * tests/test-memchr.c: Include zerosize-ptr.h.
82830         (main): Use a zero-size object pointer instead of NULL.
82831         * tests/test-memchr2.c: Include zerosize-ptr.h.
82832         (main): Use a zero-size object pointer instead of NULL.
82833         * tests/test-memcmp.c: Include zerosize-ptr.h.
82834         (main): Use a zero-size object pointer instead of NULL.
82835         * tests/test-memmem.c: Include zerosize-ptr.h.
82836         (main): Use a zero-size object pointer instead of NULL.
82837         * tests/test-memrchr.c: Include zerosize-ptr.h.
82838         (main): Use a zero-size object pointer instead of NULL.
82839         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82840         m4/mmap-anon.m4.
82841         (Depends-on): Add getpagesize.
82842         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82843         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82844         m4/mmap-anon.m4.
82845         (Depends-on): Add getpagesize.
82846         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82847         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82848         m4/mmap-anon.m4.
82849         (Depends-on): Add getpagesize.
82850         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82851         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82852         m4/mmap-anon.m4.
82853         (Depends-on): Add getpagesize.
82854         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82855         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82856         m4/mmap-anon.m4.
82857         (Depends-on): Add getpagesize.
82858         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82860 2009-05-12  Bruno Haible  <bruno@clisp.org>
82862         Tests for module 'alignof'.
82863         * modules/alignof-tests: New file.
82864         * tests/test-alignof.c: New file.
82866 2009-05-12  Bruno Haible  <bruno@clisp.org>
82868         Fix alignof macro.
82869         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82870         vendor compilers that are always correct.
82872 2009-05-12  Bruno Haible  <bruno@clisp.org>
82874         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82875         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82876         not whether its fully works.
82878 2009-05-12  Bruno Haible  <bruno@clisp.org>
82880         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82882 2009-05-12  Jim Meyering  <meyering@redhat.com>
82884         * top/maint.mk: Adjust backslash alignment.
82886 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82888         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82890 2009-05-11  Eric Blake  <ebb9@byu.net>
82892         argp: avoid undefined behavior
82893         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82894         macros.
82896 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82898         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82899         user.name to prevent git commit from complaining.
82901 2009-05-10  Bruno Haible  <bruno@clisp.org>
82903         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82904         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82905         it rewrites every file name only once.
82906         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82908 2009-05-08  Bruno Haible  <bruno@clisp.org>
82910         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82911         instead of 'max'.
82913 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82915         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82916         sockaddr_storage test.
82918 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82920         * modules/sys_socket (Makefile.am): Substitute
82921         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82922         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82923         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82924         * tests/test-sys_socket.c: Check sockaddr_storage.
82926 2009-05-08  Bruno Haible  <bruno@clisp.org>
82928         New module 'alignof'.
82929         * lib/alignof.h: New file.
82930         * modules/alignof: New file.
82932 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82933             Bruno Haible  <bruno@clisp.org>
82935         Fix test-file-has-acl on FreeBSD.
82936         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82937         mask is implicitly added.
82938         * tests/test-file-has-acl.c: Include <signal.h>.
82939         (main): Terminate the test after 5 seconds.
82940         * modules/acl-tests (configure.ac): Check for alarm function.
82942 2009-05-04  Bruno Haible  <bruno@clisp.org>
82944         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82946         * modules/errno (configure.ac): Drop AC_REQUIRE.
82947         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82948         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82950 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82952         * modules/glob-tests: New module.
82953         * tests/test-glob.c: Add.
82955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82957         * modules/fnmatch-tests: New module.
82958         * tests/test-fnmatch.c: Add.
82960 2009-05-04  Eric Blake  <ebb9@byu.net>
82962         maint: make the new no-submodule-changes rule VPATH-safe
82963         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82965 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82966             Bruno Haible  <bruno@clisp.org>
82968         acl: Fix infinite loop on FreeBSD.
82969         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82970         of return value from acl_get_entry.
82971         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82972         Likewise.
82974 2009-05-03  Bruno Haible  <bruno@clisp.org>
82976         * lib/acl-internal.h (acl_entries): Clarify return value.
82977         * lib/acl_entries.c (acl_entries): Likewise.
82979 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82981         Bug fix in acl module.
82982         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82984 2009-05-03  Bruno Haible  <bruno@clisp.org>
82986         Create gperf-generated file in the source dir, not in the build dir.
82987         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82988         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82989         * modules/unicase/locale-language (unicase/locale-languages.h):
82990         Likewise.
82991         * modules/unicase/special-casing (unicase/special-casing-table.h):
82992         Likewise.
82993         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82994         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82995         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82996         Reported by Ralf Wildenhues.
82998 2009-05-03  Bruno Haible  <bruno@clisp.org>
83000         * modules/fnmatch (Description, configure.ac): Taken from
83001         fnmatch-posix.
83002         * modules/fnmatch-posix: Turn into a symbolic reference to the
83003         'fnmatch' module, and deprecate.
83004         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
83006 2009-05-03  Bruno Haible  <bruno@clisp.org>
83008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
83009         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
83010         Reported by Ralf Wildenhues.
83012 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83014         * m4/fnmatch.m4: Fix fnmatch re-define.
83016 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83018         priv-set: new module and tests; adapt write-any-file
83019         * lib/priv-set.c: New file.
83020         * lib/priv-set.h: New file.
83021         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
83022         * lib/write-any-file.c: Simplify by using priv-set module.
83023         * m4/priv-set.m4: New file.
83024         * modules/priv-set: New file.
83025         * modules/unlinkdir: Add dependency on priv-set module.
83026         * modules/write-any-file: Likewise.
83028         Tests for module 'priv-set'.
83029         * modules/priv-set-tests: New file.
83030         * tests/test-priv-set.c: New file.
83032 2009-05-03  Jim Meyering  <meyering@redhat.com>
83033             Bruno Haible  <bruno@clisp.org>
83035         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
83036         use the converted UTF-8 variant of the name instead.
83038 2009-05-03  Jim Meyering  <meyering@redhat.com>
83040         tests: tighten some getdate tests
83041         * tests/test-getdate.c (main): Tighten tests: require equality,
83042         not just greater than.  Set TZ envvar to UTC0.
83044 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
83046         getdate: correctly interpret "next monday" when run on a Monday
83047         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
83048         that e.g., "next tues" (when run on a tuesday) results in a date
83049         that is one week in the future, and not today's date.
83050         I.e., add a week when the wday is the same as the current one.
83051         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
83052         and earlier by Martin Bernreuther and Jan Minář.
83053         * tests/test-getdate.c (main): Check that "next DAY" is always in
83054         the future and that "last DAY" is always in the past.
83056 2009-05-02  Jim Meyering  <meyering@redhat.com>
83058         build: ensure that a release build fails when a submodule is unclean
83059         * top/maint.mk (no-submodule-changes): New rule.
83060         (alpha beta major): Depend on it.
83062 2009-05-02  Bruno Haible  <bruno@clisp.org>
83064         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
83065         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
83066         shell variable gl_fnmatch_required to detect which variant is
83067         requested.
83068         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
83069         gl_FUNC_FNMATCH_POSIX.
83070         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
83071         exclude fnmatch-posix.
83073 2009-05-02  Bruno Haible  <bruno@clisp.org>
83075         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
83076         * modules/mbsrtowcs (License): Change to LGPLv2+.
83077         * modules/strnlen1 (License): Likewise.
83078         Reported by Simon Josefsson.
83080 2009-05-02  Bruno Haible  <bruno@clisp.org>
83082         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
83083         "cross".
83084         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
83085         gnulib-tool was called with option --source-base=lib.
83087 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83089         Use automake *-local hooks without commands, for extensibility.
83090         * modules/localcharset (Makefile.am): Rename install-exec-local
83091         rule to install-exec-localcharset, and make it a prerequisite of
83092         install-exec-local.  Likewise, rename the uninstall-local rule to
83093         uninstall-localcharset, and make it a prerequisite of the former.
83095 2009-05-01  Bruno Haible  <bruno@clisp.org>
83097         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
83098         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83099         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
83100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
83101         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
83102         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83103         m4/locale-zh.m4, m4/codeset.m4.
83105         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
83106         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
83107         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
83108         m4/locale-zh.m4.
83110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
83111         REPLACE_WCRTOMB if mbstate_t must be replaced.
83112         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
83113         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
83115 2009-05-01  Bruno Haible  <bruno@clisp.org>
83117         Avoid compiler warnings when redefining macros defined by <libintl.h>.
83118         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
83119         dngettext, dcngettext, textdomain, bindtextdomain,
83120         bind_textdomain_codeset): Undefine before redefining.
83122 2009-04-30  Bruno Haible  <bruno@clisp.org>
83124         Fix bug introduced on 2009-04-25.
83125         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
83126         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
83127         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
83128         is defined.
83129         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
83130         is defined.
83131         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
83132         is defined.
83133         Reported by Elbert_Pol <elbert.pol@gmail.com>.
83135 2009-04-28  Bruno Haible  <bruno@clisp.org>
83137         Comment tweaks.
83138         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
83139         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
83140         * lib/unicase.h (u*_casexfrm): Likewise.
83141         Reported by Paolo Bonzini.
83143 2009-04-28  Bruno Haible  <bruno@clisp.org>
83145         Fix a compilation error.
83146         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
83147         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83148         Reported by Jim Meyering.
83150 2009-04-27  Bruno Haible  <bruno@clisp.org>
83152         New module 'libunistring'.
83153         * modules/libunistring: New file.
83154         * m4/libunistring.m4: New file.
83155         * MODULES.html.sh (Unicode string functions): Add it.
83157 2009-04-27  Eric Blake  <ebb9@byu.net>
83159         maint.mk: allow package-specific header to provide <config.h>
83160         * top/maint.mk (sc_require_config_h): New variable.
83161         (sc_require_config_h, sc_require_config_h_first): Use it.
83163 2009-04-27  Simon Josefsson  <simon@josefsson.org>
83165         * top/maint.mk (sc_avoid_if_before_free): Except
83166         useless-if-before-free script.
83168 2009-04-27  Eric Blake  <ebb9@byu.net>
83170         maintainer-makefile: depend on all required helper scripts
83171         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
83172         useless-if-before-free.
83173         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
83174         version, rather than assuming gnulib checkout is available.
83175         Reported by Simen Josefsson.
83177 2009-04-26  Bruno Haible  <bruno@clisp.org>
83179         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
83180         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
83181         "../" or "..".
83183 2009-04-26  Bruno Haible  <bruno@clisp.org>
83185         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
83186         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
83187         AC_LIB_HAVE_LINKFLAGS.
83189 2009-04-26  Bruno Haible  <bruno@clisp.org>
83191         Simplify calling convention of u*_conv_from_encoding.
83192         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
83193         u32_conv_from_encoding): Expect a resultbuf argument and return the
83194         result directly as a pointer.
83195         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
83196         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
83197         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
83198         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
83199         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
83200         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83201         Update.
83202         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
83203         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
83204         * lib/vasnprintf.c (VASNPRINTF): Update.
83205         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
83206         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
83207         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
83208         * NEWS: Mention the change.
83210 2009-04-26  Bruno Haible  <bruno@clisp.org>
83212         Simplify calling convention of u*_conv_to_encoding.
83213         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83214         u32_conv_to_encoding): Expect a resultbuf argument and return the
83215         result directly as a pointer.
83216         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83217         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
83218         freeing scaled_offsets if mem_iconveha failed.
83219         * lib/unicase/u-casexfrm.h (FUNC): Update.
83220         * lib/uninorm/u-normxfrm.h (FUNC): Update.
83221         * lib/vasnprintf.c (VASNPRINTF): Update.
83222         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
83223         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
83224         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
83225         * NEWS: Mention the change.
83227 2009-04-26  Bruno Haible  <bruno@clisp.org>
83229         Avoid test failures on AIX and OSF/1.
83230         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
83231         malloc(0).
83232         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
83233         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
83234         Likewise.
83235         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
83236         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
83237         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
83238         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
83239         * doc/posix-functions/malloc.texi: Document the portability problem
83240         related to malloc(0).
83242 2009-04-26  Bruno Haible  <bruno@clisp.org>
83244         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
83245         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
83246         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
83248 2009-04-25  Bruno Haible  <bruno@clisp.org>
83250         Avoid link error when creating a namespace clean library.
83251         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
83252         as macro with arguments if already defined as an alias.
83253         * lib/signbitf.c (gl_signbitf): Don't undefine.
83254         * lib/signbitd.c (gl_signbitd): Don't undefine.
83255         * lib/signbitl.c (gl_signbitl): Don't undefine.
83257 2009-04-25  Jim Meyering  <meyering@redhat.com>
83259         vc-list-files: fix another quoting bug
83260         * build-aux/vc-list-files: Avoid sed backslash expansion
83261         of pathological directory names.
83263 2009-04-25  Eric Blake  <ebb9@byu.net>
83265         vc-list-files: fix shell quoting error
83266         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83267         timestamp.
83269 2009-04-25  Jim Meyering  <meyering@redhat.com>
83271         vc-list-files: restore lost functionality with subdir argument
83272         * build-aux/vc-list-files: When given a non-"." sub-directory
83273         argument, substitute the $dir/ prefix back onto each resulting name.
83274         Otherwise, coreutils' root_tests check would fail.
83276 2009-04-24  Eric Blake  <ebb9@byu.net>
83278         vc-list-files: ignore git symlinks
83279         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83280         than ls-files, to ignore git symlinks.
83282         maint.mk: import improvements from m4
83283         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83284         (move_if_change): Delete unused macro.
83285         (news-date-check, vc-diff-check): Support VPATH builds.
83286         (announcement): Likewise.  Split --bootstrap-tools list...
83287         (boostrap-tools): ...into separate list, which can be overridden
83288         in cfg.mk.
83289         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83290         requiring dependency on useless-if-before-free module.
83291         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83292         Support VPATH builds.
83294 2009-04-24  Jim Meyering  <meyering@redhat.com>
83296         maint.mk: remove coreutils-specific rules and variables
83297         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83298         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83299         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83301         maint.mk: remove obsolete rule
83302         * top/maint.mk (rel-check): Remove rule.
83303         (WGET, WGETFLAGS): Remove now-unused variables.
83305 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83307         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83308         consistency.
83310         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83311         '$(PATH_SEPARATOR)' instead of ':'.
83313 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83315         * lib/getopt1.c (main): Use 'const' for static array.
83317 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83319         * top/maint.mk: Sync with coreutils.
83320         * NEWS: Explain incompatibilities.
83322 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83323             Bruno Haible  <bruno@clisp.org>
83325         Fix cross-compilation results.
83326         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83327         statement, as third argument of AC_TRY_RUN.
83328         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83329         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83330         Likewise.
83331         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83332         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83333         Likewise.
83334         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83335         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83336         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83338 2009-04-20  Bruno Haible  <bruno@clisp.org>
83340         Avoid test failure on mingw.
83341         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83343 2009-04-20  Bruno Haible  <bruno@clisp.org>
83345         Avoid compilation error on mingw.
83346         * modules/localename-tests (Depends-on): Add locale.
83348 2009-04-19  Bruno Haible  <bruno@clisp.org>
83350         Support for building a shared library on Windows platforms.
83351         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83352         (main): Test the presence of UNINORM_NFC here.
83353         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83354         (main): Test the presence of UNINORM_NFD here.
83355         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83356         (main): Test the presence of UNINORM_NFKC here.
83357         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83358         (main): Test the presence of UNINORM_NFKD here.
83360 2009-04-19  Bruno Haible  <bruno@clisp.org>
83362         Avoid a compiler warning.
83363         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83364         Change type of variable 'sequence'.
83366 2009-04-19  Bruno Haible  <bruno@clisp.org>
83368         * modules/configmake (Makefile.am): When the contents of configmake.h
83369         does not change, arrange to preserve its modification time.
83371 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83373         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83374         gettext domain.
83376 2009-04-16  Jim Meyering  <meyering@redhat.com>
83378         useless-if-before-free: improve conversion code
83379         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83380         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83382 2009-04-14  Bruno Haible  <bruno@clisp.org>
83384         * modules/fcntl (Depends-on): Add extensions.
83385         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83387 2009-04-12  Ben Pfaff  <blp@gnu.org>
83389         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83390         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83392 2009-03-20  Ben Pfaff  <blp@gnu.org>
83394         Make rename replace existing destinations on Windows.
83395         * m4/rename.m4: Add test for Mingw.
83396         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83397         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83398         * doc/posix-functions/rename.texi: Document.
83400 2009-04-10  Bruno Haible  <bruno@clisp.org>
83402         New include file "iconveh.h".
83403         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83404         * lib/striconveh.h: Include it.
83405         (enum iconv_ilseq_handler): Remove definition.
83406         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83407         striconveh.h.
83408         * lib/striconveha.c: Include striconveh.h.
83409         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83410         * modules/striconveh (Files): Add lib/iconveh.h.
83411         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83412         lib/striconveh.h.
83414 2009-04-10  Bruno Haible  <bruno@clisp.org>
83416         * lib/uniconv.h: Update comment.
83418 2009-04-10  Bruno Haible  <bruno@clisp.org>
83420         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83421         always.
83422         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83423         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83424         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83425         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83426         "unistring-notinline.h", so that the function gets defined always.
83427         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83428         * lib/unistr/u8-uctomb.c: Likewise.
83429         * lib/unistr/u16-mbtouc.c: Likewise.
83430         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83431         * lib/unistr/u16-uctomb.c: Likewise.
83432         * lib/unistr/u32-mbtouc.c: Likewise.
83433         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83434         * lib/unistr/u32-uctomb.c: Likewise.
83436 2009-04-10  Bruno Haible  <bruno@clisp.org>
83438         Mark 'utime' obsolete.
83439         * modules/utime (Status, Notice): New sections.
83440         Suggested by Jim Meyering.
83442         Fix cross-compile guess for utime test.
83443         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83444         autoconf.
83445         * doc/posix-functions/utime.texi: Give more precisions.
83446         Reported by Jan <ipif@ymail.com>.
83448 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83450         filevercmp: correct today's change
83451         * lib/filevercmp.c: Also handle coreutils' test inputs.
83452         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83454         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83455         for reporting it.
83456         * lib/filevercmp.c: Special handle for "", "." and "..".
83457         * tests/test-filevercmp.c: Enlarge the set suite.
83459 2009-04-07  Jim Meyering  <meyering@redhat.com>
83461         useless-if-before-free: show how to remove braced useless free, too
83462         * build-aux/useless-if-before-free: still only in a comment, though.
83464 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83466         maint.mk: import changes to syntax-check macros from coreutils
83467         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83468         Use them in the relevant macros.
83470 2009-04-06  Bruno Haible  <bruno@clisp.org>
83472         Fix unportable use of bit-fields.
83473         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83474         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83475         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83477 2009-04-06  Bruno Haible  <bruno@clisp.org>
83479         Avoid test failures on AIX and OSF/1.
83480         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83481         that malloc(0) = NULL.
83482         * tests/unicase/test-u8-tolower.c (check): Likewise.
83483         * tests/unicase/test-u8-totitle.c (check): Likewise.
83484         * tests/unicase/test-u8-toupper.c (check): Likewise.
83485         * tests/unicase/test-u16-casefold.c (check): Likewise.
83486         * tests/unicase/test-u16-tolower.c (check): Likewise.
83487         * tests/unicase/test-u16-totitle.c (check): Likewise.
83488         * tests/unicase/test-u16-toupper.c (check): Likewise.
83489         * tests/unicase/test-u32-casefold.c (check): Likewise.
83490         * tests/unicase/test-u32-tolower.c (check): Likewise.
83491         * tests/unicase/test-u32-totitle.c (check): Likewise.
83492         * tests/unicase/test-u32-toupper.c (check): Likewise.
83493         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83494         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83495         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83496         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83497         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83498         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83499         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83500         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83501         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83502         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83503         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83504         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83506 2009-04-05  Bruno Haible  <bruno@clisp.org>
83508         Work around an autoconf limitation.
83509         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83510         comment line if it would be longer than 3 KB.
83512 2009-04-05  Bruno Haible  <bruno@clisp.org>
83514         Avoid test failure with libiconv-1.13.
83515         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83516         of the expected test results.
83518 2009-04-05  Bruno Haible  <bruno@clisp.org>
83520         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83521         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83522         that it should be installed.
83524 2009-04-05  Bruno Haible  <bruno@clisp.org>
83526         * gnulib-tool: New option --copy-file.
83527         (func_usage): Document it.
83528         (func_dest_tmpfilename): Moved out of func_import.
83529         (func_add_file, func_update_file): New functions, extracted from
83530         func_import.
83531         (func_import): Update.
83533 2009-04-05  Karl Berry  <karl@gnu.org>
83535         * README: prominently mention gnulib-tool.
83536         Rearrange sections so getting the code is near the top.
83538 2009-04-05  Bruno Haible  <bruno@clisp.org>
83540         * lib/unicase.h: Mention u*_cmp2.
83541         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83542         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83543         * lib/unicase/ulc-casecmp.c: Likewise.
83544         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83545         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83546         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83547         unistr/u8-cmp.
83548         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83549         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83550         unistr/u16-cmp.
83551         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83552         unistr/u32-cmp.
83554         * lib/uninorm.h: Mention u*_cmp2.
83555         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83556         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83557         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83558         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83559         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83560         unistr/u8-cmp.
83561         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83562         unistr/u16-cmp.
83563         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83564         unistr/u32-cmp.
83566         New module 'unistr/u32-cmp2'.
83567         * lib/unistr/u32-cmp2.c: New file.
83568         * modules/unistr/u32-cmp2: New file.
83570         New module 'unistr/u16-cmp2'.
83571         * lib/unistr/u16-cmp2.c: New file.
83572         * modules/unistr/u16-cmp2: New file.
83574         New module 'unistr/u8-cmp2'.
83575         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83576         * lib/unistr/u8-cmp2.c: New file.
83577         * lib/unistr/u-cmp2.h: New file.
83578         * modules/unistr/u8-cmp2: New file.
83580 2009-04-05  Bruno Haible  <bruno@clisp.org>
83582         * lib/unictype.h (uc_property_is_valid): New macro.
83583         * tests/unictype/test-pr_byname.c (main): Use it.
83585         * lib/unistr.h: Doc fixes.
83586         * lib/uniconv.h: Doc fixes.
83587         * lib/unictype.h: Doc fixes.
83589 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83591         Port coreutils 7.2 to Solaris 8.
83593         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83594         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83595         for Solaris 8.  This is a bit of a hack, as it means it's the
83596         caller's responsibility to add -lnsl if needed, but most likely it
83597         won't be needed since only getaddrinfo uses this and getaddrinfo
83598         isn't needed on Solaris 8.
83600         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83601         problem to Solaris 8 encountered with coreutils 7.2, which
83602         resulted in a message "fnmatch.c:292: warning: passing argument 4
83603         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83604         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83606 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83608         * m4/ld-version-script.m4: Add FIXME comment.
83610 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83612         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83613         SOVERSION variable.
83615 2009-04-02  Bruno Haible  <bruno@clisp.org>
83617         * Makefile (info, html, dvi, pdf): Combine the rules.
83618         Suggested by Jim Meyering.
83620 2009-04-01  Bruno Haible  <bruno@clisp.org>
83622         * Makefile (info, html, dvi, pdf): New targets.
83623         Reported by Reuben Thomas <rrt@sc3d.org>.
83625 2009-04-01  Bruno Haible  <bruno@clisp.org>
83627         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83628         can be put into PATH.
83629         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83631 2009-04-01  Bruno Haible  <bruno@clisp.org>
83633         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83635 2009-04-01  Bruno Haible  <bruno@clisp.org>
83637         Rename module 'visibility'.
83638         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83639         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83640         * doc/gnulib.texi: Update.
83641         * MODULES.html.sh (Misc): Update.
83642         * NEWS: Mention the change.
83644 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83646         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83647         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83648         Eric Blake <ebb9@byu.net> for review.
83649         * MODULES.html.sh: Add lib-msvc-compat.
83650         * doc/gnulib.texi: Link to new section.
83651         * m4/ld-output-def.m4: New file.
83652         * doc/ld-output-def.texi: New file.
83654 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83656         Rename ld-version-script to lib-symbol-versions.  Suggested by
83657         Bruno Haible <bruno@clisp.org>.
83658         * modules/ld-version-script: Renamed to lib-symbol-versions.
83659         * doc/ld-version-script.texi: Fix module name.
83660         * MODULES.html.sh: Add lib-symbol-versions.
83662 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83664         * modules/u64-tests: New file.
83665         * tests/test-u64.c: New file.
83667 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83669         * MODULES.html.sh: Mention u64.
83670         * modules/u64: New module.
83671         * modules/crypto/sha512: Depend on u64 module instead of providing
83672         u64.h.
83674 2009-03-27  Eric Blake  <ebb9@byu.net>
83676         test-strerror: make debugging EAI_SYSTEM easier
83677         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83678         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83679         failure was EAI_SYSTEM.
83681 2009-03-25  Bruno Haible  <bruno@clisp.org>
83683         Fix a problem with --enable-relocatable on Solaris 7.
83684         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83685         since 2008-02-24.
83687 2009-03-25  Eric Blake  <ebb9@byu.net>
83689         test-sockets: avoid gcc warning
83690         * tests/test-sockets.c (main): Silence compiler warning.
83692 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83694         New modules nproc, pthread, contributed by Glen Lenker.
83696         * MODULES.html.sh: Add pthread, nproc.
83697         * lib/nproc.c: New file.
83698         * lib/nproc.h: New file.
83699         * lib/pthread.in.h: New file.
83700         * m4/pthread.m4: New file.
83701         * modules/nproc: New file.
83702         * modules/pthread: New file.
83704 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83706         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83707         New variable.
83709 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83711         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83712         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83713         * tests/test-filevercmp.c: Add tests for backup suffixes.
83715 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83717         * modules/stdlib (Depends-on): Add stdint, needed when defining
83718         struct random_data on, for example, HP-UX 10.20.  Reported by
83719         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83721 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83723         * lib/readline.c (readline): Call fflush on stdout after printing
83724         prompt.
83726 2009-03-20  Bruno Haible  <bruno@clisp.org>
83728         Remove dependency from 'close' module to -lws2_32 on native Windows.
83729         * lib/close-hook.h: New file.
83730         * lib/close-hook.c: New file.
83731         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83732         w32sock.h.
83733         (_gl_close_fd_maybe_socket): Remove function.
83734         (rpl_close): Invoke execute_all_close_hooks instead of
83735         _gl_close_fd_maybe_socket.
83736         * lib/sockets.c: Include close-hook.h, w32sock.h.
83737         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83738         (close_sockets_hook): New variable.
83739         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83740         (gl_sockets_cleanup): Unregister it.
83741         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83742         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83743         * modules/close-hook: New file.
83744         * modules/close (Files): Remove lib/w32sock.h.
83745         (Depends-on): Add close-hook.
83746         (Link): Remove section.
83747         * modules/sockets (Files): Add lib/w32sock.h.
83748         (Depends-on): Add close-hook.
83749         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83750         invocation.
83751         * NEWS: Mention that LIB_CLOSE is gone.
83753 2009-03-23  Eric Blake  <ebb9@byu.net>
83755         signal-tests: test previous patch
83756         * tests/test-signal.c: New file.
83757         * modules/signal-tests: Likewise.
83759         signal.h: always support 'volatile sig_atomic_t'
83760         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83761         (gl_SIGNAL_H_DEFAULTS): Add a default.
83762         * modules/signal (Makefile.am): Substitute if needed.
83763         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83764         users can blindly add volatile.
83765         * doc/posix-headers/signal.texi (signal.h): Document it.
83766         Reported by Matthew Woehlke.
83768 2009-03-23  Jim Meyering  <meyering@redhat.com>
83770         pathmax: PATH_MAX: use pathconf only when available
83771         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83772         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83773         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83774         This avoids a link failure in a PSP cross-compilation environment
83775         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83777         * lib/vasnprintf.c (divide): Fix typo in comment.
83779 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83781         * gnulib-tool (func_filter_filelist): Fix comment.
83783 2009-03-20  Bruno Haible  <bruno@clisp.org>
83785         Make sockets.h self-contained.
83786         * lib/sockets.c: Include sockets.h first.
83787         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83789 2009-03-19  Eric Blake  <ebb9@byu.net>
83791         doc: mention more functions added in cygwin 1.7.0
83792         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83793         addition.
83794         * doc/posix-functions/log2f.texi: Likewise.
83796 2009-03-19  Jim Meyering  <meyering@redhat.com>
83798         fsusage: avoid syntax error due to statement-before-declaration
83799         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83800         after all declarations.  Reported by Matthew Woehlke in
83801         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83803 2009-03-18  Eric Blake  <ebb9@byu.net>
83805         build-aux/compile: sync from automake
83806         * build-aux/compile: New file, from automake.
83807         * config/srclist.txt: Mention build-aux/compile.
83809 2009-03-17  Bruno Haible  <bruno@clisp.org>
83811         * lib/git-merge-changelog.c: Fix typo in comment.
83812         Reported by Reuben Thomas <rrt@sc3d.org>.
83814 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83816         * m4/regex.m4: update and improve help for
83817         --without-included-regex.
83819 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83821         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83822         failure on missing include files.
83824 2009-03-17  Eric Blake  <ebb9@byu.net>
83826         doc: mention more functions added in cygwin 1.7.0
83827         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83828         addition.
83829         * doc/posix-functions/fwscanf.texi: Likewise.
83830         * doc/posix-functions/swprintf.texi: Likewise.
83831         * doc/posix-functions/swscanf.texi: Likewise.
83832         * doc/posix-functions/vfwprintf.texi: Likewise.
83833         * doc/posix-functions/vfwscanf.texi: Likewise.
83834         * doc/posix-functions/vswprintf.texi: Likewise.
83835         * doc/posix-functions/vswscanf.texi: Likewise.
83836         * doc/posix-functions/vwprintf.texi: Likewise.
83837         * doc/posix-functions/vwscanf.texi: Likewise.
83838         * doc/posix-functions/wcscasecmp.texi: Likewise.
83839         * doc/posix-functions/wcsdup.texi: Likewise.
83840         * doc/posix-functions/wcsftime.texi: Likewise.
83841         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83842         * doc/posix-functions/wprintf.texi: Likewise.
83843         * doc/posix-functions/wscanf.texi: Likewise.
83844         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83846 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83848         maint.mk: really add $(AM_MAKEFLAGS)
83849         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83850         was inadvertently omitted in the last commit.
83851         Spotted by Bruno Haible.
83853         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83854         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83855         $(AM_MAKEFLAGS)' rather than plain `make'.
83857         gnulib-tool: execute $MAKE not make
83858         * gnulib-tool: Default $MAKE to 'make'.
83859         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83860         than make.  Initialize $MAKE in the do-autobuild script.
83862         gnulib-tool: use $MAKE not make in generated files
83863         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83864         make, in generated files.  Initialize $MAKE in the do-autobuild
83865         script.
83867         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83869         GNUmakefile: disable parallelism only for multiple, recursive targets
83870         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83871         additions in the Makefile.
83872         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83873         by Automake.
83874         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83875         are listed on the command line and at least one of them is
83876         listed in $(ALL_RECURSIVE_TARGETS).
83878 2009-03-14  Bruno Haible  <bruno@clisp.org>
83880         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83881         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83882         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83883         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83884         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83885         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83886         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83887         unistr/u8-uctomb.
83888         * modules/unistr/u8-strchr (Depends-on): Likewise.
83889         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83890         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83891         unistr/u16-uctomb.
83892         * modules/unistr/u16-strchr (Depends-on): Likewise.
83893         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83895 2009-03-12  Bruno Haible  <bruno@clisp.org>
83897         Work around select() bug on Interix 3.5.
83898         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83899         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83900         * m4/select.m4: New file.
83901         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83902         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83903         * modules/select (Files): Add m4/select.m4.
83904         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83905         * modules/nanosleep (Depends-on): Add select.
83906         * modules/poll (Depends-on): Likewise.
83907         * doc/posix-functions/select.texi: Mention the Interix bug.
83908         Reported by Markus Duft <mduft@gentoo.org>.
83910         * lib/select.c: Renamed from lib/winsock-select.c.
83911         * modules/select (Files): Add lib/select.c, remove
83912         lib/winsock-select.c.
83913         (configure.ac): Update.
83915 2009-03-12  Jim Meyering  <meyering@redhat.com>
83917         avoid gcc warnings about unused macro definitions
83918         * lib/readtokens.c (STREQ): Remove unused definition.
83919         * lib/xmalloc.c (SIZE_MAX): Likewise.
83920         * lib/openat-die.c (N_): Likewise.
83921         * lib/mountlist.c (SIZE_MAX): Remove definition.
83922         Instead, include <stdint.h>.
83923         * lib/readutmp.c: Likewise.
83924         * modules/readutmp (Depends-on): Add stdint.
83925         * modules/mountlist (Depends-on): Add stdint.
83926         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83928 2009-03-10  Bruno Haible  <bruno@clisp.org>
83930         Tests for module 'mbmemcasecoll'.
83931         * modules/mbmemcasecoll-tests: New file.
83932         * tests/test-mbmemcasecoll1.sh: New file.
83933         * tests/test-mbmemcasecoll2.sh: New file.
83934         * tests/test-mbmemcasecoll3.sh: New file.
83935         * tests/test-mbmemcasecoll.c: New file.
83937         New module 'mbmemcasecoll'.
83938         * lib/mbmemcasecoll.h: New file.
83939         * lib/mbmemcasecoll.c: New file.
83940         * modules/mbmemcasecoll: New file.
83942         * tests/test-mbmemcasecmp.h: New file, extracted from
83943         tests/test-mbmemcasecmp.c.
83944         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83945         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83946         (main): Update.
83947         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83949 2009-03-09  Bruno Haible  <bruno@clisp.org>
83951         Tests for module 'mbmemcasecmp'.
83952         * modules/mbmemcasecmp-tests: New file.
83953         * tests/test-mbmemcasecmp1.sh: New file.
83954         * tests/test-mbmemcasecmp2.sh: New file.
83955         * tests/test-mbmemcasecmp3.sh: New file.
83956         * tests/test-mbmemcasecmp.c: New file.
83958         New module 'mbmemcasecmp'.
83959         * lib/mbmemcasecmp.h: New file.
83960         * lib/mbmemcasecmp.c: New file.
83961         * modules/mbmemcasecmp: New file.
83963 2009-03-09  Bruno Haible  <bruno@clisp.org>
83965         Tests for module 'unicase/ulc-casecoll'.
83966         * modules/unicase/ulc-casecoll-tests: New file.
83967         * tests/unicase/test-ulc-casecoll1.sh: New file.
83968         * tests/unicase/test-ulc-casecoll2.sh: New file.
83969         * tests/unicase/test-ulc-casecoll.c: New file.
83971         New module 'unicase/ulc-casecoll'.
83972         * lib/unicase.h (ulc_casecoll): New declaration.
83973         * lib/unicase/ulc-casecoll.c: New file.
83974         * modules/unicase/ulc-casecoll: New file.
83976         New module 'unicase/ulc-casexfrm'.
83977         * lib/unicase.h (ulc_casexfrm): New declaration.
83978         * lib/unicase/ulc-casexfrm.c: New file.
83979         * modules/unicase/ulc-casexfrm: New file.
83981 2009-03-09  Bruno Haible  <bruno@clisp.org>
83983         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83984         invocations.
83986         * m4/mbscasecmp.m4: Remove file.
83987         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83988         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83990         * m4/mbscasestr.m4: Remove file.
83991         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83992         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83994         * m4/mbschr.m4: Remove file.
83995         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83996         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83998         * m4/mbscspn.m4: Remove file.
83999         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
84000         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
84002         * m4/mbslen.m4: Remove file.
84003         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
84004         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
84006         * m4/mbsncasecmp.m4: Remove file.
84007         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
84008         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
84010         * m4/mbsnlen.m4: Remove file.
84011         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
84012         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
84014         * m4/mbspbrk.m4: Remove file.
84015         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
84016         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
84018         * m4/mbspcasecmp.m4: Remove file.
84019         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
84020         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
84022         * m4/mbsrchr.m4: Remove file.
84023         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
84024         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
84026         * m4/mbssep.m4: Remove file.
84027         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
84028         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
84030         * m4/mbsspn.m4: Remove file.
84031         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
84032         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
84034         * m4/mbsstr.m4: Remove file.
84035         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
84036         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
84038         * m4/mbstok_r.m4: Remove file.
84039         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
84040         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
84042         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
84044         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
84045         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
84047         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
84049 2009-03-08  Bruno Haible  <bruno@clisp.org>
84051         Tests for module 'unicase/ulc-casecmp'.
84052         * modules/unicase/ulc-casecmp-tests: New file.
84053         * tests/unicase/test-ulc-casecmp1.sh: New file.
84054         * tests/unicase/test-ulc-casecmp2.sh: New file.
84055         * tests/unicase/test-ulc-casecmp.c: New file.
84057         New module 'unicase/ulc-casecmp'.
84058         * lib/unicase.h (ulc_casecmp): New declaration.
84059         * lib/unicase/ulc-casecmp.c: New file.
84060         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
84061         'const SRC_UNIT *'.
84062         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
84063         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
84064         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
84065         * modules/unicase/ulc-casecmp: New file.
84067         Tests for module 'unicase/u32-is-cased'.
84068         * modules/unicase/u32-is-cased-tests: New file.
84069         * tests/unicase/test-u32-is-cased.c: New file.
84071         Tests for module 'unicase/u16-is-cased'.
84072         * modules/unicase/u16-is-cased-tests: New file.
84073         * tests/unicase/test-u16-is-cased.c: New file.
84075         Tests for module 'unicase/u8-is-cased'.
84076         * modules/unicase/u8-is-cased-tests: New file.
84077         * tests/unicase/test-u8-is-cased.c: New file.
84078         * tests/unicase/test-is-cased.h: New file.
84080         New module 'unicase/u32-is-cased'.
84081         * lib/unicase/u32-is-cased.c: New file.
84082         * modules/unicase/u32-is-cased: New file.
84084         New module 'unicase/u16-is-cased'.
84085         * lib/unicase/u16-is-cased.c: New file.
84086         * modules/unicase/u16-is-cased: New file.
84088         New module 'unicase/u8-is-cased'.
84089         * lib/unicase/u8-is-cased.c: New file.
84090         * lib/unicase/u-is-cased.h: New file.
84091         * modules/unicase/u8-is-cased: New file.
84093         Tests for module 'unicase/u32-is-casefolded'.
84094         * modules/unicase/u32-is-casefolded-tests: New file.
84095         * tests/unicase/test-u32-is-casefolded.c: New file.
84097         Tests for module 'unicase/u16-is-casefolded'.
84098         * modules/unicase/u16-is-casefolded-tests: New file.
84099         * tests/unicase/test-u16-is-casefolded.c: New file.
84101         Tests for module 'unicase/u8-is-casefolded'.
84102         * modules/unicase/u8-is-casefolded-tests: New file.
84103         * tests/unicase/test-u8-is-casefolded.c: New file.
84104         * tests/unicase/test-is-casefolded.h: New file.
84106         New module 'unicase/u32-is-casefolded'.
84107         * lib/unicase/u32-is-casefolded.c: New file.
84108         * modules/unicase/u32-is-casefolded: New file.
84110         New module 'unicase/u16-is-casefolded'.
84111         * lib/unicase/u16-is-casefolded.c: New file.
84112         * modules/unicase/u16-is-casefolded: New file.
84114         New module 'unicase/u8-is-casefolded'.
84115         * lib/unicase/u8-is-casefolded.c: New file.
84116         * modules/unicase/u8-is-casefolded: New file.
84118         Tests for module 'unicase/u32-is-titlecase'.
84119         * modules/unicase/u32-is-titlecase-tests: New file.
84120         * tests/unicase/test-u32-is-titlecase.c: New file.
84122         Tests for module 'unicase/u16-is-titlecase'.
84123         * modules/unicase/u16-is-titlecase-tests: New file.
84124         * tests/unicase/test-u16-is-titlecase.c: New file.
84126         Tests for module 'unicase/u8-is-titlecase'.
84127         * modules/unicase/u8-is-titlecase-tests: New file.
84128         * tests/unicase/test-u8-is-titlecase.c: New file.
84129         * tests/unicase/test-is-titlecase.h: New file.
84131         New module 'unicase/u32-is-titlecase'.
84132         * lib/unicase/u32-is-titlecase.c: New file.
84133         * modules/unicase/u32-is-titlecase: New file.
84135         New module 'unicase/u16-is-titlecase'.
84136         * lib/unicase/u16-is-titlecase.c: New file.
84137         * modules/unicase/u16-is-titlecase: New file.
84139         New module 'unicase/u8-is-titlecase'.
84140         * lib/unicase/u8-is-titlecase.c: New file.
84141         * modules/unicase/u8-is-titlecase: New file.
84143         Tests for module 'unicase/u32-is-lowercase'.
84144         * modules/unicase/u32-is-lowercase-tests: New file.
84145         * tests/unicase/test-u32-is-lowercase.c: New file.
84147         Tests for module 'unicase/u16-is-lowercase'.
84148         * modules/unicase/u16-is-lowercase-tests: New file.
84149         * tests/unicase/test-u16-is-lowercase.c: New file.
84151         Tests for module 'unicase/u8-is-lowercase'.
84152         * modules/unicase/u8-is-lowercase-tests: New file.
84153         * tests/unicase/test-u8-is-lowercase.c: New file.
84154         * tests/unicase/test-is-lowercase.h: New file.
84156         New module 'unicase/u32-is-lowercase'.
84157         * lib/unicase/u32-is-lowercase.c: New file.
84158         * modules/unicase/u32-is-lowercase: New file.
84160         New module 'unicase/u16-is-lowercase'.
84161         * lib/unicase/u16-is-lowercase.c: New file.
84162         * modules/unicase/u16-is-lowercase: New file.
84164         New module 'unicase/u8-is-lowercase'.
84165         * lib/unicase/u8-is-lowercase.c: New file.
84166         * modules/unicase/u8-is-lowercase: New file.
84168         Tests for module 'unicase/u32-is-uppercase'.
84169         * modules/unicase/u32-is-uppercase-tests: New file.
84170         * tests/unicase/test-u32-is-uppercase.c: New file.
84172         Tests for module 'unicase/u16-is-uppercase'.
84173         * modules/unicase/u16-is-uppercase-tests: New file.
84174         * tests/unicase/test-u16-is-uppercase.c: New file.
84176         Tests for module 'unicase/u8-is-uppercase'.
84177         * modules/unicase/u8-is-uppercase-tests: New file.
84178         * tests/unicase/test-u8-is-uppercase.c: New file.
84179         * tests/unicase/test-is-uppercase.h: New file.
84181         New module 'unicase/u32-is-uppercase'.
84182         * lib/unicase/u32-is-uppercase.c: New file.
84183         * modules/unicase/u32-is-uppercase: New file.
84185         New module 'unicase/u16-is-uppercase'.
84186         * lib/unicase/u16-is-uppercase.c: New file.
84187         * modules/unicase/u16-is-uppercase: New file.
84189         New module 'unicase/u8-is-uppercase'.
84190         * lib/unicase/u8-is-uppercase.c: New file.
84191         * modules/unicase/u8-is-uppercase: New file.
84193         New module 'unicase/u32-is-invariant'.
84194         * lib/unicase/u32-is-invariant.c: New file.
84195         * modules/unicase/u32-is-invariant: New file.
84197         New module 'unicase/u16-is-invariant'.
84198         * lib/unicase/u16-is-invariant.c: New file.
84199         * modules/unicase/u16-is-invariant: New file.
84201         New module 'unicase/u8-is-invariant'.
84202         * lib/unicase/u8-is-invariant.c: New file.
84203         * lib/unicase/invariant.h: New file.
84204         * lib/unicase/u-is-invariant.h: New file.
84205         * modules/unicase/u8-is-invariant: New file.
84207         Tests for module 'unicase/u32-casecoll'.
84208         * modules/unicase/u32-casecoll-tests: New file.
84209         * tests/unicase/test-u32-casecoll.c: New file.
84211         Tests for module 'unicase/u16-casecoll'.
84212         * modules/unicase/u16-casecoll-tests: New file.
84213         * tests/unicase/test-u16-casecoll.c: New file.
84215         Tests for module 'unicase/u8-casecoll'.
84216         * modules/unicase/u8-casecoll-tests: New file.
84217         * tests/unicase/test-u8-casecoll.c: New file.
84219         New module 'unicase/u32-casecoll'.
84220         * lib/unicase/u32-casecoll.c: New file.
84221         * modules/unicase/u32-casecoll: New file.
84223         New module 'unicase/u16-casecoll'.
84224         * lib/unicase/u16-casecoll.c: New file.
84225         * modules/unicase/u16-casecoll: New file.
84227         New module 'unicase/u8-casecoll'.
84228         * lib/unicase/u8-casecoll.c: New file.
84229         * lib/unicase/u-casecoll.h: New file.
84230         * modules/unicase/u8-casecoll: New file.
84232         New module 'unicase/u32-casexfrm'.
84233         * lib/unicase/u32-casexfrm.c: New file.
84234         * modules/unicase/u32-casexfrm: New file.
84236         New module 'unicase/u16-casexfrm'.
84237         * lib/unicase/u16-casexfrm.c: New file.
84238         * modules/unicase/u16-casexfrm: New file.
84240         New module 'unicase/u8-casexfrm'.
84241         * lib/unicase/u8-casexfrm.c: New file.
84242         * lib/unicase/u-casexfrm.h: New file.
84243         * modules/unicase/u8-casexfrm: New file.
84245         Tests for module 'unicase/u32-casecmp'.
84246         * modules/unicase/u32-casecmp-tests: New file.
84247         * tests/unicase/test-u32-casecmp.c: New file.
84249         Tests for module 'unicase/u16-casecmp'.
84250         * modules/unicase/u16-casecmp-tests: New file.
84251         * tests/unicase/test-u16-casecmp.c: New file.
84253         Tests for module 'unicase/u8-casecmp'.
84254         * modules/unicase/u8-casecmp-tests: New file.
84255         * tests/unicase/test-u8-casecmp.c: New file.
84256         * tests/unicase/test-casecmp.h: New file.
84258         New module 'unicase/u32-casecmp'.
84259         * lib/unicase/u32-casecmp.c: New file.
84260         * modules/unicase/u32-casecmp: New file.
84262         New module 'unicase/u16-casecmp'.
84263         * lib/unicase/u16-casecmp.c: New file.
84264         * modules/unicase/u16-casecmp: New file.
84266         New module 'unicase/u8-casecmp'.
84267         * lib/unicase/u8-casecmp.c: New file.
84268         * lib/unicase/u-casecmp.h: New file.
84269         * modules/unicase/u8-casecmp: New file.
84271         Tests for module 'unicase/u32-casefold'.
84272         * modules/unicase/u32-casefold-tests: New file.
84273         * tests/unicase/test-u32-casefold.c: New file.
84275         Tests for module 'unicase/u16-casefold'.
84276         * modules/unicase/u16-casefold-tests: New file.
84277         * tests/unicase/test-u16-casefold.c: New file.
84279         Tests for module 'unicase/u8-casefold'.
84280         * modules/unicase/u8-casefold-tests: New file.
84281         * tests/unicase/test-u8-casefold.c: New file.
84283         New module 'unicase/u32-casefold'.
84284         * lib/unicase/u32-casefold.c: New file.
84285         * modules/unicase/u32-casefold: New file.
84287         New module 'unicase/u16-casefold'.
84288         * lib/unicase/u16-casefold.c: New file.
84289         * modules/unicase/u16-casefold: New file.
84291         New module 'unicase/u8-casefold'.
84292         * lib/unicase/u8-casefold.c: New file.
84293         * lib/unicase/u-casefold.h: New file.
84294         * modules/unicase/u8-casefold: New file.
84296         New module 'unicase/tocasefold'.
84297         * lib/unicase/casefold.h: New file.
84298         * lib/unicase/tocasefold.c: New file.
84299         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84300         * modules/unicase/tocasefold: New file.
84302         Tests for module 'unicase/u32-totitle'.
84303         * modules/unicase/u32-totitle-tests: New file.
84304         * tests/unicase/test-u32-totitle.c: New file.
84306         Tests for module 'unicase/u16-totitle'.
84307         * modules/unicase/u16-totitle-tests: New file.
84308         * tests/unicase/test-u16-totitle.c: New file.
84310         Tests for module 'unicase/u8-totitle'.
84311         * modules/unicase/u8-totitle-tests: New file.
84312         * tests/unicase/test-u8-totitle.c: New file.
84314         New module 'unicase/u32-totitle'.
84315         * lib/unicase/u32-totitle.c: New file.
84316         * modules/unicase/u32-totitle: New file.
84318         New module 'unicase/u16-totitle'.
84319         * lib/unicase/u16-totitle.c: New file.
84320         * modules/unicase/u16-totitle: New file.
84322         New module 'unicase/u8-totitle'.
84323         * lib/unicase/u8-totitle.c: New file.
84324         * lib/unicase/u-totitle.h: New file.
84325         * modules/unicase/u8-totitle: New file.
84327         Tests for module 'unicase/u32-tolower'.
84328         * modules/unicase/u32-tolower-tests: New file.
84329         * tests/unicase/test-u32-tolower.c: New file.
84331         Tests for module 'unicase/u16-tolower'.
84332         * modules/unicase/u16-tolower-tests: New file.
84333         * tests/unicase/test-u16-tolower.c: New file.
84335         Tests for module 'unicase/u8-tolower'.
84336         * modules/unicase/u8-tolower-tests: New file.
84337         * tests/unicase/test-u8-tolower.c: New file.
84339         New module 'unicase/u32-tolower'.
84340         * lib/unicase/u32-tolower.c: New file.
84341         * modules/unicase/u32-tolower: New file.
84343         New module 'unicase/u16-tolower'.
84344         * lib/unicase/u16-tolower.c: New file.
84345         * modules/unicase/u16-tolower: New file.
84347         New module 'unicase/u8-tolower'.
84348         * lib/unicase/u8-tolower.c: New file.
84349         * modules/unicase/u8-tolower: New file.
84351         Tests for module 'unicase/u32-toupper'.
84352         * modules/unicase/u32-toupper-tests: New file.
84353         * tests/unicase/test-u32-toupper.c: New file.
84355         Tests for module 'unicase/u16-toupper'.
84356         * modules/unicase/u16-toupper-tests: New file.
84357         * tests/unicase/test-u16-toupper.c: New file.
84359         Tests for module 'unicase/u8-toupper'.
84360         * modules/unicase/u8-toupper-tests: New file.
84361         * tests/unicase/test-u8-toupper.c: New file.
84363         New module 'unicase/u32-toupper'.
84364         * lib/unicase/u32-toupper.c: New file.
84365         * modules/unicase/u32-toupper: New file.
84367         New module 'unicase/u16-toupper'.
84368         * lib/unicase/u16-toupper.c: New file.
84369         * modules/unicase/u16-toupper: New file.
84371         New module 'unicase/u8-toupper'.
84372         * lib/unicase/u8-toupper.c: New file.
84373         * modules/unicase/u8-toupper: New file.
84375         New module 'unicase/u32-casemap'.
84376         * lib/unicase/u32-casemap.c: New file.
84377         * modules/unicase/u32-casemap: New file.
84379         New module 'unicase/u16-casemap'.
84380         * lib/unicase/u16-casemap.c: New file.
84381         * modules/unicase/u16-casemap: New file.
84383         New module 'unicase/u8-casemap'.
84384         * lib/unicase/unicasemap.h: New file.
84385         * lib/unicase/u8-casemap.c: New file.
84386         * lib/unicase/u-casemap.h: New file.
84387         * modules/unicase/u8-casemap: New file.
84389         New module 'unicase/special-casing'.
84390         * lib/unicase/special-casing.h: New file.
84391         * lib/unicase/special-casing.c: New file.
84392         * lib/unicase/special-casing-table.gperf: New file, generated by
84393         gen-uni-tables.c.
84394         * modules/unicase/special-casing: New file.
84396         Tests for module 'unicase/locale-language'.
84397         * modules/unicase/locale-language-tests: New file.
84398         * tests/unicase/test-locale-language.sh: New file.
84399         * tests/unicase/test-locale-language.c: New file.
84401         New module 'unicase/locale-language'.
84402         * lib/unicase/locale-language.c: New file.
84403         * lib/unicase/locale-languages.gperf: New file.
84404         * modules/unicase/locale-language: New file.
84406         Generate more tables for case conversion and case folding.
84407         * lib/gen-uni-tables.c (SCC_*): New enum items.
84408         (struct special_casing_rule): New type.
84409         (casing_rules, num_casing_rules, allocated_casing_rules): New
84410         variables.
84411         (add_casing_rule, fill_casing_rules): New functions.
84412         (struct casefold_rule): New type.
84413         (casefolding_rules, num_casefolding_rules,
84414         allocated_casefolding_rules): New variables.
84415         (fill_casefolding_rules): New function.
84416         (unicode_casefold): New variable.
84417         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84418         sort_casing_rules, output_casing_rules): New functions.
84419         (main): Accept to more arguments: SpecialCasing.txt and
84420         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84421         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84422         Output mapping for casefolding.
84424         * lib/unicase.h: Include stdbool.h, uninorm.h.
84425         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84426         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84427         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84428         arguments.
84429         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84430         resultp arguments.
84431         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84432         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84433         resultp arguments.
84434         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84435         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84436         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84437         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84438         declarations.
84439         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84441 2009-03-08  Bruno Haible  <bruno@clisp.org>
84443         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84444         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84445         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84446         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84448 2009-03-07  Bruno Haible  <bruno@clisp.org>
84450         Adjust u*_normcmp, u*_normcoll API.
84451         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84452         u16_normcoll, u32_normcoll): Change failure conventions.
84453         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84454         errno and return -1.
84455         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84457 2009-03-07  Bruno Haible  <bruno@clisp.org>
84459         Tests for module 'uninorm/u32-normcoll'.
84460         * modules/uninorm/u32-normcoll-tests: New file.
84461         * tests/uninorm/test-u32-normcoll.c: New file.
84463         Tests for module 'uninorm/u16-normcoll'.
84464         * modules/uninorm/u16-normcoll-tests: New file.
84465         * tests/uninorm/test-u16-normcoll.c: New file.
84467         Tests for module 'uninorm/u8-normcoll'.
84468         * modules/uninorm/u8-normcoll-tests: New file.
84469         * tests/uninorm/test-u8-normcoll.c: New file.
84471 2009-03-07  Bruno Haible  <bruno@clisp.org>
84473         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84474         tests/uninorm/test-u32-normcmp.c.
84475         * tests/uninorm/test-u32-normcmp.c: Include it.
84476         (test_nonascii): New function, extracted from main. Add some more
84477         tests.
84478         (main): Invoke test_ascii and test_nonascii.
84479         * modules/uninorm/u32-normcmp-tests (Files): Add
84480         tests/uninorm/test-u32-normcmp.h.
84481         (Depends-on): Remove uninorm/u32-normcmp.
84483         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84484         tests/uninorm/test-u16-normcmp.c.
84485         * tests/uninorm/test-u16-normcmp.c: Include it.
84486         (test_nonascii): New function, extracted from main. Add some more
84487         tests.
84488         (main): Invoke test_ascii and test_nonascii.
84489         * modules/uninorm/u16-normcmp-tests (Files): Add
84490         tests/uninorm/test-u16-normcmp.h.
84491         (Depends-on): Remove uninorm/u16-normcmp.
84493         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84494         tests/uninorm/test-u8-normcmp.c.
84495         * tests/uninorm/test-u8-normcmp.c: Include it.
84496         (test_nonascii): New function, extracted from main. Add some more
84497         tests.
84498         (main): Invoke test_ascii and test_nonascii.
84499         * modules/uninorm/u8-normcmp-tests (Files): Add
84500         tests/uninorm/test-u8-normcmp.h.
84501         (Depends-on): Remove uninorm/u8-normcmp.
84503 2009-03-07  Bruno Haible  <bruno@clisp.org>
84505         New module 'uninorm/u32-normcoll'.
84506         * lib/uninorm/u32-normcoll.c: New file.
84507         * modules/uninorm/u32-normcoll: New file.
84509         New module 'uninorm/u16-normcoll'.
84510         * lib/uninorm/u16-normcoll.c: New file.
84511         * modules/uninorm/u16-normcoll: New file.
84513         New module 'uninorm/u8-normcoll'.
84514         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84515         declarations.
84516         * lib/uninorm/u8-normcoll.c: New file.
84517         * lib/uninorm/u-normcoll.h: New file.
84518         * modules/uninorm/u8-normcoll: New file.
84520         New module 'uninorm/u32-normxfrm'.
84521         * lib/uninorm/u32-normxfrm.c: New file.
84522         * modules/uninorm/u32-normxfrm: New file.
84524         New module 'uninorm/u16-normxfrm'.
84525         * lib/uninorm/u16-normxfrm.c: New file.
84526         * modules/uninorm/u16-normxfrm: New file.
84528         New module 'uninorm/u8-normxfrm'.
84529         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84530         declarations.
84531         * lib/uninorm/u8-normxfrm.c: New file.
84532         * lib/uninorm/u-normxfrm.h: New file.
84533         * modules/uninorm/u8-normxfrm: New file.
84535 2009-03-07  Bruno Haible  <bruno@clisp.org>
84537         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84538         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84539         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84541 2009-03-07  Bruno Haible  <bruno@clisp.org>
84543         New module 'memxfrm'.
84544         * lib/memxfrm.h: New file.
84545         * lib/memxfrm.c: New file.
84546         * modules/memxfrm: New file.
84548 2009-03-07  Bruno Haible  <bruno@clisp.org>
84550         New module 'memcmp2'.
84551         * lib/memcmp2.h: New file.
84552         * lib/memcmp2.c: New file.
84553         * modules/memcmp2: New file.
84555 2009-03-07  Bruno Haible  <bruno@clisp.org>
84557         Tests for module 'uninorm/decomposing-form'.
84558         * modules/uninorm/decomposing-form-tests: New file.
84559         * tests/uninorm/test-decomposing-form.c: New file.
84561         New module 'uninorm/decomposing-form'.
84562         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84563         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84564         Add 'decomposing_variant' field.
84565         * lib/uninorm/decomposing-form.c: New file.
84566         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84567         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84568         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84569         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84570         * modules/uninorm/decomposing-form: New file.
84571         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84572         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84574 2009-03-07  Bruno Haible  <bruno@clisp.org>
84576         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84577         strings.
84579 2009-03-06  Bruno Haible  <bruno@clisp.org>
84581         Tests for module 'uninorm/u32-normcmp'.
84582         * tests/uninorm/test-u32-normcmp.c: New file.
84583         * modules/uninorm/u32-normcmp-tests: New file.
84585         Tests for module 'uninorm/u16-normcmp'.
84586         * tests/uninorm/test-u16-normcmp.c: New file.
84587         * modules/uninorm/u16-normcmp-tests: New file.
84589         Tests for module 'uninorm/u8-normcmp'.
84590         * tests/uninorm/test-u8-normcmp.c: New file.
84591         * modules/uninorm/u8-normcmp-tests: New file.
84593         New module 'uninorm/u32-normcmp'.
84594         * lib/uninorm/u32-normcmp.c: New file.
84595         * modules/uninorm/u32-normcmp: New file.
84597         New module 'uninorm/u16-normcmp'.
84598         * lib/uninorm/u16-normcmp.c: New file.
84599         * modules/uninorm/u16-normcmp: New file.
84601         New module 'uninorm/u8-normcmp'.
84602         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84603         declarations.
84604         * lib/uninorm/u8-normcmp.c: New file.
84605         * lib/uninorm/u-normcmp.h: New file.
84606         * modules/uninorm/u8-normcmp: New file.
84608 2009-03-06  Bruno Haible  <bruno@clisp.org>
84610         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84611         Reported by Eric Blake.
84613 2009-03-06  Eric Blake  <ebb9@byu.net>
84614             Bruno Haible  <bruno@clisp.org>
84616         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84617         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84618         condition.
84619         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84620         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84621         condition.
84622         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84624 2009-03-06  Eric Blake  <ebb9@byu.net>
84626         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84627         to avoid compiler warnings.
84628         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84630 2009-03-05  Bruno Haible  <bruno@clisp.org>
84632         * tests/test-ftell.c (main): Disable test beyond end of file on
84633         FreeMiNT.
84634         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84636 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84638         * lib/filevercmp.c: Move hidden files up in ordering.
84639         * tests/test-filevercmp.c: Add tests for hidden files.
84641 2009-03-04  Bruno Haible  <bruno@clisp.org>
84643         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84644         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84645         AM_CFLAGS.
84646         Reported by Simon Josefsson.
84648 2009-03-03  Bruno Haible  <bruno@clisp.org>
84650         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84651         Reported by Simon Josefsson.
84653         * doc/ld-version-script.texi: Update node reference.
84655 2009-03-03  Bruno Haible  <bruno@clisp.org>
84657         * modules/visibility (License): Change to 'unlimited'.
84658         Suggested by Simon Josefsson.
84660 2009-03-03  Jim Meyering  <meyering@redhat.com>
84662         unlinkdir: cannot_unlink_dir may modify process state
84663         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84664         it's neither thread-safe nor appropriate for use in a library.
84666 2009-03-03  Eric Blake  <ebb9@byu.net>
84668         test-closein: silence test under Darwin
84669         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84670         care if it dies from EPIPE or EBADF.
84672 2009-03-03  Bruno Haible  <bruno@clisp.org>
84674         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84675         earlier.
84676         * doc/visibility.texi: Fix @node and @section.
84678 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84680         * doc/gnulib.texi: Link to sections for ld version script and
84681         visibility.
84682         * doc/visibility.texi: Add @node and @section.
84683         * modules/ld-version-script: New module.
84684         * m4/ld-version-script.m4: New file.
84685         * doc/ld-version-script.texi: New file.
84687 2009-03-02  David Lutterkort  <lutter@redhat.com>
84689         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84690         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84692 2009-03-02  Bruno Haible  <bruno@clisp.org>
84694         * doc/visibility.texi: Mention libtool's -export-symbols option.
84696 2009-03-02  Jim Meyering  <meyering@redhat.com>
84698         announce-gen: new option: --no-print-checksums
84699         * build-aux/announce-gen (usage): Describe it.
84700         (print_checksums): Print a newline here, not in the [*] footnote.
84701         (main): Honor it.
84703 2009-03-01  Bruno Haible  <bruno@clisp.org>
84705         Use socklen_t in the native Windows replacements prototypes.
84706         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84707         instead of 'int'.
84708         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84709         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84710         * modules/getsockopt (Depends-on): Add socklen.
84711         * modules/setsockopt (Depends-on): Add socklen.
84713 2009-03-01  Bruno Haible  <bruno@clisp.org>
84715         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84716         least 4.2.
84718 2009-03-01  Eric Blake  <ebb9@byu.net>
84719             Bruno Haible  <bruno@clisp.org>
84721         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84722         error messages.
84723         * lib/wait-process.c (wait_subprocess): Omit error message about
84724         deadly signal sent to the child of termsigp != NULL.
84726 2009-03-01  Eric Blake  <ebb9@byu.net>
84728         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84730 2009-03-01  Bruno Haible  <bruno@clisp.org>
84732         Avoid a gcc warning.
84733         * tests/test-sched.c (b): Make global.
84734         Reported by Eric Blake.
84736 2009-01-19  Martin Lambers  <marlam@marlam.de>
84738         Provide POSIX semantics for socket timeout options on W32.
84739         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84740         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84741         * modules/setsockopt: Depend on sys_time module for struct timeval.
84742         * modules/getsockopt: Depend on sys_time module for struct timeval.
84744 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84746         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84747         __USE_GNU, for consistency with netdb.in.h.
84748         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84750 2009-03-01  Bruno Haible  <bruno@clisp.org>
84752         More support for FreeMiNT.
84753         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84754         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84756 2009-03-01  Bruno Haible  <bruno@clisp.org>
84758         More support for FreeMiNT.
84759         * lib/fpurge.c (fpurge): Correct last commit.
84760         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84762 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84764         Fix unportable awk script in vc-list-files.
84765         * build-aux/vc-list-files: In the replacement awk script, use
84766         substr with a second argument of 1, not zero.
84767         Report by Simon Josefsson.
84769 2009-02-28  Bruno Haible  <bruno@clisp.org>
84771         More support for FreeMiNT.
84772         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84773         to FreeMiNT today.
84774         * lib/fwriting.c (fwriting): Likewise.
84775         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84777 2009-02-28  Bruno Haible  <bruno@clisp.org>
84779         * tests/test-freadseek.c (main): Disable test beyond end of file on
84780         FreeMiNT.
84781         * tests/test-ftello.c (main): Likewise.
84782         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84784 2009-02-28  Bruno Haible  <bruno@clisp.org>
84786         Add tentative support for FreeMiNT.
84787         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84788         * lib/fpurge.c (fpurge): Likewise.
84789         * lib/freadable.c (freadable): Likewise.
84790         * lib/freading.c (freading): Likewise.
84791         * lib/freadptr.c (freadptr): Likewise.
84792         * lib/freadseek.c (freadptrinc): Likewise.
84793         * lib/fseeko.c (rpl_fseeko): Likewise.
84794         * lib/fseterr.c (fseterr): Likewise.
84795         * lib/fwritable.c (fwritable): Likewise.
84796         * lib/fwriting.c (fwriting): Likewise.
84797         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84798         Hourihane.
84799         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84801 2009-02-28  Bruno Haible  <bruno@clisp.org>
84803         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84804         SIGCHLD.
84805         Reported by Jim Meyering.
84807 2009-02-28  Bruno Haible  <bruno@clisp.org>
84809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84810         Mention the results of these tests on various platforms.
84811         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84812         order.
84813         * doc/posix-functions/printf.texi: Likewise.
84814         * doc/posix-functions/snprintf.texi: Likewise.
84815         * doc/posix-functions/sprintf.texi: Likewise.
84816         * doc/posix-functions/vfprintf.texi: Likewise.
84817         * doc/posix-functions/vprintf.texi: Likewise.
84818         * doc/posix-functions/vsnprintf.texi: Likewise.
84819         * doc/posix-functions/vsprintf.texi: Likewise.
84820         * doc/glibc-functions/obstack_printf.texi: Likewise.
84821         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84823 2009-02-28  Bruno Haible  <bruno@clisp.org>
84825         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84826         Reported by Loïc Minier <lool@dooz.org>.
84828 2009-02-27  Bruno Haible  <bruno@clisp.org>
84830         * gnulib-tool (func_import): Make the sed expression used to create the
84831         sed script for updating the .gitignore file POSIX compliant.
84832         Reported by Eric Blake.
84834 2009-02-27  Bruno Haible  <bruno@clisp.org>
84836         * gnulib-tool (sed): Don't alias as "sed --posix".
84837         Reported by Eric Blake.
84839 2009-02-27  Bruno Haible  <bruno@clisp.org>
84841         Avoid test link errors.
84842         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84843         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84844         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84845         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84848 2009-02-27  Bruno Haible  <bruno@clisp.org>
84850         Avoid spurious "(cached)" in configure output.
84851         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84852         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84853         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84854         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84855         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84856         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84857         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84858         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84859         Reported by Eric Blake.
84861 2009-02-27  Eric Blake  <ebb9@byu.net>
84863         printf: fix regression in previous patch
84864         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84866 2009-02-27  Bruno Haible  <bruno@clisp.org>
84868         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84869         value.
84870         * lib/stdint.in.h: Likewise.
84871         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84873 2009-02-27  Eric Blake  <ebb9@byu.net>
84875         doc: mention more functions added in cygwin 1.7.0
84876         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84877         addition.
84878         * doc/posix-functions/open_wmemstream.texi: Likewise.
84879         * doc/posix-functions/wcsnlen.texi: Likewise.
84880         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84881         * doc/posix-functions/wcstod.texi: Likewise.
84882         * doc/posix-functions/wcstof.texi: Likewise.
84883         * doc/posix-functions/wcstoimax.texi: Likewise.
84884         * doc/posix-functions/wcstok.texi: Likewise.
84885         * doc/posix-functions/wcstoumax.texi: Likewise.
84887         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84889         * doc/posix-functions/fprintf.texi: Update.
84890         * doc/posix-functions/printf.texi: Update.
84891         * doc/posix-functions/snprintf.texi: Update.
84892         * doc/posix-functions/sprintf.texi: Update.
84893         * doc/posix-functions/vfprintf.texi: Update.
84894         * doc/posix-functions/vprintf.texi: Update.
84895         * doc/posix-functions/vsnprintf.texi: Update.
84896         * doc/posix-functions/vsprintf.texi: Update.
84897         * doc/glibc-functions/obstack_printf.texi: Update.
84898         * doc/glibc-functions/obstack_vprintf.texi: Update.
84900 2009-02-26  Eric Blake  <ebb9@byu.net>
84902         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84903         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84904         compilation bug by using runtime conversion.
84905         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84906         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84907         * modules/ceill-tests (Files): Use nan.h.
84908         * modules/floorl-tests (Files): Likewise.
84909         * modules/frexpl-tests (Files): Likewise.
84910         * modules/isnanl-tests (Files): Likewise.
84911         * modules/ldexpl-tests (Files): Likewise.
84912         * modules/roundl-tests (Files): Likewise.
84913         * modules/truncl-tests (Files): Likewise.
84914         * tests/test-ceill.c (main): Use a working NaN.
84915         * tests/test-floorl.c (main): Likewise.
84916         * tests/test-frexpl.c (main): Likewise.
84917         * tests/test-isnan.c (test_long_double): Likewise.
84918         * tests/test-isnanl.h (main): Likewise.
84919         * tests/test-ldexpl.h (main): Likewise.
84920         * tests/test-roundl.h (main): Likewise.
84921         * tests/test-truncl.h (main): Likewise.
84922         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84924 2009-02-26  Eric Blake  <ebb9@byu.net>
84925             Bruno Haible  <bruno@clisp.org>
84927         Work around a *printf bug with %ls on Solaris.
84928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84929         precision is specified, sprintf stops converting the wide string
84930         argument when the number of bytes that have been produced by this
84931         conversion equals or exceeds the precision.
84932         * doc/posix-functions/fprintf.texi: Update.
84933         * doc/posix-functions/printf.texi: Update.
84934         * doc/posix-functions/snprintf.texi: Update.
84935         * doc/posix-functions/sprintf.texi: Update.
84936         * doc/posix-functions/vfprintf.texi: Update.
84937         * doc/posix-functions/vprintf.texi: Update.
84938         * doc/posix-functions/vsnprintf.texi: Update.
84939         * doc/posix-functions/vsprintf.texi: Update.
84940         * doc/glibc-functions/obstack_printf.texi: Update.
84941         * doc/glibc-functions/obstack_vprintf.texi: Update.
84943 2009-02-26  Eric Blake  <ebb9@byu.net>
84945         stdlib: favor compiler check of random.h
84946         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84947         to avoid an ObjC random.h installed by Swarm.
84949 2009-02-26  Bruno Haible  <bruno@clisp.org>
84951         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84952         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84953         Reported by Gary V. Vaughan <gary@gnu.org>.
84955 2009-02-26  Bruno Haible  <bruno@clisp.org>
84957         Fix *printf behaviour regarding the %ls directive.
84958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84959         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84960         NEED_PRINTF_DIRECTIVE_LS.
84961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84962         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84964         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84965         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84966         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84967         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84969         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84970         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84971         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84972         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84973         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84976         * doc/posix-functions/fprintf.texi: Update.
84977         * doc/posix-functions/printf.texi: Update.
84978         * doc/posix-functions/snprintf.texi: Update.
84979         * doc/posix-functions/sprintf.texi: Update.
84980         * doc/posix-functions/vfprintf.texi: Update.
84981         * doc/posix-functions/vprintf.texi: Update.
84982         * doc/posix-functions/vsnprintf.texi: Update.
84983         * doc/posix-functions/vsprintf.texi: Update.
84984         * doc/glibc-functions/obstack_printf.texi: Update.
84985         * doc/glibc-functions/obstack_vprintf.texi: Update.
84986         Reported by Eric Blake.
84988 2009-02-25  Bruno Haible  <bruno@clisp.org>
84990         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84991         with known value.
84992         Reported by Gary V. Vaughan <gary@gnu.org>.
84994 2009-02-25  Bruno Haible  <bruno@clisp.org>
84996         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84997         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84998         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84999         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
85000         Reported by Gary V. Vaughan <gary@gnu.org>.
85002 2009-02-25  Bruno Haible  <bruno@clisp.org>
85004         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
85005         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
85006         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
85007         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
85008         Reported by Gary V. Vaughan <gary@gnu.org>.
85010 2009-02-25  Eric Blake  <ebb9@byu.net>
85012         tests: skip fseek/ftell tests if ungetc is broken
85013         * m4/ungetc.m4: New file.
85014         * modules/fseek-tests: Split test, so ungetc dependency is
85015         separate from rest of test.
85016         * modules/fseeko-tests: Likewise.
85017         * modules/ftell-tests: Likewise.
85018         * modules/ftello-tests: Likewise.
85019         * tests/test-fseek.c (main): Isolate ungetc dependency.
85020         * tests/test-fseeko.c (main): Likewise.
85021         * tests/test-ftell.c (main): Likewise.
85022         * tests/test-ftello.c (main): Likewise.
85023         * tests/test-fseek2.sh: New file.
85024         * tests/test-fseeko2.sh: Likewise.
85025         * tests/test-ftell2.sh: Likewise.
85026         * tests/test-ftello2.sh: Likewise.
85028 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
85030         test-getaddrinfo: fix usage of skip return code 77
85031         * tests/test-gettaddrinfo.c: Return skip code 77 only
85032         for first occurrence of skip (4x77 is not 77)
85034 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
85036         strtod: avoid C99 decl-after-statement
85037         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
85039 2009-02-24  Eric Blake  <ebb9@byu.net>
85041         strtod: detect HP-UX 11.31 bug
85042         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
85043         Reported by Gary V. Vaughan.
85045 2009-02-23  Bruno Haible  <bruno@clisp.org>
85047         Fix invalid read past end of memory block.
85048         * lib/vasnprintf.c (DCHAR_SET): Define.
85049         (local_wcslen): Define only when needed.
85050         (local_strnlen, local_wcsnlen): New functions.
85051         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
85052         directives that involve a conversion ourselves.
85053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
85054         wcsnlen, mbrtowc, wcrtomb.
85055         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
85056         * tests/test-vasprintf-posix.c (test_function): Likewise.
85057         * tests/test-snprintf-posix.h (test_function): Likewise.
85058         * tests/test-sprintf-posix.h (test_function): Likewise.
85059         Reported by Ben Pfaff <blp@cs.stanford.edu>.
85061 2009-02-22  Bruno Haible  <bruno@clisp.org>
85063         Implement new clarified decomposition of Hangul syllables.
85064         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
85065         of type LTV, return only a pairwise decomposition.
85066         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
85067         Likewise.
85068         * tests/uninorm/test-decomposition.c (main): Updated expected result.
85069         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
85070         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
85072 2009-02-22  Bruno Haible  <bruno@clisp.org>
85074         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
85075         zero-length results and shrink excess allocated memory.
85076         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
85077         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
85078         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
85079         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
85080         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
85081         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
85082         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
85083         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
85084         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
85085         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
85086         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
85087         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
85089 2009-02-21  Bruno Haible  <bruno@clisp.org>
85091         * doc/gnulib.texi: Include safe-alloc.texi earlier.
85092         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
85093         spaces after a period. Put a space between a macro name and its
85094         argument list. Trivial rewordings.
85095         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
85096         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
85097         (main): Return 0 explicitly.
85099 2009-02-21  Bruno Haible  <bruno@clisp.org>
85101         Tests for module 'uninorm/filter'.
85102         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
85103         * modules/uninorm/filter-tests: New file.
85105         New module 'uninorm/filter'.
85106         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
85107         uninorm_filter_flush, uninorm_filter_free): New declarations.
85108         * lib/uninorm/uninorm-filter.c: New file.
85109         * modules/uninorm/filter: New file.
85111 2009-02-21  Bruno Haible  <bruno@clisp.org>
85113         Tests for module 'uninorm/nfkc'.
85114         * tests/uninorm/test-nfkc.c: New file.
85115         * tests/uninorm/test-u8-nfkc.c: New file.
85116         * tests/uninorm/test-u16-nfkc.c: New file.
85117         * tests/uninorm/test-u32-nfkc.c: New file.
85118         * tests/uninorm/test-u32-nfkc-big.sh: New file.
85119         * tests/uninorm/test-u32-nfkc-big.c: New file.
85120         * modules/uninorm/nfkc-tests: New file.
85122         New module 'uninorm/nfkc'.
85123         * lib/uninorm/nfkc.c: New file.
85124         * modules/uninorm/nfkc: New file.
85126         Tests for module 'uninorm/nfkd'.
85127         * tests/uninorm/test-nfkd.c: New file.
85128         * tests/uninorm/test-u8-nfkd.c: New file.
85129         * tests/uninorm/test-u16-nfkd.c: New file.
85130         * tests/uninorm/test-u32-nfkd.c: New file.
85131         * tests/uninorm/test-u32-nfkd-big.sh: New file.
85132         * tests/uninorm/test-u32-nfkd-big.c: New file.
85133         * modules/uninorm/nfkd-tests: New file.
85135         New module 'uninorm/nfkd'.
85136         * lib/uninorm/nfkd.c: New file.
85137         * modules/uninorm/nfkd: New file.
85139         Tests for module 'uninorm/nfc'.
85140         * tests/uninorm/test-nfc.c: New file.
85141         * tests/uninorm/test-u8-nfc.c: New file.
85142         * tests/uninorm/test-u16-nfc.c: New file.
85143         * tests/uninorm/test-u32-nfc.c: New file.
85144         * tests/uninorm/test-u32-nfc-big.sh: New file.
85145         * tests/uninorm/test-u32-nfc-big.c: New file.
85146         * modules/uninorm/nfc-tests: New file.
85148         New module 'uninorm/nfc'.
85149         * lib/uninorm/nfc.c: New file.
85150         * modules/uninorm/nfc: New file.
85152         Tests for module 'uninorm/nfd'.
85153         * tests/uninorm/test-nfd.c: New file.
85154         * tests/uninorm/test-u8-nfd.c: New file.
85155         * tests/uninorm/test-u16-nfd.c: New file.
85156         * tests/uninorm/test-u32-nfd.c: New file.
85157         * tests/uninorm/test-u32-nfd-big.sh: New file.
85158         * tests/uninorm/test-u32-nfd-big.c: New file.
85159         * tests/uninorm/test-u32-normalize-big.h: New file.
85160         * tests/uninorm/test-u32-normalize-big.c: New file.
85161         * tests/uninorm/NormalizationTest.txt: New file, created from
85162         Unicode 5.1.0 NormalizationTest.txt.
85163         * modules/uninorm/nfd-tests: New file.
85165         New module 'uninorm/nfd'.
85166         * lib/uninorm/nfd.c: New file.
85167         * modules/uninorm/nfd: New file.
85169         New module 'uninorm/u32-normalize'.
85170         * lib/uninorm/u32-normalize.c: New file.
85171         * modules/uninorm/u32-normalize: New file.
85173         New module 'uninorm/u16-normalize'.
85174         * lib/uninorm/u16-normalize.c: New file.
85175         * modules/uninorm/u16-normalize: New file.
85177         New module 'uninorm/u8-normalize'.
85178         * lib/uninorm/u8-normalize.c: New file.
85179         * lib/uninorm/normalize-internal.h: New file.
85180         * lib/uninorm/u-normalize-internal.h: New file.
85181         * modules/uninorm/u8-normalize: New file.
85183         New module 'uninorm/decompose-internal'.
85184         * lib/uninorm/decompose-internal.c: New file.
85185         * modules/uninorm/decompose-internal: New file.
85187         Tests for module 'uninorm/composition'.
85188         * tests/uninorm/test-composition.c: New file.
85189         * modules/uninorm/composition-tests: New file.
85191         New module 'uninorm/composition'.
85192         * lib/uninorm/composition.c: New file.
85193         * lib/uninorm/composition-table.gperf: New file, generated by
85194         gen-uni-tables.
85195         * modules/uninorm/composition: New file.
85197         Tests for module 'uninorm/compat-decomposition'.
85198         * tests/uninorm/test-compat-decomposition.c: New file.
85199         * modules/uninorm/compat-decomposition-tests: New file.
85201         New module 'uninorm/compat-decomposition'.
85202         * lib/uninorm/decompose-internal.h: New file.
85203         * lib/uninorm/compat-decomposition.c: New file.
85204         * modules/uninorm/compat-decomposition: New file.
85206         Tests for module 'uninorm/canonical-decomposition'.
85207         * tests/uninorm/test-canonical-decomposition.c: New file.
85208         * modules/uninorm/canonical-decomposition-tests: New file.
85210         New module 'uninorm/canonical-decomposition'.
85211         * lib/uninorm/canonical-decomposition.c: New file.
85212         * modules/uninorm/canonical-decomposition: New file.
85214         Tests for module 'uninorm/decomposition'.
85215         * tests/uninorm/test-decomposition.c: New file.
85216         * modules/uninorm/decomposition-tests: New file.
85218         New module 'uninorm/decomposition'.
85219         * lib/uninorm/decomposition.c: New file.
85220         * modules/uninorm/decomposition: New file.
85222         New module 'uninorm/decomposition-table'.
85223         * lib/uninorm/decomposition-table.h: New file.
85224         * lib/uninorm/decomposition-table.c: New file.
85225         * lib/uninorm/decomposition-table1.h: New file, generated by
85226         gen-uni-tables.
85227         * lib/uninorm/decomposition-table2.h: New file, generated by
85228         gen-uni-tables.
85229         * modules/uninorm/decomposition-table: New file.
85231         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
85232         (UC_DECOMP_*): New enumeration items.
85233         (get_decomposition): New function.
85234         (struct decomp_table): New type.
85235         (output_decomposition, output_decomposition_tables): New functions.
85236         (unicode_composition_exclusions): New variable.
85237         (fill_composition_exclusions, debug_output_composition_tables): New
85238         functions.
85239         (main): Accept one more argument. Invoke fill_composition_exclusions.
85240         Output decomposition and composition tables.
85242         New module 'uninorm/base'.
85243         * lib/uninorm.h: New file.
85244         * lib/unictype.h: Update comment.
85245         * modules/uninorm/base: New file.
85247 2009-02-21  David Lutterkort  <lutter@redhat.com>
85249         Tests for module 'safe-alloc'.
85250         * tests/test-safe-alloc.c: New file.
85251         * modules/safe-alloc-tests: New file.
85253         New module 'safe-alloc'.
85254         * lib/safe-alloc.h: New file.
85255         * lib/safe-alloc.c: New file.
85256         * m4/safe-alloc.m4: New file.
85257         * modules/safe-alloc: New file.
85258         * doc/safe-alloc.texi: New file.
85259         * doc/gnulib.texi: Include it.
85260         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85261         safe-alloc.
85263 2009-02-18  Bruno Haible  <bruno@clisp.org>
85265         Fix link error on non-glibc systems.
85266         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85267         variable.
85268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85270 2009-02-18  Jim Meyering  <meyering@redhat.com>
85272         fts: avoid used-uninitialized error due to recent change
85273         * lib/fts.c (fts_read): Guard uses of the new member,
85274         parent->fts_n_dirs_remaining, since it's not relevant for
85275         the parent of a directory specified on the command-line.
85277 2009-02-17  James Youngman  <jay@gnu.org>
85278             Bruno Haible  <bruno@clisp.org>
85280         * m4/include_next.m4: Reformulate comment.
85282 2009-02-16  Jim Meyering  <meyering@redhat.com>
85284         fts: add #if guards so that the fts_lgpl module still builds
85285         * lib/fts.c: Guard just-added hash-table-using parts with
85286         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85287         Reported by Simon Josefsson.
85289 2009-02-15  Bruno Haible  <bruno@clisp.org>
85291         * modules/array-mergesort-tests: New file.
85292         * tests/test-array-mergesort.c: New file.
85294         New module 'array-mergesort'.
85295         * modules/array-mergesort: New file.
85296         * lib/array-mergesort.h: New file.
85298 2009-02-15  Bruno Haible  <bruno@clisp.org>
85300         Fix 2009-02-07 commit.
85301         * lib/gen-uni-tables.c (output_predicate, output_category,
85302         output_combclass, output_bidi_category, output_decimal_digit,
85303         output_digit, output_numeric, output_mirror, output_scripts,
85304         output_ident_category, output_simple_mapping): Fix format directives.
85305         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85307 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85309         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85310         fixes are available from IBM.
85312 2009-02-13  Jim Meyering  <meyering@redhat.com>
85314         fts: arrange not to stat non-directories in more cases
85315         This makes GNU find (when it doesn't need to stat each file)
85316         *much* more efficient at traversing reiserfs file systems.
85317         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85318         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85319         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85320         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85321         (leaf_optimization_applies): New function.
85322         (LCO_hash, LCO_compare): New helper functions.
85323         (link_count_optimize_ok): New function.
85324         (fts_stat): Initialize new member (if dir).
85325         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85326         we've just stat'ed a directory.  Skip the stat call when possible.
85327         ---
85328         Note this AFS-related exchange:
85329         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85330         and note find's pioctl call in find/fstype.c.
85331         But that is necessary only if you want to enable the
85332         optimization for AFS, and for now, I don't.
85334         fts: move a function definition "up" (no semantic change)
85335         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85336         "up" to precede upcoming use of a related function.
85338 2009-02-11  Jim Meyering  <meyering@redhat.com>
85340         fts: correct internal computation of nlinks (optimization-related)
85341         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85342         whether the current entry is a directory, so don't test it.
85344 2009-02-10  Bruno Haible  <bruno@clisp.org>
85346         Tests for module 'uniwbrk/ulc-wordbreaks'.
85347         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85348         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85349         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85351         Tests for module 'uniwbrk/u32-wordbreaks'.
85352         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85353         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85355         Tests for module 'uniwbrk/u16-wordbreaks'.
85356         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85357         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85359         Tests for module 'uniwbrk/u8-wordbreaks'.
85360         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85361         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85363 2009-02-10  Bruno Haible  <bruno@clisp.org>
85365         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85366         property.
85367         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85368         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85369         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85371 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85373         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85374         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85376 2009-02-10  Bruno Haible  <bruno@clisp.org>
85378         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85379         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85380         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85381         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85382         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85383         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85385 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85387         * lib/sockets.h (gl_fd_to_handle): New function.
85389         * tests/test-sockets.c: Call gl_fd_to_handle.
85391 2009-02-09  Bruno Haible  <bruno@clisp.org>
85393         * doc/havelib.texi: Document the conventions on bi-arch systems.
85395 2009-02-08  Bruno Haible  <bruno@clisp.org>
85397         Document the AC_LIB_LINKFLAGS macro.
85398         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85399         * doc/gnulib.texi: Include it.
85401 2009-02-08  Bruno Haible  <bruno@clisp.org>
85403         Fix wrong order of sections, compared to TOC.
85404         * doc/gnulib.texi: Include relocatable-maint.texi after the
85405         "Regular expressions" node, not before.
85407 2009-02-08  Bruno Haible  <bruno@clisp.org>
85409         Tests for module 'unicase/totitle'.
85410         * modules/unicase/totitle-tests: New file.
85412         Tests for module 'unicase/tolower'.
85413         * modules/unicase/tolower-tests: New file.
85415         Tests for module 'unicase/toupper'.
85416         * modules/unicase/toupper-tests: New file.
85417         * tests/unicase/test-mapping-part1.h: New file.
85418         * tests/unicase/test-mapping-part2.h: New file.
85420         New module 'unicase/totitle'.
85421         * modules/unicase/totitle: New file.
85422         * lib/unicase/totitle.c: New file.
85424         New module 'unicase/tolower'.
85425         * modules/unicase/tolower: New file.
85426         * lib/unicase/tolower.c: New file.
85428         New module 'unicase/toupper'.
85429         * modules/unicase/toupper: New file.
85430         * lib/unicase/toupper.c: New file.
85431         * lib/unicase/simple-mapping.h: New file.
85433         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85434         (mapping_table): New structure.
85435         (output_simple_mapping): New function.
85436         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85437         * modules/gen-uni-tables (Description): Update.
85438         * lib/unicase/toupper.h: New file, automatically generated by
85439         gen-uni-tables.
85440         * lib/unicase/tolower.h: New file, automatically generated by
85441         gen-uni-tables.
85442         * lib/unicase/totitle.h: New file, automatically generated by
85443         gen-uni-tables.
85444         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85445         gen-uni-tables.
85446         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85447         gen-uni-tables.
85448         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85449         gen-uni-tables.
85451         New module 'unicase/base'.
85452         * modules/unicase/base: New file.
85453         * lib/unicase.h: New file.
85455 2009-02-08  Bruno Haible  <bruno@clisp.org>
85457         New module 'uniwbrk/ulc-wordbreaks'.
85458         * modules/uniwbrk/ulc-wordbreaks: New file.
85459         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85461         New module 'uniwbrk/u32-wordbreaks'.
85462         * modules/uniwbrk/u32-wordbreaks: New file.
85463         * lib/uniwbrk/u32-wordbreaks.c: New file.
85465         New module 'uniwbrk/u16-wordbreaks'.
85466         * modules/uniwbrk/u16-wordbreaks: New file.
85467         * lib/uniwbrk/u16-wordbreaks.c: New file.
85469         New module 'uniwbrk/u8-wordbreaks'.
85470         * modules/uniwbrk/u8-wordbreaks: New file.
85471         * lib/uniwbrk/u8-wordbreaks.c: New file.
85472         * lib/uniwbrk/u-wordbreaks.h: New file.
85474         New module 'uniwbrk/table'.
85475         * modules/uniwbrk/table: New file.
85476         * lib/uniwbrk/wbrktable.h: New file.
85477         * lib/uniwbrk/wbrktable.c: New file.
85479         New module 'uniwbrk/wordbreak-property'.
85480         * modules/uniwbrk/wordbreak-property: New file.
85481         * lib/uniwbrk/wordbreak-property.c: New file.
85483         * lib/gen-uni-tables.c (WBP_*): New enum items.
85484         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85485         (unicode_org_wbp): New variable.
85486         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85487         New functions.
85488         (wbp_table): New structure.
85489         (output_wbp, output_wbrk_tables): New functions.
85490         (main): Accept additional argument. Invoke fill_org_wbp,
85491         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85492         output_wbrk_tables.
85493         * modules/gen-uni-tables (Description): Update.
85494         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85495         gen-uni-tables.
85497         New module 'uniwbrk/base'.
85498         * modules/uniwbrk/base: New file.
85499         * lib/uniwbrk.h: New file.
85501 2009-02-08  Bruno Haible  <bruno@clisp.org>
85503         Update to Unicode 5.1.0.
85504         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85505         U+2185..U+2188.
85506         (is_property_default_ignorable_code_point): Don't include characters
85507         of category Cc or Cs and not-a-characters.
85508         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85509         U+0D79, U+109E, U+109F, U+A60C.
85510         * lib/unictype/bidi_of.h: Regenerated.
85511         * lib/unictype/blocks.h: Regenerated.
85512         * lib/unictype/categ_C.h: Regenerated.
85513         * lib/unictype/categ_Cf.h: Regenerated.
85514         * lib/unictype/categ_Cn.h: Regenerated.
85515         * lib/unictype/categ_L.h: Regenerated.
85516         * lib/unictype/categ_Ll.h: Regenerated.
85517         * lib/unictype/categ_Lm.h: Regenerated.
85518         * lib/unictype/categ_Lo.h: Regenerated.
85519         * lib/unictype/categ_Lu.h: Regenerated.
85520         * lib/unictype/categ_M.h: Regenerated.
85521         * lib/unictype/categ_Mc.h: Regenerated.
85522         * lib/unictype/categ_Me.h: Regenerated.
85523         * lib/unictype/categ_Mn.h: Regenerated.
85524         * lib/unictype/categ_N.h: Regenerated.
85525         * lib/unictype/categ_Nd.h: Regenerated.
85526         * lib/unictype/categ_Nl.h: Regenerated.
85527         * lib/unictype/categ_No.h: Regenerated.
85528         * lib/unictype/categ_P.h: Regenerated.
85529         * lib/unictype/categ_Pd.h: Regenerated.
85530         * lib/unictype/categ_Pe.h: Regenerated.
85531         * lib/unictype/categ_Pf.h: Regenerated.
85532         * lib/unictype/categ_Pi.h: Regenerated.
85533         * lib/unictype/categ_Po.h: Regenerated.
85534         * lib/unictype/categ_Ps.h: Regenerated.
85535         * lib/unictype/categ_S.h: Regenerated.
85536         * lib/unictype/categ_Sk.h: Regenerated.
85537         * lib/unictype/categ_Sm.h: Regenerated.
85538         * lib/unictype/categ_So.h: Regenerated.
85539         * lib/unictype/categ_of.h: Regenerated.
85540         * lib/unictype/combining.h: Regenerated.
85541         * lib/unictype/ctype_alnum.h: Regenerated.
85542         * lib/unictype/ctype_alpha.h: Regenerated.
85543         * lib/unictype/ctype_graph.h: Regenerated.
85544         * lib/unictype/ctype_lower.h: Regenerated.
85545         * lib/unictype/ctype_print.h: Regenerated.
85546         * lib/unictype/ctype_punct.h: Regenerated.
85547         * lib/unictype/ctype_upper.h: Regenerated.
85548         * lib/unictype/decdigit.h: Regenerated.
85549         * lib/unictype/digit.h: Regenerated.
85550         * lib/unictype/mirror.h: Regenerated.
85551         * lib/unictype/numeric.h: Regenerated.
85552         * lib/unictype/pr_alphabetic.h: Regenerated.
85553         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85554         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85555         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85556         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85557         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85558         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85559         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85560         * lib/unictype/pr_combining.h: Regenerated.
85561         * lib/unictype/pr_dash.h: Regenerated.
85562         * lib/unictype/pr_decimal_digit.h: Regenerated.
85563         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85564         * lib/unictype/pr_deprecated.h: Regenerated.
85565         * lib/unictype/pr_diacritic.h: Regenerated.
85566         * lib/unictype/pr_extender.h: Regenerated.
85567         * lib/unictype/pr_format_control.h: Regenerated.
85568         * lib/unictype/pr_grapheme_base.h: Regenerated.
85569         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85570         * lib/unictype/pr_grapheme_link.h: Regenerated.
85571         * lib/unictype/pr_id_continue.h: Regenerated.
85572         * lib/unictype/pr_id_start.h: Regenerated.
85573         * lib/unictype/pr_ideographic.h: Regenerated.
85574         * lib/unictype/pr_ignorable_control.h: Regenerated.
85575         * lib/unictype/pr_lowercase.h: Regenerated.
85576         * lib/unictype/pr_math.h: Regenerated.
85577         * lib/unictype/pr_numeric.h: Regenerated.
85578         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85579         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85580         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85581         * lib/unictype/pr_other_id_continue.h: Regenerated.
85582         * lib/unictype/pr_other_lowercase.h: Regenerated.
85583         * lib/unictype/pr_other_math.h: Regenerated.
85584         * lib/unictype/pr_punctuation.h: Regenerated.
85585         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85586         * lib/unictype/pr_soft_dotted.h: Regenerated.
85587         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85588         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85589         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85590         * lib/unictype/pr_uppercase.h: Regenerated.
85591         * lib/unictype/pr_xid_continue.h: Regenerated.
85592         * lib/unictype/pr_xid_start.h: Regenerated.
85593         * lib/unictype/pr_zero_width.h: Regenerated.
85594         * lib/unictype/scripts.h: Regenerated.
85595         * lib/unictype/scripts_byname.gperf: Regenerated.
85596         * lib/unictype/sy_java_ident.h: Regenerated.
85597         * lib/unilbrk/lbrkprop1.h: Regenerated.
85598         * lib/unilbrk/lbrkprop2.h: Regenerated.
85599         * tests/unictype/test-categ_C.c: Regenerated.
85600         * tests/unictype/test-categ_Cf.c: Regenerated.
85601         * tests/unictype/test-categ_Cn.c: Regenerated.
85602         * tests/unictype/test-categ_L.c: Regenerated.
85603         * tests/unictype/test-categ_Ll.c: Regenerated.
85604         * tests/unictype/test-categ_Lm.c: Regenerated.
85605         * tests/unictype/test-categ_Lo.c: Regenerated.
85606         * tests/unictype/test-categ_Lu.c: Regenerated.
85607         * tests/unictype/test-categ_M.c: Regenerated.
85608         * tests/unictype/test-categ_Mc.c: Regenerated.
85609         * tests/unictype/test-categ_Me.c: Regenerated.
85610         * tests/unictype/test-categ_Mn.c: Regenerated.
85611         * tests/unictype/test-categ_N.c: Regenerated.
85612         * tests/unictype/test-categ_Nd.c: Regenerated.
85613         * tests/unictype/test-categ_Nl.c: Regenerated.
85614         * tests/unictype/test-categ_No.c: Regenerated.
85615         * tests/unictype/test-categ_P.c: Regenerated.
85616         * tests/unictype/test-categ_Pd.c: Regenerated.
85617         * tests/unictype/test-categ_Pe.c: Regenerated.
85618         * tests/unictype/test-categ_Pf.c: Regenerated.
85619         * tests/unictype/test-categ_Pi.c: Regenerated.
85620         * tests/unictype/test-categ_Po.c: Regenerated.
85621         * tests/unictype/test-categ_Ps.c: Regenerated.
85622         * tests/unictype/test-categ_S.c: Regenerated.
85623         * tests/unictype/test-categ_Sk.c: Regenerated.
85624         * tests/unictype/test-categ_Sm.c: Regenerated.
85625         * tests/unictype/test-categ_So.c: Regenerated.
85626         * tests/unictype/test-ctype_alnum.c: Regenerated.
85627         * tests/unictype/test-ctype_alpha.c: Regenerated.
85628         * tests/unictype/test-ctype_graph.c: Regenerated.
85629         * tests/unictype/test-ctype_lower.c: Regenerated.
85630         * tests/unictype/test-ctype_print.c: Regenerated.
85631         * tests/unictype/test-ctype_punct.c: Regenerated.
85632         * tests/unictype/test-ctype_upper.c: Regenerated.
85633         * tests/unictype/test-decdigit.h: Regenerated.
85634         * tests/unictype/test-digit.h: Regenerated.
85635         * tests/unictype/test-numeric.h: Regenerated.
85636         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85637         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85638         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85639         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85640         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85641         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85642         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85643         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85644         * tests/unictype/test-pr_combining.c: Regenerated.
85645         * tests/unictype/test-pr_dash.c: Regenerated.
85646         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85647         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85648         * tests/unictype/test-pr_deprecated.c: Regenerated.
85649         * tests/unictype/test-pr_diacritic.c: Regenerated.
85650         * tests/unictype/test-pr_extender.c: Regenerated.
85651         * tests/unictype/test-pr_format_control.c: Regenerated.
85652         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85653         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85654         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85655         * tests/unictype/test-pr_id_continue.c: Regenerated.
85656         * tests/unictype/test-pr_id_start.c: Regenerated.
85657         * tests/unictype/test-pr_ideographic.c: Regenerated.
85658         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85659         * tests/unictype/test-pr_lowercase.c: Regenerated.
85660         * tests/unictype/test-pr_math.c: Regenerated.
85661         * tests/unictype/test-pr_numeric.c: Regenerated.
85662         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85663         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85664         Regenerated.
85665         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85666         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85667         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85668         * tests/unictype/test-pr_other_math.c: Regenerated.
85669         * tests/unictype/test-pr_punctuation.c: Regenerated.
85670         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85671         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85672         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85673         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85674         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85675         * tests/unictype/test-pr_uppercase.c: Regenerated.
85676         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85677         * tests/unictype/test-pr_xid_start.c: Regenerated.
85678         * tests/unictype/test-pr_zero_width.c: Regenerated.
85680         Update to Unicode 5.1.0.
85681         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85682         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85683         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85684         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85685         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85686         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85687         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85688         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85689         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85690         (nonspacing_table_ind): Update.
85691         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85693         Update to Unicode 5.1.0.
85694         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85695         code transform.
85696         * lib/uniname/uniname.c (unicode_character_name,
85697         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85698         * lib/uniname/uninames.h: Regenerated.
85699         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85701 2009-02-07  Bruno Haible  <bruno@clisp.org>
85703         Merge gen-ctype and gen-lbrk into a single program.
85704         * lib/gen-uni-tables.c: New file, incorporating
85705         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85706         Add directory prefixes to the names of the generated files.
85707         * lib/unictype/gen-ctype.c: Remove file.
85708         * lib/unilbrk/gen-lbrk.c: Remove file.
85709         * modules/gen-uni-tables: New file.
85710         * modules/unictype/gen-ctype: Remove file.
85711         * modules/unilbrk/gen-lbrk: Remove file.
85713 2009-02-07  Bruno Haible  <bruno@clisp.org>
85715         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85717         New module 'unistr/u32-strcoll'.
85718         * modules/unistr/u32-strcoll: New file.
85719         * lib/unistr/u32-strcoll.c: New file.
85721         New module 'unistr/u16-strcoll'.
85722         * modules/unistr/u16-strcoll: New file.
85723         * lib/unistr/u16-strcoll.c: New file.
85725         New module 'unistr/u8-strcoll'.
85726         * modules/unistr/u8-strcoll: New file.
85727         * lib/unistr/u8-strcoll.c: New file.
85728         * lib/unistr/u-strcoll.h: New file.
85730 2009-02-07  Bruno Haible  <bruno@clisp.org>
85732         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85733         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85734         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85735         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85736         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85737         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85739 2009-02-07  Bruno Haible  <bruno@clisp.org>
85741         Make 64-bit clean.
85742         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85743         output_combclass, output_bidi_category, output_decimal_digit,
85744         output_digit, output_numeric, output_mirror, output_scripts,
85745         output_ident_category): Use proper width specifier in format strings.
85747 2009-02-07  Bruno Haible  <bruno@clisp.org>
85749         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85750         failure behaviour.
85752 2009-02-07  Jim Meyering  <meyering@redhat.com>
85754         regex: avoid compilation failure with upcoming gcc-4.4
85755         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85756         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85757         "... error: integer overflow in preprocessor expression".
85759 2009-02-05  Ben Pfaff  <blp@gnu.org>
85761         Fix link errors on Windows when close module is used.
85762         * modules/close: Add $(LIB_CLOSE) to Link section.
85763         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85764         $(LIB_CLOSE) on Windows.
85766 2009-02-05  Jim Meyering  <meyering@redhat.com>
85768         still avoid unused-parameter warnings, but do it cleanly
85769         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85770         (get_fs_usage): Cast to void instead.
85771         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85772         (dev_from_mount_options, read_file_system_list): Cast to void.
85773         Prompted by Bruno Haible.
85775 2009-02-04  Jim Meyering  <meyering@redhat.com>
85777         fsusage.c: correct copyright year
85778         * lib/fsusage.c: Reflect year in which the change is pushed into
85780         avoid misc. warnings
85781         * lib/fsusage.c (UNUSED_PARAM): Define.
85782         (get_fs_usage): Mark parameter "disk" as unused.
85783         * lib/getugroups.c (getgrent): Use "void" in prototype.
85784         * lib/mountlist.c: Mark unused parameters.
85785         (read_file_system_list): Declare a local with "const".
85786         * lib/nanosleep.c (getnow): Declare static.
85787         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85789         dirfd: set errno upon failure
85790         * lib/dirfd.c: Include <errno.h>.
85791         Set errno to ENOTSUP when returning -1.
85792         * modules/dirfd (Depends-on): Add errno.
85793         Suggested by John Kodis <kodis@comcast.net>.
85795 2009-02-01  Bruno Haible  <bruno@clisp.org>
85797         Don't assume sizeof (long) >= sizeof (void *).
85798         * lib/memcmp.c: Include stdint.h.
85799         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85800         srcp2 to 'const byte *'.
85801         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85802         types to uintptr_t.
85803         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85804         * modules/memcmp (Depends-on): Add stdint.
85805         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85807 2009-01-30  Eric Blake  <ebb9@byu.net>
85809         fix more require-before-expand issues
85810         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85811         expand, AC_PROG_AWK.
85812         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85814 2009-01-28  Eric Blake  <ebb9@byu.net>
85816         version-etc: use consistent URL formatting
85817         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85818         Improve formatting.  Use fputs for string without %.
85820 2009-01-28  Jim Meyering  <meyering@redhat.com>
85822         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85823         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85824         "underquoted definition of NAME" from autoconf-2.59.
85826 2009-01-28  Bruno Haible  <bruno@clisp.org>
85828         * doc/gnulib.texi: Add "Obsolete modules" to index.
85830 2009-01-28  Jim Meyering  <meyering@redhat.com>
85832         useless-if-before-free: recognize more variants
85833         * build-aux/useless-if-before-free: Also recognize e.g.,
85834         if (NULL != p) free (p);
85836 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85838         test-getaddrinfo: skip (don't fail) this test when there's no network
85839         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85840         on the presumption that it means you lack network access.
85842 2009-01-26  Jim Meyering  <meyering@redhat.com>
85844         fflush: avoid warnings on modern systems
85845         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85846         pos and result, into scopes where they're used.
85848 2009-01-26  Eric Blake  <ebb9@byu.net>
85850         Silence warning reintroduced by recent extensions patch.
85851         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85852         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85853         autoconf.
85855         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85856         * m4/00gnulib.m4: New file.
85857         * gnulib-tool (func_get_filelist): Always use it.
85858         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85859         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85861 2009-01-25  Bruno Haible  <bruno@clisp.org>
85863         Make test-quotearg work on MacOS X and AIX.
85864         * tests/test-quotearg.sh: New file.
85865         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85866         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85867         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85868         include <libintl.h>.
85869         (fake_locale): Remove variable.
85870         (gettext, dgettext, dcgettext): Remove functions.
85871         (main): Instead of setting a fake locale, set a real locale. Call
85872         textdomain and bindtextdomain.
85873         * modules/quotearg-tests (Files): Add the new files.
85874         (Depends-on): Add gettext, setenv, unsetenv.
85875         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85876         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85877         Augment TESTS_ENVIRONMENT.
85879 2009-01-25  Bruno Haible  <bruno@clisp.org>
85881         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85882         fr_FR.ISO8859-1 locale on MacOS X.
85883         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85884         ja_JP.eucJP locale on MacOS X.
85885         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85886         zh_CN.GB18030 locale on MacOS X.
85888 2009-01-25  Bruno Haible  <bruno@clisp.org>
85890         Avoid link errors on MacOS X 10.3.
85891         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85892         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85894 2009-01-25  Bruno Haible  <bruno@clisp.org>
85896         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85897         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85898         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85899         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85900         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85901         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85902         posix_spawnattr_init, posix_spawnattr_setsigmask,
85903         posix_spawnattr_setflags, posix_spawnattr_destroy.
85905         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85906         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85907         * modules/execute (Files): Remove m4/posix_spawn.m4.
85908         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85909         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85910         posix_spawnattr_init, posix_spawnattr_setsigmask,
85911         posix_spawnattr_setflags, posix_spawnattr_destroy.
85913 2009-01-25  Bruno Haible  <bruno@clisp.org>
85915         * lib/glthread/threadlib.c: Include <stdlib.h>.
85917 2009-01-25  Bruno Haible  <bruno@clisp.org>
85919         * lib/glthread/threadlib.c (dummy): New declaration.
85921 2009-01-25  Bruno Haible  <bruno@clisp.org>
85923         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85924         multibyte characters also for the GB18030 encoding. Don't crash when
85925         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85927 2009-01-25  Bruno Haible  <bruno@clisp.org>
85929         Avoid redefining 'struct random_data' on OSF/1 5.1.
85930         * lib/stdlib.in.h: Include <random.h> if it exists.
85931         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85932         HAVE_RANDOM_H. Include <random.h> when testing whether
85933         'struct random_data' exists.
85934         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85936 2009-01-25  Bruno Haible  <bruno@clisp.org>
85938         Don't install charset.alias on MacOS X >= 10.3.
85939         * lib/localcharset.c (DARWIN7): New macro.
85940         (get_charset_aliases): Hardcode the result for Darwin7.
85941         * modules/localcharset (install-exec-local): Don't install
85942         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85944 2009-01-25  Bruno Haible  <bruno@clisp.org>
85946         Don't install charset.alias on mingw and Cygwin.
85947         * modules/localcharset (install-exec-local): Don't install
85948         charset.alias on mingw and Cygwin, if the file does not yet exist.
85949         The result for these platforms is hardcoded in localcharset.c.
85951 2009-01-25  Bruno Haible  <bruno@clisp.org>
85953         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85955         before requiring AC_USE_SYSTEM_EXTENSIONS.
85957 2009-01-25  Jim Meyering  <meyering@redhat.com>
85959         c-strtod: avoid warnings
85960         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85961         "assignment discards qualifiers from pointer target type" warnings.
85963 2009-01-24  Bruno Haible  <bruno@clisp.org>
85965         Add support for non-UTF-8 locales on MacOS X.
85966         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85967         canonical encodings. For Darwin 7 and newer, don't map traditional
85968         encodings to UTF-8.
85969         Reported by Vincent Lefevre <vincent@vinc17.org>
85970         at <http://savannah.gnu.org/bugs/?25235>.
85972 2009-01-24  Bruno Haible  <bruno@clisp.org>
85974         * doc/gnulib.texi (Obsolete modules): New section.
85975         Reported by Mike Frysinger <vapier@gentoo.org>.
85977 2009-01-24  Bruno Haible  <bruno@clisp.org>
85979         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85980         (%.dvi): New rule.
85982 2009-01-24  Bruno Haible  <bruno@clisp.org>
85984         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85985         Reported by Eric Blake.
85987 2009-01-24  Bruno Haible  <bruno@clisp.org>
85989         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85990         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85991         Reported by Gary V. Vaughan <gary@gnu.org>.
85993 2009-01-24  Bruno Haible  <bruno@clisp.org>
85995         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85997 2009-01-23  Bruno Haible  <bruno@clisp.org>
85999         Make c-strtod, c-strtold usable in libraries.
86000         * lib/c-strtod.c: Include string.h instead of xalloc.h.
86001         (C_STRTOD): Call strdup instead of xstrdup.
86002         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
86003         * modules/c-strtold (Depends-on): Likewise.
86004         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
86005         * NEWS: Mention the change.
86006         Reported by Michael Gold <mgold@ncf.ca>.
86008 2009-01-23  Jim Meyering  <meyering@redhat.com>
86010         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
86011         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
86012         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
86014 2009-01-23  Simon Josefsson  <simon@josefsson.org>
86016         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
86017         GNU CoreUtils.
86018         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
86019         * modules/version-etc (Description): Update.
86021 2009-01-22  Bruno Haible  <bruno@clisp.org>
86023         Cache the C locale object.
86024         * lib/c-strtod.c (c_locale_cache): New variable.
86025         (c_locale): New function.
86026         (C_STRTOD): Use it, and don't call freelocale.
86027         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
86028         Suggested by Paolo Bonzini.
86030 2009-01-21  Bruno Haible  <bruno@clisp.org>
86032         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
86033         conditions other than overflow.
86035 2009-01-21  Bruno Haible  <bruno@clisp.org>
86037         * lib/c-strtod.c: Include errno.h.
86038         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
86039         value from STRTOD_L and STRTOD.
86041 2009-01-21  Bruno Haible  <bruno@clisp.org>
86042         and Jim Meyering  <meyering@redhat.com>
86044         nanosleep: skip configure test (fail it) for apple universal builds
86045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
86046         universal builds, assume that nanosleep does not work.
86047         * modules/nanosleep (Depends-on): Add multiarch.
86049         mktime: skip configure test (fail it) for apple universal builds
86050         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
86051         universal builds, assume that mktime does not work.
86052         * modules/mktime (Depends-on): Add multiarch.
86054 2009-01-21  Eric Blake  <ebb9@byu.net>
86056         multiarch: avoid expand-before-require warning
86057         * modules/multiarch (configure.ac): Require, rather than expand,
86058         gl_MULTIARCH.
86059         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
86060         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
86061         enforce that all clients require it.  Partial reversion of
86062         2008-12-29 patch.
86064         error: avoid expand-before-require warning
86065         * modules/errno (configure.ac): Require, rather than expand,
86066         gl_HEADER_ERRNO_H.
86067         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
86068         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
86069         enforce that all clients require it.
86071         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
86072         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
86073         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
86074         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
86076 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
86078         Revert:
86079         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86081         regex: do not depend on obsolete modules.
86082         * modules/regex: Remove memcmp and memmove.
86084 2009-01-20  Bruno Haible  <bruno@clisp.org>
86086         Make the 'link' module link on Windows NT 4.
86087         * lib/link.c (_WIN32_WINNT): Don't define.
86088         (CreateHardLinkFuncType): New type.
86089         (CreateHardLinkFunc, initialized): New variables.
86090         (initialize): New function.
86091         (link): Invoke CreateHardLink indirectly through the function pointer.
86093 2009-01-20  Bruno Haible  <bruno@clisp.org>
86095         Fix compilation failure on mingw.
86096         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
86098 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
86100         * doc/c-strtod.texi: Mention a couple of restrictions.
86102 2009-01-20  Jim Meyering  <meyering@redhat.com>
86104         gettimeofday: move more declarations out of functions
86105         * lib/gettimeofday.c: Move extern declarations of tzset and
86106         gmtime out of containing functions.  Prompted by Bruno Haible.
86108 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
86110         regex: do not depend on obsolete modules.
86111         * modules/regex: Remove memcmp and memmove.
86113 2009-01-19  Bruno Haible  <bruno@clisp.org>
86115         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86116         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
86117         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86118         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
86119         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
86121 2009-01-19  Bruno Haible  <bruno@clisp.org>
86123         * tests/test-link.c: Include <errno.h>.
86124         (main): Exit with code 77 when a hard link cannot be created due to
86125         the file system.
86126         * tests/test-link.sh: Skip test when a hard link cannot be created due
86127         to the file system.
86128         Suggested by Eric Blake.
86130 2009-01-19  Martin Lambers  <marlam@marlam.de>
86132         * modules/link-tests: New file.
86133         * tests/test-link.sh: New file.
86134         * tests/test-link.c: New file.
86136 2009-01-19  Eric Blake  <ebb9@byu.net>
86138         doc: mention another function added in cygwin 1.7.0
86139         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
86140         Another new function in cygwin 1.7.
86142 2009-01-19  Bruno Haible  <bruno@clisp.org>
86144         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
86145         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
86146         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
86147         gl_BIGENDIAN, not AC_C_BIGENDIAN.
86148         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
86149         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
86150         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
86151         * m4/md4.m4 (gl_MD4): Likewise.
86152         * m4/md5.m4 (gl_MD5): Likewise.
86153         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
86154         * m4/sha1.m4 (gl_SHA1): Likewise.
86155         * m4/sha256.m4 (gl_SHA256): Likewise.
86156         * m4/sha512.m4 (gl_SHA512): Likewise.
86158 2009-01-19  Bruno Haible  <bruno@clisp.org>
86160         * modules/uniname/uniname-tests (Depends-on): Add progname.
86161         * tests/uniname/test-uninames.c: Include progname.h.
86162         (main): Call set_program_name.
86164         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
86165         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
86166         (main): Call set_program_name.
86168         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
86169         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
86170         (main): Call set_program_name.
86172         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
86173         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
86174         (main): Call set_program_name.
86176         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
86177         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
86178         (main): Call set_program_name.
86180         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
86181         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
86182         (main): Call set_program_name.
86184         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
86185         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
86186         (main): Call set_program_name.
86188         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
86189         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
86190         (main): Call set_program_name.
86192         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
86193         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
86194         (main): Call set_program_name.
86196 2009-01-19  Eric Blake  <ebb9@byu.net>
86198         test-unistd: test previous patch
86199         * tests/test-unistd.c: Test *_FILENO macros.
86201         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
86202         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86203         Guarantee a definition.
86204         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
86205         * modules/unistd-safer (Depends-on): Add dependency on unistd.
86206         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
86207         * lib/dup-safer.c (STDERR_FILENO): Likewise.
86208         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86209         Likewise.
86210         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
86211         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
86212         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
86213         Likewise.
86214         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
86215         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
86216         (STDERR_FILENO): Likewise.
86217         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
86218         (STDERR_FILENO): Likewise.
86219         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
86220         (STDERR_FILENO): Likewise.
86221         Reported by Elbert Pol.
86223 2009-01-19  Eric Blake  <ebb9@byu.net>
86225         doc: mention more functions added in cygwin 1.7.0
86226         * doc/posix-functions/abort.texi (abort): Update wording related
86227         to cygwin.
86228         * doc/posix-functions/daylight.texi (daylight): Likewise.
86229         * doc/posix-functions/optarg.texi (optarg): Likewise.
86230         * doc/posix-functions/optarg.texi (opterr): Likewise.
86231         * doc/posix-functions/optarg.texi (optind): Likewise.
86232         * doc/posix-functions/optarg.texi (optopt): Likewise.
86233         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
86234         worked in 1.5.x, and was withdrawn in 1.7.
86235         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
86236         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
86237         cygwin versions.
86238         * doc/posix-functions/perror.texi (perror): Likewise.
86239         * doc/posix-functions/printf.texi (printf): Likewise.
86240         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
86241         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
86242         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
86243         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
86244         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
86245         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
86246         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
86247         Likewise.
86248         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
86249         Likewise.
86250         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
86251         this function.
86252         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
86253         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86254         Likewise.
86255         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86256         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86257         * doc/posix-functions/confstr.texi (confstr): Likewise.
86258         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86259         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86260         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86261         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86262         * doc/posix-functions/fputws.texi (fputws): Likewise.
86263         * doc/posix-functions/fwide.texi (fwide): Likewise.
86264         * doc/posix-functions/getwc.texi (getwc): Likewise.
86265         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86266         * doc/posix-functions/putwc.texi (putwc): Likewise.
86267         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86268         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86269         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86270         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86271         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86272         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86273         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86274         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86275         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86276         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86277         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86279 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86281         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86282         * lib/ioctl.c: Include <sys/ioctl.h>.
86284 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86286         * modules/getdate-tests (Depends-on): Add progname.
86287         * tests/test-getdate.c: Use progname module, to avoid link errors
86288         on non-glibc systems.
86290 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86292         * modules/filenamecat-tests (Depends-on): Add progname.
86293         * modules/fstrcmp-tests (Depends-on): Likewise.
86295         * tests/test-filenamecat.c: Use progname module, to avoid link
86296         errors on non-glibc systems.
86297         * tests/test-fstrcmp.c: Likewise.
86299 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86301         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86302         * lib/gettimeofday.c: Move extern declaration out of function.
86304 2009-01-18  Bruno Haible  <bruno@clisp.org>
86306         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86307         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86308         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86310 2009-01-18  Bruno Haible  <bruno@clisp.org>
86312         * lib/strftime.c (MEMPCPY): Remove unused macro.
86313         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86315 2009-01-18  Martin Lambers  <marlam@marlam.de>
86317         New module 'link'.
86318         * lib/unistd.in.h (link): New declaration.
86319         * lib/link.c: New file.
86320         * m4/link.m4: New file.
86321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86322         HAVE_LINK.
86323         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86324         * modules/link: New file.
86325         * doc/posix-functions/link.texi: Mention the new module.
86327 2009-01-18  Bruno Haible  <bruno@clisp.org>
86329         * tests/test-avltree_list.c (main): Call set_program_name.
86330         * tests/test-avltree_oset.c (main): Likewise.
86331         * tests/test-obstack-printf.c: Include progname.h.
86332         (main): Call set_program_name.
86333         * tests/test-quotearg.c: Include progname.h.
86334         (main): Call set_program_name.
86335         * tests/test-xmemdup0.c: Include progname.h.
86336         (main): Call set_program_name.
86338 2009-01-18  Bruno Haible  <bruno@clisp.org>
86340         New module 'alphasort'.
86341         * lib/dirent.in.h (alphasort): New declaration.
86342         * lib/alphasort.c: New file, from glibc with modifications.
86343         * m4/alphasort.m4: New file.
86344         * modules/alphasort: New file.
86345         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86346         HAVE_ALPHASORT.
86347         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86348         HAVE_ALPHASORT.
86349         * doc/posix-functions/alphasort.texi: Mention the new module and the
86350         portability problems.
86352 2009-01-18  Bruno Haible  <bruno@clisp.org>
86354         New module 'scandir'.
86355         * lib/dirent.in.h (scandir): New declaration.
86356         * lib/scandir.c: New file, from glibc with modifications.
86357         * m4/scandir.m4: New file.
86358         * modules/scandir: New file.
86359         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86360         HAVE_SCANDIR.
86361         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86362         HAVE_SCANDIR.
86363         * doc/posix-functions/scandir.texi: Mention the new module and the
86364         portability problems.
86366 2009-01-17  Bruno Haible  <bruno@clisp.org>
86368         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86369         Update documentation.
86370         (func_remove_suffix): Escape all dots in the suffix. Update
86371         documentation.
86372         (func_filter_filelist): Update documentation.
86373         Reported by Ralf Wildenhues.
86375 2009-01-17  Bruno Haible  <bruno@clisp.org>
86377         * modules/dprintf-posix-tests: New file.
86378         * tests/test-dprintf-posix.sh: New file.
86379         * tests/test-dprintf-posix.c: New file.
86381         New modules 'dprintf', 'dprintf-posix'.
86382         * lib/stdio.in.h (dprintf): New declaration.
86383         * lib/dprintf.c: New file.
86384         * m4/dprintf.m4: New file.
86385         * m4/dprintf-posix.m4: New file.
86386         * modules/dprintf: New file.
86387         * modules/dprintf-posix: New file.
86388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86389         HAVE_DPRINTF, REPLACE_DPRINTF.
86390         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86391         HAVE_DPRINTF, REPLACE_DPRINTF.
86392         * doc/posix-functions/dprintf.texi: Mention the new modules.
86394 2009-01-17  Bruno Haible  <bruno@clisp.org>
86396         * modules/vdprintf-posix-tests: New file.
86397         * tests/test-vdprintf-posix.sh: New file.
86398         * tests/test-vdprintf-posix.c: New file.
86400         New modules 'vdprintf', 'vdprintf-posix'.
86401         * lib/stdio.in.h (vdprintf): New declaration.
86402         * lib/vdprintf.c: New file.
86403         * m4/vdprintf.m4: New file.
86404         * m4/vdprintf-posix.m4: New file.
86405         * modules/vdprintf: New file.
86406         * modules/vdprintf-posix: New file.
86407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86408         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86409         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86410         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86411         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86413 2009-01-17  Bruno Haible  <bruno@clisp.org>
86415         Fix replacement of fopen on mingw.
86416         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86417         mingw.
86419 2009-01-17  Bruno Haible  <bruno@clisp.org>
86421         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86422         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86424 2009-01-17  Bruno Haible  <bruno@clisp.org>
86426         Avoid test-fflush2.sh failure on mingw.
86427         * tests/test-fflush2.c: Include binary-io.h.
86428         (main): Put standard input into binary mode.
86429         * modules/fflush-tests (Depends-on): Add binary-io.
86431 2009-01-17  Bruno Haible  <bruno@clisp.org>
86433         * lib/wchar.in.h: In another particular situation, include only the
86434         system's <wchar.h> file.
86435         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86436         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86437         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86439 2009-01-17  Bruno Haible  <bruno@clisp.org>
86441         Support for stripping executables in --enable-relocatable.
86442         * build-aux/install-reloc: Expect one more argument, or an environment
86443         variable RELOC_STRIP_PROG. If set, strip the destination program and
86444         its wrapper.
86445         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86446         RELOC_STRIP_PROG.
86447         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86448         to set RELOCATABLE_STRIP.
86449         * NEWS: Mention the new Makefile requirement.
86451 2009-01-17  Bruno Haible  <bruno@clisp.org>
86453         * build-aux/install-reloc: Remove debugging information left over by
86454         C compiler on MacOS X.
86456 2009-01-17  Bruno Haible  <bruno@clisp.org>
86458         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86459         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86460         _NSGetExecutablePath.
86462 2009-01-16  Jim Meyering  <meyering@redhat.com>
86464         strerror: avoid warnings about discarding "const"
86465         * lib/strerror.c (rpl_strerror): Instead of returning a const
86466         string from each and every "case", use a variable, and add a single
86467         cast after the switch.
86469 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86471         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86473 2009-01-16  Bruno Haible  <bruno@clisp.org>
86475         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86476         array initializer syntax that also works in C++ mode.
86477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86479 2009-01-16  Jim Meyering  <meyering@redhat.com>
86481         poll: suppress a warning
86482         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86483         to ignore "...unsigned expression < 0 is always false" warnings.
86485 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86487         poll: remove declarations of unused variables
86488         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86489         sockbuf and optlen.
86491 2009-01-15  Bruno Haible  <bruno@clisp.org>
86493         Make fflush-after-ungetc POSIX compliant on BSD systems.
86494         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86495         (clear_ungetc_buffer): Implement also for other systems.
86496         (rpl_fflush): On glibc systems, invoke
86497         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86498         clear_ungetc_buffer after fetching the stream's position, not before.
86500 2009-01-15  Bruno Haible  <bruno@clisp.org>
86502         Make fflush-after-ungetc POSIX compliant on glibc systems.
86503         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86504         after ungetc.
86505         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86506         (rpl_fflush): On glibc systems, simply call the system's fflush
86507         function after clearing the ungetc buffer.
86508         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86509         Instead, lseek only to the end of file, then use the system's fseeko
86510         for the rest. On glibc systems, reset the EOF indicator bit.
86512 2009-01-15  Jim Meyering  <meyering@redhat.com>
86514         openmp.m4: revert quote-adding change, for portability to older autoconf
86515         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86516         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86517         Simon Josefsson noticed the problem when using autoconf-2.61.
86519 2009-01-15  Bruno Haible  <bruno@clisp.org>
86521         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86522         * tests/test-fflush2.c (ASSERT): Always fail.
86523         (main): Add two tests for fflush() after ungetc(), taking into account
86524         the Austin Group's clarification.
86525         Suggested by Eric Blake.
86527 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86529         mktime.m4: remove K&R-style function prototypes
86530         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86531         for the Sun C++ compiler.
86533 2009-01-14  Bruno Haible  <bruno@clisp.org>
86535         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86536         while including <wchar.h>.
86537         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86538         the system's <wchar.h> file.
86539         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86541 2009-01-14  Bruno Haible  <bruno@clisp.org>
86543         * m4/csharp.m4: Don't mention gettext on the serial number line.
86544         * m4/csharpexec.m4: Likewise.
86545         * m4/eaccess.m4: Likewise.
86546         * m4/javaexec.m4: Likewise.
86547         * m4/sig_atomic_t.m4: Likewise.
86548         * m4/tmpdir.m4: Likewise.
86549         * m4/intldir.m4: Bump gettext version.
86550         * m4/lib-ld.m4: Likewise.
86552 2009-01-14  Bruno Haible  <bruno@clisp.org>
86554         * lib/progname.c (set_program_name): Add more comments.
86555         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86557 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86559         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86560         were sys/stat.h does not define it.
86562 2009-01-14  Jim Meyering  <meyering@redhat.com>
86564         many *.m4 files: improve m4 quoting
86565         99% of this change was performed by running the following commands:
86566         git ls-files | grep '\.m4$' | xargs perl -pi \
86567           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86568           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86569           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86570           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86571         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86572         The remainder were to add Copyright dates, increment serial numbers,
86573         undo some changes in comments, exclude m4/intl.m4, and add quotes
86574         around the "1" in ",1" where the unusual spacing prohibited the
86575         above regexps from doing the job.  For more details, see
86576         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86577         * m4/acl.m4: Modified.
86578         * m4/afs.m4: Likewise.
86579         * m4/alloca.m4: Likewise.
86580         * m4/argp.m4: Likewise.
86581         * m4/argz.m4: Likewise.
86582         * m4/atexit.m4: Likewise.
86583         * m4/bison-i18n.m4: Likewise.
86584         * m4/bison.m4: Likewise.
86585         * m4/byteswap.m4: Likewise.
86586         * m4/c-stack.m4: Likewise.
86587         * m4/c-strtod.m4: Likewise.
86588         * m4/calloc.m4: Likewise.
86589         * m4/canonicalize-lgpl.m4: Likewise.
86590         * m4/chown.m4: Likewise.
86591         * m4/clock_time.m4: Likewise.
86592         * m4/codeset.m4: Likewise.
86593         * m4/copy-file.m4: Likewise.
86594         * m4/csharp.m4: Likewise.
86595         * m4/csharpcomp.m4: Likewise.
86596         * m4/csharpexec.m4: Likewise.
86597         * m4/d-ino.m4: Likewise.
86598         * m4/d-type.m4: Likewise.
86599         * m4/dirfd.m4: Likewise.
86600         * m4/double-slash-root.m4: Likewise.
86601         * m4/eaccess.m4: Likewise.
86602         * m4/eealloc.m4: Likewise.
86603         * m4/environ.m4: Likewise.
86604         * m4/errno_h.m4: Likewise.
86605         * m4/euidaccess.m4: Likewise.
86606         * m4/execute.m4: Likewise.
86607         * m4/fatal-signal.m4: Likewise.
86608         * m4/fchdir.m4: Likewise.
86609         * m4/fcntl_h.m4: Likewise.
86610         * m4/fileblocks.m4: Likewise.
86611         * m4/filenamecat.m4: Likewise.
86612         * m4/findprog.m4: Likewise.
86613         * m4/flexmember.m4: Likewise.
86614         * m4/fnmatch.m4: Likewise.
86615         * m4/fopen.m4: Likewise.
86616         * m4/fpending.m4: Likewise.
86617         * m4/fprintf-posix.m4: Likewise.
86618         * m4/free.m4: Likewise.
86619         * m4/frexp.m4: Likewise.
86620         * m4/frexpl.m4: Likewise.
86621         * m4/fsusage.m4: Likewise.
86622         * m4/ftruncate.m4: Likewise.
86623         * m4/gc-camellia.m4: Likewise.
86624         * m4/gc-random.m4: Likewise.
86625         * m4/gc.m4: Likewise.
86626         * m4/getaddrinfo.m4: Likewise.
86627         * m4/getcwd-abort-bug.m4: Likewise.
86628         * m4/getcwd-path-max.m4: Likewise.
86629         * m4/getdate.m4: Likewise.
86630         * m4/getdomainname.m4: Likewise.
86631         * m4/getgroups.m4: Likewise.
86632         * m4/gethostname.m4: Likewise.
86633         * m4/gethrxtime.m4: Likewise.
86634         * m4/getline.m4: Likewise.
86635         * m4/getloadavg.m4: Likewise.
86636         * m4/getndelim2.m4: Likewise.
86637         * m4/getpass.m4: Likewise.
86638         * m4/gettext.m4: Likewise.
86639         * m4/gettime.m4: Likewise.
86640         * m4/gettimeofday.m4: Likewise.
86641         * m4/gnulib-common.m4: Likewise.
86642         * m4/group-member.m4: Likewise.
86643         * m4/host-os.m4: Likewise.
86644         * m4/iconv.m4: Likewise.
86645         * m4/iconv_open.m4: Likewise.
86646         * m4/inet_ntop.m4: Likewise.
86647         * m4/inet_pton.m4: Likewise.
86648         * m4/inline.m4: Likewise.
86649         * m4/intldir.m4: Likewise.
86650         * m4/intlmacosx.m4: Likewise.
86651         * m4/intmax.m4: Likewise.
86652         * m4/intmax_t.m4: Likewise.
86653         * m4/inttypes.m4: Likewise.
86654         * m4/inttypes_h.m4: Likewise.
86655         * m4/inttypes-pri.m4: Likewise.
86656         * m4/isapipe.m4: Likewise.
86657         * m4/isnand.m4: Likewise.
86658         * m4/isnanf.m4: Likewise.
86659         * m4/isnanl.m4: Likewise.
86660         * m4/javacomp.m4: Likewise.
86661         * m4/javaexec.m4: Likewise.
86662         * m4/jm-winsz1.m4: Likewise.
86663         * m4/jm-winsz2.m4: Likewise.
86664         * m4/lchown.m4: Likewise.
86665         * m4/lcmessage.m4: Likewise.
86666         * m4/ldexpl.m4: Likewise.
86667         * m4/lib-ld.m4: Likewise.
86668         * m4/lib-link.m4: Likewise.
86669         * m4/libsigsegv.m4: Likewise.
86670         * m4/link-follow.m4: Likewise.
86671         * m4/localcharset.m4: Likewise.
86672         * m4/locale-fr.m4: Likewise.
86673         * m4/locale-ja.m4: Likewise.
86674         * m4/locale-tr.m4: Likewise.
86675         * m4/locale-zh.m4: Likewise.
86676         * m4/lock.m4: Likewise.
86677         * m4/longlong.m4: Likewise.
86678         * m4/ls-mntd-fs.m4: Likewise.
86679         * m4/lstat.m4: Likewise.
86680         * m4/malloc.m4: Likewise.
86681         * m4/mathl.m4: Likewise.
86682         * m4/mbrtowc.m4: Likewise.
86683         * m4/mbstate_t.m4: Likewise.
86684         * m4/mbswidth.m4: Likewise.
86685         * m4/memchr.m4: Likewise.
86686         * m4/memcmp.m4: Likewise.
86687         * m4/memcpy.m4: Likewise.
86688         * m4/memmem.m4: Likewise.
86689         * m4/memmove.m4: Likewise.
86690         * m4/mempcpy.m4: Likewise.
86691         * m4/memrchr.m4: Likewise.
86692         * m4/memset.m4: Likewise.
86693         * m4/minmax.m4: Likewise.
86694         * m4/mkdir-slash.m4: Likewise.
86695         * m4/mkdtemp.m4: Likewise.
86696         * m4/mktime.m4: Likewise.
86697         * m4/mmap-anon.m4: Likewise.
86698         * m4/mountlist.m4: Likewise.
86699         * m4/nanosleep.m4: Likewise.
86700         * m4/nls.m4: Likewise.
86701         * m4/nocrash.m4: Likewise.
86702         * m4/open.m4: Likewise.
86703         * m4/openat.m4: Likewise.
86704         * m4/openmp.m4: Likewise.
86705         * m4/pathmax.m4: Likewise.
86706         * m4/perl.m4: Likewise.
86707         * m4/physmem.m4: Likewise.
86708         * m4/pipe.m4: Likewise.
86709         * m4/po.m4: Likewise.
86710         * m4/poll.m4: Likewise.
86711         * m4/posixtm.m4: Likewise.
86712         * m4/posixver.m4: Likewise.
86713         * m4/printf-frexp.m4: Likewise.
86714         * m4/printf-frexpl.m4: Likewise.
86715         * m4/printf-posix.m4: Likewise.
86716         * m4/printf-posix-rpl.m4: Likewise.
86717         * m4/printf.m4: Likewise.
86718         * m4/progtest.m4: Likewise.
86719         * m4/putenv.m4: Likewise.
86720         * m4/readline.m4: Likewise.
86721         * m4/readlink.m4: Likewise.
86722         * m4/readutmp.m4: Likewise.
86723         * m4/realloc.m4: Likewise.
86724         * m4/regex.m4: Likewise.
86725         * m4/relocatable.m4: Likewise.
86726         * m4/relocatable-lib.m4: Likewise.
86727         * m4/rename-dest-slash.m4: Likewise.
86728         * m4/rename.m4: Likewise.
86729         * m4/rmdir-errno.m4: Likewise.
86730         * m4/rmdir.m4: Likewise.
86731         * m4/roundf.m4: Likewise.
86732         * m4/roundl.m4: Likewise.
86733         * m4/rpmatch.m4: Likewise.
86734         * m4/save-cwd.m4: Likewise.
86735         * m4/selinux-selinux-h.m4: Likewise.
86736         * m4/setenv.m4: Likewise.
86737         * m4/settime.m4: Likewise.
86738         * m4/sig2str.m4: Likewise.
86739         * m4/sig_atomic_t.m4: Likewise.
86740         * m4/signalblocking.m4: Likewise.
86741         * m4/signbit.m4: Likewise.
86742         * m4/sigpipe.m4: Likewise.
86743         * m4/sockets.m4: Likewise.
86744         * m4/sockpfaf.m4: Likewise.
86745         * m4/st_dm_mode.m4: Likewise.
86746         * m4/stat-time.m4: Likewise.
86747         * m4/stdbool.m4: Likewise.
86748         * m4/stdint.m4: Likewise.
86749         * m4/stdint_h.m4: Likewise.
86750         * m4/stpcpy.m4: Likewise.
86751         * m4/stpncpy.m4: Likewise.
86752         * m4/strcase.m4: Likewise.
86753         * m4/strchrnul.m4: Likewise.
86754         * m4/strcspn.m4: Likewise.
86755         * m4/strdup.m4: Likewise.
86756         * m4/strftime.m4: Likewise.
86757         * m4/strndup.m4: Likewise.
86758         * m4/strnlen.m4: Likewise.
86759         * m4/strpbrk.m4: Likewise.
86760         * m4/strptime.m4: Likewise.
86761         * m4/strsep.m4: Likewise.
86762         * m4/strtod.m4: Likewise.
86763         * m4/strtoimax.m4: Likewise.
86764         * m4/strtok_r.m4: Likewise.
86765         * m4/strtol.m4: Likewise.
86766         * m4/strtoll.m4: Likewise.
86767         * m4/strtoul.m4: Likewise.
86768         * m4/strtoull.m4: Likewise.
86769         * m4/strtoumax.m4: Likewise.
86770         * m4/strverscmp.m4: Likewise.
86771         * m4/threadlib.m4: Likewise.
86772         * m4/timegm.m4: Likewise.
86773         * m4/tm_gmtoff.m4: Likewise.
86774         * m4/tmpdir.m4: Likewise.
86775         * m4/tmpfile.m4: Likewise.
86776         * m4/tzset.m4: Likewise.
86777         * m4/uintmax_t.m4: Likewise.
86778         * m4/unlinkdir.m4: Likewise.
86779         * m4/unlocked-io.m4: Likewise.
86780         * m4/uptime.m4: Likewise.
86781         * m4/userspec.m4: Likewise.
86782         * m4/utimbuf.m4: Likewise.
86783         * m4/utime.m4: Likewise.
86784         * m4/utimes-null.m4: Likewise.
86785         * m4/utimes.m4: Likewise.
86786         * m4/vararrays.m4: Likewise.
86787         * m4/vasnprintf.m4: Likewise.
86788         * m4/vfprintf-posix.m4: Likewise.
86789         * m4/vprintf-posix.m4: Likewise.
86790         * m4/wait-process.m4: Likewise.
86791         * m4/wchar_t.m4: Likewise.
86792         * m4/wint_t.m4: Likewise.
86793         * m4/write-any-file.m4: Likewise.
86794         * m4/yield.m4: Likewise.
86796 2009-01-13  Bruno Haible  <bruno@clisp.org>
86798         Avoid test-copy-file.sh failures when ACL support insufficient.
86799         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86800         TESTS_ENVIRONMENT.
86801         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86802         Reported by Jim Meyering.
86804 2009-01-13  Bruno Haible  <bruno@clisp.org>
86806         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86807         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86808         * modules/unistdio/u8-printf-parse (Files): Likewise.
86809         * modules/unistdio/u32-printf-parse (Files): Likewise.
86810         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86812 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86814         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86815         and m4/inttypes_h.m4 too.
86817 2009-01-12  Eric Blake  <ebb9@byu.net>
86819         tests: IRIX 6.2 cc can't compile -0.0 into .data
86820         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86821         rather than at compile-time.
86822         * tests/test-floorl.c (minus_zero): Likewise.
86823         * tests/test-frexpl.c (minus_zero): Likewise.
86824         * tests/test-isnan.c (minus_zerol): Likewise.
86825         * tests/test-isnanl.h (minus_zero): Likewise.
86826         * tests/test-ldexpl.c (minus_zero): Likewise.
86827         * tests/test-roundl.c (minus_zero): Likewise.
86828         * tests/test-signbit.c (minus_zerol): Likewise.
86829         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86830         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86831         * tests/test-truncl.c (minus_zero): Likewise.
86832         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86833         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86834         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86836 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86838         regex: fix glibc bug 9697
86839         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86840         handling.
86842 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86844         regex: fix glibc bug 697
86845         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86846         being NULL also if there are no backreferences.
86848 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86850         regex: merge glibc changes
86851         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86852         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86853         re_string_skip_chars, re_string_reconstruct): Likewise.
86854         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86856 2009-01-07  Jim Meyering  <meyering@redhat.com>
86858         poll: filter through cppi
86859         * lib/poll.c: Indent cpp directives to reflect nesting.
86861 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86863         poll: don't return uninitialized
86864         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86866 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86868         avoid compile failure on AIX 6.1
86869         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86870         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86872 2009-01-04  Jim Meyering  <meyering@redhat.com>
86874         remove duplicate inclusion of <stdio.h>
86875         * tests/test-fprintf-posix.c: Likewise.
86876         * tests/test-printf-posix.c: Likewise.
86877         * tests/test-snprintf-posix.c: Likewise.
86878         * tests/test-sprintf-posix.c: Likewise.
86879         * tests/test-vasprintf-posix.c: Likewise.
86880         * tests/test-vfprintf-posix.c: Likewise.
86881         * tests/test-vprintf-posix.c: Likewise.
86882         * tests/test-vsnprintf-posix.c: Likewise.
86883         * tests/test-vsprintf-posix.c: Likewise.
86885 2009-01-03  Jim Meyering  <meyering@redhat.com>
86887         gnulib-tool: fix sed-based filtering
86888         * gnulib-tool (func_filter_filelist): Remove extra backslash
86889         in sed_fff_filter definition.
86891 2009-01-02  Jim Meyering  <meyering@redhat.com>
86893         strftime: avoid compilation failure on Solaris 2.6
86894         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86895         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86896         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86897         be available.  Reported by Tom G. Christensen.  Details in
86898         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86900 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86901             Bruno Haible  <bruno@clisp.org>
86903         Speed up gnulib-tool by doing more string processing through shell
86904         built-ins.
86905         * gnulib-tool (fast_func_append): New variable.
86906         (func_remove_prefix, func_remove_suffix): New functions.
86907         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86908         (func_filter_filelist): New function.
86909         (func_get_dependencies): Use func_remove_suffix instead of sed.
86910         (func_get_automake_snippet): Use func_filter_filelist instead of a
86911         subshell and sed invocation.
86913 2009-01-01  Bruno Haible  <bruno@clisp.org>
86915         Fix a security bug.
86916         * gnulib-tool (func_import, import, update): Don't allow the characters
86917         '"', '$', '`', '\' in macro arguments that become part of commands that
86918         are evaluated.
86920 2009-01-01  Bruno Haible  <bruno@clisp.org>
86922         * gnulib-tool (func_reset_sigpipe): Add more comments.
86924 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86926         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86927         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86928         already know the answer.
86930 2009-01-01  Jim Meyering  <meyering@redhat.com>
86932         * lib/version-etc.c (version_etc_va): Update copyright year.
86934 2008-12-30  Bruno Haible  <bruno@clisp.org>
86936         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86937         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86938         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86940 2008-12-29  Eric Blake  <ebb9@byu.net>
86942         multiarch: avoid autoconf AC_REQUIRE bug
86943         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86944         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86945         2.63 and older.
86946         Reported by Bruno Haible, and analyzed in
86947         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86949 2008-12-29  Bruno Haible  <bruno@clisp.org>
86951         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86952         files in subdirectories correctly.
86953         Reported by Ralf Wildenhues.
86955 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86957         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86958         rather than 'join FILE -', for Solaris join.
86960 2008-12-29  Bruno Haible  <bruno@clisp.org>
86962         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86963         quoting.
86964         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86965         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86966         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86967         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86968         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86969         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86970         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86971         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86972         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86973         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86974         * m4/nls.m4 (AM_NLS): Likewise.
86975         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86976         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86977         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86978         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86979         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86980         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86981         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86982         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86983         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86984         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86985         * m4/xsize.m4 (gl_XSIZE): Likewise.
86986         Suggested by Jim Meyering.
86988 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86990         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86991         * lib/parse-duration.c: use a switch instead of cascading if's.
86993 2008-12-29  Eric Blake  <ebb9@byu.net>
86995         wchar.h: supply WEOF on Irix 5.3
86996         * lib/wchar.in.h (wint_t): Also supply WEOF.
86997         * lib/wctype.in.h (wint_t): Likewise.
86998         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86999         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
87000         Reported by Tom G. Christensen.
87002 2008-12-26  Bruno Haible  <bruno@clisp.org>
87004         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
87005         i486, i586, i686.
87007 2008-12-26  Bruno Haible  <bruno@clisp.org>
87009         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
87011 2008-12-26  Bruno Haible  <bruno@clisp.org>
87013         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
87014         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
87015         not __STDC_CONSTANT_MACROS.
87016         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87018 2008-12-25  Bruno Haible  <bruno@clisp.org>
87020         Add support for universal builds to vasnprintf.
87021         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
87022         universal builds, guess no.
87023         * modules/vasnprintf-posix (Depends-on): Add multiarch.
87024         * modules/vasprintf-posix (Depends-on): Likewise.
87025         * modules/fprintf-posix (Depends-on): Likewise.
87026         * modules/vfprintf-posix (Depends-on): Likewise.
87027         * modules/snprintf-posix (Depends-on): Likewise.
87028         * modules/vsnprintf-posix (Depends-on): Likewise.
87029         * modules/sprintf-posix (Depends-on): Likewise.
87030         * modules/vsprintf-posix (Depends-on): Likewise.
87031         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87032         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87033         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87034         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87035         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87036         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87037         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87039         Add support for universal builds to <inttypes.h>.
87040         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
87041         _SCNu64_PREFIX): In Apple
87042         universal builds, define directly, using _LP64.
87043         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
87044         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
87045         * modules/inttypes (Depends-on): Add multiarch.
87046         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87048         Add support for universal builds to <stdint.h>.
87049         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
87050         universal builds, define directly, using _LP64.
87051         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
87052         Apple universal builds, don't test for the size and suffix of ptrdiff_t
87053         and size_t.
87054         * modules/stdint (Depends-on): Add multiarch.
87055         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
87057         New module 'multiarch'.
87058         * modules/multiarch: New file.
87059         * m4/multiarch.m4: New file.
87061 2008-12-25  Bruno Haible  <bruno@clisp.org>
87063         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
87065 2008-12-25  Bruno Haible  <bruno@clisp.org>
87067         * modules/btowc (License): Relicense under LGPLv2+.
87068         * modules/mbsinit (License): Likewise.
87069         * modules/mbrtowc (License): Likewise.
87070         * modules/wcrtomb (License): Likewise.
87071         * modules/streq (License): Likewise.
87072         Reported by David Lutterkort <lutter@redhat.com>.
87074 2008-12-23  Bruno Haible  <bruno@clisp.org>
87076         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
87078 2008-12-23  Bruno Haible  <bruno@clisp.org>
87080         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
87081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
87082         GETADDRINFO_LIB, not in LIBS.
87083         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
87084         * modules/canon-host (Link): Likewise.
87085         * NEWS: Mention the change.
87086         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
87087         GETADDRINFO_LIB.
87089 2008-12-22  Bruno Haible  <bruno@clisp.org>
87091         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
87092         * doc/posix-functions/iswalpha_l.texi: Likewise.
87093         * doc/posix-functions/iswblank_l.texi: Likewise.
87094         * doc/posix-functions/iswcntrl_l.texi: Likewise.
87095         * doc/posix-functions/iswctype_l.texi: Likewise.
87096         * doc/posix-functions/iswdigit_l.texi: Likewise.
87097         * doc/posix-functions/iswgraph_l.texi: Likewise.
87098         * doc/posix-functions/iswlower_l.texi: Likewise.
87099         * doc/posix-functions/iswprint_l.texi: Likewise.
87100         * doc/posix-functions/iswpunct_l.texi: Likewise.
87101         * doc/posix-functions/iswspace_l.texi: Likewise.
87102         * doc/posix-functions/iswupper_l.texi: Likewise.
87103         * doc/posix-functions/iswxdigit_l.texi: Likewise.
87104         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
87105         * doc/posix-functions/open_wmemstream.texi: Likewise.
87106         * doc/posix-functions/swscanf.texi: Likewise.
87107         * doc/posix-functions/towctrans_l.texi: Likewise.
87108         * doc/posix-functions/towlower.texi: Likewise.
87109         * doc/posix-functions/towlower_l.texi: Likewise.
87110         * doc/posix-functions/towupper.texi: Likewise.
87111         * doc/posix-functions/towupper_l.texi: Likewise.
87112         * doc/posix-functions/vfwprintf.texi: Likewise.
87113         * doc/posix-functions/vfwscanf.texi: Likewise.
87114         * doc/posix-functions/vswscanf.texi: Likewise.
87115         * doc/posix-functions/vwprintf.texi: Likewise.
87116         * doc/posix-functions/vwscanf.texi: Likewise.
87117         * doc/posix-functions/wcpcpy.texi: Likewise.
87118         * doc/posix-functions/wcpncpy.texi: Likewise.
87119         * doc/posix-functions/wcscasecmp.texi: Likewise.
87120         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
87121         * doc/posix-functions/wcscoll_l.texi: Likewise.
87122         * doc/posix-functions/wcsdup.texi: Likewise.
87123         * doc/posix-functions/wcsncasecmp.texi: Likewise.
87124         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
87125         * doc/posix-functions/wcsnlen.texi: Likewise.
87126         * doc/posix-functions/wcsnrtombs.texi: Likewise.
87127         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
87128         * doc/posix-functions/wctrans_l.texi: Likewise.
87129         * doc/posix-functions/wctype_l.texi: Likewise.
87130         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
87131         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
87132         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
87133         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
87134         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
87135         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
87136         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
87137         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
87138         * doc/glibc-functions/wcschrnul.texi: Likewise.
87139         * doc/glibc-functions/wcsftime_l.texi: Likewise.
87140         * doc/glibc-functions/wcstod_l.texi: Likewise.
87141         * doc/glibc-functions/wcstof_l.texi: Likewise.
87142         * doc/glibc-functions/wcstol_l.texi: Likewise.
87143         * doc/glibc-functions/wcstold_l.texi: Likewise.
87144         * doc/glibc-functions/wcstoll_l.texi: Likewise.
87145         * doc/glibc-functions/wcstoq.texi: Likewise.
87146         * doc/glibc-functions/wcstoul_l.texi: Likewise.
87147         * doc/glibc-functions/wcstoull_l.texi: Likewise.
87148         * doc/glibc-functions/wcstouq.texi: Likewise.
87149         * doc/glibc-functions/wmempcpy.texi: Likewise.
87151 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
87152             Eric Blake  <ebb9@byu.net>
87153             Paolo Bonzini  <bonzini@gnu.org>
87154             Bruno Haible  <bruno@clisp.org>
87156         Make c-stack work on Haiku.
87157         * lib/c-stack.c (SA_ONSTACK): Define fallback.
87158         (c_stack_action): Use SA_ONSTACK flag.
87160 2008-12-22  Bruno Haible  <bruno@clisp.org>
87162         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
87164 2008-12-22  Bruno Haible  <bruno@clisp.org>
87166         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
87167         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
87168         being overridden.
87169         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
87170         New macros.
87171         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
87172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
87173         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
87174         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
87176 2008-12-22  Bruno Haible  <bruno@clisp.org>
87178         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
87179         from test code.
87181 2008-12-22  Eric Blake  <ebb9@byu.net>
87183         Avoid gcc warnings on cygwin.
87184         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
87185         Avoid unused variable.
87186         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
87187         Likewise.
87189 2008-12-22  Bruno Haible  <bruno@clisp.org>
87191         Remove HAVE_MBRTOWC conditionals.
87192         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
87193         (mbscasecmp): Assume mbrtowc function.
87194         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
87195         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
87196         * lib/mbschr.c: Include mbuiter.h unconditionally.
87197         (mbschr): Assume mbrtowc function.
87198         * lib/mbscspn.c: Include mbuiter.h unconditionally.
87199         (mbscspn): Assume mbrtowc function.
87200         * lib/mbslen.c: Include mbuiter.h unconditionally.
87201         (mbslen): Assume mbrtowc function.
87202         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
87203         (mbsncasecmp): Assume mbrtowc function.
87204         * lib/mbsnlen.c: Include mbiter.h unconditionally.
87205         (mbsnlen): Assume mbrtowc function.
87206         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
87207         (mbspbrk): Assume mbrtowc function.
87208         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
87209         (mbspcasecmp): Assume mbrtowc function.
87210         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
87211         (mbsrchr): Assume mbrtowc function.
87212         * lib/mbssep.c: Include mbuiter.h unconditionally.
87213         (mbssep): Assume mbrtowc function.
87214         * lib/mbsspn.c: Include mbuiter.h unconditionally.
87215         (mbsspn): Assume mbrtowc function.
87216         * lib/mbsstr.c: Include mbuiter.h unconditionally.
87217         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
87218         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
87219         (mbstok_r): Assume mbrtowc function.
87220         * lib/propername.c: Include mbuiter.h unconditionally.
87221         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
87222         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
87223         (trim2): Assume mbrtowc function.
87224         * lib/mbswidth.c (mbsinit): Remove fallback definition.
87225         (mbsnwidth): Assume mbrtowc function.
87226         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
87227         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
87228         fallback definitions.
87229         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
87231 2008-12-22  Bruno Haible  <bruno@clisp.org>
87233         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
87235 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
87237         * modules/regex: Request emulations for the mb*/wc* functions we need.
87238         * m4/regex.m4: Don't look for those functions here.
87239         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
87241 2008-12-22  Bruno Haible  <bruno@clisp.org>
87243         * modules/fnmatch (Depends-on): Remove duplicated dependency.
87245 2008-12-21  Bruno Haible  <bruno@clisp.org>
87247         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
87248         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
87249         (Include): Remove conditionalization.
87250         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
87251         (Include): Remove conditionalization.
87252         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
87253         (Include): Remove conditionalization.
87254         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87255         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87256         * NEWS: Mention the change.
87257         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87258         via Sergey Poznyakoff <gray@gnu.org.ua>.
87260 2008-12-21  Bruno Haible  <bruno@clisp.org>
87262         * MODULES.html.sh (Extended multibyte and wide character utilities
87263         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87264         wcrtomb, wcsrtombs.
87265         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87266         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87267         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87268         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87270 2008-12-21  Bruno Haible  <bruno@clisp.org>
87272         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87274 2008-12-21  Bruno Haible  <bruno@clisp.org>
87276         * modules/wcsnrtombs-tests: New file.
87277         * tests/test-wcsnrtombs1.sh: New file.
87278         * tests/test-wcsnrtombs2.sh: New file.
87279         * tests/test-wcsnrtombs3.sh: New file.
87280         * tests/test-wcsnrtombs4.sh: New file.
87281         * tests/test-wcsnrtombs.c: New file.
87283         New module 'wcsnrtombs'.
87284         * lib/wchar.in.h (wcsnrtombs): New declaration.
87285         * lib/wcsnrtombs.c: New file.
87286         * lib/wcsrtombs-state.c: New file.
87287         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87288         (internal_state): Remove variable.
87289         * m4/wcsnrtombs.m4: New file.
87290         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87291         compilation units.
87292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87293         HAVE_WCSNRTOMBS.
87294         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87295         HAVE_WCSNRTOMBS.
87296         * modules/wcsnrtombs: New file.
87297         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87298         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87300 2008-12-21  Bruno Haible  <bruno@clisp.org>
87302         * modules/wcsrtombs-tests: New file.
87303         * tests/test-wcsrtombs1.sh: New file.
87304         * tests/test-wcsrtombs2.sh: New file.
87305         * tests/test-wcsrtombs3.sh: New file.
87306         * tests/test-wcsrtombs4.sh: New file.
87307         * tests/test-wcsrtombs.c: New file.
87309         New module 'wcsrtombs'.
87310         * lib/wchar.in.h (wcsrtombs): New declaration.
87311         * lib/wcsrtombs.c: New file.
87312         * m4/wcsrtombs.m4: New file.
87313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87314         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87316         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87317         * modules/wcsrtombs: New file.
87318         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87319         bugs.
87321 2008-12-21  Bruno Haible  <bruno@clisp.org>
87323         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87324         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87325         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87326         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87327         if not correct.
87328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87329         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87330         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87331         m4/locale-zh.m4, m4/codeset.m4.
87332         * doc/posix-functions/wcrtomb.texi: Document the bug.
87334 2008-12-21  Bruno Haible  <bruno@clisp.org>
87336         Work around a btowc() bug on IRIX 6.5.
87337         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87338         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87339         REPLACE_WTOBC if not.
87340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87341         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87342         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87344 2008-12-21  Bruno Haible  <bruno@clisp.org>
87346         * modules/wcrtomb-tests: New file.
87347         * tests/test-wcrtomb.sh: New file.
87348         * tests/test-wcrtomb.c: New file.
87350         New module 'wcrtomb'.
87351         * lib/wchar.in.h (wcrtomb): New declaration.
87352         * lib/wcrtomb.c: New file.
87353         * m4/wcrtomb.m4: New file.
87354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87355         HAVE_WCRTOMB.
87356         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87357         HAVE_WCRTOMB.
87358         * modules/wcrtomb: New file.
87359         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87361 2008-12-21  Bruno Haible  <bruno@clisp.org>
87363         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87364         * modules/mbsrtowcs (Files): Likewise.
87365         * modules/wctob (Files): Likewise.
87366         * modules/c-strcase-tests (Files): Likewise.
87367         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87368         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87369         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87370         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87371         * modules/vasnprintf-posix-tests (Files): Likewise.
87373 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87375         gitlog-to-changelog: pass all command-line arguments to git-log
87376         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87377         it is sometimes convenient to filter the commits in various ways.
87378         gitlog-to-changelog only allows --since to specify a start date,
87379         but git-log itself supports many other filtering mechanisms.
87380         At the moment, I want to filter by branch name.  Rather than
87381         adding a --branch option to gitlog-to-changelog, it seems more
87382         flexible to simply pass all options directly to git-log and let
87383         git do the work.  Notice that this effectively makes --since a
87384         redundant option for gitlog-to-changelog, but removing it would
87385         require current usage to change since calls would then require
87386         an additional '--'.
87388 2008-12-21  Bruno Haible  <bruno@clisp.org>
87390         * modules/mbsnrtowcs-tests: New file.
87391         * tests/test-mbsnrtowcs1.sh: New file.
87392         * tests/test-mbsnrtowcs2.sh: New file.
87393         * tests/test-mbsnrtowcs3.sh: New file.
87394         * tests/test-mbsnrtowcs4.sh: New file.
87395         * tests/test-mbsnrtowcs.c: New file.
87397         New module 'mbsnrtowcs'.
87398         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87399         * lib/mbsnrtowcs.c: New file.
87400         * lib/mbsrtowcs-state.c: New file.
87401         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87402         (internal_state): Remove variable.
87403         * m4/mbsnrtowcs.m4: New file.
87404         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87405         compilation units.
87406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87407         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87408         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87409         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87410         * modules/mbsnrtowcs: New file.
87411         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87412         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87413         portability problem.
87415 2008-12-21  Bruno Haible  <bruno@clisp.org>
87417         Work around mbsrtowcs bug.
87418         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87419         (gl_FUNC_MBSRTOWCS): Invoke it.
87420         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87421         m4/locale-zh.m4.
87422         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87424 2008-12-21  Bruno Haible  <bruno@clisp.org>
87426         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87428 2008-12-21  Bruno Haible  <bruno@clisp.org>
87430         Update doc for AIX.
87431         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87432         16-bit wchar_t type.
87433         * doc/posix-functions/btowc.texi: Likewise.
87434         * doc/posix-functions/fgetwc.texi: Likewise.
87435         * doc/posix-functions/fgetws.texi: Likewise.
87436         * doc/posix-functions/fputwc.texi: Likewise.
87437         * doc/posix-functions/fputws.texi: Likewise.
87438         * doc/posix-functions/fwide.texi: Likewise.
87439         * doc/posix-functions/fwprintf.texi: Likewise.
87440         * doc/posix-functions/fwscanf.texi: Likewise.
87441         * doc/posix-functions/getwchar.texi: Likewise.
87442         * doc/posix-functions/getwc.texi: Likewise.
87443         * doc/posix-functions/iswalnum.texi: Likewise.
87444         * doc/posix-functions/iswalpha.texi: Likewise.
87445         * doc/posix-functions/iswblank.texi: Likewise.
87446         * doc/posix-functions/iswcntrl.texi: Likewise.
87447         * doc/posix-functions/iswctype.texi: Likewise.
87448         * doc/posix-functions/iswdigit.texi: Likewise.
87449         * doc/posix-functions/iswgraph.texi: Likewise.
87450         * doc/posix-functions/iswlower.texi: Likewise.
87451         * doc/posix-functions/iswprint.texi: Likewise.
87452         * doc/posix-functions/iswpunct.texi: Likewise.
87453         * doc/posix-functions/iswspace.texi: Likewise.
87454         * doc/posix-functions/iswupper.texi: Likewise.
87455         * doc/posix-functions/iswxdigit.texi: Likewise.
87456         * doc/posix-functions/mbrtowc.texi: Likewise.
87457         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87458         * doc/posix-functions/mbstowcs.texi: Likewise.
87459         * doc/posix-functions/mbtowc.texi: Likewise.
87460         * doc/posix-functions/putwchar.texi: Likewise.
87461         * doc/posix-functions/putwc.texi: Likewise.
87462         * doc/posix-functions/swprintf.texi: Likewise.
87463         * doc/posix-functions/tolower.texi: Likewise.
87464         * doc/posix-functions/toupper.texi: Likewise.
87465         * doc/posix-functions/towctrans.texi: Likewise.
87466         * doc/posix-functions/ungetwc.texi: Likewise.
87467         * doc/posix-functions/vswprintf.texi: Likewise.
87468         * doc/posix-functions/wcrtomb.texi: Likewise.
87469         * doc/posix-functions/wcscat.texi: Likewise.
87470         * doc/posix-functions/wcschr.texi: Likewise.
87471         * doc/posix-functions/wcscmp.texi: Likewise.
87472         * doc/posix-functions/wcscoll.texi: Likewise.
87473         * doc/posix-functions/wcscpy.texi: Likewise.
87474         * doc/posix-functions/wcscspn.texi: Likewise.
87475         * doc/posix-functions/wcsftime.texi: Likewise.
87476         * doc/posix-functions/wcslen.texi: Likewise.
87477         * doc/posix-functions/wcsncat.texi: Likewise.
87478         * doc/posix-functions/wcsncmp.texi: Likewise.
87479         * doc/posix-functions/wcsncpy.texi: Likewise.
87480         * doc/posix-functions/wcspbrk.texi: Likewise.
87481         * doc/posix-functions/wcsrchr.texi: Likewise.
87482         * doc/posix-functions/wcsrtombs.texi: Likewise.
87483         * doc/posix-functions/wcsspn.texi: Likewise.
87484         * doc/posix-functions/wcsstr.texi: Likewise.
87485         * doc/posix-functions/wcstod.texi: Likewise.
87486         * doc/posix-functions/wcstof.texi: Likewise.
87487         * doc/posix-functions/wcstoimax.texi: Likewise.
87488         * doc/posix-functions/wcstok.texi: Likewise.
87489         * doc/posix-functions/wcstold.texi: Likewise.
87490         * doc/posix-functions/wcstoll.texi: Likewise.
87491         * doc/posix-functions/wcstol.texi: Likewise.
87492         * doc/posix-functions/wcstombs.texi: Likewise.
87493         * doc/posix-functions/wcstoull.texi: Likewise.
87494         * doc/posix-functions/wcstoul.texi: Likewise.
87495         * doc/posix-functions/wcstoumax.texi: Likewise.
87496         * doc/posix-functions/wcswidth.texi: Likewise.
87497         * doc/posix-functions/wcsxfrm.texi: Likewise.
87498         * doc/posix-functions/wctob.texi: Likewise.
87499         * doc/posix-functions/wctomb.texi: Likewise.
87500         * doc/posix-functions/wctrans.texi: Likewise.
87501         * doc/posix-functions/wctype.texi: Likewise.
87502         * doc/posix-functions/wcwidth.texi: Likewise.
87503         * doc/posix-functions/wmemchr.texi: Likewise.
87504         * doc/posix-functions/wmemcmp.texi: Likewise.
87505         * doc/posix-functions/wmemcpy.texi: Likewise.
87506         * doc/posix-functions/wmemmove.texi: Likewise.
87507         * doc/posix-functions/wmemset.texi: Likewise.
87508         * doc/posix-functions/wprintf.texi: Likewise.
87509         * doc/posix-functions/wscanf.texi: Likewise.
87511 2008-12-21  Bruno Haible  <bruno@clisp.org>
87513         Update doc for HP-UX 11.11.
87514         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87515         in HP-UX version 11.00, not in all versions of HP-UX 11.
87516         * doc/posix-functions/fwide.texi: Likewise.
87517         * doc/posix-functions/fwprintf.texi: Likewise.
87518         * doc/posix-functions/fwscanf.texi: Likewise.
87519         * doc/posix-functions/inet_ntop.texi: Likewise.
87520         * doc/posix-functions/inet_pton.texi: Likewise.
87521         * doc/posix-functions/mbrlen.texi: Likewise.
87522         * doc/posix-functions/mbrtowc.texi: Likewise.
87523         * doc/posix-functions/mbsinit.texi: Likewise.
87524         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87525         * doc/posix-functions/swprintf.texi: Likewise.
87526         * doc/posix-functions/swscanf.texi: Likewise.
87527         * doc/posix-functions/towctrans.texi: Likewise.
87528         * doc/posix-functions/vfwprintf.texi: Likewise.
87529         * doc/posix-functions/vswprintf.texi: Likewise.
87530         * doc/posix-functions/vwprintf.texi: Likewise.
87531         * doc/posix-functions/wcrtomb.texi: Likewise.
87532         * doc/posix-functions/wcsrtombs.texi: Likewise.
87533         * doc/posix-functions/wcsstr.texi: Likewise.
87534         * doc/posix-functions/wctob.texi: Likewise.
87535         * doc/posix-functions/wctrans.texi: Likewise.
87536         * doc/posix-functions/wmemchr.texi: Likewise.
87537         * doc/posix-functions/wmemcmp.texi: Likewise.
87538         * doc/posix-functions/wmemcpy.texi: Likewise.
87539         * doc/posix-functions/wmemmove.texi: Likewise.
87540         * doc/posix-functions/wmemset.texi: Likewise.
87541         * doc/posix-functions/wprintf.texi: Likewise.
87542         * doc/posix-functions/wscanf.texi: Likewise.
87544 2008-12-21  Bruno Haible  <bruno@clisp.org>
87546         Work around a portability problem.
87547         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87548         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87550 2008-12-20  Bruno Haible  <bruno@clisp.org>
87552         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87553         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87554         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87556         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87558         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87559         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87560         set.
87561         (GNULIB_defined_mbstate_t): New macro.
87562         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87563         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87564         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87565         reuses the system's mbrtowc function but works around the bugs.
87566         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87567         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87568         macros.
87569         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87570         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87571         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87572         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87573         REPLACE_MBSINIT if mbsinit needs to be overridden.
87574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87575         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87576         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87577         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87578         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87579         m4/locale-zh.m4.
87580         (Depends): Add mbsinit.
87581         * modules/mbsinit (Depends): Add mbrtowc.
87582         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87584 2008-12-20  Bruno Haible  <bruno@clisp.org>
87586         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87587         so that there are no conversion errors on AIX.
87588         * tests/test-mbsrtowcs.c (main): LIkewise.
87590 2008-12-20  Bruno Haible  <bruno@clisp.org>
87592         Work around wctob bug on Solaris <= 9.
87593         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87594         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87596         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87597         * modules/wctob (Files): Add m4/locale-fr.m4.
87598         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87600 2008-12-20  Bruno Haible  <bruno@clisp.org>
87602         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87603         /dev/null.
87604         * tests/test-select-in.sh: Likewise.
87605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87607 2008-12-20  Bruno Haible  <bruno@clisp.org>
87609         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87610         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87611         Cygwin 1.5.x.
87613 2008-12-20  Bruno Haible  <bruno@clisp.org>
87615         Ensure mbstate_t is defined on HP-UX 11.11.
87616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87617         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87618         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87619         AC_USE_SYSTEM_EXTENSIONS.
87620         * modules/fnmatch (Depends-on): Add extensions.
87621         * modules/mbrlen (Depends-on): Likewise.
87622         * modules/mbrtowc (Depends-on): Likewise.
87623         * modules/mbsinit (Depends-on): Likewise.
87624         * modules/mbsrtowcs (Depends-on): Likewise.
87625         * modules/mbswidth (Depends-on): Likewise.
87626         * modules/quotearg (Depends-on): Likewise.
87627         * modules/strftime (Depends-on): Likewise.
87629 2008-12-20  Bruno Haible  <bruno@clisp.org>
87631         Ensure wctob is declared on IRIX 6.5.
87632         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87633         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87634         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87636         of HAVE_WCTOB.
87637         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87638         HAVE_WCTOB.
87639         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87641 2008-12-19  Bruno Haible  <bruno@clisp.org>
87643         * modules/mbsrtowcs-tests: New file.
87644         * tests/test-mbsrtowcs1.sh: New file.
87645         * tests/test-mbsrtowcs2.sh: New file.
87646         * tests/test-mbsrtowcs3.sh: New file.
87647         * tests/test-mbsrtowcs4.sh: New file.
87648         * tests/test-mbsrtowcs.c: New file.
87650         New module 'mbsrtowcs'.
87651         * lib/wchar.in.h (mbsrtowcs): New declaration.
87652         * lib/mbsrtowcs.c: New file.
87653         * m4/mbsrtowcs.m4: New file.
87654         * modules/mbsrtowcs: New file.
87655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87656         HAVE_MBSRTOWCS.
87657         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87658         HAVE_MBSRTOWCS.
87659         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87661 2008-12-19  Bruno Haible  <bruno@clisp.org>
87663         New module 'mbrlen'.
87664         * lib/wchar.in.h (mbrlen): New declaration.
87665         * lib/mbrlen.c: New file.
87666         * m4/mbrlen.m4: New file.
87667         * modules/mbrlen: New file.
87668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87669         HAVE_MBRLEN.
87670         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87671         HAVE_MBRLEN.
87672         * doc/posix-functions/mbrlen.texi: Document the new module.
87674 2008-12-19  Bruno Haible  <bruno@clisp.org>
87676         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87677         * modules/mbrtowc (Depends-on): Add verify.
87678         Suggested by Paul Eggert.
87680 2008-12-18  Bruno Haible  <bruno@clisp.org>
87682         * modules/mbsinit-tests: New file.
87683         * tests/test-mbsinit.sh: New file.
87684         * tests/test-mbsinit.c: New file.
87686 2008-12-18  Bruno Haible  <bruno@clisp.org>
87688         * modules/mbrtowc-tests: New file.
87689         * tests/test-mbrtowc1.sh: New file.
87690         * tests/test-mbrtowc2.sh: New file.
87691         * tests/test-mbrtowc3.sh: New file.
87692         * tests/test-mbrtowc4.sh: New file.
87693         * tests/test-mbrtowc.c: New file.
87695         New module 'mbrtowc'.
87696         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87697         mbsinit and mbrtowc.
87698         (mbrtowc): New declaration.
87699         * lib/mbrtowc.c: New file.
87700         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87701         * modules/mbrtowc: New file.
87702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87703         HAVE_MBRTOWC.
87704         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87705         HAVE_MBRTOWC.
87706         * doc/posix-functions/mbrtowc.texi: Document the new module.
87708 2008-12-18  Bruno Haible  <bruno@clisp.org>
87710         New module 'wctob'.
87711         * lib/wchar.in.h (wctob): New declaration.
87712         * lib/wctob.c: New file.
87713         * m4/wctob.m4: New file.
87714         * modules/wctob: New file.
87715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87716         HAVE_WCTOB.
87717         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87718         * doc/posix-functions/wctob.texi: Document the new module.
87720 2008-12-18  Bruno Haible  <bruno@clisp.org>
87722         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87723         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87725 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87727         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87728         G. Christensen" <tgc@jupiterrise.com>.
87730         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87731         G. Christensen" <tgc@jupiterrise.com>.
87733         * lib/flock.c: Need to include string.h.  Reported by "Tom
87734         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87735         <ebb9@byu.net>.
87737 2008-12-18  Bruno Haible  <bruno@clisp.org>
87739         * m4/locale-ja.m4: New file, from GNU gettext.
87741 2008-12-17  Bruno Haible  <bruno@clisp.org>
87743         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87744         Suggested by Eric Blake.
87746 2008-12-17  Bruno Haible  <bruno@clisp.org>
87748         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87750 2008-12-17  Bruno Haible  <bruno@clisp.org>
87752         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87753         * modules/mbsinit (Depends-on): Add verify.
87754         Suggested by Paul Eggert.
87756 2008-12-17  Bruno Haible  <bruno@clisp.org>
87758         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87759         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87760         gl_FUNC_MBRTOWC.
87761         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87762         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87763         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87764         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87765         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87766         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87767         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87768         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87769         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87770         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87771         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87772         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87773         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87774         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87775         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87776         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87777         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87778         * modules/trim (configure.ac): Likewise.
87780 2008-12-17  Bruno Haible  <bruno@clisp.org>
87782         * modules/btowc-tests: New file.
87783         * tests/test-btowc1.sh: New file.
87784         * tests/test-btowc2.sh: New file.
87785         * tests/test-btowc.c: New file.
87787         New module 'btowc'.
87788         * lib/wchar.in.h (btowc): New declaration.
87789         * lib/btowc.c: New file.
87790         * m4/btowc.m4: New file.
87791         * modules/btowc: New file.
87792         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87793         HAVE_BTOWC.
87794         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87795         * doc/posix-functions/btowc.texi: Document the new module.
87797 2008-12-17  Bruno Haible  <bruno@clisp.org>
87799         New module 'mbsinit'.
87800         * lib/wchar.in.h (mbsinit): New declaration.
87801         * lib/mbsinit.c: New file.
87802         * m4/mbsinit.m4: New file.
87803         * modules/mbsinit: New file.
87804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87805         HAVE_MBSINIT.
87806         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87807         HAVE_MBSINIT.
87808         * doc/posix-functions/mbsinit.texi: Document the new module.
87810 2008-12-16  Bruno Haible  <bruno@clisp.org>
87812         * lib/unistd.in.h: Add comment.
87813         * tests/test-environ.c: Don't include <stdlib.h>.
87815 2008-12-16  Bruno Haible  <bruno@clisp.org>
87817         * lib/parse-duration.h (parse_duration): Document return value
87818         convention.
87819         * lib/parse-duration.c: Include specification header first. Add
87820         comments.
87821         (_): Remove macro.
87822         (parse_year_month_day, parse_hour_minute_second): Move side effects
87823         outside of strchr call.
87824         (parse_non_iso8601): Move side effects outside of isspace call.
87825         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87826         call.
87828 2008-12-16  Bruno Haible  <bruno@clisp.org>
87830         * tests/test-parse-duration.sh: Produce no output when the test
87831         succeeds.
87833 2008-12-16  Bruno Haible  <bruno@clisp.org>
87835         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87836         expressions.
87838 2008-12-15  Bruno Haible  <bruno@clisp.org>
87840         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87841         * doc/glibc-functions/flistxattr.texi: Likewise.
87842         * doc/glibc-functions/fopencookie.texi: Likewise.
87843         * doc/glibc-functions/fremovexattr.texi: Likewise.
87844         * doc/glibc-functions/fsetxattr.texi: Likewise.
87845         * doc/glibc-functions/getxattr.texi: Likewise.
87846         * doc/glibc-functions/lgetxattr.texi: Likewise.
87847         * doc/glibc-functions/listxattr.texi: Likewise.
87848         * doc/glibc-functions/llistxattr.texi: Likewise.
87849         * doc/glibc-functions/lremovexattr.texi: Likewise.
87850         * doc/glibc-functions/lsetxattr.texi: Likewise.
87851         * doc/glibc-functions/removexattr.texi: Likewise.
87852         * doc/glibc-functions/setxattr.texi: Likewise.
87853         * doc/posix-functions/open_memstream.texi: Likewise.
87855 2008-12-15  Eric Blake  <ebb9@byu.net>
87857         Update doc for cygwin 1.7.
87858         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87859         functions.
87860         * doc/posix-functions/fchmodat.texi: Likewise.
87861         * doc/posix-functions/fchownat.texi: Likewise.
87862         * doc/posix-functions/fdopendir.texi: Likewise.
87863         * doc/posix-functions/fmemopen.texi: Likewise.
87864         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87865         * doc/posix-functions/fstatat.texi: Likewise.
87866         * doc/posix-functions/futimens.texi: Likewise.
87867         * doc/posix-functions/gai_strerror.texi: Likewise.
87868         * doc/posix-functions/getaddrinfo.texi: Likewise.
87869         * doc/posix-functions/getnameinfo.texi: Likewise.
87870         * doc/posix-functions/if_freenameindex.texi: Likewise.
87871         * doc/posix-functions/if_indextoname.texi: Likewise.
87872         * doc/posix-functions/if_nameindex.texi: Likewise.
87873         * doc/posix-functions/if_nametoindex.texi: Likewise.
87874         * doc/posix-functions/insque.texi: Likewise.
87875         * doc/posix-functions/linkat.texi: Likewise.
87876         * doc/posix-functions/llrint.texi: Likewise.
87877         * doc/posix-functions/llrintf.texi: Likewise.
87878         * doc/posix-functions/llrintl.texi: Likewise.
87879         * doc/posix-functions/lockf.texi: Likewise.
87880         * doc/posix-functions/lrintl.texi: Likewise.
87881         * doc/posix-functions/mkdirat.texi: Likewise.
87882         * doc/posix-functions/mkfifoat.texi: Likewise.
87883         * doc/posix-functions/mknodat.texi: Likewise.
87884         * doc/posix-functions/mq_close.texi: Likewise.
87885         * doc/posix-functions/mq_getattr.texi: Likewise.
87886         * doc/posix-functions/mq_notify.texi: Likewise.
87887         * doc/posix-functions/mq_open.texi: Likewise.
87888         * doc/posix-functions/mq_receive.texi: Likewise.
87889         * doc/posix-functions/mq_send.texi: Likewise.
87890         * doc/posix-functions/mq_setattr.texi: Likewise.
87891         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87892         * doc/posix-functions/mq_timedsend.texi: Likewise.
87893         * doc/posix-functions/mq_unlink.texi: Likewise.
87894         * doc/posix-functions/open_memstream.texi: Likewise.
87895         * doc/posix-functions/openat.texi: Likewise.
87896         * doc/posix-functions/posix_fadvise.texi: Likewise.
87897         * doc/posix-functions/posix_fallocate.texi: Likewise.
87898         * doc/posix-functions/posix_madvise.texi: Likewise.
87899         * doc/posix-functions/posix_memalign.texi: Likewise.
87900         * doc/posix-functions/posix_openpt.texi: Likewise.
87901         * doc/posix-functions/readlinkat.texi: Likewise.
87902         * doc/posix-functions/remque.texi: Likewise.
87903         * doc/posix-functions/renameat.texi: Likewise.
87904         * doc/posix-functions/rintl.texi: Likewise.
87905         * doc/posix-functions/sem_unlink.texi: Likewise.
87906         * doc/posix-functions/shm_open.texi: Likewise.
87907         * doc/posix-functions/shm_unlink.texi: Likewise.
87908         * doc/posix-functions/signgam.texi: Likewise.
87909         * doc/posix-functions/sigset.texi: Likewise.
87910         * doc/posix-functions/stpcpy.texi: Likewise.
87911         * doc/posix-functions/stpncpy.texi: Likewise.
87912         * doc/posix-functions/strerror.texi: Likewise.
87913         * doc/posix-functions/strtod.texi: Likewise.
87914         * doc/posix-functions/symlinkat.texi: Likewise.
87915         * doc/posix-functions/unlinkat.texi: Likewise.
87916         * doc/posix-functions/utimensat.texi: Likewise.
87917         * doc/glibc-functions/bindresvport.texi: Likewise.
87918         * doc/glibc-functions/dn_expand.texi: Likewise.
87919         * doc/glibc-functions/exp10.texi: Likewise.
87920         * doc/glibc-functions/exp10f.texi: Likewise.
87921         * doc/glibc-functions/fgetxattr.texi: Likewise.
87922         * doc/glibc-functions/flistxattr.texi: Likewise.
87923         * doc/glibc-functions/fopencookie.texi: Likewise.
87924         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87925         * doc/glibc-functions/fremovexattr.texi: Likewise.
87926         * doc/glibc-functions/fsetxattr.texi: Likewise.
87927         * doc/glibc-functions/getifaddrs.texi: Likewise.
87928         * doc/glibc-functions/getxattr.texi: Likewise.
87929         * doc/glibc-functions/lgetxattr.texi: Likewise.
87930         * doc/glibc-functions/listxattr.texi: Likewise.
87931         * doc/glibc-functions/llistxattr.texi: Likewise.
87932         * doc/glibc-functions/lremovexattr.texi: Likewise.
87933         * doc/glibc-functions/lsetxattr.texi: Likewise.
87934         * doc/glibc-functions/pow10.texi: Likewise.
87935         * doc/glibc-functions/pow10f.texi: Likewise.
87936         * doc/glibc-functions/rcmd_af.texi: Likewise.
87937         * doc/glibc-functions/removexattr.texi: Likewise.
87938         * doc/glibc-functions/res_init.texi: Likewise.
87939         * doc/glibc-functions/res_mkquery.texi: Likewise.
87940         * doc/glibc-functions/res_query.texi: Likewise.
87941         * doc/glibc-functions/res_querydomain.texi: Likewise.
87942         * doc/glibc-functions/res_send.texi: Likewise.
87943         * doc/glibc-functions/rresvport_af.texi: Likewise.
87944         * doc/glibc-functions/setxattr.texi: Likewise.
87945         * doc/glibc-functions/strcasestr.texi: Likewise.
87947 2008-12-15  Bruno Haible  <bruno@clisp.org>
87949         Fix compilation error on OSF/1 4.0.
87950         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87951         <sys/time.h>, simply delegate to the system header.
87952         Reported by Daniel Richard G. <oss@teragram.com>.
87954 2008-12-15  Bruno Haible  <bruno@clisp.org>
87956         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87957         * doc/posix-functions/fchmodat.texi: Likewise.
87958         * doc/posix-functions/fchownat.texi: Likewise.
87959         * doc/posix-functions/fdopendir.texi: Likewise.
87960         * doc/posix-functions/fstatat.texi: Likewise.
87961         * doc/posix-functions/mkdirat.texi: Likewise.
87962         * doc/posix-functions/unlinkat.texi: Likewise.
87964 2008-12-14  Bruno Haible  <bruno@clisp.org>
87966         Update doc for POSIX:2008.
87967         * doc/posix-functions/faccessat.texi: New file.
87968         * doc/posix-functions/fchmodat.texi: New file.
87969         * doc/posix-functions/fchownat.texi: New file.
87970         * doc/posix-functions/fdopendir.texi: New file.
87971         * doc/posix-functions/fstatat.texi: New file.
87972         * doc/posix-functions/futimens.texi: New file.
87973         * doc/posix-functions/linkat.texi: New file.
87974         * doc/posix-functions/mkdirat.texi: New file.
87975         * doc/posix-functions/mkfifoat.texi: New file.
87976         * doc/posix-functions/mknodat.texi: New file.
87977         * doc/posix-functions/open_wmemstream.texi: New file.
87978         * doc/posix-functions/openat.texi: New file.
87979         * doc/posix-functions/psiginfo.texi: New file.
87980         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87981         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87982         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87983         * doc/posix-functions/readlinkat.texi: New file.
87984         * doc/posix-functions/renameat.texi: New file.
87985         * doc/posix-functions/strerror_l.texi: New file.
87986         * doc/posix-functions/symlinkat.texi: New file.
87987         * doc/posix-functions/unlinkat.texi: New file.
87988         * doc/posix-functions/utimensat.texi: New file.
87989         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87991 2008-12-14  Bruno Haible  <bruno@clisp.org>
87993         Update doc for POSIX:2008.
87994         * doc/posix-functions/alphasort.texi: Renamed from
87995         doc/glibc-functions/alphasort.texi.
87996         * doc/posix-functions/dirfd.texi: Renamed from
87997         doc/glibc-functions/dirfd.texi.
87998         * doc/posix-functions/dprintf.texi: Renamed from
87999         doc/glibc-functions/dprintf.texi.
88000         * doc/posix-functions/duplocale.texi: Renamed from
88001         doc/glibc-functions/duplocale.texi.
88002         * doc/posix-functions/fexecve.texi: Renamed from
88003         doc/glibc-functions/fexecve.texi.
88004         * doc/posix-functions/fmemopen.texi: Renamed from
88005         doc/glibc-functions/fmemopen.texi.
88006         * doc/posix-functions/freelocale.texi: Renamed from
88007         doc/glibc-functions/freelocale.texi.
88008         * doc/posix-functions/getdate_err.texi: Renamed from
88009         doc/glibc-functions/getdate_err.texi.
88010         * doc/posix-functions/isalnum_l.texi: Renamed from
88011         doc/glibc-functions/isalnum_l.texi.
88012         * doc/posix-functions/isalpha_l.texi: Renamed from
88013         doc/glibc-functions/isalpha_l.texi.
88014         * doc/posix-functions/isblank_l.texi: Renamed from
88015         doc/glibc-functions/isblank_l.texi.
88016         * doc/posix-functions/iscntrl_l.texi: Renamed from
88017         doc/glibc-functions/iscntrl_l.texi.
88018         * doc/posix-functions/isdigit_l.texi: Renamed from
88019         doc/glibc-functions/isdigit_l.texi.
88020         * doc/posix-functions/isgraph_l.texi: Renamed from
88021         doc/glibc-functions/isgraph_l.texi.
88022         * doc/posix-functions/islower_l.texi: Renamed from
88023         doc/glibc-functions/islower_l.texi.
88024         * doc/posix-functions/isprint_l.texi: Renamed from
88025         doc/glibc-functions/isprint_l.texi.
88026         * doc/posix-functions/ispunct_l.texi: Renamed from
88027         doc/glibc-functions/ispunct_l.texi.
88028         * doc/posix-functions/isspace_l.texi: Renamed from
88029         doc/glibc-functions/isspace_l.texi.
88030         * doc/posix-functions/isupper_l.texi: Renamed from
88031         doc/glibc-functions/isupper_l.texi.
88032         * doc/posix-functions/iswalnum_l.texi: Renamed from
88033         doc/glibc-functions/iswalnum_l.texi.
88034         * doc/posix-functions/iswalpha_l.texi: Renamed from
88035         doc/glibc-functions/iswalpha_l.texi.
88036         * doc/posix-functions/iswblank_l.texi: Renamed from
88037         doc/glibc-functions/iswblank_l.texi.
88038         * doc/posix-functions/iswcntrl_l.texi: Renamed from
88039         doc/glibc-functions/iswcntrl_l.texi.
88040         * doc/posix-functions/iswctype_l.texi: Renamed from
88041         doc/glibc-functions/iswctype_l.texi.
88042         * doc/posix-functions/iswdigit_l.texi: Renamed from
88043         doc/glibc-functions/iswdigit_l.texi.
88044         * doc/posix-functions/iswgraph_l.texi: Renamed from
88045         doc/glibc-functions/iswgraph_l.texi.
88046         * doc/posix-functions/iswlower_l.texi: Renamed from
88047         doc/glibc-functions/iswlower_l.texi.
88048         * doc/posix-functions/iswprint_l.texi: Renamed from
88049         doc/glibc-functions/iswprint_l.texi.
88050         * doc/posix-functions/iswpunct_l.texi: Renamed from
88051         doc/glibc-functions/iswpunct_l.texi.
88052         * doc/posix-functions/iswspace_l.texi: Renamed from
88053         doc/glibc-functions/iswspace_l.texi.
88054         * doc/posix-functions/iswupper_l.texi: Renamed from
88055         doc/glibc-functions/iswupper_l.texi.
88056         * doc/posix-functions/iswxdigit_l.texi: Renamed from
88057         doc/glibc-functions/iswxdigit_l.texi.
88058         * doc/posix-functions/isxdigit_l.texi: Renamed from
88059         doc/glibc-functions/isxdigit_l.texi.
88060         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
88061         doc/glibc-functions/mbsnrtowcs.texi.
88062         * doc/posix-functions/mkdtemp.texi: Renamed from
88063         doc/glibc-functions/mkdtemp.texi.
88064         * doc/posix-functions/newlocale.texi: Renamed from
88065         doc/glibc-functions/newlocale.texi.
88066         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
88067         doc/glibc-functions/nl_langinfo_l.texi.
88068         * doc/posix-functions/open_memstream.texi: Renamed from
88069         doc/glibc-functions/open_memstream.texi.
88070         * doc/posix-functions/opterr.texi: Renamed from
88071         doc/glibc-functions/opterr.texi.
88072         * doc/posix-functions/optind.texi: Renamed from
88073         doc/glibc-functions/optind.texi.
88074         * doc/posix-functions/optopt.texi: Renamed from
88075         doc/glibc-functions/optopt.texi.
88076         * doc/posix-functions/psignal.texi: Renamed from
88077         doc/glibc-functions/psignal.texi.
88078         * doc/posix-functions/scandir.texi: Renamed from
88079         doc/glibc-functions/scandir.texi.
88080         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
88081         doc/glibc-functions/sched_get_priority_min.texi.
88082         * doc/posix-functions/signgam.texi: Renamed from
88083         doc/glibc-functions/signgam.texi.
88084         * doc/posix-functions/stpcpy.texi: Renamed from
88085         doc/glibc-functions/stpcpy.texi.
88086         * doc/posix-functions/stpncpy.texi: Renamed from
88087         doc/glibc-functions/stpncpy.texi.
88088         * doc/posix-functions/strcasecmp_l.texi: Renamed from
88089         doc/glibc-functions/strcasecmp_l.texi.
88090         * doc/posix-functions/strcoll_l.texi: Renamed from
88091         doc/glibc-functions/strcoll_l.texi.
88092         * doc/posix-functions/strfmon_l.texi: Renamed from
88093         doc/glibc-functions/strfmon_l.texi.
88094         * doc/posix-functions/strftime_l.texi: Renamed from
88095         doc/glibc-functions/strftime_l.texi.
88096         * doc/posix-functions/strncasecmp_l.texi: Renamed from
88097         doc/glibc-functions/strncasecmp_l.texi.
88098         * doc/posix-functions/strndup.texi: Renamed from
88099         doc/glibc-functions/strndup.texi.
88100         * doc/posix-functions/strnlen.texi: Renamed from
88101         doc/glibc-functions/strnlen.texi.
88102         * doc/posix-functions/strsignal.texi: Renamed from
88103         doc/glibc-functions/strsignal.texi.
88104         * doc/posix-functions/strxfrm_l.texi: Renamed from
88105         doc/glibc-functions/strxfrm_l.texi.
88106         * doc/posix-functions/timer_gettime.texi: Renamed from
88107         doc/glibc-functions/timer_gettime.texi.
88108         * doc/posix-functions/tolower_l.texi: Renamed from
88109         doc/glibc-functions/tolower_l.texi.
88110         * doc/posix-functions/toupper_l.texi: Renamed from
88111         doc/glibc-functions/toupper_l.texi.
88112         * doc/posix-functions/towctrans_l.texi: Renamed from
88113         doc/glibc-functions/towctrans_l.texi.
88114         * doc/posix-functions/towlower_l.texi: Renamed from
88115         doc/glibc-functions/towlower_l.texi.
88116         * doc/posix-functions/towupper_l.texi: Renamed from
88117         doc/glibc-functions/towupper_l.texi.
88118         * doc/posix-functions/uselocale.texi: Renamed from
88119         doc/glibc-functions/uselocale.texi.
88120         * doc/posix-functions/vdprintf.texi: Renamed from
88121         doc/glibc-functions/vdprintf.texi.
88122         * doc/posix-functions/wcpcpy.texi:
88123         Renamed from doc/glibc-functions/wcpcpy.texi.
88124         * doc/posix-functions/wcpncpy.texi: Renamed from
88125         doc/glibc-functions/wcpncpy.texi.
88126         * doc/posix-functions/wcscasecmp.texi: Renamed from
88127         doc/glibc-functions/wcscasecmp.texi.
88128         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
88129         doc/glibc-functions/wcscasecmp_l.texi.
88130         * doc/posix-functions/wcscoll_l.texi: Renamed from
88131         doc/glibc-functions/wcscoll_l.texi.
88132         * doc/posix-functions/wcsdup.texi: Renamed from
88133         doc/glibc-functions/wcsdup.texi.
88134         * doc/posix-functions/wcsncasecmp.texi: Renamed from
88135         doc/glibc-functions/wcsncasecmp.texi.
88136         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
88137         doc/glibc-functions/wcsncasecmp_l.texi.
88138         * doc/posix-functions/wcsnlen.texi: Renamed from
88139         doc/glibc-functions/wcsnlen.texi.
88140         * doc/posix-functions/wcsnrtombs.texi: Renamed from
88141         doc/glibc-functions/wcsnrtombs.texi.
88142         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
88143         doc/glibc-functions/wcsxfrm_l.texi.
88144         * doc/posix-functions/wctrans_l.texi: Renamed from
88145         doc/glibc-functions/wctrans_l.texi.
88146         * doc/posix-functions/wctype_l.texi: Renamed from
88147         doc/glibc-functions/wctype_l.texi.
88148         * doc/gnulib.texi (Function Substitutes): Add these subsections.
88149         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
88150         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
88151         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
88152         these subsections.
88153         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
88154         Remove sections.
88156 2008-12-14  Bruno Haible  <bruno@clisp.org>
88158         Update doc for POSIX:2008.
88159         * doc/posix-functions/*.texi: Update URL of POSIX specification.
88161 2008-12-14  Bruno Haible  <bruno@clisp.org>
88163         Update doc for POSIX:2008.
88164         * doc/pastposix-functions/bcmp.texi: Renamed from
88165         doc/posix-functions/bcmp.texi.
88166         * doc/pastposix-functions/bcopy.texi: Renamed from
88167         doc/posix-functions/bcopy.texi.
88168         * doc/pastposix-functions/bsd_signal.texi: Renamed from
88169         doc/posix-functions/bsd_signal.texi.
88170         * doc/pastposix-functions/bzero.texi: Renamed from
88171         doc/posix-functions/bzero.texi.
88172         * doc/pastposix-functions/ecvt.texi: Renamed from
88173         doc/posix-functions/ecvt.texi.
88174         * doc/pastposix-functions/fcvt.texi: Renamed from
88175         doc/posix-functions/fcvt.texi.
88176         * doc/pastposix-functions/ftime.texi: Renamed from
88177         doc/posix-functions/ftime.texi.
88178         * doc/pastposix-functions/gcvt.texi: Renamed from
88179         doc/posix-functions/gcvt.texi.
88180         * doc/pastposix-functions/getcontext.texi: Renamed from
88181         doc/posix-functions/getcontext.texi.
88182         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
88183         doc/posix-functions/gethostbyaddr.texi.
88184         * doc/pastposix-functions/gethostbyname.texi: Renamed from
88185         doc/posix-functions/gethostbyname.texi.
88186         * doc/pastposix-functions/getwd.texi: Renamed from
88187         doc/posix-functions/getwd.texi.
88188         * doc/pastposix-functions/h_errno.texi: Renamed from
88189         doc/posix-functions/h_errno.texi.
88190         * doc/pastposix-functions/index.texi: Renamed from
88191         doc/posix-functions/index.texi.
88192         * doc/pastposix-functions/makecontext.texi: Renamed from
88193         doc/posix-functions/makecontext.texi.
88194         * doc/pastposix-functions/mktemp.texi: Renamed from
88195         doc/posix-functions/mktemp.texi.
88196         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
88197         doc/posix-functions/pthread_attr_getstackaddr.texi.
88198         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
88199         doc/posix-functions/pthread_attr_setstackaddr.texi.
88200         * doc/pastposix-functions/rindex.texi: Renamed from
88201         doc/posix-functions/rindex.texi.
88202         * doc/pastposix-functions/scalb.texi: Renamed from
88203         doc/posix-functions/scalb.texi.
88204         * doc/pastposix-functions/setcontext.texi: Renamed from
88205         doc/posix-functions/setcontext.texi.
88206         * doc/pastposix-functions/swapcontext.texi: Renamed from
88207         doc/posix-functions/swapcontext.texi.
88208         * doc/pastposix-functions/ualarm.texi: Renamed from
88209         doc/posix-functions/ualarm.texi.
88210         * doc/pastposix-functions/usleep.texi: Renamed from
88211         doc/posix-functions/usleep.texi.
88212         * doc/pastposix-functions/vfork.texi: Renamed from
88213         doc/posix-functions/vfork.texi.
88214         * doc/pastposix-functions/wcswcs.texi: Renamed from
88215         doc/posix-functions/wcswcs.texi.
88216         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
88217         (Function Substitutes): Update.
88219 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88221         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
88222         m4/strerror.m4.
88224 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88225             Bruno Haible  <bruno@clisp.org>
88227         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
88229 2008-12-13  Bruno Haible  <bruno@clisp.org>
88231         * modules/strtoull (Depends-on): Remove unistd.
88233 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88235         * modules/strtoull (Depends-on): Add stdlib.
88237 2008-12-11  Simon Josefsson  <simon@josefsson.org>
88239         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
88241 2008-12-10  Jim Meyering  <meyering@redhat.com>
88243         gl_ASSERT: don't say assertions are disabled when they're not
88244         * m4/assert.m4 (gl_ASSERT): Do not make configure report
88245         "checking whether to enable assertions... no", when they are in
88246         fact enabled.  This is solely a bug in the output of configure.
88247         In spite of saying "no", NDEBUG was not defined in that case.
88248         Also, as noted by Eric Blake, leave assertions enabled upon
88249         --enable-assert=INVALID.
88251 2008-12-10  Bruno Haible  <bruno@clisp.org>
88253         Change MODULES.html to refer to POSIX:2008 where possible.
88254         * MODULES.html.sh (POSIX2008_URL): New variable.
88255         (posix_headers): Remove sys/timeb, ucontext.
88256         (posix2001_headers): New variable.
88257         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88258         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88259         index, makecontext, mktemp, pthread_attr_getstackaddr,
88260         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88261         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88262         (posix2001_functions): New variable.
88263         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88264         otherwise.
88266 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88268         add missing include to parse-duration.c
88269         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88270         * modules/parse-duration (Depends-on): Add xalloc.
88272         fix sed script reading maint.mk
88273         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88274         (syntax-check-rules): Use it.
88276 2008-12-09  Bruno Haible  <bruno@clisp.org>
88278         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88279         MacOS X 10.4/PowerPC.
88280         Reported by Simon Josefsson.
88282 2008-12-08  Jim Meyering  <meyering@redhat.com>
88284         work around mingw's lack of some S_IF definitions
88285         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88286         Reported by Simon Josefsson.
88288 2008-12-08  Bruno Haible  <bruno@clisp.org>
88290         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88291         applied to variables. Needed on MacOS X 10.4/PowerPC.
88292         Reported by Simon Josefsson.
88294 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88295         and Eric Blake  <ebb9@byu.net>
88297         assert: honor --enable-assert
88298         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88299         order to honor --enable-assert, rather than treating it as a
88300         synonym for --disable-assert.
88302 2008-12-08  Jim Meyering  <meyering@redhat.com>
88304         * lib/posixtm.c: Remove now-useless declaration of mktime.
88306         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88308 2008-12-07  Bruno Haible  <bruno@clisp.org>
88310         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88311         test_once): Mark functions as static.
88312         * tests/test-tls.c (test_tls): Likewise.
88314 2008-12-07  Bruno Haible  <bruno@clisp.org>
88316         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88317         iconv_register_autodetect.
88319 2008-12-07  Jim Meyering  <meyering@redhat.com>
88321         posixtm.c: avoid a warning
88322         * lib/posixtm.c (posixtime): Don't initialize tm0.
88323         It's no longer needed to placate gcc4's -Wuninitialized,
88324         and the attempt to placate would elicit a new warning.
88326         unicodeio.c: mark unused parameters
88327         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88328         (fallback_failure_callback): Likewise.
88330 2008-12-07  Bruno Haible  <bruno@clisp.org>
88332         * gnulib-tool (func_create_testdir): When building the tests
88333         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88334         Reported by Simon Josefsson.
88336 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88338         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88340 2008-12-06  Bruno Haible  <bruno@clisp.org>
88342         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88343         Suggested by Eric Blake.
88345 2008-12-06  Bruno Haible  <bruno@clisp.org>
88347         Fix a c-stack test failure on MacOS X.
88348         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88349         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88350         handler for SIGBUS as well.
88351         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88352         install a signal handler for SIGBUS as well.
88353         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88355 2008-12-06  Bruno Haible  <bruno@clisp.org>
88357         Advocacy documentation.
88358         * doc/gnulib-intro.texi (Benefits): New section.
88359         * doc/gnulib.texi: Update.
88361 2008-12-06  Bruno Haible  <bruno@clisp.org>
88363         Document the 'manywarnings' module.
88364         * doc/manywarnings.texi: New file.
88365         * doc/gnulib.texi: Include it.
88367 2008-12-05  Eric Blake  <ebb9@byu.net>
88369         tests: silence some gcc warnings
88370         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88371         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88372         type mismatches.
88374 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88375             Bruno Haible  <bruno@clisp.org>
88377         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88379 2008-11-29  Jim Meyering  <meyering@redhat.com>
88381         unicodeio.c: mark unused parameters
88382         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88383         (fallback_failure_callback): Likewise.
88385         fts: fix a thinko
88386         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88387         (set_stat_type): Return S_IF*-valued "type" directly.
88388         Prompted by James Youngman's spotting a related bug.
88389         Confirmed by further testing through find.
88391         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88392         * lib/fts.c (D_TYPE): Define.
88393         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88394         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88395         (s_ifmt_shift_bits): New function.
88396         (set_stat_type): New function.
88397         (fts_build): When not calling fts_stat, call set_stat_type
88398         to propagate dirent.d_type info to fts_read caller.
88399         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88400         fts_statp->st_mode type information may be valid.
88402 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88404         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88405         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88406         <sds@gnu.org>.
88408 2008-11-20  Bruno Haible  <bruno@clisp.org>
88410         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88411         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88412         INCLUDE_NEXT.
88413         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88414         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88415         * modules/math (Makefile.am): Substitute
88416         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88417         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88419 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88420             Bruno Haible  <bruno@clisp.org>
88422         * lib/stdint.in.h: Define all type macros so that their expansion is
88423         a single typedef'ed token. Fixes a compilation failure in Boost which
88424         does "using ::int8_t;".
88426 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88428         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88429         gl_MANYWARN_ALL_GCC.
88430         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88431         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88432         * modules/manywarnings: New file.
88433         * MODULES.html.sh: Mention manywarnings module.
88435 2008-11-18  Bruno Haible  <bruno@clisp.org>
88437         * doc/gnulib-tool.texi (Unit tests): New section.
88439 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88441         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88442         paths like 'lib/po/foo.po'.
88444 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88446         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88447         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88449 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88451         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88452         parameter works.
88454 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88456         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88458 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88460         * modules/parse-duration-tests: New file.
88461         * tests/test-parse-duration.sh: New file.
88462         * tests/test-parse-duration.c: New file.
88464         New module 'parse-duration'.
88465         * lib/parse-duration.h: New file.
88466         * lib/parse-duration.c: New file.
88467         * modules/parse-duration: New file.
88469 2008-11-17  Bruno Haible  <bruno@clisp.org>
88471         * tests/test-select-out.sh: Comment out the first pipe test.
88472         Reported by Simon Josefsson.
88474 2008-11-17  Bruno Haible  <bruno@clisp.org>
88476         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88477         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88478         gl_HOSTENT.
88480 2008-11-17  Bruno Haible  <bruno@clisp.org>
88482         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88483         -lnetwork and -lnet. Needed for Haiku and BeOS.
88485 2008-11-16  Bruno Haible  <bruno@clisp.org>
88487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88489 2008-11-16  Bruno Haible  <bruno@clisp.org>
88491         Avoid test failure on Haiku.
88492         * tests/test-fsync.c: Include <errno.h>.
88493         (main): Don't require that fsync (0) fails.
88495 2008-11-15  Bruno Haible  <bruno@clisp.org>
88497         New module 'hostent'.
88498         * modules/hostent: New file.
88499         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88501 2008-11-15  Bruno Haible  <bruno@clisp.org>
88503         New module 'servent'.
88504         * modules/servent: New file.
88505         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88507 2008-11-15  Bruno Haible  <bruno@clisp.org>
88509         Avoid generating same test program with two different rules.
88510         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88511         test-frexp to test-frexp-nolibm.
88512         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88513         test-frexpl to test-frexpl-nolibm.
88515 2008-11-15  Bruno Haible  <bruno@clisp.org>
88517         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88518         $(FREXPL_LIBM).
88520 2008-11-15  Bruno Haible  <bruno@clisp.org>
88522         * lib/netdb.in.h: Activate the definitions also when the system's
88523         <netdb.h> has 'struct addrinfo'.
88524         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88525         EAI_OVERFLOW or AI_NUMERICSERV.
88526         * doc/posix-headers/netdb.texi: Document the problem.
88528 2008-11-15  Bruno Haible  <bruno@clisp.org>
88530         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88532         Make the 'sched' module work on platforms where <sched.h> exists but
88533         is incomplete (such as Haiku).
88534         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88535         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88536         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88537         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88538         HAVE_STRUCT_SCHED_PARAM.
88539         * modules/sched (Depends-on): Add include_next.
88540         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88541         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88542         * doc/posix-headers/sched.texi: Document the issue.
88544 2008-11-13  Jim Meyering  <meyering@redhat.com>
88546         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88547         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88548         test would fail due to the difference in the Report bugs to ...
88549         line.  The expected address is empty, "<>", while the actual
88550         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88552 2008-11-12  Bruno Haible  <bruno@clisp.org>
88554         lstat: don't compile lstat.c on systems lacking lstat
88555         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88556         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88557         Reported by Daniel P. Berrange via Jim Meyering.
88559 2008-11-12  Jim Meyering  <meyering@redhat.com>
88561         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88563 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88565         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88566         instead.
88568 2008-11-12  Bruno Haible  <bruno@clisp.org>
88570         * lib/unicodeio.c: Include unistr.h.
88571         (utf8_wctomb): Remove function.
88572         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88574 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88576         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88577         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88578         <bruno@clisp.org>.
88579         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88581 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88583         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88584         * doc/gnulib.texi: Add section for warnings.
88586 2008-11-11  Bruno Haible  <bruno@clisp.org>
88588         * lib/sockets.h: Add a comment.
88590 2008-11-11  Karl Berry  <karl@gnu.org>
88592         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88594 2008-11-11  Eric Blake  <ebb9@byu.net>
88596         fdl.texi: avoid git symlinks
88597         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88599 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88601         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88603 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88605         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88606         (gl_WARN_ADD): Substitute $2 if literal.
88608 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88610         * m4/warning.m4: Remove.
88612 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88614         * m4/warnings.m4: Almost complete rewrite. :-)
88616 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88618         * modules/warnings: New module.
88619         * m4/warnings.m4: New file.
88620         * MODULES.html.sh: Mention warnings module.
88621         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88622         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88624 2008-11-10  Eric Blake  <ebb9@byu.net>
88626         fdl.texi: make a symlink to the latest version
88627         * doc/standards.texi: Revert today's earlier change.
88628         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88629         * doc/fdl.texi: ...and replace this with a symlink to the newer
88630         fdl-1.3.texi.
88632 2008-11-10  Bruno Haible  <bruno@clisp.org>
88634         * tests/test-select-fd.c (main): Accept the result file name as fourth
88635         argument.
88636         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88637         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88639 2008-11-10  Bruno Haible  <bruno@clisp.org>
88641         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88642         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88643         as autoconf-substituted macros.
88644         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88646         gl_NETDB_H_DEFAULTS. Set these variables.
88647         * modules/netdb (Makefile.am): Substitute these variables.
88649 2008-11-10  Eric Blake  <ebb9@byu.net>
88651         standards.texi: include correct file for FDL 1.3
88652         * doc/standards.texi (GNU Free Documentation License): Change
88653         include file to pull in FDL 1.3, not 1.2.
88655         fdl.texi: revert accidental change to license
88656         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88658 2008-11-10  Bruno Haible  <bruno@clisp.org>
88660         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88661         cross-compiling guesses also when the native compile gives no result.
88663 2008-11-10  Bruno Haible  <bruno@clisp.org>
88665         * lib/spawni.c (__spawni): Force variable into the stack.
88667 2008-11-10  Bruno Haible  <bruno@clisp.org>
88669         Add support for Haiku.
88670         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88671         glibc and BeOS, but also on Haiku.
88672         * lib/fpurge.c (fpurge): Likewise.
88673         * lib/freadable.c (freadable): Likewise.
88674         * lib/freadahead.c (freadahead): Likewise.
88675         * lib/freading.c (freading): Likewise.
88676         * lib/freadptr.c (freadptr): Likewise.
88677         * lib/freadseek.c (freadptrinc): Likewise.
88678         * lib/fseeko.c (rpl_fseeko): Likewise.
88679         * lib/fseterr.c (fseterr): Likewise.
88680         * lib/fwritable.c (fwritable): Likewise.
88681         * lib/fwriting.c (fwriting): Likewise.
88682         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88684 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88686         * lib/config.charset: Treat Haiku like BeOS.
88688 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88690         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88691         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88693 2008-11-08  Bruno Haible  <bruno@clisp.org>
88695         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88696         AC_CACHE_CHECK.
88698 2008-11-08  Bruno Haible  <bruno@clisp.org>
88700         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88702 2008-11-08  Bruno Haible  <bruno@clisp.org>
88704         * tests/test-select-fd.c: New file.
88705         * tests/test-select-in.sh: New file.
88706         * tests/test-select-out.sh: New file.
88707         * tests/test-select-stdin.c: New file.
88708         * modules/select-tests (Files): Add the new files.
88709         (Depends-on): Add gettimeofday.
88710         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88711         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88712         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88714 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88715             Bruno Haible  <bruno@clisp.org>
88717         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88719 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88721         * build-aux/pmccabe2html: Added support for C++ source files.
88723 2008-11-05  Ben Pfaff  <blp@gnu.org>
88725         Fix lib/close.c build on Windows.
88726         * modules/close (Files): Add lib/w32sock.h.
88728 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88730         Accept Bison's NEWS format.
88731         * build-aux/announce-gen (print_news_deltas): Tweak
88732         $re_prefix.
88734 2008-11-04  Bruno Haible  <bruno@clisp.org>
88736         * modules/random_r (Maintainer): Add glibc.
88738 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88740         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88741         by karl@freefriends.org (Karl Berry).
88742         * doc/alloca.texi: Likewise.
88743         * doc/c-ctype.texi: Likewise.
88744         * doc/c-strcase.texi: Likewise.
88745         * doc/c-strcaseeq.texi: Likewise.
88746         * doc/c-strcasestr.texi: Likewise.
88747         * doc/c-strstr.texi: Likewise.
88748         * doc/c-strtod.texi: Likewise.
88749         * doc/c-strtold.texi: Likewise.
88750         * doc/ctime.texi: Likewise.
88751         * doc/error.texi: Likewise.
88752         * doc/fdl.texi: Likewise.
88753         * doc/gcd.texi: Likewise.
88754         * doc/getdate.texi: Likewise.
88755         * doc/gnulib-intro.texi: Likewise.
88756         * doc/gnulib-tool.texi: Likewise.
88757         * doc/gnulib.texi: Likewise.
88758         * doc/inet_ntoa.texi: Likewise.
88759         * doc/maintain.texi: Likewise.
88760         * doc/make-stds.texi: Likewise.
88761         * doc/quote.texi: Likewise.
88762         * doc/regexprops-generic.texi: Likewise.
88763         * doc/standards.texi: Likewise.
88764         * doc/verify.texi: Likewise.
88765         * doc/visibility.texi: Likewise.
88766         * doc/gnulib.texi (GNU Free Documentation License): Include
88767         fdl-1.3.texi instead of fdl.texi.
88769 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88771         * doc/fdl-1.3.texi: New file, from
88772         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88773         * modules/fdl-1.3: Add.
88774         * MODULES.html.sh: Add fdl-1.3.
88776 2008-11-03  Bruno Haible  <bruno@clisp.org>
88778         Make determination of absolute name of header file work with AIX xlc.
88779         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88780         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88781         preprocessing.
88782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88783         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88785 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88787         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88788         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88789         <ludo@gnu.org>.
88791 2008-11-02  Bruno Haible  <bruno@clisp.org>
88793         Mark 'strpbrk' obsolete.
88794         * modules/strpbrk (Status, Notice): New sections.
88795         * modules/strtok_r (Depends-on): Add strpbrk.
88797 2008-11-02  Bruno Haible  <bruno@clisp.org>
88799         Mark 'strdup' obsolete.
88800         * modules/strdup (Status, Notice): New sections.
88801         * modules/findprog (Depends-on): Add strdup.
88802         * modules/getaddrinfo (Depends-on): Likewise.
88803         * modules/localename (Depends-on): Likewise.
88804         * modules/relocatable-lib (Depends-on): Likewise.
88805         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88806         * modules/relocatable-prog (Depends-on): Likewise.
88807         * modules/trim (Depends-on): Likewise.
88808         * modules/unictype/gen-ctype (Depends-on): Likewise.
88809         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88811 2008-11-02  Bruno Haible  <bruno@clisp.org>
88813         Mark 'strcspn' obsolete.
88814         * modules/strcspn (Status, Notice): New sections.
88816 2008-11-02  Bruno Haible  <bruno@clisp.org>
88818         Mark 'rmdir' obsolete.
88819         * modules/rmdir (Status, Notice): New sections.
88820         * modules/clean-temp (Depends-on): Add rmdir.
88821         * modules/openat (Depends-on): Likewise.
88823 2008-11-02  Bruno Haible  <bruno@clisp.org>
88825         Mark 'raise' obsolete.
88826         * modules/raise (Status, Notice): New sections.
88827         (Include): Specify <signal.h>.
88828         * modules/stdio (Depends-on): Add raise.
88829         * modules/write (Depends-on): Likewise.
88831 2008-11-02  Bruno Haible  <bruno@clisp.org>
88833         Mark 'memset' obsolete.
88834         * modules/memset (Status, Notice): New sections.
88836 2008-11-02  Bruno Haible  <bruno@clisp.org>
88838         Mark 'memmove' obsolete.
88839         * modules/memmove (Status, Notice): New sections.
88840         * modules/argp (Depends-on): Add memmove.
88841         * modules/argz (Depends-on): Likewise.
88842         * modules/canonicalize (Depends-on): Likewise.
88843         * modules/canonicalize-lgpl (Depends-on): Likewise.
88844         * modules/fts (Depends-on): Likewise.
88845         * modules/getcwd (Depends-on): Likewise.
88846         * modules/human (Depends-on): Likewise.
88847         * modules/regex (Depends-on): Likewise.
88848         * modules/striconveh (Depends-on): Likewise.
88849         * modules/trim (Depends-on): Likewise.
88850         * modules/unistr/u8-move (Depends-on): Likewise.
88851         * modules/unistr/u16-move (Depends-on): Likewise.
88852         * modules/unistr/u32-move (Depends-on): Likewise.
88854 2008-11-02  Bruno Haible  <bruno@clisp.org>
88856         Mark 'memcpy' obsolete.
88857         * modules/memcpy (Status, Notice): New sections.
88859 2008-11-02  Bruno Haible  <bruno@clisp.org>
88861         Mark 'memcmp' obsolete.
88862         * modules/memcmp (Status, Notice): New sections.
88863         * modules/argmatch (Depends-on): Add memchr.
88864         * modules/backupfile (Depends-on): Likewise.
88865         * modules/c-strcasestr (Depends-on): Likewise.
88866         * modules/crypto/des (Depends-on): Likewise.
88867         * modules/csharpcomp (Depends-on): Likewise.
88868         * modules/fnmatch (Depends-on): Likewise.
88869         * modules/git-merge-changelog (Depends-on): Likewise.
88870         * modules/isnand (Depends-on): Likewise.
88871         * modules/isnand-nolibm (Depends-on): Likewise.
88872         * modules/isnanf (Depends-on): Likewise.
88873         * modules/isnanf-nolibm (Depends-on): Likewise.
88874         * modules/isnanl (Depends-on): Likewise.
88875         * modules/isnanl-nolibm (Depends-on): Likewise.
88876         * modules/mbchar (Depends-on): Likewise.
88877         * modules/memcoll (Depends-on): Likewise.
88878         * modules/quotearg (Depends-on): Likewise.
88879         * modules/regex (Depends-on): Likewise.
88880         * modules/relocatable-prog (Depends-on): Likewise.
88881         * modules/same (Depends-on): Likewise.
88882         * modules/signbit (Depends-on): Likewise.
88883         * modules/strcasestr-simple (Depends-on): Likewise.
88884         * modules/unictype/gen-ctype (Depends-on): Likewise.
88885         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88886         * modules/uniname/uniname (Depends-on): Likewise.
88887         * modules/unistr/u8-cmp (Depends-on): Likewise.
88889 2008-11-02  Bruno Haible  <bruno@clisp.org>
88891         Mark 'memchr' obsolete.
88892         * modules/memchr (Status, Notice): New sections.
88893         * modules/argp (Depends-on): Add memchr.
88894         * modules/base64 (Depends-on): Likewise.
88895         * modules/c-strcasestr (Depends-on): Likewise.
88896         * modules/chdir-long (Depends-on): Likewise.
88897         * modules/fnmatch (Depends-on): Likewise.
88898         * modules/getsubopt (Depends-on): Likewise.
88899         * modules/git-merge-changelog (Depends-on): Likewise.
88900         * modules/glob (Depends-on): Likewise.
88901         * modules/strcasestr-simple (Depends-on): Likewise.
88902         * modules/strnlen (Depends-on): Likewise.
88904 2008-11-02  Bruno Haible  <bruno@clisp.org>
88906         Mark 'atexit' obsolete.
88907         * modules/atexit (Status, Notice): New sections.
88908         * modules/chdir-long (Depends-on): Add atexit.
88909         * modules/wait-process (Depends-on): Likewise.
88911 2008-11-02  Bruno Haible  <bruno@clisp.org>
88913         * gnulib-tool: New option --with-obsolete.
88914         (func_usage): Document it.
88915         (func_modules_transitive_closure): Drop obsolete dependencies if
88916         incobsolete is not true.
88917         (func_import): Read and save the incobsolete variable to the cache.
88919 2008-11-02  Bruno Haible  <bruno@clisp.org>
88921         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88922         * gnulib-tool: New option --extract-status.
88923         (func_usage): Document it.
88924         (sed_extract_prog): Recognize it.
88925         (func_get_status): New function.
88927 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88929         * modules/sockets (License): Change from LGPL to LGPLv2+.
88931 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88933         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88935 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88937         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88938         Mention times and sys_times.
88939         * modules/sys_times, modules/sys_times-tests: New modules.
88940         * modules/times, modules/times-tests: Likewise
88941         * m4/sys_times_h.m4: New file.
88942         * lib/sys_times.in.h: Likewise
88943         * lib/times.c: Likewise.
88944         * tests/test-sys_times.c: Likewise.
88945         * tests/test-times.c: Likewise.
88946         * doc/posix-headers/sys_times.texi: Update.
88947         * doc/posix-functions/times.texi: Update.
88949 2008-10-28  Jim Meyering  <meyering@redhat.com>
88951         * modules/tempname (Depends-on): Add lstat.
88953         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88955 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88957         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88958         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88959         using idiom used elsewhere in gnulib.
88961 2008-10-27  Jim Meyering  <meyering@redhat.com>
88963         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88965 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88967         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88968         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88969         programs.
88970         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88972 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88974         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88976 2008-10-27  Bruno Haible  <bruno@clisp.org>
88978         * tests/test-lstat.c: Include <stdio.h>.
88980 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88982         * modules/lstat-tests: New module.
88983         * tests/test-lstat.c: New file.
88985 2008-10-26  Jim Meyering  <meyering@redhat.com>
88987         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88989 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88990             Bruno Haible  <bruno@clisp.org>
88992         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88993         * modules/configmake (Include): Add a note that the include must come
88994         after all system headers.
88995         * lib/javaversion.c: Include configmake.h after all other includes.
88997 2008-10-26  Bruno Haible  <bruno@clisp.org>
88999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
89000         HAVE_STRUCT_RANDOM_DATA to 1.
89001         (gl_STDLIB_H): Simplify.
89003 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89005         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
89006         substitute HAVE_STRUCT_RANDOM_DATA.
89007         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
89008         random_data.
89009         * modules/stdlib (Makefile.am): Substitute
89010         HAVE_STRUCT_RANDOM_DATA.
89012 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89014         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
89015         * doc/gnulib-intro.texi (Copyright): Likewise.
89017 2008-10-26  Simon Josefsson  <simon@josefsson.org>
89019         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
89020         findings.
89022 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
89023             Bruno Haible  <bruno@clisp.org>
89025         * lib/unistd.in.h: Include <winsock2.h>.
89026         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
89027         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
89028         Provide dummy declarations.
89029         (gethostname): Override.
89030         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
89031         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
89032         gl_PREREQ_SYS_H_WINSOCK2.
89033         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
89034         * doc/posix-functions/gethostname.texi: More details.
89036 2008-10-25  Bruno Haible  <bruno@clisp.org>
89038         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89039         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
89040         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
89042         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
89043         here ...
89044         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
89045         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
89046         gl_UNISTD_H_DEFAULTS.
89048 2008-10-25  Eric Blake  <ebb9@byu.net>
89050         signbit: avoid spurious compiler failure
89051         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
89052         declarations inside function.
89054 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89055             Bruno Haible  <bruno@clisp.org>
89057         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
89058         * modules/random_r (Depends-on): Add stdint.
89060 2008-10-24  Bruno Haible  <bruno@clisp.org>
89062         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
89063         Eggert.
89064         * modules/strerror (License): Likewise.
89066 2008-10-24  Jim Meyering  <meyering@redhat.com>
89068         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
89069         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
89071 2008-10-24  Eric Blake  <ebb9@byu.net>
89073         getgroups: fix compilation when getgroups is available
89074         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
89075         but with <config.h> override of getgroups disabled.
89077 2008-10-24  Simon Josefsson  <simon@josefsson.org>
89079         * doc/gnulib.texi (Header files): Add note about C++ problems.
89080         Explained by Bruno Haible <bruno@clisp.org>.
89082 2008-10-23  Bruno Haible  <bruno@clisp.org>
89084         Define a dummy SA_NODEFER macro on Interix.
89085         * lib/signal.in.h (SA_NODEFER): Define fallback.
89086         Reported by Aleksey Cheusov <cheusov@tut.by> via
89087         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
89089 2008-10-23  Bruno Haible  <bruno@clisp.org>
89091         * modules/freadahead (License): Change to LGPLv2+.
89092         Suggested by Simon Josefsson.
89094 2008-10-23  Jim Meyering  <meyering@redhat.com>
89096         random_r: new module
89097         * modules/random_r: New file.
89098         * m4/random_r.m4: New file.
89099         * lib/random_r.c: New file, from glibc.
89100         * modules/random_r-tests: New file.
89101         * tests/test-random_r.c: New file.
89102         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
89103          Declare.
89104         (RAND_MAX): Define.
89105         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
89106         * modules/stdlib: Substitute them, too.
89107         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
89108         * doc/glibc-functions/initstate_r.texi: Mention the new module.
89109         * doc/glibc-functions/random_r.texi: Likewise.
89110         * doc/glibc-functions/setstate_r.texi: Likewise.
89111         * doc/glibc-functions/srandom_r.texi: Likewise.
89112         * config/srclist.txt: Mention it.
89114 2008-10-23  David Lutterkort  <lutter@redhat.com>
89116         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
89117         link requirement
89119 2008-10-23  Jim Meyering  <meyering@redhat.com>
89121         selinux-h: mark parameters of stub functions as intentionally unused
89122         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
89123         * lib/se-context.in.h: Likewise.
89125 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89127         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
89129 2008-10-22  Simon Josefsson  <simon@josefsson.org>
89131         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
89133 2008-10-22  Eric Blake  <ebb9@byu.net>
89135         glthread/thread: avoid compiler warning
89136         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
89137         Add unreachable abort to silence compiler.
89139 2008-10-22  Eric Blake  <ebb9@byu.net>
89141         netdb: also supply struct addrinfo for cygwin 1.5.x
89142         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
89143         older cygwin.
89144         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
89145         cygwin.
89146         * doc/posix-headers/netdb.texi (netdb.h): Document this.
89148 2008-10-22  Bruno Haible  <bruno@clisp.org>
89150         * users.txt: Update entry about pspp.
89152 2008-10-21  Bruno Haible  <bruno@clisp.org>
89154         Simplification.
89155         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
89156         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
89158         Simplification.
89159         * lib/ioctl.c (ioctl): Don't undefine.
89160         * lib/socket.c (socket): Don't undefine.
89162         Remove unused module indicator macros.
89163         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
89164         GNULIB_$1 as a C macro.
89166         * doc/posix-functions/close.texi: Undo last change.
89167         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
89168         Windows platforms.
89170 2008-10-21  Bruno Haible  <bruno@clisp.org>
89172         Add gethostname() declaration to <unistd.h>.
89173         * lib/unistd.in.h (gethostname): New declaration.
89174         * lib/gethostname.c: Include <unistd.h>.
89175         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
89176         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
89177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
89178         and HAVE_GETHOSTNAME.
89179         * modules/gethostname (Depends-on): Add unistd.
89180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89181         (Include): Specify <unistd.h>.
89182         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
89183         HAVE_GETHOSTNAME.
89184         * tests/test-gethostname.c: Include <unistd.h> first.
89186 2008-10-21  Bruno Haible  <bruno@clisp.org>
89188         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
89189         * modules/select-tests (Depends-on): Likewise.
89190         Reported by Simon Josefsson.
89192 2008-10-21  Simon Josefsson  <simon@josefsson.org>
89194         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
89195         * lib/accept.c: New file, based on winsock.c.
89196         * lib/bind.c: New file, based on winsock.c.
89197         * lib/connect.c: New file, based on winsock.c.
89198         * lib/getpeername.c: New file, based on winsock.c.
89199         * lib/getsockname.c: New file, based on winsock.c.
89200         * lib/getsockopt.c: New file, based on winsock.c.
89201         * lib/ioctl.c: New file, based on winsock.c.
89202         * lib/listen.c: New file, based on winsock.c.
89203         * lib/recv.c: New file, based on winsock.c.
89204         * lib/recvfrom.c: New file, based on winsock.c.
89205         * lib/send.c: New file, based on winsock.c.
89206         * lib/sendto.c: New file, based on winsock.c.
89207         * lib/setsockopt.c: New file, based on winsock.c.
89208         * lib/shutdown.c: New file, based on winsock.c.
89209         * lib/socket.c: New file, based on winsock.c.
89210         * lib/w32sock.h: New file, based on winsock.c.
89211         * lib/winsock.c: Remove file.
89212         * modules/accept: Likewise.
89213         * modules/bind: Likewise.
89214         * modules/connect: Likewise.
89215         * modules/getpeername: Likewise.
89216         * modules/getsockname: Likewise.
89217         * modules/getsockopt: Likewise.
89218         * modules/ioctl: Likewise.
89219         * modules/listen: Likewise.
89220         * modules/recv: Likewise.
89221         * modules/recvfrom: Likewise.
89222         * modules/send: Likewise.
89223         * modules/sendto: Likewise.
89224         * modules/setsockopt: Likewise.
89225         * modules/shutdown: Likewise.
89226         * modules/socket: Use socket.c instead of winsock.c.
89227         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
89228         * doc/posix-functions/accept.texi: Doc fix.
89229         * doc/posix-functions/bind.texi: Doc fix.
89230         * doc/posix-functions/close.texi: Doc fix.
89231         * doc/posix-functions/connect.texi: Doc fix.
89232         * doc/posix-functions/getpeername.texi: Doc fix.
89233         * doc/posix-functions/getsockname.texi: Doc fix.
89234         * doc/posix-functions/getsockopt.texi: Doc fix.
89235         * doc/posix-functions/ioctl.texi: Doc fix.
89236         * doc/posix-functions/listen.texi: Doc fix.
89237         * doc/posix-functions/recv.texi: Doc fix.
89238         * doc/posix-functions/recvfrom.texi: Doc fix.
89239         * doc/posix-functions/send.texi: Doc fix.
89240         * doc/posix-functions/sendto.texi: Doc fix.
89241         * doc/posix-functions/setsockopt.texi: Doc fix.
89242         * doc/posix-functions/shutdown.texi: Doc fix.
89243         * doc/posix-functions/socket.texi: Doc fix.
89245 2008-10-20  Bruno Haible  <bruno@clisp.org>
89247         Take into account the role of SIGABRT_COMPAT on Windows 2008.
89248         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
89249         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
89250         as an alias for SIGABRT.
89251         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
89252         (sigaction): Map it to SIGABRT.
89253         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89255 2008-10-20  Bruno Haible  <bruno@clisp.org>
89257         * lib/fts.c: Don't include lstat.h.
89258         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89260         Move the lstat() declaration to <sys/stat.h>.
89261         * lib/lstat.h: Remove file.
89262         * lib/sys_stat.in.h: Add special invocation convention.
89263         (lstat): New declaration.
89264         * lib/lstat.c (orig_lstat): New function.
89265         (rpl_lstat): Use orig_lstat instead of lstat.
89266         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89267         AC_C_INLINE. Set REPLACE_LSTAT.
89268         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89269         and REPLACE_LSTAT.
89270         * modules/lstat (Files): Remove lib/lstat.h.
89271         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89272         (Include): Specify <sys/stat.h> instead of lstat.h.
89273         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89274         REPLACE_LSTAT.
89275         * NEWS: Mention the change.
89277 2008-10-20  Bruno Haible  <bruno@clisp.org>
89279         * modules/posix_spawn-tests: New file.
89280         * tests/test-posix_spawn3.c: New file.
89282 2008-10-20  Bruno Haible  <bruno@clisp.org>
89284         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89285         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89286         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89287         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89288         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89290 2008-10-20  Bruno Haible  <bruno@clisp.org>
89292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89293         of posix_spawn on AIX 5.3.
89295 2008-10-20  Bruno Haible  <bruno@clisp.org>
89297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89299 2008-10-20  Bruno Haible  <bruno@clisp.org>
89301         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89302         of AC_LANG_PROGRAM.
89304 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89306         * lib/netdb.in.h: Don't define GNU specific constants until they
89307         are supported or needed.  Reported by Bruno Haible
89308         <bruno@clisp.org>.
89310 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89312         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89314 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89316         * lib/getaddrinfo.h: Remove file.
89317         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89318         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89319         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89320         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89321         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89322         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89323         * tests/test-getaddrinfo.c: Likewise.
89324         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89325         * NEWS: Mention change.
89327 2008-10-19  Bruno Haible  <bruno@clisp.org>
89329         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89331 2008-10-19  Bruno Haible  <bruno@clisp.org>
89333         * lib/wait-process.c: Include simply <sys/wait.h>.
89334         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89335         WIFSTOPPED): Remove fallback definitions.
89336         * modules/wait-process (Depends-on): Add sys_wait.
89338         New module 'sys_wait'.
89339         * modules/sys_wait: New file.
89340         * lib/sys_wait.in.h: New file, partially copied from
89341         lib/wait-process.c.
89342         * m4/sys_wait_h.m4: New file.
89343         * doc/posix-headers/sys_wait.texi: Mention the new module.
89345 2008-10-19  Bruno Haible  <bruno@clisp.org>
89347         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89349 2008-10-19  Bruno Haible  <bruno@clisp.org>
89351         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89352         * lib/wait-process.c (WAIT_T): Remove type.
89353         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89354         (wait_subprocess): Update.
89356 2008-10-19  Bruno Haible  <bruno@clisp.org>
89358         New module 'atoll'.
89359         * modules/atoll: New file.
89360         * lib/stdlib.in.h (atoll): New declaration.
89361         * lib/atoll.c: New file, from glibc with modifications.
89362         * m4/atoll.m4: New file.
89363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89364         HAVE_ATOLL.
89365         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89366         * doc/posix-functions/atoll.texi: Mention the new module.
89368 2008-10-19  Bruno Haible  <bruno@clisp.org>
89370         Add strtoull() declaration to <stdlib.h>.
89371         * lib/stdlib.in.h (strtoull): New declaration.
89372         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89373         Set HAVE_STRTOULL.
89374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89375         HAVE_STRTOULL.
89376         * modules/strtoull (Depends-on): Add stdlib.
89377         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89378         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89379         HAVE_STRTOULL.
89381 2008-10-19  Bruno Haible  <bruno@clisp.org>
89383         Add strtoll() declaration to <stdlib.h>.
89384         * lib/stdlib.in.h (strtoll): New declaration.
89385         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89386         Set HAVE_STRTOLL.
89387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89388         HAVE_STRTOLL.
89389         * modules/strtoll (Depends-on): Add stdlib.
89390         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89391         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89393 2008-10-19  Bruno Haible  <bruno@clisp.org>
89395         * modules/bcopy (Depends-on): Add strings.
89396         (Include): Specify <strings.h>.
89398 2008-10-19  Bruno Haible  <bruno@clisp.org>
89400         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89402 2008-10-19  Bruno Haible  <bruno@clisp.org>
89404         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89405         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89406         mingw.
89408 2008-10-19  Bruno Haible  <bruno@clisp.org>
89410         * lib/atanl.c: Don't include isnanl.h.
89411         * lib/cosl.c: Likewise.
89412         * lib/ldexpl.c: Likewise.
89413         * lib/logl.c: Likewise.
89414         * lib/sinl.c: Likewise.
89415         * lib/sqrtl.c: Likewise.
89416         * lib/tanl.c: Likewise.
89418         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89419         * lib/isnanf.h: Remove file.
89420         * lib/isnand.h: Remove file.
89421         * lib/isnanl.h: Remove file.
89422         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89423         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89424         macros.
89425         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89426         HAVE_ISNANF, don't define it as a C macro.
89427         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89428         HAVE_ISNAND, don't define it as a C macro.
89429         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89430         HAVE_ISNANL, don't define it as a C macro.
89431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89432         HAVE_ISNAN[FDL].
89433         * modules/isnanf (Files): Remove lib/isnanf.h.
89434         (Depends-on): Add math.
89435         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89436         (Include): Specify <math.h> instead of isnanf.h.
89437         * modules/isnand (Files): Remove lib/isnand.h.
89438         (Depends-on): Add math.
89439         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89440         (Include): Specify <math.h> instead of isnand.h.
89441         * modules/isnanl (Files): Remove lib/isnanl.h.
89442         (Depends-on): Add math.
89443         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89444         (Include): Specify <math.h> instead of isnanl.h.
89445         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89446         HAVE_ISNAN[FDL].
89447         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89448         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89449         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89450         * NEWS: Mention the change.
89452 2008-10-18  Bruno Haible  <bruno@clisp.org>
89454         Add getusershell(), setusershell(), endusershell() declarations to
89455         <unistd.h>.
89456         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89457         declarations.
89458         * lib/getusershell.c: Include unistd.h.
89459         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89460         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89461         HAVE_GETUSERSHELL.
89462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89463         and HAVE_GETUSERSHELL.
89464         * modules/getusershell (Depends-on): Add unistd, extensions.
89465         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89466         (Include): Specify <unistd.h>.
89467         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89468         HAVE_GETUSERSHELL.
89470 2008-10-18  Bruno Haible  <bruno@clisp.org>
89472         Add a getloadavg() declaration to <stdlib.h>.
89473         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89474         getloadavg declaration.
89475         (getloadavg): New declaration.
89476         * lib/getloadavg.c: Include <stdlib.h> first.
89477         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89478         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89479         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89481         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89482         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89483         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89484         (Include): Specify <stdlib.h>.
89485         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89486         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89488 2008-10-18  Bruno Haible  <bruno@clisp.org>
89490         * lib/dirchownmod.c: Don't include lchmod.h.
89492         Move the lchmod() declaration to <sys/stat.h>.
89493         * lib/lchmod.h: Remove file.
89494         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89495         (lchmod): New declaration, moved here from lib/lchown.h.
89496         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89497         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89498         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89499         and HAVE_LCHMOD.
89500         * modules/lchmod (Files): Remove lib/lchmod.h.
89501         (Depends-on): Add sys_stat, extensions.
89502         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89503         (Include): Specify <sys/stat.h> instead of lchmod.h.
89504         * modules/sys_stat (Depends-on): Add link-warning.
89505         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89506         definition of GL_LINK_WARNING.
89507         * NEWS: Mention the change.
89509 2008-10-18  Bruno Haible  <bruno@clisp.org>
89511         * lib/fchdir.c: Don't include dirfd.h.
89512         * lib/fts.c: Likewise.
89513         * lib/getcwd.c: Likewise.
89514         * lib/glob.c: Likewise.
89516         Move the dirfd() declaration to <dirent.h>.
89517         * lib/dirfd.h: Remove file.
89518         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89519         (dirfd): New declaration.
89520         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89522         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89523         HAVE_DECL_DIRFD.
89524         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89525         HAVE_DECL_DIRFD.
89526         * modules/dirfd (Files): Remove lib/dirfd.h.
89527         (Depends-on): Add dirent, extensions.
89528         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89529         (Include): Specify <dirent.h> instead of dirfd.h.
89530         * modules/dirent (Depends-on): Add link-warning.
89531         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89532         definition of GL_LINK_WARNING.
89533         * NEWS: Mention the change.
89535 2008-10-18  Bruno Haible  <bruno@clisp.org>
89537         Move the euidaccess() declaration to <unistd.h>.
89538         * lib/euidaccess.h: Remove file.
89539         * lib/unistd.in.h (euidaccess): New declaration.
89540         * lib/euidaccess.c: Don't include euidaccess.h.
89541         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89542         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89544         and HAVE_EUIDACCESS.
89545         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89546         (Depends-on): Add unistd.
89547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89548         (Include): Specify <unistd.h> instead of euidaccess.h.
89549         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89550         HAVE_EUIDACCESS.
89551         * NEWS: Mention the change.
89553 2008-10-18  Bruno Haible  <bruno@clisp.org>
89555         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89557         Move the getdomainname() declaration to <unistd.h>.
89558         * lib/getdomainname.h: Remove file.
89559         * lib/unistd.in.h (getdomainname): New declaration.
89560         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89561         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89562         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89563         HAVE_GETDOMAINNAME.
89564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89565         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89566         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89567         (Depends-on): Add unistd, extensions.
89568         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89569         (Includes): Specify <unistd.h> instead of getdomainname.h.
89570         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89571         HAVE_GETDOMAINNAME.
89572         * NEWS: Mention the change.
89574 2008-10-18  Bruno Haible  <bruno@clisp.org>
89576         * modules/dirent: New file.
89577         * m4/dirent_h.m4: New file.
89578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89579         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89580         * modules/fchdir (Files): Remove lib/dirent.in.h.
89581         (Depends-on): Add dirent.
89582         (Makefile.am): Move rules to modules/dirent.
89583         * doc/posix-headers/dirent.texi: Mention the new module.
89585 2008-10-18  Bruno Haible  <bruno@clisp.org>
89587         Avoid -Wunused-parameter warnings in public gnulib header files.
89588         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89589         macro.
89590         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89592 2008-10-18  Bruno Haible  <bruno@clisp.org>
89594         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89595         * doc/glibc-functions/error.texi: Mention the module 'error'.
89596         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89597         * doc/glibc-functions/getdomainname.texi: Mention the module
89598         'getdomainname'.
89599         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89600         * doc/glibc-functions/getpagesize.texi: Mention the module
89601         'getpagesize'.
89602         * doc/glibc-functions/getusershell.texi: Mention the module
89603         'getusershell'.
89604         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89605         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89606         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89607         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89608         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89609         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89610         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89611         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89612         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89613         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89614         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89615         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89616         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89617         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89619 2008-10-17  Bruno Haible  <bruno@clisp.org>
89621         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89622         HP-UX and IRIX, use -0.0L.
89623         * tests/test-ceill.c (minus_zero): Likewise.
89624         * tests/test-floorl.c (minus_zero): Likewise.
89625         * tests/test-frexpl.c (minus_zero): Likewise.
89626         * tests/test-isnan.c (minus_zerol): Likewise.
89627         * tests/test-isnanl.h (minus_zero): Likewise.
89628         * tests/test-ldexpl.c (minus_zero): Likewise.
89629         * tests/test-roundl.c (minus_zero): Likewise.
89630         * tests/test-signbit.c (minus_zerol): Likewise.
89631         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89632         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89633         * tests/test-truncl.c (minus_zero): Likewise.
89634         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89635         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89636         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89637         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89639 2008-10-17  Bruno Haible  <bruno@clisp.org>
89641         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89642         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89643         that it gets activated only for gcc >= 3.0.
89644         * lib/dirent.in.h: Likewise.
89645         * lib/errno.in.h: Likewise.
89646         * lib/fcntl.in.h: Likewise.
89647         * lib/float.in.h: Likewise.
89648         * lib/iconv.in.h: Likewise.
89649         * lib/inttypes.in.h: Likewise.
89650         * lib/locale.in.h: Likewise.
89651         * lib/math.in.h: Likewise.
89652         * lib/netdb.in.h: Likewise.
89653         * lib/netinet_in.in.h: Likewise.
89654         * lib/search.in.h: Likewise.
89655         * lib/signal.in.h: Likewise.
89656         * lib/spawn.in.h: Likewise.
89657         * lib/stdarg.in.h: Likewise.
89658         * lib/stdint.in.h: Likewise.
89659         * lib/stdio.in.h: Likewise.
89660         * lib/stdlib.in.h: Likewise.
89661         * lib/string.in.h: Likewise.
89662         * lib/strings.in.h: Likewise.
89663         * lib/sys_file.in.h: Likewise.
89664         * lib/sys_ioctl.in.h: Likewise.
89665         * lib/sys_select.in.h: Likewise.
89666         * lib/sys_socket.in.h: Likewise.
89667         * lib/sys_stat.in.h: Likewise.
89668         * lib/sys_time.in.h: Likewise.
89669         * lib/sysexits.in.h: Likewise.
89670         * lib/time.in.h: Likewise.
89671         * lib/unistd.in.h: Likewise.
89672         * lib/wchar.in.h: Likewise.
89673         * lib/wctype.in.h: Likewise.
89674         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89676 2008-10-17  Jim Meyering  <meyering@redhat.com>
89678         ignore-value: don't depend on inline module
89679         * modules/ignore-value (Depends-on): Remove 'inline'.
89680         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89681         Suggestion from Bruno Haible.
89683 2008-10-17  Bruno Haible  <bruno@clisp.org>
89685         New implementation of condition variables for Win32.
89686         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89687         (gl_linked_waitqueue_t): New type.
89688         (gl_cond_t): Use it.
89689         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89690         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89691         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89692         (glthread_cond_init_func, glthread_cond_wait_func,
89693         glthread_cond_timedwait_func, glthread_cond_signal_func,
89694         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89695         Reimplemented on the basis of gl_linked_waitqueue_t.
89696         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89697         gl_waitqueue_t.
89698         (gl_rwlock_t): Update.
89699         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89701 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89703         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89704         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89706 2008-10-17  Jim Meyering  <meyering@redhat.com>
89708         ignore-value: new module
89709         * modules/ignore-value: New file.
89710         * lib/ignore-value.h: New file.
89711         * MODULES.html.sh (Compiler warning management): New section,
89712         just for this module.  More to come.
89714 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89716         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89717         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89718         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89720 2008-10-16  Jim Meyering  <meyering@redhat.com>
89722         openat-die.c: avoid 'no previous prototype' warning
89723         * lib/openat-die.c: Include "openat.h".
89724         Reported by Reuben Thomas <rrt@sc3d.org>.
89726 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89728         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89729         * lib/netdb.in.h: Fix typo.
89730         Reported by Bruno Haible  <bruno@clisp.org>
89732         * lib/netdb.in.h: Include sys/socket.h for platforms without
89733         netdb.h, to get structures like hostent on MinGW.
89734         * modules/netdb (Depends-on): Add sys_socket.
89736 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89738         * modules/netdb, modules/netdb-tests: New file.
89739         * m4/netdb_h.m4: New file.
89740         * lib/netdb.in.h: Add, currently just an empty file pending
89741         definitions.
89742         * tests/test-netdb.c: New file.
89743         * doc/posix-headers/netdb.texi: Mention that we replace it if
89744         needed.
89745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89746         netdb.
89748 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89750         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89751         with code.
89753 2008-10-13  Bruno Haible  <bruno@clisp.org>
89755         * lib/glthread/cond.c (glthread_cond_wait_func,
89756         glthread_cond_timedwait_func): Add a comment.
89758 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89760         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89761         * tests/test-select.c: Likewise,
89763 2008-10-13  Bruno Haible  <bruno@clisp.org>
89765         * lib/glthread/cond.c (glthread_cond_wait_func,
89766         glthread_cond_timedwait_func): Fix variable name.
89767         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89769 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89771         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89772         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89773         struct sockaddr.sa_len.
89774         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89776 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89778         * build-aux/pmccabe2html: Add css and css_url parameters.
89780 2008-10-12  Bruno Haible  <bruno@clisp.org>
89782         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89783         calling aclx_get.
89784         Reported by Rainer Tammer <tammer@tammer.net>.
89786 2008-10-12  Bruno Haible  <bruno@clisp.org>
89788         Use msvcrt aware primitives for creation/termination of Win32 threads.
89789         * lib/glthread/thread.c: Include <process.h>.
89790         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89791         (wrapper_func): Update signature.
89792         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89794 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89795             Bruno Haible  <bruno@clisp.org>
89797         Provide a Win32 implementation of the 'cond' module.
89798         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89799         * lib/glthread/cond.c (glthread_cond_init_func,
89800         glthread_cond_wait_func, glthread_cond_timedwait_func,
89801         glthread_cond_signal_func, glthread_cond_broadcast_func,
89802         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89803         * modules/cond (Dependencies): Add gettimeofday.
89805 2008-10-11  Bruno Haible  <bruno@clisp.org>
89807         Make sleep work on older versions of mingw.
89808         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89809         only whether it exists.
89810         * doc/posix-functions/sleep.texi: Mention the problem with older
89811         versions of mingw.
89813 2008-10-11  Bruno Haible  <bruno@clisp.org>
89815         New module 'shutdown'.
89816         * modules/shutdown: New file.
89817         * lib/sys_socket.in.h (shutdown): New declaration.
89818         * lib/winsock.c (shutdown): New function.
89819         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89820         GNULIB_SHUTDOWN.
89821         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89822         * doc/posix-functions/shutdown.texi: Document the new module.
89824 2008-10-11  Jim Meyering  <meyering@redhat.com>
89826         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89828 2008-10-11  Bruno Haible  <bruno@clisp.org>
89830         New module 'fclose'.
89831         * modules/fclose: New file.
89832         * lib/stdio.in.h (fclose): New declaration.
89833         * lib/fclose.c: New file.
89834         * m4/fclose.m4: New file.
89835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89836         REPLACE_FCLOSE.
89837         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89838         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89839         REPLACE_FCLOSE.
89840         * modules/close (Depends-on): fclose.
89841         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89843 2008-10-11  Bruno Haible  <bruno@clisp.org>
89845         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89846         set errno and don't call _close.
89848 2008-10-10  Bruno Haible  <bruno@clisp.org>
89850         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89851         ACL, not afterwards. Fixes test failure on Cygwin.
89853 2008-10-09  Ben Pfaff  <blp@gnu.org>
89855         * build-aux/announce-gen: Fix gnulib version related part of usage
89856         message.  Die with a useful error message if no tarballs are
89857         found.
89859 2008-10-10  Jim Meyering  <meyering@redhat.com>
89861         bootstrap: use git's --depth=N option only if it's supported
89862         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89863         recognize the --depth option.  Reported by Pádraig Brady.
89865 2008-10-09  Bruno Haible  <bruno@clisp.org>
89867         New module 'ioctl'.
89868         * modules/ioctl: New file.
89869         * lib/sys_socket.in.h (ioctl): Remove declaration.
89870         * lib/winsock.c: Include <sys/ioctl.h>.
89871         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89872         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89873         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89874         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89875         * doc/posix-functions/ioctl.texi: Mention the new module.
89877 2008-10-09  Bruno Haible  <bruno@clisp.org>
89879         New module 'sys_ioctl'.
89880         * lib/sys_ioctl.in.h: New file.
89881         * m4/sys_ioctl_h.m4: New file.
89882         * modules/sys_ioctl: New file.
89883         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89885 2008-10-09  Bruno Haible  <bruno@clisp.org>
89887         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89888         * lib/winsock.c: Include <stdarg.h>.
89889         (rpl_ioctl): Change to second argument 'int' and then varargs.
89891 2008-10-09  Bruno Haible  <bruno@clisp.org>
89893         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89894         when the sys_socket module is present and the system has <winsock2.h>.
89896 2008-10-09  Bruno Haible  <bruno@clisp.org>
89898         * doc/posix-functions/close.texi: Mention module 'close' instead of
89899         module 'sys_socket'.
89901 2008-10-09  Bruno Haible  <bruno@clisp.org>
89903         * doc/glibc-headers/sys_ioctl.texi: New file.
89904         * doc/gnulib.texi: Include it.
89906 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89907             Bruno Haible  <bruno@clisp.org>
89909         Combine the two replacements of 'close'.
89910         * lib/sys_socket.in.h (close): Define to a reminder to include
89911         <unistd.h>.
89912         (_gl_close_fd_maybe_socket): New declaration.
89913         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89914         * lib/winsock.c (close): Remove undefinition.
89915         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89916         needed for the gnulib module 'close'.
89917         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89918         define to an error symbol or to a warning, if suitable.
89919         * lib/close.c: Include <sys/socket.h>.
89920         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89921         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89922         UNISTD_H_HAVE_WINSOCK2_H.
89923         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89925         UNISTD_H_HAVE_WINSOCK2_H.
89926         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89927         (configure.ac): Set a module indicator.
89928         (Makefile.am): Substitute GNULIB_CLOSE.
89929         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89930         * modules/poll-tests (Depends-on): Add close.
89931         * modules/select-tests (Depends-on): Likewise.
89933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89934             Bruno Haible  <bruno@clisp.org>
89936         New module 'close'.
89937         * modules/close: New file.
89938         * lib/unistd.in.h (close): Move declaration out of the
89939         FCHDIR_REPLACEMENT scope.
89940         (_gl_unregister_fd): New declaration.
89941         * lib/close.c: New file.
89942         * lib/fchdir.c (rpl_close): Remove function.
89943         * m4/close.m4: New file.
89944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89945         close.
89946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89947         REPLACE_CLOSE.
89948         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89949         REPLACE_CLOSE.
89950         * modules/fchdir (Depends-on): Add close.
89952 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89953             Bruno Haible  <bruno@clisp.org>
89955         * lib/fcntl.in.h (open): Simplify conditionals.
89956         (_gl_register_fd): New declaration.
89957         * lib/fchdir.c (rpl_open): Remove function.
89958         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89959         also.
89960         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89962         open.
89964 2008-10-09  Jim Meyering  <meyering@redhat.com>
89966         GNUmakefile: use the more name-space-friendly "_version"
89967         * top/GNUmakefile (_dummy): Update.
89968         (_version): Rename from "version".
89970 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89971             Bruno Haible  <bruno@clisp.org>
89973         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89974         rpl_close.
89975         (_gl_register_fd): New function, extracted from rpl_open.
89976         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89977         (rpl_open, rpl_opendir): Use _gl_register_fd.
89979 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89981         Fix organization of 'open' replacement.
89982         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89983         (gl_FUNC_OPEN): Use it.
89984         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89986 2008-10-08  Bruno Haible  <bruno@clisp.org>
89988         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89990 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89992         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89993         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89994         listen).
89996 2008-10-08  Eric Blake  <ebb9@byu.net>
89998         GNUmakefile: add 'make version' target
89999         * top/GNUmakefile (_curr-ver): Split version update rules...
90000         (version): ...into a target.
90002 2008-10-07  Bruno Haible  <bruno@clisp.org>
90004         Use a more portable replacement expression for -0.0L.
90005         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
90006         instead of -0.0L. Fix m4 quotation.
90008         * tests/test-signbit.c: Include <float.h>.
90009         (minus_zero): New variable.
90010         (test_signbitl): Use minus_zero instead of -zero.
90011         * modules/signbit-tests (Depends-on): Add float.
90013         * tests/test-ceill.c: Include <float.h>.
90014         (zero): Remove variable.
90015         (minus_zero): New variable.
90016         (main): Use minus_zero instead of -zero.
90017         * modules/ceill-tests (Depends-on): Add float.
90019         * tests/test-floorl.c: Include <float.h>.
90020         (zero): Remove variable.
90021         (minus_zero): New variable.
90022         (main): Use minus_zero instead of -zero.
90023         * modules/floorl-tests (Depends-on): Add float.
90025         * tests/test-roundl.c: Include <float.h>.
90026         (zero): Remove variable.
90027         (minus_zero): New variable.
90028         (main): Use minus_zero instead of -zero.
90029         * modules/roundl-tests (Depends-on): Add float.
90031         * tests/test-truncl.c: Include <float.h>.
90032         (zero): Remove variable.
90033         (minus_zero): New variable.
90034         (main): Use minus_zero instead of -zero.
90035         * modules/truncl-tests (Depends-on): Add float.
90037         * tests/test-frexpl.c (zero): Remove variable.
90038         (minus_zero): New variable.
90039         (main): Use minus_zero instead of -zero.
90040         * modules/frexpl-tests (Depends-on): Add float.
90042         * tests/test-isnan.c (zerol): Remove variable.
90043         (minus_zerol): New variable.
90044         (test_long_double): Use minus_zerol instead of -zerol.
90045         * modules/isnan-tests (Depends-on): Add float.
90047         * tests/test-isnanl.h (zero): Remove variable.
90048         (minus_zero): New variable.
90049         (main): Use minus_zero instead of -zero.
90050         * modules/isnanl-nolibm-tests (Depends-on): Add float.
90051         * modules/isnanl-tests (Depends-on): Add float.
90053         * tests/test-ldexpl.c (zero): Remove variable.
90054         (minus_zero): New variable.
90055         (main): Use minus_zero instead of -zero.
90056         * modules/ldexpl-tests (Depends-on): Add float.
90058         * tests/test-snprintf-posix.h (zerol): Remove variable.
90059         (minus_zerol): New variable.
90060         (test_function): Use minus_zerol instead of -zerol.
90061         * modules/snprintf-posix-tests (Depends-on): Add float.
90062         * modules/vsnprintf-posix-tests (Depends-on): Add float.
90064         * tests/test-sprintf-posix.h (zerol): Remove variable.
90065         (minus_zerol): New variable.
90066         (test_function): Use minus_zerol instead of -zerol.
90067         * modules/sprintf-posix-tests (Depends-on): Add float.
90068         * modules/vsprintf-posix-tests (Depends-on): Add float.
90070         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
90071         (minus_zerol): New variable.
90072         (test_function): Use minus_zerol instead of -zerol.
90073         * modules/vasnprintf-posix-tests (Depends-on): Add float.
90075         * tests/test-vasprintf-posix.c (zerol): Remove variable.
90076         (minus_zerol): New variable.
90077         (test_function): Use minus_zerol instead of -zerol.
90078         * modules/vasprintf-posix-tests (Depends-on): Add float.
90080 2008-10-07  Simon Josefsson  <simon@josefsson.org>
90082         * MODULES.html.sh (Support for building documentation): Mention
90083         pmccabe2html.  Sort entries.
90085         Add pmccabe2html module, from gnupdf.
90086         * build-aux/pmccabe.css: New file.
90087         * build-aux/pmccabe2html: New file.
90088         * m4/pmccabe2html.m4: New file.
90089         * modules/pmccabe2html: New file.
90091 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
90093         flock: new module
90094         * MODULES.html.sh: Add to list of modules.
90095         * lib/flock.c: flock implementation for Windows and Unix systems
90096         which have fcntl.
90097         * doc/glibc-functions/flock.texi: Update documentation.
90098         * lib/sys_file.in.h: <sys/file.h> header file.
90099         * m4/flock.m4: M4 macros.
90100         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
90101         * modules/flock: flock module.
90102         * modules/flock-tests: flock tests module.
90103         * modules/sys_file: sys/file.h module.
90104         * tests/test-flock.c: test suite for flock.
90106 2008-10-06  Jim Meyering  <meyering@redhat.com>
90108         bootstrap: check for LT_INIT more portably still ;-)
90109         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
90110         Spotted by Bruno Haible.
90112 2008-10-06  Eric Blake  <ebb9@byu.net>
90114         test-signbit: avoid tripping Irix cc bug on -0.0L
90115         * tests/test-signbit.c (minus_zerol): Delete, and replace with
90116         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
90117         entire testsuite consistent and avoids an Irix 6.2 bug.
90119 2008-10-05  Bruno Haible  <bruno@clisp.org>
90120             Jim Meyering  <jim@meyering.net>
90122         Add an option for ignoring EPIPE during close_stdout.
90123         * lib/closeout.h: Include <stdbool.h>.
90124         (close_stdout_set_ignore_EPIPE): New declaration.
90125         * lib/closeout.c: Include <stdbool.h>.
90126         (ignore_EPIPE): New variable.
90127         (close_stdout_set_ignore_EPIPE): New function.
90128         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
90129         * lib/close-stream.c (close_stream): Mention the possible EPIPE
90130         failure.
90131         * modules/closeout (Depends-on): Add stdbool.
90133 2008-10-05  Bruno Haible  <bruno@clisp.org>
90135         * modules/accept: New file.
90136         * modules/bind: New file.
90137         * modules/connect: New file.
90138         * modules/getpeername: New file.
90139         * modules/getsockname: New file.
90140         * modules/getsockopt: New file.
90141         * modules/listen: New file.
90142         * modules/recv: New file.
90143         * modules/recvfrom: New file.
90144         * modules/send: New file.
90145         * modules/sendto: New file.
90146         * modules/setsockopt: New file.
90147         * modules/socket: New file.
90148         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
90149         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
90150         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
90151         the particular module is requested. Add a link warning when the
90152         particular module is not requested.
90153         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
90154         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
90155         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
90156         the particular module is requested.
90157         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
90158         gl_SYS_SOCKET_H_DEFAULTS): New macros.
90159         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
90160         * modules/sys_socket (Depends-on): Add link-warning.
90161         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
90162         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
90163         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
90164         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
90165         GL_LINK_WARNING.
90166         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
90167         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
90168         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
90169         * doc/posix-functions/getpeername.texi: Mention the new module
90170         'getpeername'.
90171         * doc/posix-functions/getsockname.texi: Mention the new module
90172         'getsockname'.
90173         * doc/posix-functions/getsockopt.texi: Mention the new module
90174         'getsockopt'.
90175         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
90176         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
90177         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
90178         * doc/posix-functions/send.texi: Mention the new module 'send'.
90179         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
90180         * doc/posix-functions/setsockopt.texi: Mention the new module
90181         'setsockopt'.
90182         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
90183         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
90184         listen, connect, accept.
90185         * modules/select-tests (Depends-on): Likewise.
90187 2008-10-05  Bruno Haible  <bruno@clisp.org>
90189         * lib/winsock.c (strerror): Remove unused #undef.
90190         (rpl_close): Remove unused local variable.
90192         * modules/sys_socket (Depends-on); Add errno.
90194 2008-10-05  Bruno Haible  <bruno@clisp.org>
90196         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
90197         (select): Add a link warning when the 'select' module is not used.
90198         * modules/sys_select (Depends-on): Add link-warning.
90199         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
90200         Suggested by Paolo Bonzini.
90202 2008-10-05  Jim Meyering  <meyering@redhat.com>
90204         bootstrap: check for LT_INIT more portably
90205         * build-aux/bootstrap: Avoid using grep -E, since it's not
90206         portable enough.  Suggestion from Bruno Haible.
90208 2008-10-05  Bruno Haible  <bruno@clisp.org>
90210         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
90211         as being fixed by gnulib.
90213 2008-10-05  Bruno Haible  <bruno@clisp.org>
90215         * modules/select-tests: New file, mostly copied from
90216         modules/sys_select-tests.
90217         * tests/test-select.c: New file, mostly copied from
90218         tests/test-sys_select.c.
90219         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
90220         * modules/sys_select-tests (Depends-on): Remove all dependencies.
90221         (Makefile.am): Remove test_sys_select_LDADD.
90223         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
90224         to an undefined symbol, for an error message.
90225         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
90226         (gl_SYS_SELECT_H_DEFAULTS): New macro.
90227         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
90228         winsock-select.c here.
90229         * modules/sys_select (Files): Remove lib/winsock-select.c.
90230         (Depends-on): Remove alloca.
90231         (Makefile.am): Substitute GNULIB_SELECT.
90232         * modules/select: New file.
90233         * doc/posix-functions/select.texi: Update.
90235 2008-10-05  Bruno Haible  <bruno@clisp.org>
90237         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
90238         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
90239         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
90240         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
90241         getdtablesize.
90242         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
90243         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
90245 2008-10-05  Bruno Haible  <bruno@clisp.org>
90247         * modules/getdtablesize-tests: New file.
90248         * tests/test-getdtablesize.c: New file.
90250         New module 'getdtablesize'.
90251         * lib/unistd.in.h (getdtablesize): New declaration.
90252         * lib/getdtablesize.c: New file.
90253         * m4/getdtablesize.m4: New file.
90254         * modules/getdtablesize: New file.
90255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90256         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90257         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90258         HAVE_GETDTABLESIZE.
90259         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90261 2008-10-05  Bruno Haible  <bruno@clisp.org>
90263         * modules/sched (Makefile.am): Fix typo.
90264         Reported by Simon Josefsson.
90266 2008-10-05  Jim Meyering  <meyering@redhat.com>
90268         bootstrap: check for LT_INIT, too
90269         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90270         are deprecated.  Suggestion from Ralf Wildenhues.
90272 2008-10-05  Bruno Haible  <bruno@clisp.org>
90274         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90275         overriding them by ours.
90276         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90278 2008-10-05  Jim Meyering  <meyering@redhat.com>
90280         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90281         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90282         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90284 2008-10-04  Bruno Haible  <bruno@clisp.org>
90286         * modules/dup2 (License): Change to LGPLv2+.
90287         * modules/sleep (License): Likewise.
90288         * modules/perror (License): Likewise.
90289         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90290         Blake.
90291         * modules/signal (License): Likewise.
90292         * modules/sigprocmask (License): Likewise.
90293         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90294         Meyering.
90296 2008-10-04  Bruno Haible  <bruno@clisp.org>
90298         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90299         Reported by Rainer Tammer <tammer@tammer.net>.
90301 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90302             Bruno Haible  <bruno@clisp.org>
90304         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90305         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90306         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90308 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90310         filevercmp: new module
90311         * lib/filevercmp.h: New function filevercmp comparing version strings.
90312         * lib/filevercmp.c: Implementation of filevercmp function.
90313         * modules/filevercmp: Module metadata.
90314         * tests/test-filevercmp.c: Unit test for new module.
90315         * modules/filevercmp-tests: Unit test metadata.
90316         * MODULES.html.sh: Add filevercmp module.
90318 2008-10-03  Bruno Haible  <bruno@clisp.org>
90320         * lib/c-ctype.h: Add comment.
90321         Reported by Jim Meyering.
90323 2008-10-02  Bruno Haible  <bruno@clisp.org>
90325         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90327 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90329         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90330         name of bootstrap.conf accordingly.
90332 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90334         * build-aux/bootstrap: Install git-merge-changelog configuration
90335         items into .gitconfig if needed.
90337 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90339         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90340         git repository, and initialize/update it accordingly.
90342 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90344         * modules/fsync-tests: New file.
90345         * tests/test-fsync.c: New file.
90347         New module 'fsync'.
90348         * lib/fsync.c: New file.
90349         * m4/fsync.m4: New file.
90350         * modules/fsync: New file.
90351         * lib/unistd.in.h (fsync): New declaration.
90352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90353         GNULIB_FSYNC and HAVE_FSYNC.
90354         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90355         * MODULES.html.sh (posix_functions): Add fsync.
90356         * doc/posix-functions/fsync.texi: Mention the new module.
90358 2008-10-02  Jim Meyering  <meyering@redhat.com>
90360         fts.c: sync with similar code from coreutils' remove.c
90361         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90362         Guard also with "#if defined __linux__", since for now at least,
90363         this code is Linux-kernel-specific.
90365 2008-10-02  Jim Meyering  <meyering@redhat.com>
90367         fts: bug fixes
90368         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90369         Include <sys/vfs.h>, not <sys/statfs.h>.
90371         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90372         Include <sys/vfs.h>, not <sys/statfs.h>.
90374 2008-10-01  Bruno Haible  <bruno@clisp.org>
90376         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90378         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90379         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90380         * doc/posix-functions/posix_spawnp.texi: Likewise.
90381         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90382         whether posix_spawn actually works.
90383         * m4/pipe.m4 (gl_PIPE): Likewise.
90384         * modules/execute (Files): Add m4/posix_spawn.m4.
90385         * modules/pipe (Files): Add m4/posix_spawn.m4.
90386         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90388 2008-10-01  Jim Meyering  <meyering@redhat.com>
90390         remove trailing spaces
90391         * NEWS: Likewise.
90392         * lib/poll.c (poll): Likewise.
90393         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90394         * lib/winsock.c (rpl_close): Likewise.
90395         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90396         * modules/yield: Likewise.
90397         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90398         * tests/test-sys_select.c (connect_to_socket): Likewise.
90400         fts.c: adjust a new interface to be more generally useful
90401         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90402         (fts_build): Adjust caller.
90404 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90406         * modules/cond-tests: New file.
90407         * tests/test-cond.c: New file.
90409 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90410             Bruno Haible  <bruno@clisp.org>
90412         * modules/cond (Dependencies): Add errno, time.
90413         * lib/glthread/cond.h: Include <time.h>.
90414         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90415         across platforms.
90417 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90418             Bruno Haible  <bruno@clisp.org>
90420         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90422 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90423             Bruno Haible  <bruno@clisp.org>
90425         * modules/tls-tests (Depends-on): Add thread, yield.
90426         (configure.ac): Remove all checks.
90427         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90428         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90429         gl_thread_self): Remove definitions. Include glthread/thread.h and
90430         glthread/yield.h instead.
90431         (test_tls): Pass an additional NULL argument to gl_thread_join.
90433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90434             Bruno Haible  <bruno@clisp.org>
90436         * modules/lock-tests (Depends-on): Add thread, yield.
90437         (configure.ac): Remove all checks.
90438         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90439         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90440         gl_thread_self): Remove definitions. Include glthread/thread.h and
90441         glthread/yield.h instead.
90442         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90443         additional NULL argument to gl_thread_join.
90445 2008-09-30  Bruno Haible  <bruno@clisp.org>
90447         Fix the Win32 implementation of the 'thread' module.
90448         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90449         pointer type.
90450         (gl_thread_self): Invoke gl_thread_self_func.
90451         (gl_thread_self_func): New declaration.
90452         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90453         (do_init_self_key, init_self_key): New functions.
90454         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90455         Remove some fields.
90456         (running_threads, running_lock): Remove variables.
90457         (get_current_thread_handle): New function.
90458         (gl_thread_self_func, wrapper_func, glthread_create_func,
90459         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90460         simplified.
90462 2008-09-30  Bruno Haible  <bruno@clisp.org>
90464         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90465         files.
90467 2008-09-30  Jim Meyering  <meyering@redhat.com>
90469         fts.m4: correct the test for statfs.f_type
90470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90471         when checking for statfs.f_type.
90473 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90475         tests: avoid some compiler warnings
90476         * tests/test-memchr.c (main): Pass NULL indirectly.
90477         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90479 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90481         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90482         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90483         exactly specified dayshifts.
90484         (dayshift): New rule.
90485         (rel): Add dayshift.
90486         (relative_time_table) [tomorrow, yesterday, today, now]:
90487         Use tDAY_SHIFT in place of tDAY_UNIT.
90488         * tests/test-getdate.c: Add tests for now-disallowed countable
90489         dayshifts, e.g., "4 yesterday ago".
90491 2008-09-29  Bruno Haible  <bruno@clisp.org>
90493         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90494         * tests/test-posix_spawn1.in.sh: Renamed from
90495         tests/test-posix_spawn.in.sh.
90496         * tests/test-posix_spawn2.c: New file.
90497         * tests/test-posix_spawn2.in.sh: New file.
90498         * modules/posix_spawnp-tests (Files): Update.
90499         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90501 2008-09-29  Bruno Haible  <bruno@clisp.org>
90503         Propagate effects of putenv/setenv/unsetenv to child processes.
90504         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90505         * lib/pipe.c (create_pipe): Likewise.
90507 2008-09-29  Bruno Haible  <bruno@clisp.org>
90509         Enable use of shell scripts as executables in mingw.
90510         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90511         run the program as a shell script.
90512         * lib/pipe.c (create_pipe): Likewise.
90513         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90514         resulting array.
90516 2008-09-29  Eric Blake  <ebb9@byu.net>
90518         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90520 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90522         * doc/posix-functions/accept.texi: Update mingw problems.
90523         * doc/posix-functions/bind.texi: Update mingw problems.
90524         * doc/posix-functions/close.texi: Update mingw problems.
90525         * doc/posix-functions/connect.texi: Update mingw problems.
90526         * doc/posix-functions/getpeername.texi: Update mingw problems.
90527         * doc/posix-functions/getsockname.texi: Update mingw problems.
90528         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90529         * doc/posix-functions/ioctl.texi: Update mingw problems.
90530         * doc/posix-functions/listen.texi: Update mingw problems.
90531         * doc/posix-functions/recv.texi: Update mingw problems.
90532         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90533         * doc/posix-functions/select.texi: Update mingw problems.
90534         * doc/posix-functions/send.texi: Update mingw problems.
90535         * doc/posix-functions/sendto.texi: Update mingw problems.
90536         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90537         * doc/posix-functions/socket.texi: Update mingw problems.
90539 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90540             Bruno Haible  <bruno@clisp.org>
90542         * lib/sys_select.in.h: Include sys/time.h.
90543         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90544         * modules/sys_select: Depend on sys_time.
90545         * tests/test-sys_select.c: Test that sys/select.h defines struct
90546         timeval fully.
90548 2008-09-29  Bruno Haible  <bruno@clisp.org>
90550         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90551         * lib/sys_select.in.h: Likewise.
90553 2008-09-29  Bruno Haible  <bruno@clisp.org>
90555         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90557 2008-09-29  Bruno Haible  <bruno@clisp.org>
90559         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90560         Set LIBSOCKET instead of augmenting LIBS.
90561         * modules/sockets (Link): New section.
90562         * modules/sockets-tests (test_sockets_LDADD): New variable.
90563         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90564         * modules/poll-tests (test_poll_LDADD): New variable.
90565         * NEWS: Document the change.
90567 2008-09-29  Bruno Haible  <bruno@clisp.org>
90569         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90570         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90571         ARPA_INET_H directly.
90572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90574 2008-09-28  Bruno Haible  <bruno@clisp.org>
90576         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90577         from gl_HEADER_SYS_SOCKET.
90578         (gl_HEADER_SYS_SOCKET): Invoke it.
90579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90581 2008-09-28  Bruno Haible  <bruno@clisp.org>
90583         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90584         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90585         Needed on OSF/1 4.0.
90587 2008-09-28  Bruno Haible  <bruno@clisp.org>
90589         Override open more carefully.
90590         * lib/open.c (orig_open): New function.
90591         (rpl_open): Use orig_open instead of open.
90592         * lib/fcntl.in.h: Add special invocation convention.
90593         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90594         (gl_FUNC_OPEN): Invoke it.
90596         Override freopen more carefully.
90597         * lib/freopen.c (orig_freopen): New function.
90598         (rpl_freopen): Use orig_freopen instead of freopen.
90599         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90600         (gl_FUNC_FREOPEN): Invoke it.
90602         Override fopen more carefully.
90603         * lib/fopen.c (orig_fopen): New function.
90604         (rpl_fopen): Use orig_fopen instead of fopen.
90605         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90606         (gl_FUNC_FOPEN): Invoke it.
90607         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90609 2008-09-28  Bruno Haible  <bruno@clisp.org>
90611         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90612         SIGPIPE.
90614 2008-09-28  Bruno Haible  <bruno@clisp.org>
90616         * tests/test-sigaction.c (handler, main): Disable the check whether
90617         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90618         glibc systems with LinuxThreads.
90620 2008-09-28  Bruno Haible  <bruno@clisp.org>
90622         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90624         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90625         with AIX xlc.
90626         * lib/fcntl.in.h (open): Likewise.
90627         Reported by Rainer Tammer <tammer@tammer.net>.
90629 2008-09-28  Bruno Haible  <bruno@clisp.org>
90631         * modules/posix_spawnp-tests: New file.
90632         * tests/test-posix_spawn.c: New file.
90633         * tests/test-posix_spawn.in.sh: New file.
90635         New module 'posix_spawnp'.
90636         * modules/posix_spawnp: New file.
90637         * lib/spawnp.c: New file, from GNU libc with modifications.
90638         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90640         New module 'posix_spawn'.
90641         * modules/posix_spawn: New file.
90642         * lib/spawn.c: New file, from GNU libc with modifications.
90643         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90645         New module 'posix_spawnattr_destroy'.
90646         * modules/posix_spawnattr_destroy: New file.
90647         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90648         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90649         module.
90651         New module 'posix_spawnattr_setsigmask'.
90652         * modules/posix_spawnattr_setsigmask: New file.
90653         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90654         modifications.
90655         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90656         new module.
90658         New module 'posix_spawnattr_getsigmask'.
90659         * modules/posix_spawnattr_getsigmask: New file.
90660         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90661         modifications.
90662         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90663         new module.
90665         New module 'posix_spawnattr_setsigdefault'.
90666         * modules/posix_spawnattr_setsigdefault: New file.
90667         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90668         modifications.
90669         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90670         new module.
90672         New module 'posix_spawnattr_getsigdefault'.
90673         * modules/posix_spawnattr_getsigdefault: New file.
90674         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90675         modifications.
90676         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90677         new module.
90679         New module 'posix_spawnattr_setschedpolicy'.
90680         * modules/posix_spawnattr_setschedpolicy: New file.
90681         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90682         modifications.
90683         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90684         new module.
90686         New module 'posix_spawnattr_getschedpolicy'.
90687         * modules/posix_spawnattr_getschedpolicy: New file.
90688         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90689         modifications.
90690         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90691         new module.
90693         New module 'posix_spawnattr_setschedparam'.
90694         * modules/posix_spawnattr_setschedparam: New file.
90695         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90696         modifications.
90697         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90698         new module.
90700         New module 'posix_spawnattr_getschedparam'.
90701         * modules/posix_spawnattr_getschedparam: New file.
90702         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90703         modifications.
90704         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90705         new module.
90707         New module 'posix_spawnattr_setpgroup'.
90708         * modules/posix_spawnattr_setpgroup: New file.
90709         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90710         modifications.
90711         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90712         module.
90714         New module 'posix_spawnattr_getpgroup'.
90715         * modules/posix_spawnattr_getpgroup: New file.
90716         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90717         modifications.
90718         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90719         module.
90721         New module 'posix_spawnattr_setflags'.
90722         * modules/posix_spawnattr_setflags: New file.
90723         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90724         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90725         module.
90727         New module 'posix_spawnattr_getflags'.
90728         * modules/posix_spawnattr_getflags: New file.
90729         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90730         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90731         module.
90733         New module 'posix_spawnattr_init'.
90734         * modules/posix_spawnattr_init: New file.
90735         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90736         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90737         module.
90739         New module 'posix_spawn_file_actions_destroy'.
90740         * modules/posix_spawn_file_actions_destroy: New file.
90741         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90742         modifications.
90743         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90744         the new module.
90746         New module 'posix_spawn_file_actions_addopen'.
90747         * modules/posix_spawn_file_actions_addopen: New file.
90748         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90749         modifications.
90750         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90751         the new module.
90753         New module 'posix_spawn_file_actions_adddup2'.
90754         * modules/posix_spawn_file_actions_adddup2: New file.
90755         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90756         modifications.
90757         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90758         the new module.
90760         New module 'posix_spawn_file_actions_addclose'.
90761         * modules/posix_spawn_file_actions_addclose: New file.
90762         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90763         modifications.
90764         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90765         the new module.
90767         New module 'posix_spawn_file_actions_init'.
90768         * modules/posix_spawn_file_actions_init: New file.
90769         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90770         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90771         new module.
90773         New module 'posix_spawn-internal'.
90774         * modules/posix_spawn-internal: New file.
90775         * lib/spawn_int.h: New file, from GNU libc with modifications.
90776         * lib/spawni.c: New file, from GNU libc with modifications.
90777         * m4/posix_spawn.m4: New file.
90779         New module 'spawn'.
90780         * modules/spawn: New file.
90781         * lib/spawn.in.h: New file, from GNU libc with modifications.
90782         * m4/spawn_h.m4: New file.
90783         * doc/posix-headers/spawn.texi: Mention the new module.
90785 2008-09-28  Bruno Haible  <bruno@clisp.org>
90787         * modules/sched-tests: New file.
90788         * tests/test-sched.c: New file.
90790         New module 'sched'.
90791         * modules/sched: New file.
90792         * lib/sched.in.h: New file.
90793         * m4/sched_h.m4: New file.
90794         * doc/posix-headers/sched.texi: Mention the new module.
90796 2008-09-27  Eric Blake  <ebb9@byu.net>
90798         Fix previous patch, and tweak references to $0.
90799         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90800         (func_version, func_gnulib_dir): Don't call this program
90801         gnulib-tool.
90802         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90803         with using $0 in function.
90804         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90805         (func_fatal_error): Reuse the name the user invoked us with.
90807 2008-09-27  Bruno Haible  <bruno@clisp.org>
90809         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90810         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90811         (gl_ICONV_H): Not here.
90812         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90813         instead of assigning ICONV_H directly.
90815         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90817         WCHAR_H directly.
90819 2008-09-27  Bruno Haible  <bruno@clisp.org>
90821         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90822         * modules/arpa_inet (Depends-on): Add link-warning.
90823         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90824         * modules/unistd (Makefile.am): Likewise.
90826 2008-09-26  Bruno Haible  <bruno@clisp.org>
90828         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90829         variables.
90830         (func_version): Essentially copied from gnulib-tool.
90831         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90832         func_readlink): Copied from gnulib-tool.
90834 2008-09-26  Bruno Haible  <bruno@clisp.org>
90836         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90837         invoking git-version-gen.
90839 2008-09-26  Bruno Haible  <bruno@clisp.org>
90841         * posix-modules: Update to directory names changed on 2008-01-19.
90842         Remove commas in output before splitting into words. No more need to
90843         avoid 'ftruncate' since 2007-02-19.
90845 2008-09-26  Bruno Haible  <bruno@clisp.org>
90847         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90849 2008-09-26  Bruno Haible  <bruno@clisp.org>
90851         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90852         * modules/fwriteerror (Depends-on): Add errno.
90854 2008-09-26  Bruno Haible  <bruno@clisp.org>
90856         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90857         * tests/test-vc-list-files-cvs.sh: Likewise.
90859 2008-09-26  Bruno Haible  <bruno@clisp.org>
90861         * doc/posix-headers/sys_resource.texi: Reorder items.
90863 2008-09-26  Jim Meyering  <meyering@redhat.com>
90865         fts: tweak inode comparison function
90866         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90867         inode numbers, as documented.
90869         fts: sort dirent entries on inode number before traversing
90870         This avoids a quadratic, seek-related performance penalty when
90871         operating on a directory containing many entries (measurable at 10k;
90872         3.5 hours at 2 million entries with a cold cache) on certain types
90873         of file systems, including ext3 and ext4, but not tmpfs.
90874         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90875         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90876         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90877         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90878         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90879         (fts_build): Set the stat.st_ino member from D_INO.
90880         If it is likely to be useful, sort dirent entries on inode number.
90882         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90883         and the struct statfs.f_type member.
90884         * modules/fts (Depends-on): Add d-ino.
90886 2008-09-26  Bruno Haible  <bruno@clisp.org>
90888         * modules/sigpipe-die (Depends-on): Add sigpipe.
90890         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90891         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90892         and GNULIB_STDIO_H_SIGPIPE are set.
90893         * lib/stdio-write.c: New file.
90894         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90895         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90896         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90897         REPLACE_STDIO_WRITE_FUNCS.
90898         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90899         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90900         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90901         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90902         * modules/stdio (Files): Add lib/stdio-write.c.
90903         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90904         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90905         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90906         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90907         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90908         REPLACE_FPRINTF_POSIX.
90909         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90910         REPLACE_PRINTF_POSIX.
90911         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90912         REPLACE_VFPRINTF_POSIX.
90913         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90914         REPLACE_VPRINTF_POSIX.
90915         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90916         SIGPIPE issue.
90917         * doc/posix-functions/fputc.texi: Likewise.
90918         * doc/posix-functions/fputs.texi: Likewise.
90919         * doc/posix-functions/fwrite.texi: Likewise.
90920         * doc/posix-functions/printf.texi: Likewise.
90921         * doc/posix-functions/putc.texi: Likewise.
90922         * doc/posix-functions/putchar.texi: Likewise.
90923         * doc/posix-functions/puts.texi: Likewise.
90924         * doc/posix-functions/vfprintf.texi: Likewise.
90925         * doc/posix-functions/vprintf.texi: Likewise.
90927         * modules/safe-write (Depends-on): Add write.
90929         * modules/sigpipe-tests: New file.
90930         * tests/test-sigpipe.c: New file.
90931         * tests/test-sigpipe.sh: New file.
90933         * modules/write: New file.
90934         * lib/unistd.in.h: Include <sys/types.h>.
90935         (write): New declaration.
90936         * lib/write.c: New file.
90937         * m4/write.m4: New file.
90938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90939         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90940         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90941         GNULIB_WRITE, REPLACE_WRITE.
90942         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90943         and the SIGPIPE issue.
90945         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90946         (raise): New declaration.
90947         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90948         (ext_signal): New function.
90949         (rpl_raise): New function.
90950         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90951         GNULIB_SIGNAL_H_SIGPIPE.
90952         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90953         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90955         * modules/sigpipe: New file.
90956         * m4/sigpipe.m4: New file.
90958 2008-09-25  Derek Price  <derek@ximbiot.com>
90959             Bruno Haible  <bruno@clisp.org>
90961         * gnulib-tool (func_import): Report all license incompatibilities, not
90962         just the first one.
90964 2008-09-25  Bruno Haible  <bruno@clisp.org>
90966         * gnulib-tool (func_import): When computing the edits, consider not
90967         only the Makefile.ams that exist but also those that will be generated.
90969 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90971         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90972         fixes gnulib-tool --test warning about duplicate dependency.
90974 2008-09-25  Bruno Haible  <bruno@clisp.org>
90976         * gnulib-tool: Don't ask the user to perform edits in the generated
90977         Makefile.ams.
90978         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90979         apply to the Makefile.am being generated.
90980         (func_emit_tests_Makefile_am): Execute edits that apply to the
90981         Makefile.am being generated.
90982         (func_import): Setup list of Makefile.am edits before emitting the
90983         Makefile.ams, not at the end.
90984         (func_create_testdir): Update.
90985         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90987 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90989         * gnulib-tool (func_import): Store the --tests-base option in the
90990         comment in gnulib-cache.m4.
90992 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90994         * NEWS: Document increased portability that sys_select now provides.
90996         * lib/sys_select.in.h: Install select wrapper.
90997         * lib/sys_socket.in.h: Use more descriptive name when there is no
90998         select wrapper.
90999         * lib/winsock-select.c: New.
91000         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
91001         Require gl_HEADER_SYS_SOCKET.
91002         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
91003         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
91004         * tests/test-sys_select.c: Add functional tests.
91006 2008-09-24  Eric Blake  <ebb9@byu.net>
91008         open, fopen: close fd leak in last patch
91009         * lib/open.c (rpl_open): Close fd before returning error.
91010         * lib/fopen.c (rpl_fopen): Close fd before returning error.
91011         * doc/posix-functions/open.texi (open): Document that Irix also
91012         has the bug.
91013         * doc/posix-functions/fopen.texi (fopen): Likewise.
91014         Reported by Paolo Bonzini.
91016 2008-09-24  Bruno Haible  <bruno@clisp.org>
91018         Ensure that a filename ending in a slash cannot be used to access a
91019         non-directory.
91020         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
91021         to check whether it's really a directory.
91022         * lib/fopen.c: Include fcntl.h, unistd.h.
91023         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
91024         and fdopen().
91025         * modules/fopen (Depends-on): Add unistd.
91026         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
91027         * tests/test-fopen.c (main): Likewise.
91028         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
91029         * doc/posix-functions/fopen.texi: Likewise.
91030         Reported by Eric Blake.
91032 2008-09-23  Eric Blake  <ebb9@byu.net>
91034         c-stack: avoid compiler optimizations when provoking overflow
91035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
91036         recursion harder to optimize, to ensure a stack overflow occurs.
91037         * tests/test-c-stack.c (recurse): Likewise.
91038         Borrowed from libsigsegv.
91040         c-stack: work around Irix sigaltstack bug
91041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
91042         whether sigaltstack uses wrong end of stack_t (copied in part from
91043         libsigsegv).
91044         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
91045         Irix bug, without requiring an over-allocation.
91046         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
91047         bug.
91049         fopen: document mingw bug on directories
91050         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
91051         not allowing a stream visiting a directory, even though reading
91052         from such a stream is not portable.
91054 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91056         * lib/poll.c: Rewrite.
91057         * modules/poll: Depend on alloca.
91059 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91061         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
91062         instead define prototypes for a full set of wrappers.  Ensure
91063         that Cygwin does not use the compatibility code, which is only
91064         for MinGW.
91065         * lib/winsock.c: New.
91066         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
91067         * modules/sys_socket: Add lib/winsock.c.
91069         * modules/poll-tests: Add errno and perror.
91070         * tests/test-poll.c: Use ioctl, not ioctlsocket.
91072 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
91074         * tests/test-poll.c: Downgrade minimum needed Winsock version.
91076 2008-09-23  Bruno Haible  <bruno@clisp.org>
91078         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
91079         * doc/glibc-functions/*: Likewise.
91081 2008-09-23  Simon Josefsson  <simon@josefsson.org>
91083         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
91084         success.
91086 2008-09-22  Eric Blake  <ebb9@byu.net>
91087             Bruno Haible  <bruno@clisp.org>
91089         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
91090         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
91091         supply %A but mishandle pseudo-NaN.
91092         Reported by Simon Josefsson.
91094 2008-09-21  Bruno Haible  <bruno@clisp.org>
91096         * tests/test-lock.c (main): Tweak skip message.
91097         * tests/test-tls.c (main): Likewise.
91099 2008-09-21  Bruno Haible  <bruno@clisp.org>
91101         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
91102         whether 'struct sigaction' has sa_sigaction here...
91103         (gl_PREREQ_SIG_HANDLER_H): ... not here.
91104         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
91106 2008-09-21  Bruno Haible  <bruno@clisp.org>
91108         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
91109         section.
91110         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
91111         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
91112         the new section.
91113         (Support for obsolete systems lacking POSIX:2001): New section.
91114         (String handling <string.h>): Move strdup to the new section.
91115         Suggested by Simon Josefsson and Paolo Bonzini.
91117 2008-09-21  Bruno Haible  <bruno@clisp.org>
91119         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
91120         exponents in %e and %g results on 'long double'. Needed for mingw's
91121         improved *printf functions.
91122         * tests/test-vasprintf-posix.c (test_function): Likewise.
91123         * tests/test-snprintf-posix.h (test_function): Likewise.
91124         * tests/test-sprintf-posix.h (test_function): Likewise.
91125         Reported by Eric Blake.
91127 2008-09-21  Bruno Haible  <bruno@clisp.org>
91129         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
91130         * tests/test-sprintf-posix.h (test_function): Likewise.
91132 2008-09-21  Bruno Haible  <bruno@clisp.org>
91134         * modules/getpass (Depends-on): Add strdup-posix.
91136         New module 'strdup-posix'.
91137         * modules/strdup-posix: New file.
91138         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
91139         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
91140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
91141         REPLACE_STRDUP.
91142         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
91143         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
91144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91145         strdup-posix.
91147         * modules/strdup (Depends-on): Remove malloc-posix.
91149 2008-09-20  Bruno Haible  <bruno@clisp.org>
91151         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
91152         Wildenhues.
91154 2008-09-20  Bruno Haible  <bruno@clisp.org>
91156         Ensure that wint_t gets defined on IRIX 5.3.
91157         * lib/wchar.in.h (wint_t): Define if not defined by the system.
91158         * lib/wctype.in.h (wint_t): Likewise.
91159         (__wctype_wint_t): Remove type.
91160         (isw*): Use wint_t instead of __wctype_wint_t.
91161         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
91162         * modules/wchar (Files): Add m4/wint_t.m4.
91163         (Makefile.am): Substitute HAVE_WINT_T.
91164         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
91165         * tests/test-wctype.c: Check that wint_t is defined.
91166         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
91167         * doc/posix-headers/wctype.texi: Likewise.
91168         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
91170 2008-09-18  Bruno Haible  <bruno@clisp.org>
91172         * gnulib-tool (func_exit): Update comment.
91174 2008-09-18  Simon Josefsson  <simon@josefsson.org>
91176         * modules/getaddrinfo (Depends-on): Remove strdup, this module
91177         assumes strdup exists and does not depend on strdup to return
91178         ENOMEM on out of memory conditions.
91180 2008-09-18  Bruno Haible  <bruno@clisp.org>
91182         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
91183         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
91184         digits for the exponent.
91186 2008-09-18  Jim Meyering  <meyering@redhat.com>
91187             Bruno Haible  <bruno@clisp.org>
91189         * lib/vasnprintf.c (decimal_point_char): Define also if
91190         NEED_PRINTF_INFINITE_LONG_DOUBLE.
91192 2008-09-16  Bruno Haible  <bruno@clisp.org>
91193         and Eric Blake  <ebb9@byu.net>
91195         vasnprintf: support Irix 5.3
91196         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
91197         that mishandle long double infinity.
91198         Reported by Tom G. Christensen.
91200 2008-09-16  Bruno Haible  <bruno@clisp.org>
91202         * doc/glibc-functions/scandir.texi: Mention the function is missing on
91203         Solaris 9.
91204         * doc/glibc-functions/alphasort.texi: Likewise.
91205         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
91207 2008-09-16  Jim Meyering  <meyering@redhat.com>
91209         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
91210         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
91211         a umask modification leak out of a subshell.  Otherwise, the
91212         opensolaris /bin/sh would be accepted and thus cause unwarranted
91213         failures in the coreutils test suite.
91215 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
91217         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
91218         to succeed.
91220 2008-09-16  Jim Meyering  <meyering@redhat.com>
91222         avoid spurious test failure when library is built without ACL support
91223         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
91224         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
91225         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
91226         * tests/test-copy-acl.sh: Likewise.
91228 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91230         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
91231         based on character occurrence counts.
91233 2008-09-15  Eric Blake  <ebb9@byu.net>
91235         tests: avoid some compiler warnings
91236         * tests/test-memchr.c (main): Pass NULL indirectly.
91237         * tests/test-closein.c (main): Avoid unused variable.
91239 2008-09-15  Bruno Haible  <bruno@clisp.org>
91241         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
91242         are missing on OpenBSD 4.0 individually.
91243         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91245 2008-09-15  Bruno Haible  <bruno@clisp.org>
91247         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
91248         * doc/posix-functions/strerror.texi: Mention also Cygwin.
91249         * doc/posix-functions/perror.texi: Likewise.
91250         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
91251         is missing.
91252         Reported by Eric Blake.
91254         * lib/errno.in.h: Use replacement values >= 2000.
91255         Reported by Eric Blake.
91257 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91259         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91260         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91261         limit.
91262         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91263         compareseq was aborted.
91265 2008-09-14  Bruno Haible  <bruno@clisp.org>
91267         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91268         yvec_edit_count.
91269         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91270         (fstrcmp_bounded): Simplify result computation accordingly.
91272 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91274         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91275         (fstrcmp): Define in terms of fstrcmp_bounded.
91276         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91277         lower_bound argument.
91278         Return quickly if the result is certainly < lower_bound.
91279         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91281 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91283         * lib/diffseq.h (EARLY_ABORT): New macro.
91284         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91285         evaluates to true.
91287 2008-09-14  Bruno Haible  <bruno@clisp.org>
91289         * modules/perror-tests: New file.
91290         * tests/test-perror.sh: New file.
91291         * tests/test-perror.c: New file.
91293         New module 'perror'.
91294         * lib/stdio.in.h (perror): New declaration.
91295         * lib/perror.c: New file.
91296         * m4/perror.m4: New file.
91297         * modules/perror: New file.
91298         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91299         * doc/posix-functions/perror.texi: Mention the perror module.
91300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91301         REPLACE_PERROR.
91302         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91303         REPLACE_PERROR.
91305 2008-09-14  Bruno Haible  <bruno@clisp.org>
91307         * modules/stdio (Makefile.am): Reorder to match the order in
91308         lib/stdio.in.h.
91309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91311 2008-09-13  Bruno Haible  <bruno@clisp.org>
91313         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91315 2008-09-13  Bruno Haible  <bruno@clisp.org>
91317         Extend strerror to cover the added errno values.
91318         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91319         (rpl_strerror): Provide error messages for the added errno values and
91320         for the WSA* values.
91321         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91322         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91323         strerror.
91324         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91325         * modules/strerror (Depends-on): Add errno.
91326         * doc/posix-functions/strerror.texi: Document the change.
91327         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91328         and EOVERFLOW.
91330 2008-09-13  Bruno Haible  <bruno@clisp.org>
91332         * modules/EOVERFLOW: Remove file.
91333         * m4/eoverflow.m4: Remove file.
91334         * modules/EOVERFLOW-tests: Remove file.
91335         * tests/test-EOVERFLOW.c: Remove file.
91336         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91337         * modules/ftell (Depends-on): Likewise.
91338         * modules/getdelim (Depends-on): Likewise.
91339         * modules/getugroups (Depends-on): Likewise.
91340         * modules/poll (Depends-on): Likewise.
91341         * modules/snprintf (Depends-on): Likewise.
91342         * modules/sprintf-posix (Depends-on): Likewise.
91343         * modules/vasnprintf (Depends-on): Likewise.
91344         * modules/vasprintf (Depends-on): Likewise.
91345         * modules/vfprintf-posix (Depends-on): Likewise.
91346         * modules/vsnprintf (Depends-on): Likewise.
91347         * modules/vsprintf-posix (Depends-on): Likewise.
91348         * modules/xvasprintf (Depends-on): Likewise.
91349         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91350         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91351         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91352         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91353         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91354         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91355         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91356         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91357         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91358         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91359         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91360         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91361         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91362         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91363         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91364         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91365         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91366         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91367         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91368         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91369         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91370         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91371         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91372         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91373         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91374         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91375         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91376         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91377         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91378         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91379         * MODULES.html.sh: Remove EOVERFLOW.
91380         * NEWS: Mention the change.
91382 2008-09-13  Bruno Haible  <bruno@clisp.org>
91384         * modules/errno-tests: New file.
91385         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91387         * lib/errno.in.h: New file.
91388         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91389         * modules/errno: New file.
91390         * doc/posix-headers/errno.texi: Update documentation.
91391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91393 2008-09-13  Bruno Haible  <bruno@clisp.org>
91395         * tests/test-poll.c: Use #if for native Windows, rather than testing
91396         __MSVCRT__.
91398 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91399             Bruno Haible  <bruno@clisp.org>
91401         * lib/glob.c: Don't include <pwd.h> on native Windows.
91402         (WINDOWS32): New macro.
91403         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91405 2008-09-13  Bruno Haible  <bruno@clisp.org>
91407         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91408         (ETIMEDOUT): Remove macro.
91409         (glthread_cond_timedwait_multithreaded): New declaration.
91410         (glthread_cond_timedwait): Use it.
91411         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91412         (glthread_cond_timedwait_multithreaded): New function.
91414 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91416         * modules/poll-tests: Do not check for io.h.
91417         * tests/test-poll.c: Check for __MSVCRT__ instead.
91419 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91421         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91422         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91423         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91425 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91427         * modules/poll-tests: New.
91428         * tests/test-poll.c: New.
91430 2008-09-12  Eric Blake  <ebb9@byu.net>
91432         frexp: test for NetBSD failure on -0.0
91433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91434         not all, bugs from NetBSD 3.0 have been fixed.
91435         * doc/posix-functions/frexp.texi (frexp): Document bug.
91436         Reported by Thomas Klausner.
91438         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91439         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91440         literal -0.0.
91441         Reported by Jonathan C. Patschke <jp@centtech.com>.
91443 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91445         * lib/glthread/cond.h: Use dummy implementation also if
91446         USE_WIN32_THREADS.
91448 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91450         * modules/fnmatch-posix (License): Change to LGPLv2+.
91451         * modules/fnmatch-gnu (License): Likewise.
91453 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91455         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91457 2008-09-11  Jim Meyering  <meyering@redhat.com>
91459         * users.txt: Add gtk-vnc.
91461 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91463         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91464         rotate amounts.
91466         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91467         required for 16-bit and 8-bit rotates.
91468         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91469         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91470         UINT8_MAX instead of hard-coded constants.
91471         Suggested by Paul Eggert.
91473 2008-09-07  Bruno Haible  <bruno@clisp.org>
91475         * tests/test-striconveh.c (main): Check behaviour when converting from
91476         UTF-7.
91478         Make striconveh work better with stateful encodings.
91479         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91480         that iconv does not increment the inptr when returning -1/EINVAL.
91482 2008-09-07  Bruno Haible  <bruno@clisp.org>
91484         * build-aux/config.rpath: Update according to libtool-2.2.6.
91485         * build-aux/config.libpath: Likewise.
91487 2008-09-06  Bruno Haible  <bruno@clisp.org>
91489         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91490         * lib/freadptr.c (freadptr): Likewise.
91491         * lib/freadseek.c (freadptrinc): Likewise.
91492         Reported by Simon Josefsson.
91494 2008-09-06  Bruno Haible  <bruno@clisp.org>
91496         * modules/freadptr (License): Change to LGPLv2+.
91497         * modules/freadseek (License): Likewise.
91498         Suggested by Eric Blake.
91500         * modules/memchr2 (License): Change to LGPLv2+.
91501         Approved by Eric Blake.
91503 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91504             Bruno Haible  <bruno@clisp.org>
91506         Make gnulib-tool work with native 'sed' on AIX.
91507         * gnulib-tool (sed_noop): New variable.
91508         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91509         func_add_or_update, func_create_testdir): Use it to initialize sed
91510         script variables.
91511         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91513 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91514             Bruno Haible  <bruno@clisp.org>
91516         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91517         also works after #include directives.
91519 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91521         getdate.y: reject an out-of-range timezone value
91522         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91523         the range [-24...+24].  When specified with only one or two digits,
91524         * tests/test-getdate.c: Tests for the fix.
91525         * doc/getdate.texi: Document this change.
91527 2008-09-03  Bruno Haible  <bruno@clisp.org>
91529         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91531 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91533         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91534         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91535         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91536         Blake <ebb9@byu.net>.
91538         * tests/test-bitrotate.c: Add more test vectors.
91540 2008-09-02  Eric Blake  <ebb9@byu.net>
91542         vasnprintf-posix: handle large precision via %.*d
91543         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91544         when handling it ourselves.
91545         * tests/test-vasnprintf-posix.c (test_function): Add test.
91546         * tests/test-snprintf-posix.h (test_function): Likewise.
91547         * tests/test-sprintf-posix.h (test_function): Likewise.
91548         * tests/test-vasprintf-posix.c (test_function): Likewise.
91549         Reported by Alain Guibert.
91551 2008-09-01  Eric Blake  <ebb9@byu.net>
91553         c-stack: make configure-time check more robust
91554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91555         successful sigaction call.
91556         Reported by Tom G. Christensen.
91558 2008-09-01  Bruno Haible  <bruno@clisp.org>
91560         New module 'findprog-lgpl'.
91561         * modules/findprog-lgpl: New file.
91562         * lib/findprog-lgpl.c: New file.
91563         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91564         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91565         to decide whether to use strdup or xstrdup, concatenated_filename or
91566         xconcatenated_filename.
91568 2008-09-01  Bruno Haible  <bruno@clisp.org>
91570         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91571         'xconcat-filename' (GPL).
91572         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91573         (License): Change to LGPLv2+.
91574         * modules/xconcat-filename: New file.
91575         * lib/concat-filename.h (concatenated_filename): Change specification.
91576         (xconcatenated_filename): New declaration.
91577         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91578         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91579         memory situations.
91580         * lib/xconcat-filename.c: New file.
91581         * NEWS: Mention the change.
91582         * lib/findprog.c: Include concat-filename.h, not filename.h.
91583         (find_in_path): Use xconcatenated_filename instead of
91584         concatenated_filename.
91585         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91586         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91587         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91588         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91589         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91590         instead of concatenated_filename.
91591         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91592         (execute_java_class): Use xconcatenated_filename instead of
91593         concatenated_filename.
91594         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91595         * modules/javacomp (Depends-on): Likewise.
91596         * modules/javaexec (Depends-on): Likewise.
91598 2008-09-01  Bruno Haible  <bruno@clisp.org>
91600         Split module 'filename' into 'filename' and 'concat-filename'.
91601         * modules/filename: Keep only lib/filename.h.
91602         (License): Change to LGPLv2+.
91603         * modules/concat-filename: New file, extracted from modules/filename.
91604         * lib/filename.h (concatenated_filename): Remove declaration.
91605         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91606         * lib/concat-filename.c: Include concat-filename.h.
91607         * NEWS: Mention the change.
91609 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91611         * lib/bitrotate.h (rotl8, rotr8): Add.
91613         * modules/bitrotate (configure.ac): Need
91614         AC_REQUIRE([AC_C_INLINE]).
91615         (Description): Mention stdint.h.  Reported by Bruno Haible
91616         <bruno@clisp.org>.
91618         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91619         Paolo Bonzini <bonzini@gnu.org>.
91621 2008-08-31  Bruno Haible  <bruno@clisp.org>
91623         Assume Solaris specific bi-arch conventions on Solaris systems.
91624         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91625         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91626         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91627         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91628         like acl_libdirstem.
91629         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91630         acl_libdirstem.
91631         * NEWS: Mention the change.
91632         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91634 2008-08-31  Jim Meyering  <meyering@redhat.com>
91636         * lib/strftime.h: Add comments describing the two added arguments.
91638         remove duplicate #include directives
91639         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91640         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91642 2008-08-31  Bruno Haible  <bruno@clisp.org>
91644         New module 'sigpipe-die'.
91645         * modules/sigpipe-die: New file.
91646         * lib/sigpipe-die.h: New file.
91647         * lib/sigpipe-die.c: New file.
91648         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91650 2008-08-31  Bruno Haible  <bruno@clisp.org>
91652         Don't override previously installed signal handlers.
91653         * lib/fatal-signal.c (saved_sigactions): New variable.
91654         (uninstall_handlers): Reset the signal to the saved handler, not
91655         to SIG_DFL (except when ignored).
91656         (install_handlers): Save the previous handlers.
91658 2008-08-30  Bruno Haible  <bruno@clisp.org>
91660         * gnulib-tool (func_reset_sigpipe): New function.
91661         (func_get_automake_snippet, func_modules_transitive_closure,
91662         func_import): Invoke it before a join command that reads from stdin,
91663         to avoid "echo: write error: Broken pipe" error messages on stderr.
91664         Reported by Sam Steingold <sds@gnu.org>.
91666 2008-08-30  Bruno Haible  <bruno@clisp.org>
91668         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91669         Code copied from m4/open.m4.
91670         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91671         access and the filename ends in a slash. Code copied from lib/open.c.
91672         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91673         * tests/test-fopen.c (main): Check against bug with trailing slash.
91675 2008-08-29  Bruno Haible  <bruno@clisp.org>
91677         Avoid some "gcc -pedantic" warnings.
91678         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91679         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91680         * lib/dirent.in.h: Likewise.
91681         * lib/fcntl.in.h: Likewise.
91682         * lib/float.in.h: Likewise.
91683         * lib/iconv.in.h: Likewise.
91684         * lib/inttypes.in.h: Likewise.
91685         * lib/locale.in.h: Likewise.
91686         * lib/math.in.h: Likewise.
91687         * lib/netinet_in.in.h: Likewise.
91688         * lib/search.in.h: Likewise.
91689         * lib/signal.in.h: Likewise.
91690         * lib/stdarg.in.h: Likewise.
91691         * lib/stdint.in.h: Likewise.
91692         * lib/stdio.in.h: Likewise.
91693         * lib/stdlib.in.h: Likewise.
91694         * lib/string.in.h: Likewise.
91695         * lib/strings.in.h: Likewise.
91696         * lib/sys_select.in.h: Likewise.
91697         * lib/sys_socket.in.h: Likewise.
91698         * lib/sys_stat.in.h: Likewise.
91699         * lib/sys_time.in.h: Likewise.
91700         * lib/sysexits.in.h: Likewise.
91701         * lib/time.in.h: Likewise.
91702         * lib/unistd.in.h: Likewise.
91703         * lib/wchar.in.h: Likewise.
91704         * lib/wctype.in.h: Likewise.
91705         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91706         * modules/fchdir (Makefile.am): Likewise.
91707         * modules/fcntl (Makefile.am): Likewise.
91708         * modules/float (Makefile.am): Likewise.
91709         * modules/iconv_open (Makefile.am): Likewise.
91710         * modules/inttypes (Makefile.am): Likewise.
91711         * modules/locale (Makefile.am): Likewise.
91712         * modules/math (Makefile.am): Likewise.
91713         * modules/netinet_in (Makefile.am): Likewise.
91714         * modules/search (Makefile.am): Likewise.
91715         * modules/signal (Makefile.am): Likewise.
91716         * modules/stdarg (Makefile.am): Likewise.
91717         * modules/stdint (Makefile.am): Likewise.
91718         * modules/stdio (Makefile.am): Likewise.
91719         * modules/stdlib (Makefile.am): Likewise.
91720         * modules/string (Makefile.am): Likewise.
91721         * modules/strings (Makefile.am): Likewise.
91722         * modules/sys_select (Makefile.am): Likewise.
91723         * modules/sys_socket (Makefile.am): Likewise.
91724         * modules/sys_stat (Makefile.am): Likewise.
91725         * modules/sys_time (Makefile.am): Likewise.
91726         * modules/sysexits (Makefile.am): Likewise.
91727         * modules/time (Makefile.am): Likewise.
91728         * modules/unistd (Makefile.am): Likewise.
91729         * modules/wchar (Makefile.am): Likewise.
91730         * modules/wctype (Makefile.am): Likewise.
91731         Reported by Reuben Thomas <rrt@sc3d.org>.
91733 2008-08-29  Bruno Haible  <bruno@clisp.org>
91735         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91736         any more.
91738 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91740         * MODULES.html.sh (Misc): Add bitrotate.
91742         * modules/bitrotate: New file.
91744         * lib/bitrotate.h: New file.
91746         * modules/bitrotate-tests: New file.
91748         * tests/test-bitrotate.c: New file.
91750         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91751         on the bitrotate module.
91753         * lib/arctwo.c: Use new bitrotate module.
91755 2008-08-29  Jim Meyering  <meyering@redhat.com>
91757         bootstrap: merge changes from coreutils
91758         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91759         of copied files.  Remove a kludge, now that this is fixed.
91760         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91761         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91762         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91764 2008-08-29  Bruno Haible  <bruno@clisp.org>
91766         * MODULES.html.sh: Remove --cvs-urls option.
91768 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91770         maint.mk: adjust to file name change
91771         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91773 2008-08-28  Jim Meyering  <meyering@redhat.com>
91775         * modules/getndelim2 (License): Relicense to LGPLv2+.
91776         Approved by Richard Stallman for the version of 1995, and by
91777         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91779 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91781         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91782         dummy if one is not available.  Do not touch them if
91783         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91784         (getc_maybe_unlocked): New.
91785         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91787 2008-08-26  Eric Blake  <ebb9@byu.net>
91789         doc/INSTALL: resync from autoconf
91790         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91791         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91792         moving...
91793         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91794         * INSTALL: Regenerate.
91795         * INSTALL.ISO: New file.
91796         * INSTALL.UTF-8: Likewise.
91798 2008-08-26  Jim Meyering  <meyering@redhat.com>
91800         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91801         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91802         these definitions conditional, so that they may be overridden, too.
91804 2008-08-26  Bruno Haible  <bruno@clisp.org>
91806         Generate INSTALL file variants with prettier quotes.
91807         * doc/Makefile (INSTALL_PRELUDE): New macro.
91808         (INSTALL): Use it.
91809         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91811 2008-08-26  Bruno Haible  <bruno@clisp.org>
91813         Run makeinfo in an English locale.
91814         * doc/Makefile (MAKEINFO): New variable.
91816 2008-08-26  Bruno Haible  <bruno@clisp.org>
91818         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91819         Suggested by Eric Blake.
91821 2008-08-25  Bruno Haible  <bruno@clisp.org>
91823         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91825 2008-08-25  Eric Blake  <ebb9@byu.net>
91827         c-stack: test that stack overflow can be caught
91828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91829         that platform allows handling stack overflow; at least OS/2 EMX
91830         has sigaltstack, but crashes before transferring control to
91831         handler on stack overflow.
91832         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91833         check for HAVE_STACK_OVERFLOW_HANDLING.
91834         Reported by Elbert Pol.
91836 2008-08-25  Bruno Haible  <bruno@clisp.org>
91838         * doc/posix-functions/strftime.texi: Fix description of strftime
91839         module.
91841 2008-08-24  Bruno Haible  <bruno@clisp.org>
91843         * tests/uniwidth/test-uc_width2.c: New file.
91844         * tests/uniwidth/test-uc_width2.sh: New file.
91845         * modules/uniwidth/width-tests (Files): Add the new files.
91846         (TESTS): Add uniwidth/test-uc_width2.sh.
91847         (TESTS_ENVIRONMENT): New variable.
91848         (check_PROGRAMS): Add test-uc_width2.
91849         (test_uc_width2_SOURCES): New variable.
91851         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91852         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91853         not 0x00AB.
91854         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91856 2008-08-22  Eric Blake  <ebb9@byu.net>
91858         test-lock, test-tls: mention why a test is skipped
91859         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91860         skipped.
91861         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91863         count-one-bits: relax license
91864         * modules/count-one-bits (License): Relicense to LGPLv2+.
91865         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91867 2008-08-22  Andreas Schwab  <schwab@suse.de>
91869         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91870         Remove spurious space in assignment.
91872 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91874         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91875         Paul Eggert <eggert@CS.UCLA.EDU>.
91877 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91879         * modules/gettext: Add m4/threadlib.m4.
91881 2008-08-19  Eric Blake  <ebb9@byu.net>
91883         test-c-stack: fix compilation failure on FreeBSD 5.0
91884         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91885         headers before <sys/resource.h>.
91886         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91887         the bug.
91888         Reported by Nelson H. F. Beebe.
91890         strverscmp: migrate from "strverscmp.h" to <string.h>
91891         * modules/string (Makefile.am): Add new hooks.
91892         * modules/strverscmp (Files): Remove strverscmp.h.
91893         (Depends-on): Add string.
91894         (configure.ac): Add indicator.
91895         (Include): Mention new header.
91896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91897         defaults.
91898         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91899         results.
91900         * lib/strverscmp.h: Delete.
91901         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91902         * tests/test-strverscmp.c (includes): Adjust client.
91903         * lib/check-version.c (includes): Likewise.
91904         * NEWS: Document the change.
91906         strverscmp: add unit test
91907         * modules/strverscmp-tests: New file.
91908         * tests/test-strverscmp.c: Likewise.
91910 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91912         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91913         regarding Windows crypto stuff, from Mono.
91915 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91917         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91918         if present, for intel RND.  Return error on failures.
91920 2008-08-18  Ben Pfaff  <blp@gnu.org>
91922         gitlog-to-changelog: give better diagnostic for failed pipe-open
91923         * build-aux/gitlog-to-changelog: Improve error message: suggest
91924         that the version of Git may be too old.
91926 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91928         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91929         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91931 2008-08-18  Bruno Haible  <bruno@clisp.org>
91933         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91934         pthread_in_use().
91936 2008-08-18  Bruno Haible  <bruno@clisp.org>
91938         * lib/glthread/threadlib.c: Include <pthread.h>.
91940 2008-08-18  Bruno Haible  <bruno@clisp.org>
91942         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91943         glthread_recursive_lock_* macros.
91944         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91945         Fix syntax error.
91947 2008-08-18  Bruno Haible  <bruno@clisp.org>
91949         * lib/glthread/thread.c: Avoid forcing a context switch right after
91950         thread creation.
91952 2008-08-17  Bruno Haible  <bruno@clisp.org>
91954         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91955         * lib/glthread/thread.h: Provide Win32 specific implementation.
91956         * modules/thread (Files): Add lib/glthread/thread.c.
91957         (Depends-on): Add lock.
91958         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91960 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91962         New module 'yield'.
91963         * modules/yield: New file.
91964         * lib/glthread/yield.h: New file.
91965         * m4/yield.m4: New file.
91966         * MODULES.html.sh (Multithreading): Add yield.
91968 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91970         New module 'thread'.
91971         * modules/thread: New file.
91972         * lib/glthread/thread.h: New file.
91973         * m4/thread.m4: New file.
91974         * MODULES.html.sh (Multithreading): Add thread.
91976 2008-08-17  Bruno Haible  <bruno@clisp.org>
91978         * lib/glthread/lock.h: Include <stdlib.h> always.
91979         * lib/glthread/tls.h: Likewise.
91980         * lib/glthread/cond.h: Likewise.
91982 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91984         New module 'cond'.
91985         * modules/cond: New file.
91986         * lib/glthread/cond.h: New file.
91987         * lib/glthread/cond.c: New file.
91988         * m4/cond.m4: New file.
91989         * MODULES.html.sh (Multithreading): Add cond.
91991 2008-08-16  Eric Blake  <ebb9@byu.net>
91993         c-stack: fix regression on Irix 5.3 from 2008-06-21
91994         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91995         sa_sigaction...
91996         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91997         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91998         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91999         * modules/signal (Makefile.am): Use the value.
92000         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
92001         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
92002         * doc/posix-headers/signal.texi (signal.h): Document this
92003         portability issue.
92004         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
92005         Reported by Tom G. Christensen.
92007 2008-08-17  Bruno Haible  <bruno@clisp.org>
92009         New module 'threadlib'.
92010         * modules/threadlib: New file.
92011         * lib/glthread/threadlib.c: New file, extracted from
92012         lib/glthread/lock.c.
92013         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
92014         functions.
92015         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
92016         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
92017         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
92018         macros.
92019         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
92020         (gl_DISABLE_THREADS): Remove macro.
92021         * modules/lock (Files): Remove build-aux/config.rpath.
92022         (Depends-on): Remove havelib. Add threadlib.
92023         (configure.ac-early): Remove section.
92024         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
92025         * modules/tls (Depends-on): Remove lock. Add threadlib.
92026         (Link): New section, copied from threadlib.
92027         * MODULES.html.sh (Multithreading): Add threadlib.
92029 2008-08-14  Bruno Haible  <bruno@clisp.org>
92031         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
92032         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
92033         glthread_rwlock_unlock, glthread_rwlock_destroy,
92034         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
92035         glthread_recursive_lock_destroy): Define as macros always.
92036         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
92037         glthread_lock_lock.
92038         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
92039         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
92040         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
92041         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
92042         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
92043         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
92044         (glthread_recursive_lock_lock_func): Renamed from
92045         glthread_recursive_lock_lock.
92046         (glthread_recursive_lock_unlock_func): Renamed from
92047         glthread_recursive_lock_unlock.
92048         (glthread_recursive_lock_destroy_func): Renamed from
92049         glthread_recursive_lock_destroy.
92051 2008-08-14  Bruno Haible  <bruno@clisp.org>
92053         * lib/glthread/lock.h: Renamed from lib/lock.h.
92054         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
92055         * lib/glthread/tls.h: Renamed from lib/tls.h.
92056         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
92057         * lib/fstrcmp.c: Update includes.
92058         * lib/strsignal.c: Update includes.
92059         * modules/lock (Files, Makefile.am): Update.
92060         (Include): Change to "glthread/lock.h".
92061         * modules/tls (Files, Makefile.am): Update.
92062         (Include): Change to "glthread/tls.h".
92063         * tests/test-lock.c: Update includes.
92064         * tests/test-tls.c: Update includes.
92065         * NEWS: Mention the renamed header files.
92067 2008-08-11  Jim Meyering  <meyering@redhat.com>
92069         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
92071 2008-08-11  Eric Blake  <ebb9@byu.net>
92073         test-c-stack: avoid C99-ism
92074         * tests/test-c-stack.c (main): Fix whitespace, move declaration
92075         before statement.
92076         Reported by Alain Guibert.
92078 2008-08-10  Jim Meyering  <meyering@redhat.com>
92080         ensure that return value of uinttostr et al are not ignored
92081         * lib/inttostr.h (__GNUC_PREREQ): Define.
92082         (__attribute_warn_unused_result__): Define.
92083         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
92085 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
92087         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
92088         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
92090 2008-08-07  Jim Meyering  <meyering@redhat.com>
92092         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
92094         * modules/mkstemp (License): Relicense under LGPLv2+.
92095         * modules/tempname (License): Likewise.
92097 2008-08-06  Bruno Haible  <bruno@clisp.org>
92099         * lib/poll.c (poll): Further micro-optimization.
92101 2008-08-06  Jim Meyering  <meyering@redhat.com>
92103         inet_pton.c: use locale-independent tolower
92104         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
92105         (inet_pton6): Use c_tolower rather than tolower.
92106         * modules/inet_pton (Depends-on): Add c-ctype.
92108 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
92110         * lib/poll.c (poll): Avoid division when timeout is 0, cache
92111         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
92113 2008-08-06  Jim Meyering  <meyering@redhat.com>
92115         * modules/inet_pton (License): Relicense under LGPLv2+.
92117 2008-08-03  Bruno Haible  <bruno@clisp.org>
92119         Additional non-aborting API for lock and tls.
92120         * lib/lock.h: Include <errno.h>.
92121         (glthread_lock_init): New macro/function.
92122         (gl_lock_init): Define as wrapper around glthread_lock_init.
92123         (glthread_lock_lock): New macro/function.
92124         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
92125         (glthread_lock_unlock): New macro/function.
92126         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
92127         (glthread_lock_destroy): New macro/function.
92128         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
92129         (glthread_rwlock_init): New macro/function.
92130         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
92131         (glthread_rwlock_rdlock): New macro/function.
92132         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
92133         (glthread_rwlock_wrlock): New macro/function.
92134         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
92135         (glthread_rwlock_unlock): New macro/function.
92136         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
92137         (glthread_rwlock_destroy): New macro/function.
92138         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
92139         (glthread_recursive_lock_init): New macro/function.
92140         (gl_recursive_lock_init): Define as wrapper around
92141         glthread_recursive_lock_init.
92142         (glthread_recursive_lock_lock): New macro/function.
92143         (gl_recursive_lock_lock): Define as wrapper around
92144         glthread_recursive_lock_lock.
92145         (glthread_recursive_lock_unlock): New macro/function.
92146         (gl_recursive_lock_unlock): Define as wrapper around
92147         glthread_recursive_lock_unlock.
92148         (glthread_recursive_lock_destroy): New macro/function.
92149         (gl_recursive_lock_destroy): Define as wrapper around
92150         glthread_recursive_lock_destroy.
92151         (glthread_once): New macro/function.
92152         (gl_once): Define as wrapper around glthread_once.
92153         Update function declarations.
92154         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
92155         glthread_rwlock_init. Return error code.
92156         (glthread_rwlock_rdlock_multithreaded): Renamed from
92157         glthread_rwlock_rdlock. Return error code.
92158         (glthread_rwlock_wrlock_multithreaded): Renamed from
92159         glthread_rwlock_wrlock. Return error code.
92160         (glthread_rwlock_unlock_multithreaded): Renamed from
92161         glthread_rwlock_unlock. Return error code.
92162         (glthread_rwlock_destroy_multithreaded): Renamed from
92163         glthread_rwlock_destroy. Return error code.
92164         (glthread_recursive_lock_init_multithreaded): Renamed from
92165         glthread_recursive_lock_init. Return error code.
92166         (glthread_recursive_lock_lock_multithreaded): Renamed from
92167         glthread_recursive_lock_lock. Return error code.
92168         (glthread_recursive_lock_unlock_multithreaded): Renamed from
92169         glthread_recursive_lock_unlock. Return error code.
92170         (glthread_recursive_lock_destroy_multithreaded): Renamed from
92171         glthread_recursive_lock_destroy. Return error code.
92172         (glthread_once_call): Make static.
92173         (glthread_once_multithreaded): Renamed from glthread_once.
92174         * lib/tls.h: Include <errno.h>.
92175         (glthread_tls_key_init): New macro/function.
92176         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
92177         (glthread_tls_set): New macro/function.
92178         (gl_tls_set): Define as wrapper around glthread_tls_set.
92179         (glthread_tls_key_destroy): New macro/function.
92180         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
92181         Update function declarations.
92182         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
92183         glthread_tls_get.
92184         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
92186 2008-08-04  Eric Blake  <ebb9@byu.net>
92188         gnumakefile: use space, not TAB, outside of targets
92189         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
92191 2008-08-02  Jim Meyering  <meyering@redhat.com>
92193         getdate.y: avoid locale-dependent date parsing failure
92194         In Turkish locales, getdate would fail to recognize keywords
92195         containing a lowercase "i".  The solution is not to rely on
92196         locale-sensitive case-conversion.
92197         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
92198         (lookup_word): Use c_toupper in place of toupper.
92199         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
92200         Reported by Vefa Bicakci <bicave@superonline.com> in
92201         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
92202         * modules/getdate (Depends-on): Add c-ctype.
92204 2008-08-02  Bruno Haible  <bruno@clisp.org>
92206         * gnulib-tool (func_import): When updating or creating a .gitignore
92207         file, prepend each added line with a slash, and ignore leading slashes
92208         from the existing lines.
92209         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92211 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92213         Portability fix for GNU make 3.79.1.
92214         * top/GNUmakefile: Avoid 'else COND', which older GNU make
92215         versions do not understand.
92217 2008-08-01  Bruno Haible  <bruno@clisp.org>
92219         Work around bug of HP-UX 10.20 cc with -0.0 literal.
92220         * tests/test-isnanf.h (zero): New variable.
92221         (main): Avoid literal -0.0f.
92222         * tests/test-isnand.h (zero): New variable.
92223         (main): Avoid literal -0.0.
92224         * tests/test-isnanl.h (zero): New variable.
92225         (main): Avoid literal -0.0L.
92226         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
92227         (test_float, test_double, test_long_double): Avoid literals -0.0f,
92228         -0.0, -0.0L.
92229         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
92230         (test_signbitd): Avoid literal -0.0.
92231         (test_signbitl): Avoid literal -0.0L.
92232         * tests/test-ceilf1.c (zero): New variable.
92233         (main): Avoid literal -0.0f.
92234         * tests/test-ceill.c (zero): New variable.
92235         (main): Avoid literal -0.0L.
92236         * tests/test-floorf1.c (zero): New variable.
92237         (main): Avoid literal -0.0f.
92238         * tests/test-floorl.c (zero): New variable.
92239         (main): Avoid literal -0.0L.
92240         * tests/test-roundf1.c (zero): New variable.
92241         (main): Avoid literal -0.0f.
92242         * tests/test-round1.c (zero): New variable.
92243         (main): Avoid literal -0.0.
92244         * tests/test-roundl.c (zero): New variable.
92245         (main): Avoid literal -0.0L.
92246         * tests/test-truncf1.c (zero): New variable.
92247         (main): Avoid literal -0.0f.
92248         * tests/test-trunc1.c (zero): New variable.
92249         (main): Avoid literal -0.0.
92250         * tests/test-truncl.c (zero): New variable.
92251         (main): Avoid literal -0.0L.
92252         * tests/test-frexp.c (zero): New variable.
92253         (main): Avoid literal -0.0.
92254         * tests/test-frexpl.c (zero): New variable.
92255         (main): Avoid literal -0.0L.
92256         * tests/test-ldexpl.c (zero): New variable.
92257         (main): Avoid literal -0.0L.
92258         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92259         (zerod, zerol): New variables.
92260         (test_function): Avoid literals -0.0, -0.0L.
92261         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92262         (zerod, zerol): New variables.
92263         (test_function): Avoid literals -0.0, -0.0L.
92264         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92265         (zerod, zerol): New variables.
92266         (test_function): Avoid literals -0.0, -0.0L.
92267         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92268         (zerod, zerol): New variables.
92269         (test_function): Avoid literals -0.0, -0.0L.
92270         * tests/test-strtod.c (zero): New variable.
92271         (main): Avoid literal -0.0.
92272         Reported by Jonathan C. Patschke <jp@centtech.com>.
92274 2008-07-31  Jim Meyering  <meyering@redhat.com>
92276         sha256.h: correct definition of SHA224_DIGEST_SIZE
92277         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92278         Reported by Paulie Pena IV <paulie4@gmail.com>.
92279         Define as 224 / 8, rather than as a literal.
92280         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92281         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92282         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92284 2008-07-31  Bruno Haible  <bruno@clisp.org>
92286         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92287         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92288         Reported by Jonathan Patschke <jp@centtech.com>.
92290 2008-07-31  Bruno Haible  <bruno@clisp.org>
92292         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92293         Reported by Paolo Bonzini <bonzini@gnu.org>.
92295 2008-07-30  Eric Blake  <ebb9@byu.net>
92297         test-strtod: allow compilation without -lm
92298         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92299         Reported by Dennis Clarke <blastwave@gmail.com>.
92301 2008-07-28  Jim Meyering  <meyering@redhat.com>
92303         bootstrap: work also when there are no .po files in po/
92304         * build-aux/bootstrap (update_po_files): Complete the change
92305         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92307 2008-07-27  Jim Meyering  <meyering@redhat.com>
92309         * users.txt: Add zile.
92311 2008-07-26  Ben Pfaff  <blp@gnu.org>
92313         Add missing dependencies on new m4/exponent[fdl].m4 files.
92314         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92315         * modules/isnand-nolibm: Add m4/exponentd.m4.
92316         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92317         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92318         m4/isnan[fdl].m4, because the macros actually used moved.
92319         Reported by Jim Meyering.
92321 2008-07-14  Ben Pfaff  <blp@gnu.org>
92323         Add isinf module.
92324         * lib/isinf.c: New file.
92325         * lib/math.in.h: Define isinf macro if we have decided to replace
92326         it.
92327         * m4/isinf.m4: New file.
92328         * m4/math_h.m4: Initialize and substitute variables for isinf
92329         module.
92330         * modules/isinf: New file.
92331         * modules/isinf-tests: New file.
92332         * modules/math: Add substitutions for new module.
92333         * tests/test-isinf.c: New file.
92334         * doc/posix-functions/isinf.texi: Mention new module.
92335         * MODULES.html.sh: Mention new module.
92337 2008-07-14  Ben Pfaff  <blp@gnu.org>
92339         Factor out some macros for use by additional modules.
92340         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92341         exponentf.m4.
92342         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92343         exponentd.m4.
92344         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92345         file exponentl.m4.
92346         * m4/exponentf.m4: New file.
92347         * m4/exponentd.m4: New file.
92348         * m4/exponentl.m4: New file.
92349         * modules/isnanf: Use new file m4/exponentf.m4.
92350         * modules/isnand: Use new file m4/exponentd.m4.
92351         * modules/isnanl: Use new file m4/exponentl.m4.
92353 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92355         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92356         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92357         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92358         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92360         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92361         readlink on platforms without PATH_MAX.
92363 2008-07-21  Eric Blake  <ebb9@byu.net>
92365         Warn, not fail, on stale version.
92366         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92368         Don't allow installation with stale devel version number.
92369         * top/GNUmakefile (_is-install-target): New macro.
92370         (_curr-ver): Forbid installation with stale version number.
92372 2008-07-20  Bruno Haible  <bruno@clisp.org>
92374         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92375         TESTS_ENVIRONMENT.
92376         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92378 2008-07-20  Bruno Haible  <bruno@clisp.org>
92380         * lib/c-stack.h (c_stack_action): Add documentation.
92381         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92383 2008-07-20  Bruno Haible  <bruno@clisp.org>
92385         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92386         * modules/readlink (License): Likewise.
92388 2008-07-17  Eric Blake  <ebb9@byu.net>
92390         * modules/c-stack (Link): Fix typo.
92392         Make c-stack use libsigsegv, when available.
92393         * modules/c-stack (Depends-on): Add libsigsegv.
92394         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92395         needed.
92396         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92397         (segv_handler, overflow_handler, c_stack_action)
92398         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92399         implementation when libsigsegv is available, but only when using
92400         the library is necessary.
92401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92402         comment, explaining why XSI check fails on Linux.
92403         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92404         * tests/test-c-stack2.sh: Tweak skip message.
92405         * NEWS: Document new link-time requirements.
92407 2008-07-16  Eric Blake  <ebb9@byu.net>
92409         c-stack: Expose false positives when not using libsigsegv.
92410         * modules/c-stack-tests (Files): Expand test.
92411         * tests/test-c-stack.c (main): Add means to conditionally trigger
92412         non-overflow SIGSEGV.
92413         * tests/test-c-stack2.sh: New file.
92415 2008-07-14  Bruno Haible  <bruno@clisp.org>
92417         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92418         Reported by Eric Blake.
92420 2008-07-14  Sam Steingold  <sds@gnu.org>
92421             Bruno Haible  <bruno@clisp.org>
92423         New module libsigsegv.
92424         * modules/libsigsegv: New file.
92425         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92426         modifications.
92427         * MODULES.html.sh (Signal handling): New section.
92429 2008-07-14  Bruno Haible  <bruno@clisp.org>
92431         * modules/unictype/ctype-* (Description): Add the word "function".
92432         Improves the resulting doc in MODULES.html.
92434 2008-07-12  Ben Pfaff  <blp@gnu.org>
92436         Add longlong module.
92437         * modules/longlong: New file.
92439 2008-07-12  Bruno Haible  <bruno@clisp.org>
92441         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92442         to empty.
92444 2008-07-10  Ben Pfaff  <blp@gnu.org>
92446         Add isnan module.
92447         * doc/posix-functions/isnan.texi: Mention new module.
92448         * lib/math.in.h: Define isnan macro if we have decided to replace
92449         it.
92450         * m4/isnan.m4: New file.
92451         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92452         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92453         also.
92454         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92455         redundancy.
92456         * m4/math_h.m4: Initialize and substitute variables for isnan
92457         module.
92458         * modules/isnan: New file.
92459         * modules/isnan-tests: New file.
92460         * modules/math: Add substitutions for new module.
92461         * tests/test-isnan.c: New file.
92462         * MODULES.html.sh: Mention new module.
92464 2008-07-10  Ben Pfaff  <blp@gnu.org>
92466         Add isnanf module.
92467         * lib/isnanf.m4: New file.
92468         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92469         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92470         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92471         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92472         * modules/isnanf: New file.
92473         * modules/isnanf-tests: New file.
92474         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92475         files.
92476         * tests/test-isnanf-nolibm.c: factored most of its contents into
92477         new file tests/test-isnanf.h.
92478         * tests/test-isnanf.h: New file.
92479         * tests/test-isnanf.c: New file.
92480         * MODULES.html.sh: Mention new module.
92481         * doc/glibc-functions/isnanf.texi: Mention new module.
92483 2008-07-10  Ben Pfaff  <blp@gnu.org>
92485         Add isnand module.
92486         * lib/isnand.h: New file.
92487         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92488         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92489         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92490         functionality also.
92491         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92492         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92493         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92494         * modules/isnand: New file.
92495         * modules/isnand-tests: New file.
92496         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92497         files.
92498         * tests/test-isnand-nolibm.c: factored most of its contents into
92499         new file tests/test-isnand.h.
92500         * tests/test-isnand.h: New file.
92501         * tests/test-isnand.c: New file.
92502         * MODULES.html.sh: Mention new module.
92504 2008-07-10  Ben Pfaff  <blp@gnu.org>
92506         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92507         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92508         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92509         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92510         * modules/isnanf-nolibm: Update references to renamed files.
92511         * modules/isnand-nolibm: Likewise.
92512         * modules/isnanf-nolibm-tests: Likewise.
92513         * modules/isnand-nolibm-tests: Likewise.
92514         * lib/frexp.c: Likewise.
92515         * lib/isfinite.c: Likewise.
92516         * lib/signbitd.c: Likewise.
92517         * lib/signbitf.c: Likewise.
92518         * lib/vasnprintf.c: Likewise.
92519         * tests/test-ceilf1.c: Likewise.
92520         * tests/test-ceilf2.c: Likewise.
92521         * tests/test-floorf1.c: Likewise.
92522         * tests/test-floorf2.c: Likewise.
92523         * tests/test-frexp.c: Likewise.
92524         * tests/test-round1.c: Likewise.
92525         * tests/test-round2.c: Likewise.
92526         * tests/test-roundf1.c: Likewise.
92527         * tests/test-strtod.c: Likewise.
92528         * tests/test-trunc1.c: Likewise.
92529         * tests/test-trunc2.c: Likewise.
92530         * tests/test-truncf1.c: Likewise.
92531         * tests/test-truncf2.c: Likewise.
92532         * NEWS: Mention the renamed header files.
92534 2008-07-11  Jim Meyering  <meyering@redhat.com>
92536         vc-list-files: make the last-resort awk code more portable
92537         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92538         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92539         does not support it.
92541 2008-07-10  Eric Blake  <ebb9@byu.net>
92543         Work with tar's bootstrap.
92544         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92545         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92546         an m4 comment.
92548 2008-07-09  Jim Meyering  <meyering@redhat.com>
92550         posix-shell.m4: fix typo that made this test malfunction
92551         * m4/posix-shell.m4: Remove capitalization in variable name.
92553 2008-07-08  Bruno Haible  <bruno@clisp.org>
92555         * m4/onceonly.m4: Update comments.
92556         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92558 2008-07-04  Jim Meyering  <meyering@redhat.com>
92560         * users.txt: Add vc-dwim.
92561         (bison, coreutils): Use the gitweb URL.
92563 2008-07-03  Jim Meyering  <meyering@redhat.com>
92565         * users.txt: Add libffcall.  From Sam Steingold.
92567 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92569         getdate.y: do not ignore TZ with relative day, month or year offset
92570         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92571         relative-date-handling, since otherwise, the latter would clobber the
92572         sole output (an updated Start value) of the tz-handling block.
92573         * tests/test-getdate.c: Tests for the fix
92575 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92577         Recognize 'foo_LIBRARIES += libgnu.a'.
92578         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92579         makefile snippet has already specified an installation location,
92580         also using '+='.
92582 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92584         getdate.y: factor out common actions
92585         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92586         Use them in place of open-coded actions.
92588 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92590         Add self-test for getdate module.
92591         * modules/getdate-tests: New file.
92592         * tests/test-getdate.c: New file.
92594 2008-06-29  Bruno Haible  <bruno@clisp.org>
92596         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92597         .gitignore.
92598         Reported by Sylvain Beucler <beuc@beuc.net>.
92600 2008-06-29  Bruno Haible  <bruno@clisp.org>
92602         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92603         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92605 2008-06-29  Bruno Haible  <bruno@clisp.org>
92607         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92608         EXTRA_DIST.
92609         Reported by Sylvain Beucler <beuc@beuc.net>.
92611 2008-06-26  Jim Meyering  <meyering@redhat.com>
92613         make several modules depend on the "open" module
92614         This provides slightly increased consistency when opening-for-write
92615         the name of a non-directory spelled with a trailing slash.
92616         * modules/chdir-safer: Likewise.
92617         * modules/chown: Likewise.
92618         * modules/clean-temp: Likewise.
92619         * modules/copy-file: Likewise.
92620         * modules/fchdir: Likewise.
92621         * modules/fcntl-safer: Likewise.
92622         * modules/pipe: Likewise.
92623         * modules/utime: Likewise.
92624         Prompted by Eric Blake and Bruno Haible.
92626 2008-06-24  Andreas Schwab  <schwab@suse.de>
92628         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92629         literals can be used as initializers for global variables.
92631 2008-06-23  Eric Blake  <ebb9@byu.net>
92633         Make gnulib-cache.m4 easier to diff.
92634         * gnulib-tool (func_import): Allow newlines when reading cached
92635         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92637 2008-06-23  Bruno Haible  <bruno@clisp.org>
92639         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92640         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92641         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92642         m4/signalblocking.m4.
92643         (gl_PREREQ_SIGACTION): Don't invoke it.
92644         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92645         gl_PREREQ_SIG_HANDLER_H.
92646         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92647         Don't check for sigaction here.
92649 2008-06-23  Bruno Haible  <bruno@clisp.org>
92651         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92652         (install_handlers): Don't set the SA_RESETHAND flag.
92654 2008-06-23  Bruno Haible  <bruno@clisp.org>
92656         * m4/sigaction.m4: Comment fixes.
92657         * lib/signal.in.h: Likewise.
92659 2008-06-23  Eric Blake  <ebb9@byu.net>
92661         Fix typo.
92662         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92664         Avoid SA_ namespace.
92665         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92666         Reported by Ralf Wildenhues.
92668         Avoid test failure due to SA_RESTORER.
92669         * tests/test-sigaction.c (SA_MASK): New macro.
92670         (main): Avoid failing due to extension flags being set.
92671         Reported by Jim Meyering.
92673         Revert use of sig-handler.h in sigprocmask.c.
92674         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92675         it requires the existence of struct sigaction.
92676         * lib/sigprocmask.c (handler_t): Restore typedef.
92677         (rpl_signal, old_handlers): Use local type.
92679 2008-06-22  Bruno Haible  <bruno@clisp.org>
92681         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92682         conditionally.
92683         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92685 2008-06-22  Bruno Haible  <bruno@clisp.org>
92687         * doc/posix-functions/siginterrupt.texi: Move note.
92689         * lib/signal.in.h (SA_RESTART): New macro.
92690         * lib/sigaction.c: Update comment.
92692         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92694         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92695         (gl_PREREQ_SIGPROCMASK): Invoke it.
92696         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92698         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92700         * lib/sigprocmask.c: Update a comment.
92702 2008-06-21  Eric Blake  <ebb9@byu.net>
92704         Use sigaction module rather than signal().
92705         * modules/c-stack (Depends-on): Add sigaction.
92706         * modules/fatal-signal (Depends-on): Likewise.
92707         * modules/nanosleep (Depends-on): Likewise.
92708         * modules/sigprocmask (Files): Add sig-handler.h.
92709         * modules/sigaction (Files): Likewise.
92710         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92711         Eggert.
92712         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92713         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92714         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92715         (init_fatal_signals): Likewise.
92716         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92717         (siginterrupt): Delete fallback.
92718         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92719         instead.
92720         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92721         siginterrupt.
92723         New module sigaction, for mingw.
92724         * modules/sigaction: New module...
92725         * modules/sigaction-tests: ...and its test.
92726         * m4/sigaction.m4: New file.
92727         * lib/sigaction.c: Likewise.
92728         * tests/test-sigaction.c: Likewise.
92729         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92730         * modules/signal (Makefile.am): Likewise.
92731         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92732         needed.
92733         * doc/posix-headers/signal.texi (signal.h): Mention provided
92734         types.
92735         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92736         that sigaction is preferable.
92737         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92738         module.
92739         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92740         sigaction.
92742         Improve robustness of sigprocmask by overriding signal.
92743         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92744         is in use.
92745         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92746         (SIGKILL, SIGSTOP): Provide fallbacks.
92747         (rpl_signal): Implement.
92748         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92749         signal can be called inside handlers.
92751         Fix nanosleep module on mingw.
92752         * modules/nanosleep (Depends-on): Add sys_select.
92753         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92755         Fix licensing of sigprocmask.
92756         * modules/raise (License): Relicense as LGPL.
92758 2008-06-21  Bruno Haible  <bruno@clisp.org>
92760         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92761         result if it contains question marks.
92762         Reported by Michael Geng <linux@michaelgeng.de>.
92764 2008-06-19  Bruno Haible  <bruno@clisp.org>
92766         Fix CVS-ism.
92767         * doc/gnulib.texi: Include updated-stamp.texi.
92768         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92769         (updated-stamp.texi): New rule.
92770         (gnulib.info): Depend on it.
92771         * doc/.gitignore: Add updated-stamp.texi.
92772         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92774 2008-06-19  Bruno Haible  <bruno@clisp.org>
92776         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92777         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92779 2008-06-19  Eric Blake  <ebb9@byu.net>
92781         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92782         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92783         Reported by Stepan Kasal.
92785 2008-06-18  Bruno Haible  <bruno@clisp.org>
92787         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92788         Reported by Eric Blake.
92790 2008-06-18  Eric Blake  <ebb9@byu.net>
92792         Work around cygwin 1.5.25 strsignal bug.
92793         * tests/test-strsignal.c: Allow for const char *.
92794         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92796 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92798         * users.txt: Update URL to article and add author/date
92799         information.
92801 2008-06-17  Bruno Haible  <bruno@clisp.org>
92803         New macro gl_DISABLE_THREADS.
92804         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92805         if the user did not pass --enable-threads or --disable-threads option.
92806         (gl_DISABLE_THREADS): New macro.
92807         Reported by Eric Blake <ebb9@byu.net>.
92809 2008-06-17  Bruno Haible  <bruno@clisp.org>
92811         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92812         when the macro ignores it.
92813         Based on a patch by Eric Blake <ebb9@byu.net>.
92815 2008-06-17  Bruno Haible  <bruno@clisp.org>
92817         * modules/tls (License): Change to LGPLv2+.
92818         Reported by Eric Blake.
92820 2008-06-17  Eric Blake  <ebb9@byu.net>
92822         Simplify c-stack prerequisites.
92823         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92824         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92825         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92826         check.
92827         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92828         <sys/resource.h>.
92830         Move c-stack test into testsuite.
92831         * modules/c-stack-tests: New file.
92832         * lib/c-stack.c [DEBUG]: Move test program...
92833         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92834         fail test if sigaltstack is lacking.
92835         * tests/test-c-stack.sh: New driver file.
92837 2008-06-16  Eric Blake  <ebb9@byu.net>
92839         Use raise module consistently.
92840         * modules/fatal-signal (Depends-on): Add raise.
92841         * modules/sigprocmask (Depends-on): Likewise.
92842         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92843         * lib/sigprocmask.c (sigprocmask): Likewise.
92844         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92845         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92847         Fix compliance bug in sigpending.
92848         * lib/sigprocmask.c (sigpending): Return pending array via
92849         parameter, not return value.
92851 2008-06-14  Eric Blake  <ebb9@byu.net>
92853         Improve obstack-printf test code.
92854         * tests/test-obstack-printf.c (test_function): Fix comment, and
92855         simplify usage of obstack_* in macros.  Add a test for coverage.
92856         Reported by Bruno Haible.
92858 2008-06-14  Bruno Haible  <bruno@clisp.org>
92860         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92861         array size as a constant, not as a const variable.
92862         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92863         AC_USE_SYSTEM_EXTENSIONS.
92864         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92865         Test whether the obstack_printf function actually exists.
92866         * modules/obstack-printf (Depends-on): Add extensions.
92867         (Include): Remove obstack.h.
92868         * modules/obstack-printf-posix (Depends-on): Add extensions.
92869         (Include): Remove obstack.h.
92871 2008-06-13  Eric Blake  <ebb9@byu.net>
92873         Add obstack-printf and obstack-printf-posix modules.
92874         * modules/obstack-printf: New file.
92875         * modules/obstack-printf-posix: Likewise.
92876         * MODULES.html.sh (Misc): Mention them.
92877         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92878         Likewise.
92879         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92880         Likewise.
92881         * modules/stdio (Makefile.am): Accomodate new modules.
92882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92883         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92884         Declare.
92885         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92886         functions.
92887         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92888         (gl_REPLACE_OBSTACK_PRINTF): New macros
92889         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92890         * tests/test-obstack-printf.c: New file.
92891         * modules/obstack-printf-tests: Likewise.
92892         * modules/obstack-printf-posix-tests: Likewise.
92894 2008-06-11  Bruno Haible  <bruno@clisp.org>
92896         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92897         * lib/open.c: Include errno.h.
92898         (open): Fail when attempting to write to a file that has a trailing
92899         slash.
92900         * tests/test-open.c (main): Test against trailing slash bug.
92901         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92903 2008-06-10  Bruno Haible  <bruno@clisp.org>
92905         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92906         for $? to work inside the trap command, with various /bin/sh-s.
92907         * tests/test-vc-list-files-cvs.sh: Likewise.
92909 2008-06-10  Bruno Haible  <bruno@clisp.org>
92911         * lib/acl-internal.h: Don't include gettext.h here.
92912         * lib/set-mode-acl.c: Include gettext.h here.
92913         * lib/copy-acl.c: Likewise.
92915 2008-06-10  Bruno Haible  <bruno@clisp.org>
92917         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92918         * lib/wait-process.c (wait_subprocess): Likewise.
92919         * lib/execute.h (execute): Add termsigp argument.
92920         * lib/execute.c (execute): Likewise.
92921         * lib/csharpcomp.c (compile_csharp_using_pnet,
92922         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92923         * lib/csharpexec.c (execute_csharp_using_pnet,
92924         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92925         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92926         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92927         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92928         is_jikes_present): Update.
92929         * lib/javaexec.c (execute_java_class): Update.
92930         * lib/javaversion.c (execute_and_read_line): Update.
92931         * NEWS: Document the changes.
92932         Reported by Eric Blake.
92934 2008-06-10  Eric Blake  <ebb9@byu.net>
92936         Add missing include.
92937         * tests/test-strstr.c (includes): Add <signal.h>.
92938         * tests/test-strcasestr.c (includes): Likewise.
92939         * tests/test-memmem.c (includes): Likewise.
92941 2008-06-10  Bruno Haible  <bruno@clisp.org>
92943         * lib/wait-process.c (wait_subprocess): Add an assertion.
92945 2008-06-10  Bruno Haible  <bruno@clisp.org>
92947         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92949 2008-06-10  Bruno Haible  <bruno@clisp.org>
92951         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92952         using alarm().
92953         * tests/test-strcasestr.c (main): Likewise.
92954         * tests/test-strstr.c (main): Likewise.
92956 2008-06-09  Bruno Haible  <bruno@clisp.org>
92958         Work around the Solaris 10 ACE ACLs ABI change.
92959         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92960         declare if ACL_NO_TRIVIAL is present.
92961         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92962         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92963         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92964         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92965         define if ACL_NO_TRIVIAL is present.
92966         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92967         and use the current ABI.
92968         (file_has_acl): Use same #if condition as elsewhere.
92969         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92970         in use, and use the current ABI.
92971         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92972         Reported by Jim Meyering.
92974 2008-06-09  Eric Blake  <ebb9@byu.net>
92976         Work around environments that (stupidly) ignore SIGALRM.
92977         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92978         before using alarm().
92979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92980         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92981         Reported by Ian Beckwith <ianb@erislabs.net>.
92983         Produce autobuild blurb earlier in log.
92984         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92986 2008-06-09  Jim Meyering  <meyering@redhat.com>
92987         and Ondřej Vašík  <ovasik@redhat.com>
92989         utimens.c: correct kernel bug work-around
92990         Ondřej Vašík found that the invalid return value of 280 indicates
92991         failure, not success, and the kernel bug we're trying to work
92992         around affects not just the utimensat call, but also the fallback
92993         futimens call.
92994         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92995         not success.
92996         [HAVE_FUTIMENS]: Use the same work-around, here.
92998 2008-06-09  Jim Meyering  <meyering@redhat.com>
93000         add more guards around definition of ACE_-related code
93001         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
93002         ALLOW and ACE_OWNER are also defined.
93004 2008-06-08  Bruno Haible  <bruno@clisp.org>
93006         * lib/acl-internal.h: Add me as co-author.
93007         * lib/file-has-acl.c: Likewise.
93008         * lib/set-mode-acl.c: Likewise.
93009         * lib/copy-acl.c: Likewise.
93011 2008-06-08  Bruno Haible  <bruno@clisp.org>
93013         Add support for AIX ACLs.
93014         * lib/acl-internal.h (acl_nontrivial): New declaration.
93015         * lib/file-has-acl.c (acl_nontrivial): New function.
93016         (file_has_acl): Add implementation using AIX 4 ACL API.
93017         * lib/set-mode-acl.c (qset_acl): Likewise.
93018         * lib/copy-acl.c (qcopy_acl): Likewise.
93020 2008-06-08  Bruno Haible  <bruno@clisp.org>
93022         Add support for HP-UX ACLs.
93023         * lib/acl-internal.h (acl_nontrivial): New declaration.
93024         * lib/file-has-acl.c (acl_nontrivial): New function.
93025         (file_has_acl): Add implementation using HP-UX 11 ACL API.
93026         * lib/set-mode-acl.c (qset_acl): Likewise.
93027         * lib/copy-acl.c (qcopy_acl): Likewise.
93029 2008-06-08  Bruno Haible  <bruno@clisp.org>
93031         Add support for Cygwin ACLs.
93032         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93033         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
93034         the chmod_or_fchmod call.
93035         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
93037 2008-06-08  Bruno Haible  <bruno@clisp.org>
93039         Fix bug with setuid modes in Solaris 10+ code.
93040         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
93041         succeeded, when the mode contains some special bits.
93043 2008-06-08  Bruno Haible  <bruno@clisp.org>
93045         Add support for Solaris 7..10 ACLs.
93046         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
93047         declarations.
93048         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
93049         functions.
93050         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
93051         * lib/set-mode-acl.c (qset_acl): Likewise.
93052         * lib/copy-acl.c (qcopy_acl): Likewise.
93054 2008-06-08  Bruno Haible  <bruno@clisp.org>
93056         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
93057         declaration.
93058         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
93059         (acl_access_nontrivial): Remove MacOS X case.
93060         (file_has_acl): Use acl_extended_nontrivial.
93061         * lib/copy-acl.c (qcopy_acl): Likewise.
93063 2008-06-08  Bruno Haible  <bruno@clisp.org>
93065         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
93067 2008-06-08  Jim Meyering  <meyering@redhat.com>
93069         * modules/acl (Maintainer): Add Bruno Haible.
93071 2008-06-07  Bruno Haible  <bruno@clisp.org>
93073         Improve support for Tru64 ACLs.
93074         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
93075         ACL on OSF/1.
93077 2008-06-07  Bruno Haible  <bruno@clisp.org>
93079         Add support for MacOS X ACLs.
93080         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
93081         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
93082         * lib/set-mode-acl.c (qset_acl): Likewise.
93083         * lib/copy-acl.c (qcopy_acl): Likewise.
93085 2008-06-07  Bruno Haible  <bruno@clisp.org>
93087         Fix memory leak introduced on 2008-05-22.
93088         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
93089         use.
93091 2008-06-07  Bruno Haible  <bruno@clisp.org>
93093         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
93094         to construct an empty ACL.
93096 2008-06-07  Bruno Haible  <bruno@clisp.org>
93098         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
93099         precisely.
93100         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
93102 2008-06-07  Bruno Haible  <bruno@clisp.org>
93104         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
93105         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
93107 2008-06-07  Bruno Haible  <bruno@clisp.org>
93109         * doc/posix-functions/_setjmp.texi: Explain the use of this function
93110         regardless of POSIX.
93111         * doc/posix-functions/_longjmp.texi: Likewise.
93112         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
93113         SystemV platform in this case.
93115 2008-06-06  Eric Blake  <ebb9@byu.net>
93117         Document abort() bugs.
93118         * doc/posix-functions/abort.texi (abort): Mention anomalies.
93120         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
93121         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
93122         sigsetjmp.
93123         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
93124         siglongjmp, but only as a macro.
93125         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
93126         is obsolete.
93127         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
93129         Tweak documentation to cover cygwin argz bugs.
93130         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
93131         argz bug fix; no code change needed since no cygwin releases
93132         occurred between the last fix and the bug being tested.
93133         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
93134         module and recently fixed cygwin bugs.
93135         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
93136         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
93137         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
93138         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
93139         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
93140         Likewise.
93141         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
93142         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
93143         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
93144         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
93145         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
93146         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
93147         Likewise.
93149         Avoid gcc warning on cygwin.
93150         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
93151         !ACL_NO_TRIVIAL]: Avoid unused variable.
93153 2008-06-05  Eric Blake  <ebb9@byu.net>
93155         Be tolerant of UNKNOWN version in gnulib-tool test dir.
93156         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
93157         git-version-gen fails to come up with a version.
93158         Reported by Simon Josefsson.
93160 2008-06-05  Jim Meyering  <meyering@redhat.com>
93161             Paul Eggert  <eggert@cs.ucla.edu>
93163         utimens.c: work around a probable Linux kernel bug
93164         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
93165         appears to be a kernel bug that causes utimensat to return 280
93166         instead of 0, indicating success.
93168 2008-06-04  Bruno Haible  <bruno@clisp.org>
93170         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
93171         2008-06-01 commit.
93173 2008-06-04  Bruno Haible  <bruno@clisp.org>
93175         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
93176         * lib/file-has-acl.c (acl_access_nontrivial): New function.
93177         (file_has_acl): Use it. Save errno afterwards.
93178         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
93180 2008-06-03  Bruno Haible  <bruno@clisp.org>
93182         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
93183         draft code. Simplify #ifs.
93184         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
93185         Put Solaris code after POSIX-draft code. Fix comments regarding
93186         Solaris 10, HP-UX. Mention Cygwin.
93187         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
93189 2008-06-03  Eric Blake  <ebb9@byu.net>
93191         Provide fallback for older kernels.
93192         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
93193         Provide runtime fallback if kernel lacks support.
93194         Reported by Mike Frysinger.
93196 2008-06-02  Bruno Haible  <bruno@clisp.org>
93198         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
93199         it exists.
93201 2008-06-02  Bruno Haible  <bruno@clisp.org>
93203         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
93204         * lib/copy-acl.c (qcopy_acl): Update comment.
93206 2008-06-02  Bruno Haible  <bruno@clisp.org>
93208         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
93209         like ACL APIs.
93211 2008-06-02  Bruno Haible  <bruno@clisp.org>
93213         * tests/test-file-has-acl.sh: Use different code for Cygwin.
93214         * tests/test-set-mode-acl.sh: Likewise.
93215         * tests/test-copy-acl.sh: Likewise.
93216         * tests/test-copy-file.sh: Likewise.
93218 2008-06-02  Bruno Haible  <bruno@clisp.org>
93220         * tests/test-file-has-acl.sh: Remove unused code.
93222 2008-06-01  Bruno Haible  <bruno@clisp.org>
93224         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
93225         (copy_acl): Just a wrapper around qcopy_acl that emits the error
93226         messages.
93227         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
93229 2008-06-01  Bruno Haible  <bruno@clisp.org>
93231         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
93232         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
93233         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
93234         APIs.
93235         * modules/acl-tests (configure.ac): Remove tests now contained in
93236         m4/acl.m4.
93238 2008-06-02  Jim Meyering  <meyering@redhat.com>
93240         announce-gen: use a better key-server host name
93241         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
93242         it may be more consistently reliable.  Suggested by Werner Koch
93243         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
93245 2008-06-01  Bruno Haible  <bruno@clisp.org>
93247         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
93248         Reported by Voroskoi Andras <voroskoi@gmail.com>.
93250 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
93252         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93254 2008-06-01  Bruno Haible  <bruno@clisp.org>
93256         New ACL tests.
93257         * tests/test-file-has-acl.sh: New file.
93258         * tests/test-file-has-acl.c: New file.
93259         * tests/test-set-mode-acl.sh: New file.
93260         * tests/test-set-mode-acl.c: New file.
93261         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93262         * tests/test-copy-acl.c: New file.
93263         * modules/acl-tests: New file, based on modules/copy-file-tests.
93264         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93265         (Depends-on): Add acl-tests.
93266         (configure.ac): Remove checks.
93267         (Makefile.am): Don't create test-sameacls program here any more.
93269 2008-06-01  Bruno Haible  <bruno@clisp.org>
93271         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93272         * tests/test-sameacls.c: Include progname.h.
93273         (main): Invoke set_program_name. Portability fixes for MacOS X,
93274         Solaris, HP-UX.
93276 2008-06-01  Bruno Haible  <bruno@clisp.org>
93278         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93279         function.
93280         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93282 2008-06-01  Bruno Haible  <bruno@clisp.org>
93284         * modules/rpmatch (Depends-on): Add strdup.
93286 2008-06-01  Bruno Haible  <bruno@clisp.org>
93288         * lib/pipe.c: Include unistd-safer.h.
93289         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93290         * modules/pipe (Depends-on): Add unistd-safer.
93292 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93294         * modules/autobuild (configure.ac): Call AB_INIT.
93296 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93298         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93299         Suggested by Bruno Haible <bruno@clisp.org>.
93301 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93303         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93304         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93305         <bruno@clisp.org>.
93307 2008-05-29  Eric Blake  <ebb9@byu.net>
93309         Prefer new POSIX 200x interfaces over futimesat.
93310         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93311         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93312         when available.
93313         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93315 2008-05-28  Bruno Haible  <bruno@clisp.org>
93317         * modules/stpcpy (License): Change to LGPLv2+.
93318         Requested by David Lutterkort <dlutter@redhat.com>.
93320 2008-05-27  Bruno Haible  <bruno@clisp.org>
93322         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93323         current mingw.
93324         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93326 2008-05-27  Bruno Haible  <bruno@clisp.org>
93328         * modules/iconv_open (Link): New section, from module 'iconv'.
93329         * modules/striconv (Link): Likewise.
93330         * modules/striconveh (Link): Likewise.
93331         * modules/xstriconv (Link): Likewise.
93332         * modules/unicodeio (Link): Likewise.
93333         * modules/propername (Link): Likewise.
93334         Reported by Jim Meyering.
93336 2008-05-26  Jim Meyering  <meyering@redhat.com>
93338         sha256: do not artificially restrict buffer length to be < 2^32
93339         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93340         uint32_t to size_t.
93341         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93342         to match.
93344         avoid unaligned access errors, e.g., on sparc
93345         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93346         direct access through a possibly-unaligned uint64* pointer.
93347         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93348         direct access through a possibly-unaligned uint32* pointer.
93349         Prompted by this patch from Tom "spot" Callaway:
93350         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93352         sha512.c: fix typo in comment
93353         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93355 2008-05-25  Bruno Haible  <bruno@clisp.org>
93357         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93358         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93359         (Makefile.am): Update lib_SOURCES.
93361 2008-05-25  Bruno Haible  <bruno@clisp.org>
93363         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93365 2008-05-25  Jim Meyering  <meyering@redhat.com>
93367         useless-if-before-free: freed expr may have white-space differences
93368         * build-aux/useless-if-before-free: Recognize cases in which the
93369         freed expression differs from the tested one in embedded white
93370         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93371         $1 was used, so we can't make any regexp shy.  Improved tests now
93372         detect this.
93374         useless-if-before-free: accept white space in the expression.
93375         * build-aux/useless-if-before-free: For now, any white space
93376         in the expression must be identical in the free argument.
93378         useless-if-before-free: efficiency tweak
93379         * build-aux/useless-if-before-free: Make the expression-matching
93380         regexp "shy".
93381         Make the *outer* regexp shy, not the expr-matching one.
93383         update code-in-comment to accept cast of free arg
93384         * build-aux/useless-if-before-free: Update regexp.
93386 2008-05-25  Bruno Haible  <bruno@clisp.org>
93388         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93389         * modules/copy-file-tests (Files, Makefile.am): Update.
93390         * tests/test-copy-file.c (func_test_copy): Update.
93392 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93394         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93396 2008-05-23  Bruno Haible  <bruno@clisp.org>
93398         Improve support for ACLs on OSF/1.
93399         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93400         Remove fallback for unknown flavors of ACLs.
93402 2008-05-22  Bruno Haible  <bruno@clisp.org>
93404         Add support for ACLs on OSF/1.
93405         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93406         replacements.
93407         (acl_free_text): New macro fallback.
93408         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93409         acl_free.
93410         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93411         acl_free_text function. Require AC_C_INLINE.
93413 2008-05-22  Bruno Haible  <bruno@clisp.org>
93415         Make copy_acl work on MacOS X 10.5.
93416         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93417         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93418         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93419         If MODE_INSIDE_ACL, don't assume that every system has the same text
93420         representation for ACLs as FreeBSD.
93421         * lib/copy-acl.c (copy_acl): Add support for platforms with
93422         !MODE_INSIDE_ACL.
93423         * lib/file-has-acl.c (file_has_acl): Likewise.
93424         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93425         FreeBSD, MacOS X, or IRIX, respectively.
93427 2008-05-22  Bruno Haible  <bruno@clisp.org>
93429         * lib/acl.h: Don't include <sys/acl.h>.
93430         (GETACLCNT): Move fallback to lib/acl-internal.h.
93431         * lib/acl-internal.h: Include <sys/acl.h> here.
93432         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93434 2008-05-22  Bruno Haible  <bruno@clisp.org>
93436         Split off copy_acl function to separate file.
93437         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93438         * lib/acl.c (copy_acl): Moved function to separate file.
93439         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93440         * modules/acl (Files): Add lib/copy-acl.c.
93441         (Makefiles.am): Augment lib_SOURCES.
93443 2008-05-22  Bruno Haible  <bruno@clisp.org>
93445         * modules/copy-file-tests: New file.
93446         * tests/test-copy-file.sh: New file.
93447         * tests/test-copy-file.c: New file.
93448         * tests/test-copy-file-sameacls.c: New file.
93450 2008-05-22  Eric Blake  <ebb9@byu.net>
93452         Avoid gcc warning.
93453         * tests/test-memcmp.c (main): Pass NULL indirectly.
93455 2008-05-21  Bruno Haible  <bruno@clisp.org>
93457         Add reference doc about ACLs.
93458         * doc/acl-resources.txt: New file.
93459         * doc/acl-cygwin.txt: New file.
93461 2008-05-21  Bruno Haible  <bruno@clisp.org>
93463         Avoid one more warning from gcc.
93464         * lib/vasnprintf.c (IF_LINT): Update comments.
93465         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93467 2008-05-21  Jim Meyering  <meyering@redhat.com>
93469         avoid a warning from gcc
93470         * lib/vasnprintf.c (IF_LINT): Define.
93471         (scale10_round_decimal_long_double):
93472         Use it to avoid a "may be used uninitialized" warning.
93473         (scale10_round_decimal_double): Likewise.
93475 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93477         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93478         declared.
93480 2008-05-20  Bruno Haible  <bruno@clisp.org>
93482         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93483         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93485 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93487         * modules/memcmp-tests: New file.
93488         * tests/test-memcmp.c: New file.
93490 2008-05-19  Bruno Haible  <bruno@clisp.org>
93492         * modules/propername (Notice, configure.ac): Put quoted "..." into
93493         --keyword option.
93494         * lib/propername.h: Update comments accordingly.
93495         Reported by Eric Blake.
93497 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93499         * modules/getpass-gnu (Depends-on): Add fseeko.
93501 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93503         * modules/base64-tests: New file.
93505 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93507         * lib/base64.c (base64_decode_ctx): If a decode context structure
93508         was passed in use it to ignore newlines.  If a context structure
93509         was _not_ passed in, continue to treat newlines as garbage (this
93510         is the historical behavior).  Formerly base64_decode.
93511         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93512         takes a decode context structure.
93513         * lib/base64.h (base64_decode): Macro for four-argument calls.
93514         (base64_decode_alloc): Likewise.
93515         * lib/base64.c (base64_decode_ctx): If a decode context structure
93516         was passed in use it to ignore newlines.  If a context structure
93517         was _not_ passed in, continue to treat newlines as garbage (this
93518         is the historical behavior).  Formerly base64_decode.
93519         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93520         takes a decode context structure.
93521         * lib/base64.h (base64_decode): Macro for four-argument calls.
93522         (base64_decode_alloc): Likewise.
93524 2008-05-19  Jim Meyering  <meyering@redhat.com>
93526         avoid a warning from gcc
93527         * lib/trim.c (IF_LINT): Define.
93528         (trim2): Use it to avoid a "may be used uninitialized" warning.
93530         Fix doc typo.
93531         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93533 2008-05-19  Bruno Haible  <bruno@clisp.org>
93535         * doc/glibc-functions/getpass.texi: Document limits of other
93536         implementations.
93538 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93539             Bruno Haible <bruno@clisp.org>
93541         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93543 2008-05-18  Bruno Haible  <bruno@clisp.org>
93545         * modules/propername: New file, from GNU gettext.
93546         * lib/propername.h: New file, from GNU gettext.
93547         * lib/propername.c: New file, from GNU gettext.
93548         * MODULES.html.sh (Internationalization functions): Add propername.
93550 2008-05-16  Jim Meyering  <meyering@redhat.com>
93551             Bruno Haible  <bruno@clisp.org>
93553         Avoid some warnings from "gcc -Wshadow".
93554         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93556 2008-05-15  Eric Blake  <ebb9@byu.net>
93558         Extend previous patch to cygwin 1.7.0.
93559         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93560         fast implementation in cygwin >= 1.7.0.
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         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93567         implementation in glibc >= 2.9.
93568         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93571 2008-05-15  Bruno Haible  <bruno@clisp.org>
93573         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93574         (Unicode string functions): Add unilbrk/*.
93575         Reported by Karl Berry.
93577 2008-05-15  Eric Blake  <ebb9@byu.net>
93579         Fix violation of <stdbool.h> replacement in regex.
93580         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93581         * lib/regexec.c (re_search_internal): Likewise.
93582         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93584 2008-05-15  Jim Meyering  <meyering@redhat.com>
93586         avoid distracting test output when git or cvs is not found
93587         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93588         * tests/test-vc-list-files-git.sh: Likewise.
93590 2008-05-15  Eric Blake  <ebb9@byu.net>
93592         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93593         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93594         glibc version.
93595         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93596         * doc/posix-functions/strstr.texi (strstr): Likewise.
93597         * lib/str-two-way.h (MAX): Sychronize with glibc.
93599 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93601         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93602         opr.ctx_type.
93603         (calc_first): Initialize constraint field.
93604         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93605         Fix grammar.
93606         (duplicate_node): Merge constraint field for all node types.
93607         (calc_eclosure_iter): Look at constraint field for all node types.
93608         * lib/regex_internal.c (create_cd_newstate): Don't look at
93609         opr.ctx_type.
93611 2008-05-14  Bruno Haible  <bruno@clisp.org>
93613         Help GCC to do better code generation.
93614         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93615         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93616         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93617         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93618         Declare with attribute 'malloc' if supported.
93620 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93622         use "echo STR|wc -c" rather than unportable "expr length STR"
93623         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93624         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93626 2008-05-14  Jim Meyering  <meyering@redhat.com>
93628         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93629         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93630         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93631         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93632         via Collin Lasse.
93634 2008-05-14  Eric Blake  <ebb9@byu.net>
93636         Avoid quadratic growth in gl_LIBSOURCES.
93637         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93638         Suggested by Bruno Haible.
93640         Test xmemdup0.
93641         * modules/xmemdup0-tests: New file.
93642         * tests/test-xmemdup0.c: Likewise.
93644 2008-05-13  Eric Blake  <ebb9@byu.net>
93646         Split xmemdup0 into its own module.
93647         * modules/xmemdup0: New file.
93648         * lib/xmemdup0.h: Likewise.
93649         * lib/xmemdup0.c: Likewise.
93650         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93651         * lib/xalloc.h (xmemdup0): Remove.
93652         * lib/xmalloc.c (xmemdup0): Likewise.
93654 2008-05-13  Eric Blake  <ebb9@byu.net>
93655             Bruno Haible  <bruno@clisp.org>
93657         Reduce number of forks required during autoconf.
93658         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93659         and gl_LIBSOURCES_DIR.
93660         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93661         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93662         m4_syscmd per file.
93663         <m4_foreach_w>: Move...
93664         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93666 2008-05-13  Eric Blake  <ebb9@byu.net>
93668         * gnulib-tool: Fix various comment typos.
93670 2008-05-12  Bruno Haible  <bruno@clisp.org>
93672         Tailor the linebreaking algorithm.
93673         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93675 2008-05-12  Bruno Haible  <bruno@clisp.org>
93677         Update to Unicode 5.0.0.
93678         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93679         LBP_JV, LBP_JT. Redistribute values.
93680         (unilbrk_table): Change size.
93681         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93682         Unicode TR#14 rev. 22.
93683         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93684         LBP_JV, LBP_JT. Redistribute values.
93685         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93686         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93687         Update.
93688         * lib/unilbrk/lbrkprop1.h: Regenerated.
93689         * lib/unilbrk/lbrkprop2.h: Regenerated.
93690         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93691         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93692         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93693         Likewise.
93694         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93695         Likewise.
93696         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93697         result.
93698         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93699         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93700         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93701         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93702         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93703         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93705 2008-05-11  Bruno Haible  <bruno@clisp.org>
93707         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93709 2008-05-11  Bruno Haible  <bruno@clisp.org>
93711         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93712         * modules/unilbrk/gen-lbrk: New file.
93714 2008-05-11  Bruno Haible  <bruno@clisp.org>
93716         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93717         * m4/sha512.m4 (gl_SHA512): Likewise.
93719 2008-05-11  Jim Meyering  <meyering@redhat.com>
93721         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93722         * modules/crypto/sha256: New file.
93723         * modules/crypto/sha512: Likewise.
93724         * lib/sha256.c: Likewise.
93725         * lib/sha256.h: Likewise.
93726         * lib/sha512.c: Likewise.
93727         * lib/sha512.h: Likewise.
93728         * lib/u64.h: Likewise.
93729         * m4/sha256.m4: Likewise.
93730         * m4/sha512.m4: Likewise.
93731         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93733 2008-05-10  Bruno Haible  <bruno@clisp.org>
93735         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93736         (Input/Output <stdio.h>): Add xprintf.
93737         (Signal handling <signal.h>): Add strsignal.
93738         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93739         (Core language properties): Add func.
93740         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93741         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93742         strings.
93743         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93744         (Input/output): New section.
93745         (File system functions): Add openat-die, stat-macros.
93746         (Networking functions): Add sockets.
93747         (Unicode string functions): Add unictype/*.
93748         (Support for building libraries and executables): Add gperf.
93749         (Support for building documentation): Add agpl-3.0.
93750         (Misc): Add nocrash.
93752 2008-05-10  Bruno Haible  <bruno@clisp.org>
93754         * modules/unictype/gen-ctype: New file.
93756 2008-05-10  Jim Meyering  <meyering@redhat.com>
93758         Make chdir-safer.c more efficient on a system with no symlinks.
93759         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93760         also if ELOOP is zero.  Suggested by Bruno Haible.
93762         Make chdir-safer.c slightly safer.
93763         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93764         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93766         Avoid compile failure on systems without ELOOP (like mingw).
93767         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93768         Reported by Bruno Haible.
93770 2008-05-10  Bruno Haible  <bruno@clisp.org>
93772         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93773         (is_utf8_encoding): Use a case-insensitive comparison.
93774         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93775         streq.
93777 2008-05-10  Bruno Haible  <bruno@clisp.org>
93779         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93780         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93781         * lib/unilbrk/ulc-common.h (iconv_string_length,
93782         iconv_string_keeping_offsets): Remove declarations.
93783         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93784         Don't include <iconv.h>, streq.h, xsize.h.
93785         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93786         conversion.
93787         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93788         <iconv.h>, streq.h, xsize.h.
93789         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93790         conversion.
93791         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93792         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93793         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93794         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93796 2008-05-10  Bruno Haible  <bruno@clisp.org>
93798         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93799         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93801         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93802         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93804         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93805         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93807         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93808         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93810         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93811         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93813         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93814         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93816         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93817         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93819         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93820         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93822 2008-05-10  Bruno Haible  <bruno@clisp.org>
93824         Split up 'linebreak' module.
93825         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93826         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93827         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93828         modifications.
93829         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93830         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93831         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93832         lib/linebreak.c.
93833         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93834         lib/linebreak.c.
93835         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93836         lib/linebreak.c.
93837         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93838         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93839         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93840         lib/linebreak.c.
93841         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93842         lib/linebreak.c.
93843         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93844         lib/linebreak.c.
93845         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93846         lib/linebreak.c.
93847         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93848         lib/linebreak.c.
93849         * modules/unilbrk/base: New file.
93850         * modules/unilbrk/tables: New file.
93851         * modules/unilbrk/u8-possible-linebreaks: New file.
93852         * modules/unilbrk/u16-possible-linebreaks: New file.
93853         * modules/unilbrk/u32-possible-linebreaks: New file.
93854         * modules/unilbrk/ulc-common: New file.
93855         * modules/unilbrk/ulc-possible-linebreaks: New file.
93856         * modules/unilbrk/u8-width-linebreaks: New file.
93857         * modules/unilbrk/u16-width-linebreaks: New file.
93858         * modules/unilbrk/u32-width-linebreaks: New file.
93859         * modules/unilbrk/ulc-width-linebreaks: New file.
93860         * lib/linebreak.h: Remove file.
93861         * lib/linebreak.c: Remove file.
93862         * m4/linebreak.m4: Remove file.
93863         * modules/linebreak: Remove file.
93864         * NEWS: Mention the changes.
93866 2008-05-09  Eric Blake  <ebb9@byu.net>
93868         Add xmemdup0.
93869         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93870         implementation.
93871         * lib/xmalloc.c (xmemdup0): New C implementation.
93873 2008-05-08  Bruno Haible  <bruno@clisp.org>
93875         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93877 2008-05-07  Eric Blake  <ebb9@byu.net>
93879         Support cross-compilation of <wctype.h>.
93880         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93881         AC_CACHE_CHECK.
93883 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93885         * build-aux/vc-list-files: Add support for bzr.
93887 2008-05-03  Jim Meyering  <meyering@redhat.com>
93889         avoid failed assertion with tight malloc
93890         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93892 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93894         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93895         are needed from arpa/inet.h.
93896         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93897         Reported by Bruno Haible.
93899 2008-05-02  Jim Meyering  <meyering@redhat.com>
93901         avoid compilation error on FreeBSD 6
93902         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93904 2008-05-01  Jim Meyering  <meyering@redhat.com>
93906         useless-if-before-free: correct --help's exit status description
93907         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93908         for one or more matches, etc.  Reported by Bruno Haible.
93910         vc-list-files: make the stand-alone gnulib test work
93911         * modules/vc-list-files-tests (configure.ac):
93912         Define and AC_SUBST abs_aux_dir.
93913         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93914         $(abs_top_srcdir) to each script and having each of them
93915         duplicate the work of setting PATH, set PATH here, using
93916         the new variable, abs_aux_dir instead.
93917         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93918         * tests/test-vc-list-files-git.sh: Likewise.
93919         Reported by Bruno Haible.
93921 2008-05-01  Bruno Haible  <bruno@clisp.org>
93923         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93924         reallocation. Rename 'done' to 'found_delimiter'.
93926 2008-05-01  Jim Meyering  <meyering@redhat.com>
93928         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93929         * build-aux/vc-list-files: Use `...`, not $(...).
93931 2008-04-30  Jim Meyering  <meyering@redhat.com>
93933         add tests for vc-list-files
93934         * modules/vc-list-files-tests: New module.
93935         * tests/test-vc-list-files-cvs.sh: New file.
93936         * tests/test-vc-list-files-git.sh: New file.
93938         avoid a warning from gcc
93939         * lib/getndelim2.c (IF_LINT): Define.
93940         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93942         vc-list-files: work properly with build-aux/cvsu, too
93943         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93944         to all cvs-based clauses.
93946         vc-list-files: work properly in the CVS+awk case, too
93947         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93949         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93950         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93951         take more than one file argument, so .  Add quotes, just in case $dir
93952         ever contains a shell meta-character.  Prompted by Soren Hansen in
93953         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93955 2008-04-29  Eric Blake  <ebb9@byu.net>
93957         Optimize getndelim2 to use block operations when possible.
93958         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93959         freadseek, and memchr2.
93960         * lib/getndelim2.c (getndelim2): Use them for block reads.
93962 2008-04-29  Bruno Haible  <bruno@clisp.org>
93964         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93965         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93966         * modules/inet_ntop (Depends-on): Add extensions.
93967         * modules/inet_pton (Depends-on): Likewise.
93968         Reported by Simon Josefsson.
93970 2008-04-29  Jim Meyering  <meyering@redhat.com>
93972         When the is more than one match in a block, match all of them.
93973         * build-aux/useless-if-before-free: Iterate through each block
93974         until there are no more matches.
93976         Fix broken useless-if-before-free script.
93977         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93978         the expression to match cast of argument to free-like function.
93980 2008-04-29  Eric Blake  <ebb9@byu.net>
93982         Use new header.
93983         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93985 2008-04-29  Jim Meyering  <meyering@redhat.com>
93987         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93988         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93989         by gnulib to exist and to declare e.g., inet_ntop.
93990         Don't include "inet_ntop.h", now removed.
93992         * m4/arpa_inet_h.m4: Remove trailing blanks.
93994 2008-04-29  Eric Blake  <ebb9@byu.net>
93996         Silence valgrind on safe reads beyond potential array bounds.
93997         * lib/rawmemchr.valgrind: New file.
93998         * lib/strchrnul.valgrind: Likewise.
93999         * modules/rawmemchr (Files): Distribute new file.
94000         * modules/strchrnul (Files): Likewise.
94001         Suggested by Bruno Haible.
94003 2008-04-29  Bruno Haible  <bruno@clisp.org>
94005         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
94006         (inet_ntop, inet_pton): Change portability warning's wording.
94007         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
94008         Invoke gl_CHECK_NEXT_HEADERS.
94009         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
94010         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
94011         set ARPA_INET_H.
94012         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94013         * modules/arpa_inet (Description): No longer only for systems that
94014         lack it.
94015         (Depends-on): Add include_next.
94016         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
94017         HAVE_ARPA_INET_H.
94019 2008-04-29  Jim Meyering  <meyering@redhat.com>
94021         * modules/mkdir (License): Re-license as LGPLv2+.
94023 2008-04-29  Bruno Haible  <bruno@clisp.org>
94025         * modules/rawmemchr (Maintainer): Set to Eric.
94026         * modules/strchrnul (Maintainer): Likewise.
94028 2008-04-29  Simon Josefsson  <simon@josefsson.org>
94030         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
94031         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
94033         * modules/arpa_inet (arpa/inet.h): Use them.
94035 2008-04-28  Eric Blake  <ebb9@byu.net>
94037         Test getndelim2.
94038         * modules/getndelim2-tests: New file.
94039         * tests/test-getndelim2.c: Likewise.
94040         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
94041         stream.
94042         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
94044         * MODULES.html.sh: Document new module.
94046 2008-04-20  Bruno Haible  <bruno@clisp.org>
94048         * lib/c-stack.c (die): Use raise.
94049         * modules/c-stack (Depends-on): Add raise.
94051 2008-04-28  Bruno Haible  <bruno@clisp.org>
94053         Expect rpmatch to be declared.
94054         * lib/yesno.c (rpmatch): Remove declaration.
94056         Declare rpmatch.
94057         * lib/stdlib.in.h (rpmatch): New declaration.
94058         * lib/rpmatch.c: Include <stdlib.h> first.
94059         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
94060         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
94061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
94062         HAVE_RPMATCH.
94063         * modules/rpmatch (Depends-on): Add stdlib, extensions.
94064         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
94065         (Include): Set to <stdlib.h>.
94066         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
94067         HAVE_RPMATCH.
94068         * NEWS: Document the change.
94070 2008-04-28  Bruno Haible  <bruno@clisp.org>
94072         Change rpmatch to use nl_langinfo when appropriate.
94073         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
94074         (N_): New macro.
94075         (localized_pattern): New function/macro.
94076         (try): Remove match, nomatch arguments. Copy the pattern into safe
94077         memory before caching it.
94078         (rpmatch): Use localized_pattern. Add translator comments.
94079         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
94080         Suggested by Eric Blake.
94081         * modules/rpmatch (Depends-on): Add stdbool.
94083 2008-04-28  Eric Blake  <ebb9@byu.net>
94085         Add rawmemchr module, matching glibc.
94086         * modules/string (Makefile.am): New indicator.
94087         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
94088         * lib/string.in.h (rawmemchr): Declare when appropriate.
94089         * modules/rawmemchr: New file.
94090         * m4/rawmemchr.m4: Likewise.
94091         * lib/rawmemchr.c: Likewise.
94092         * modules/rawmemchr-tests: Likewise.
94093         * tests/test-rawmemchr.c: Likewise.
94094         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
94095         module.
94096         * modules/strchrnul (Depends-on): Add rawmemchr.
94097         * lib/strchrnul.c (strchrnul): Optimize a corner case.
94099         Whitespace cleanup.
94100         * tests/test-strchrnul.c: Reindent.
94101         * lib/strchrnul.c: Likewise.
94103         Optimize and test strchrnul.
94104         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
94105         * modules/strchrnul-tests: New file.
94106         * tests/test-strchrnul.c: Likewise.
94108         Remove intprops dependency.
94109         * modules/memchr (Depends-on): Remove intprops.
94110         * modules/memrchr (Depends-on): Likewise.
94111         * modules/memchr2 (Depends-on): Likewise.
94112         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
94113         * lib/memrchr.c (__memrchr): Likewise.
94114         * lib/memrchr2.c (memchr2): Likewise.
94115         Reported by Simon Josefsson.
94117 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94119         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
94120         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94122 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94124         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
94126         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
94128         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
94130         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
94131         declarations.
94132         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
94134         * m4/inet_pton.m4: Don't check for header files.
94136         * m4/inet_ntop.m4: Don't check for header files.
94138 2008-04-28  Simon Josefsson  <simon@josefsson.org>
94140         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
94141         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
94142         trigger for cygwin).
94143         Reported by Bruno Haible  <bruno@clisp.org>.
94145 2008-04-28  Bruno Haible  <bruno@clisp.org>
94147         * doc/posix-functions/strdup.texi: Mention mingw problem.
94149 2008-04-27  Bruno Haible  <bruno@clisp.org>
94151         * modules/stat-time-tests (Depends-on): Add sleep.
94152         * tests/test-stat-time.c (force_unlink): New function.
94153         (cleanup): Use it.
94154         (test_mtime): Remove the ctime related tests.
94155         (test_ctime): New function, containing the ctime related tests.
94156         (main): Call test_ctime, except on native Windows platforms.
94158 2008-04-27  Bruno Haible  <bruno@clisp.org>
94160         * lib/rpmatch.c (rpmatch): Add some comments.
94161         Reported by James Youngman <jay@gnu.org>.
94163 2008-04-27  Bruno Haible  <bruno@clisp.org>
94165         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
94166         quiet NaNs.
94168 2008-04-27  Bruno Haible  <bruno@clisp.org>
94170         Make test-yesno.sh work on mingw.
94171         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
94172         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
94173         (main): Set stdin to binary mode.
94174         * modules/yesno-tests (Depends-on): Add binary-io.
94176 2008-04-27  Bruno Haible  <bruno@clisp.org>
94178         Fix 'isfinite' on x86, x86_64, ia64 platforms.
94179         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
94180         argument that lie outside the IEEE 854 domain.
94181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
94182         (gl_ISFINITE): Use it.
94183         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
94185 2008-04-27  Bruno Haible  <bruno@clisp.org>
94187         Allow local renaming in config.h.
94188         * lib/memrchr.c (memrchr): Don't undefine outside libc.
94190 2008-04-27  Bruno Haible  <bruno@clisp.org>
94192         * lib/memchr.c (__memchr): Change type of 'i'.
94193         * lib/memchr2.c (memchr2): Likewise.
94195 2008-04-26  Eric Blake  <ebb9@byu.net>
94196         and Bruno Haible  <bruno@clisp.org>
94198         Optimize and test memrchr.
94199         * modules/memrchr (Depends-on): Add intprops.
94200         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
94201         * modules/memrchr-tests: New file.
94202         * tests/test-memrchr.c: New file.
94204 2008-04-26  Bruno Haible  <bruno@clisp.org>
94206         Add tentative support for DragonFly BSD.
94207         * lib/stdio-impl.h: Add macros for DragonFly BSD.
94208         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
94209         fp.
94210         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94211         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
94212         * lib/fpurge.c (fpurge): Likewise.
94213         * lib/freadable.c (freaadable): Likewise.
94214         * lib/freadahead.c (freadahead): Likewise.
94215         * lib/freading.c (freading): Likewise.
94216         * lib/freadptr.c (freadptr): Likewise.
94217         * lib/freadseek.c (freadptrinc): Likewise.
94218         * lib/fseeko.c (fseeko): Likewise.
94219         * lib/fseterr.c (fseterr): Likewise.
94220         * lib/fwritable.c (fwritable): Likewise.
94221         * lib/fwriting.c (fwriting): Likewise.
94223 2008-04-26  Bruno Haible  <bruno@clisp.org>
94225         * lib/stdio-impl.h: New file.
94226         * lib/fbufmode.c: Include stdio-impl.h.
94227         (fbufmode): Use fp_, remove redundant #defines.
94228         * lib/fflush.c: Include stdio-impl.h.
94229         (clear_ungetc_buffer): Remove redundant #defines.
94230         * lib/fpurge.c: Include stdio-impl.h.
94231         (fpurge): Remove redundant #defines.
94232         * lib/freadable.c: Include stdio-impl.h.
94233         (freadable): Remove redundant #defines.
94234         * lib/freadahead.c: Include stdio-impl.h.
94235         (freadahead): Remove redundant #defines.
94236         * lib/freading.c: Include stdio-impl.h.
94237         (freading): Remove redundant #defines.
94238         * lib/freadptr.c: Include stdio-impl.h.
94239         (freadptr): Remove redundant #defines.
94240         * lib/freadseek.c: Include stdio-impl.h.
94241         (freadptrinc): Remove redundant #defines.
94242         * lib/fseeko.c: Include stdio-impl.h.
94243         (rpl_fseeko): Remove redundant #defines.
94244         * lib/fseterr.c: Include stdio-impl.h.
94245         (fseterr): Remove redundant #defines.
94246         * lib/fwritable.c: Include stdio-impl.h.
94247         (fwritable: Remove redundant #defines.
94248         * lib/fwriting.c: Include stdio-impl.h.
94249         (fwriting): Remove redundant #defines.
94250         * modules/fbufmode (Files): Add lib/stdio-impl.h.
94251         * modules/fflush (Files): Likewise.
94252         * modules/fpurge (Files): Likewise.
94253         * modules/freadable (Files): Likewise.
94254         * modules/freadahead (Files): Likewise.
94255         * modules/freading (Files): Likewise.
94256         * modules/freadptr (Files): Likewise.
94257         * modules/freadseek (Files): Likewise.
94258         * modules/fseeko (Files): Likewise.
94259         * modules/fseterr (Files): Likewise.
94260         * modules/fwritable (Files): Likewise.
94261         * modules/fwriting (Files): Likewise.
94263 2008-04-26  Bruno Haible  <bruno@clisp.org>
94265         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94266         restore_seek_optimization, update_fpos_cache): New functions, extracted
94267         from rpl_fflush.
94268         (rpl_fflush): Use them.
94269         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94270         (gl_REPLACE_FFLUSH): Use it.
94272 2008-04-26  Bruno Haible  <bruno@clisp.org>
94274         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94275         on Solaris.
94276         * tests/test-xstrtoimax.sh: Likewise.
94277         * tests/test-xstrtoumax.sh: Likewise.
94278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94280 2008-04-26  Bruno Haible  <bruno@clisp.org>
94282         * modules/memchr-tests: New file.
94283         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94285 2008-04-26  Eric Blake  <ebb9@byu.net>
94286             Bruno Haible  <bruno@clisp.org>
94288         * lib/memchr.c: Include intprops.h.
94289         (__memchr): Optimize parallel detection of matching bytes. Rename local
94290         variables. Add explanatory comments.
94292 2008-04-26  Bruno Haible  <bruno@clisp.org>
94294         Fix module 'memchr', broken since 2000-10-28.
94295         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94297 2008-04-26  Bruno Haible  <bruno@clisp.org>
94299         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94300         comments.
94302 2008-04-25  Eric Blake  <ebb9@byu.net>
94304         Use native fstatat on cygwin 1.7.0.
94305         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94306         first.
94308 2008-04-23  Eric Blake  <ebb9@byu.net>
94310         Improve memchr2 performance.
94311         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94312         NUL bytes.
94313         * modules/memchr2 (Depends-on): Use intprops.h.
94315 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94317         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94318         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94319         <blp@cs.stanford.edu>.
94321 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94323         * lib/arpa_inet.in.h: New file.
94325         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94326         (Makefile.am): Sed in substitute header file.
94328         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94329         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94331         * modules/inet_ntop (configure.ac): Use
94332         gl_ARPA_INET_MODULE_INDICATOR.
94334         * modules/inet_pton (configure.ac): Use
94335         gl_ARPA_INET_MODULE_INDICATOR.
94337 2008-04-22  Jim Meyering  <meyering@redhat.com>
94339         * modules/verify (License): Re-license as LGPLv2+.
94341 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94343         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94344         parameter to void* as per POSIX standard (MinGW uses char*).
94346 2008-04-21  Bruno Haible  <bruno@clisp.org>
94348         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94349         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94350         Define to replacements if REPLACE_ISWCNTRL is 1.
94351         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94352         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94353         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94354         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94355         what it fixes.
94356         * doc/posix-functions/iswalpha.texi: Likewise.
94357         * doc/posix-functions/iswblank.texi: Likewise.
94358         * doc/posix-functions/iswcntrl.texi: Likewise.
94359         * doc/posix-functions/iswdigit.texi: Likewise.
94360         * doc/posix-functions/iswgraph.texi: Likewise.
94361         * doc/posix-functions/iswlower.texi: Likewise.
94362         * doc/posix-functions/iswprint.texi: Likewise.
94363         * doc/posix-functions/iswpunct.texi: Likewise.
94364         * doc/posix-functions/iswspace.texi: Likewise.
94365         * doc/posix-functions/iswupper.texi: Likewise.
94366         * doc/posix-functions/iswxdigit.texi: Likewise.
94367         Reported by Alain Guibert.
94369 2008-04-21  Bruno Haible  <bruno@clisp.org>
94371         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94372         Patch by Alain Guibert.
94374 2008-04-21  Bruno Haible  <bruno@clisp.org>
94376         Fix test failures on mingw.
94377         * tests/test-xstrtol.c (print_no_progname): New function.
94378         (main): Install it in error_print_progname hook.
94379         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94380         * tests/test-xstrtoimax.sh: Likewise.
94381         * tests/test-xstrtoumax.sh: Likewise.
94383 2008-04-21  Bruno Haible  <bruno@clisp.org>
94385         Fix test failure on mingw.
94386         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94388 2008-04-21  Bruno Haible  <bruno@clisp.org>
94390         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94391         Actually assign a value.
94393 2008-04-20  Bruno Haible  <bruno@clisp.org>
94395         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94396         take 2.
94397         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94398         'canonicalize-lgpl' module is also used.
94399         * lib/canonicalize-lgpl.c: Undo last change.
94400         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94402 2008-04-20  Bruno Haible  <bruno@clisp.org>
94404         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94405         config.h. Provide _mkdir based fallback for mingw.
94406         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94407         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94408         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94409         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94410         rather than defining mkdir in config.h.
94411         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94412         (gl_SYS_STAT_H_DEFAULTS): New macro.
94413         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94414         HAVE_IO_H any more.
94415         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94416         HAVE_DECL_MKDIR and HAVE_IO_H.
94418 2008-04-20  Bruno Haible  <bruno@clisp.org>
94420         * lib/isapipe.c: Port to native Windows platforms.
94422 2008-04-20  Bruno Haible  <bruno@clisp.org>
94424         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94426 2008-04-21  Eric Blake  <ebb9@byu.net>
94428         Work around preprocessors that don't handle UINTMAX_MAX.
94429         * lib/memchr2.c (memchr2): Avoid embedded #if.
94430         Reported by Alain Guibert, fix suggested by Bruno Haible.
94432 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94434         * doc/posix-functions/strftime.texi (strftime): Explain better
94435         Windows incompatibility.  Suggested by Micah Cowan
94436         <micah@cowan.name>.
94438 2008-04-20  Bruno Haible  <bruno@clisp.org>
94440         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94441         unistr/u8-mblen.
94443 2008-04-20  Bruno Haible  <bruno@clisp.org>
94445         Fix test failure on platforms with non-GNU iconv.
94446         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94447         (U_TO_U8): Use it, rather than u16_to_u8.
94448         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94449         units at the end of the input string.
94450         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94452 2008-04-20  Bruno Haible  <bruno@clisp.org>
94454         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94455         when the resulting length is 0.
94456         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94458 2008-04-20  Bruno Haible  <bruno@clisp.org>
94460         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94461         works.
94462         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94464 2008-04-20  Bruno Haible  <bruno@clisp.org>
94466         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94467         * modules/tsearch-tests (configure.ac): Test for initstate function.
94469 2008-04-20  Bruno Haible  <bruno@clisp.org>
94471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94472         for nlink_t if missing.
94473         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94475 2008-04-19  Bruno Haible  <bruno@clisp.org>
94477         Work around snprintf bug on Linux libc5.
94478         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94479         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94480         gl_SNPRINTF_SIZE1.
94481         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94482         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94483         that test failed.
94484         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94485         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94486         * modules/snprintf (Files): Add m4/printf.m4.
94487         * modules/vsnprintf (Files): Likewise.
94488         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94489         * doc/posix-functions/vsnprintf.texi: Likewise.
94491 2008-04-19  Bruno Haible  <bruno@clisp.org>
94493         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94494         from 0.0058 to less than 10^-7.
94496 2008-04-19  Bruno Haible  <bruno@clisp.org>
94498         Fix rounding when a precision is given.
94499         * lib/vasnprintf.c (is_borderline): New function.
94500         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94501         9...9x.
94502         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94503         %e, %g.
94504         * tests/test-vasprintf-posix.c (test_function): Likewise.
94505         * tests/test-snprintf-posix.h (test_function): Likewise.
94506         * tests/test-sprintf-posix.h (test_function): Likewise.
94507         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94508         * tests/test-printf-posix.h (test_function): Likewise.
94509         * tests/test-printf-posix.output: Update.
94510         Reported by John Darrington <john@darrington.wattle.id.au> via
94511         Ben Pfaff <blp@cs.stanford.edu>.
94513 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94515         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94516         Suggested by Bruno Haible <bruno@clisp.org>.
94518 2008-04-17  Bruno Haible  <bruno@clisp.org>
94520         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94521         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94522         implementation.
94523         Patch by Bruce Merry <bmerry@gmail.com>.
94525 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94527         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94528         doesn't work under Windows.
94530 2008-04-16  Bruno Haible  <bruno@clisp.org>
94532         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94533         New macros.
94534         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94535         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94536         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94537         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94538         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94539         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94540         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94541         macros.
94542         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94543         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94544         Northern Sotho, Uighur.
94546 2008-04-16  Bruno Haible  <bruno@clisp.org>
94548         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94549         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94550         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94551         Reported by Daniel Bergström <daniel@octocode.com>.
94553 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94554             Bruno Haible  <bruno@clisp.org>
94556         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94557         function.
94558         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94559         New functions, mostly extracted from gl_locale_name_default.
94560         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94562 2008-04-16  Eric Blake  <ebb9@byu.net>
94564         Adjust strtod detection to catch glibc 2.7 bug.
94565         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94566         Reported by John Gatewood Ham.
94568 2008-04-16  Bruno Haible  <bruno@clisp.org>
94570         Add tentative support for Linux libc5.
94571         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94572         * lib/fpurge.c (fpurge): Likewise.
94573         * lib/freadable.c (freadable): Likewise.
94574         * lib/freadahead.c (freadahead): Likewise.
94575         * lib/freading.c (freading): Likewise.
94576         * lib/freadptr.c (freadptr): Likewise.
94577         * lib/freadseek.c (freadptrinc): Likewise.
94578         * lib/fseeko.c (rpl_fseeko): Likewise.
94579         * lib/fseterr.c (fseterr): Likewise.
94580         * lib/fwritable.c (fwritable): Likewise.
94581         * lib/fwriting.c (fwriting): Likewise.
94582         Reported by Alain Guibert <alguibert+bts@free.fr>.
94584 2008-04-15  Bruno Haible  <bruno@clisp.org>
94586         * modules/mathl (configure.ac): Define module indicator.
94588 2008-04-15  Bruno Haible  <bruno@clisp.org>
94590         * lib/logl.c (logl): Remove unused variables.
94592 2008-04-15  Bruno Haible  <bruno@clisp.org>
94594         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94595         fails.
94597 2008-04-15  Bruno Haible  <bruno@clisp.org>
94599         * lib/trim.c (trim2): Fix argument of isspace() macro.
94601 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94603         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94604         to 0.
94605         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94607 2008-04-14  Bruno Haible  <bruno@clisp.org>
94609         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94610         AC_LANG_PROGRAM argument.
94611         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94612         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94613         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94614         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94615         * m4/math_h.m4 (gl_MATH_H): Likewise.
94616         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94618         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94619         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94620         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94621         * m4/regex.m4 (gl_REGEX): Likewise.
94622         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94623         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94625         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94626         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94627         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94629         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94631 2008-04-14  Jim Meyering  <meyering@redhat.com>
94633         test-strtod: fix typos: s/abs/fabs/
94634         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94636 2008-04-13  Bruno Haible  <bruno@clisp.org>
94638         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94639         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94640         module is also used and while not building the reloc-wrapper.
94642 2008-04-13  Bruno Haible  <bruno@clisp.org>
94644         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94646 2008-04-13  Bruno Haible  <bruno@clisp.org>
94648         Fix AIX compilation failure introduced on 2008-04-02.
94649         * tests/test-frexp.c (exp): Undefine before redefining.
94650         * tests/test-frexpl.c (exp): Likewise.
94652 2008-04-13  Bruno Haible  <bruno@clisp.org>
94654         Work around a HP-UX stdio bug.
94655         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94656         * tests/test-ftello.c (main): Likewise.
94657         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94658         * doc/posix-functions/ftello.texi: Likewise.
94660 2008-04-13  Bruno Haible  <bruno@clisp.org>
94662         Make test-signbit pass on HP-UX/hppa.
94663         * tests/test-signbit.c (minus_zerol): New variable.
94664         (test_signbitl): Use it.
94666 2008-04-13  Bruno Haible  <bruno@clisp.org>
94668         Make truncl work on OSF/1 4.0.
94669         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94670         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94671         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94673         HAVE_DECL_TRUNCL.
94674         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94675         HAVE_DECL_TRUNCL.
94676         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94678 2008-04-13  Bruno Haible  <bruno@clisp.org>
94680         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94682 2008-04-13  Bruno Haible  <bruno@clisp.org>
94684         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94685         expression, so as to avoid HP-UX 11 cc compiler bug.
94687 2008-04-13  Bruno Haible  <bruno@clisp.org>
94689         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94691 2008-04-13  Bruno Haible  <bruno@clisp.org>
94693         * lib/git-merge-changelog.c: Remove empty declaration outside of
94694         functions.
94696 2008-04-13  Bruno Haible  <bruno@clisp.org>
94698         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94700 2008-04-13  Bruno Haible  <bruno@clisp.org>
94702         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94703         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94705         also if it exists but lacks definitions of the SHUT_* macros.
94706         * modules/sys_socket (Description): Update.
94707         Reported by Elbert Pol <e.pol@chello.nl>.
94709 2008-04-13  Bruno Haible  <bruno@clisp.org>
94711         * lib/localcharset.c (OS2): Don't redefine if already defined.
94712         Reported by Elbert Pol <e.pol@chello.nl>.
94714 2008-04-13  Bruno Haible  <bruno@clisp.org>
94716         * lib/binary-io.h [__EMX__]: Include <io.h>.
94717         Reported by Elbert Pol <e.pol@chello.nl>.
94719 2008-04-12  Bruno Haible  <bruno@clisp.org>
94721         * lib/fpucw.h: Enable the definitions also for x86_64.
94722         Needed for NetBSD/x86_64.
94723         Reported by Thomas Klausner <tk@giga.or.at>.
94725 2008-04-12  Bruno Haible  <bruno@clisp.org>
94727         * tests/test-strtod.c: Include isnand.h.
94728         (main): Use isnand instead of isnan.
94729         Reported by Jim Meyering.
94731 2008-04-12  Bruno Haible  <bruno@clisp.org>
94733         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94734         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94736 2008-04-12  Jim Meyering  <meyering@redhat.com>
94738         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94740 2008-04-12  Bruno Haible  <bruno@clisp.org>
94742         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94743         Reported by Elbert Pol <e.pol@chello.nl>.
94745 2008-04-12  Eric Blake  <ebb9@byu.net>
94747         Work around Solaris 10 math.h bug.
94748         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94749         (gl_MATH_H_DEFAULTS): Set up default.
94750         * modules/math (Makefile.am): Replace new indicators.
94751         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94752         * tests/test-math.c (main): Test this.
94753         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94754         * doc/posix-headers/math.texi (math.h): Mention bug.
94755         Reported by Nelson H. F. Beebe and Jim Meyering.
94757 2008-04-11  Bruno Haible  <bruno@clisp.org>
94759         Adapt to future versions of Apple GCC.
94760         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94761         Reported by Peter O'Gorman <peter@pogma.com>.
94763 2008-04-11  Bruno Haible  <bruno@clisp.org>
94765         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94767 2008-04-11  Bruno Haible  <bruno@clisp.org>
94769         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94771         * modules/getaddrinfo-tests (Makefile.am): Define
94772         test_getaddrinfo_LDADD.
94774 2008-04-11  Bruno Haible  <bruno@clisp.org>
94776         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94777         (init): Fix syntax error.
94778         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94779         is declared.
94781 2008-04-11  Bruno Haible  <bruno@clisp.org>
94783         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94784         * modules/glob (Depends-on): Add stdbool.
94786 2008-04-11  Bruno Haible  <bruno@clisp.org>
94788         * lib/trim.c: Include <string.h>.
94790 2008-04-11  Eric Blake  <ebb9@byu.net>
94792         Avoid compile failure on OS/2.
94793         * lib/regex_internal.h (internal_function): Disable optimization
94794         on OS/2 (__EMX__), where it caused compiler error.
94795         Reported by Elbert Pol.
94797 2008-04-11  Bruno Haible  <bruno@clisp.org>
94799         Flush the standard error stream before aborting. Needed on mingw.
94800         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94801         * tests/test-array_list.c (ASSERT): Likewise.
94802         * tests/test-array_oset.c (ASSERT): Likewise.
94803         * tests/test-avltree_list.c (ASSERT): Likewise.
94804         * tests/test-avltree_oset.c (ASSERT): Likewise.
94805         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94806         * tests/test-binary-io.c (ASSERT): Likewise.
94807         * tests/test-byteswap.c (ASSERT): Likewise.
94808         * tests/test-c-ctype.c (ASSERT): Likewise.
94809         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94810         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94811         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94812         * tests/test-c-strstr.c (ASSERT): Likewise.
94813         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94814         * tests/test-canonicalize.c (ASSERT): Likewise.
94815         * tests/test-carray_list.c (ASSERT): Likewise.
94816         * tests/test-ceilf1.c (ASSERT): Likewise.
94817         * tests/test-ceilf2.c (ASSERT): Likewise.
94818         * tests/test-ceill.c (ASSERT): Likewise.
94819         * tests/test-count-one-bits.c (ASSERT): Likewise.
94820         * tests/test-fbufmode.c (ASSERT): Likewise.
94821         * tests/test-fflush2.c (ASSERT): Likewise.
94822         * tests/test-floorf1.c (ASSERT): Likewise.
94823         * tests/test-floorf2.c (ASSERT): Likewise.
94824         * tests/test-floorl.c (ASSERT): Likewise.
94825         * tests/test-fopen.c (ASSERT): Likewise.
94826         * tests/test-fpending.c (ASSERT): Likewise.
94827         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94828         * tests/test-fpurge.c (ASSERT): Likewise.
94829         * tests/test-freadable.c (ASSERT): Likewise.
94830         * tests/test-freadahead.c (ASSERT): Likewise.
94831         * tests/test-freading.c (ASSERT): Likewise.
94832         * tests/test-freadptr.c (ASSERT): Likewise.
94833         * tests/test-freadptr2.c (ASSERT): Likewise.
94834         * tests/test-freadseek.c (ASSERT): Likewise.
94835         * tests/test-freopen.c (ASSERT): Likewise.
94836         * tests/test-frexp.c (ASSERT): Likewise.
94837         * tests/test-frexpl.c (ASSERT): Likewise.
94838         * tests/test-fseek.c (ASSERT): Likewise.
94839         * tests/test-fseeko.c (ASSERT): Likewise.
94840         * tests/test-fstrcmp.c (ASSERT): Likewise.
94841         * tests/test-ftell.c (ASSERT): Likewise.
94842         * tests/test-ftello.c (ASSERT): Likewise.
94843         * tests/test-func.c (ASSERT): Likewise.
94844         * tests/test-fwritable.c (ASSERT): Likewise.
94845         * tests/test-fwriting.c (ASSERT): Likewise.
94846         * tests/test-getdelim.c (ASSERT): Likewise.
94847         * tests/test-getline.c (ASSERT): Likewise.
94848         * tests/test-i-ring.c (ASSERT): Likewise.
94849         * tests/test-iconv-utf.c (ASSERT): Likewise.
94850         * tests/test-iconv.c (ASSERT): Likewise.
94851         * tests/test-isfinite.c (ASSERT): Likewise.
94852         * tests/test-isnand.c (ASSERT): Likewise.
94853         * tests/test-isnanf.c (ASSERT): Likewise.
94854         * tests/test-isnanl.h (ASSERT): Likewise.
94855         * tests/test-ldexpl.c (ASSERT): Likewise.
94856         * tests/test-linked_list.c (ASSERT): Likewise.
94857         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94858         * tests/test-localename.c (ASSERT): Likewise.
94859         * tests/test-lseek.c (ASSERT): Likewise.
94860         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94861         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94862         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94863         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94864         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94865         * tests/test-mbschr.c (ASSERT): Likewise.
94866         * tests/test-mbscspn.c (ASSERT): Likewise.
94867         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94868         * tests/test-mbspbrk.c (ASSERT): Likewise.
94869         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94870         * tests/test-mbsrchr.c (ASSERT): Likewise.
94871         * tests/test-mbsspn.c (ASSERT): Likewise.
94872         * tests/test-mbsstr1.c (ASSERT): Likewise.
94873         * tests/test-mbsstr2.c (ASSERT): Likewise.
94874         * tests/test-mbsstr3.c (ASSERT): Likewise.
94875         * tests/test-memchr2.c (ASSERT): Likewise.
94876         * tests/test-memmem.c (ASSERT): Likewise.
94877         * tests/test-open.c (ASSERT): Likewise.
94878         * tests/test-printf-frexp.c (ASSERT): Likewise.
94879         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94880         * tests/test-printf-posix.c (ASSERT): Likewise.
94881         * tests/test-quotearg.c (ASSERT): Likewise.
94882         * tests/test-rbtree_list.c (ASSERT): Likewise.
94883         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94884         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94885         * tests/test-round1.c (ASSERT): Likewise.
94886         * tests/test-roundf1.c (ASSERT): Likewise.
94887         * tests/test-roundl.c (ASSERT): Likewise.
94888         * tests/test-signbit.c (ASSERT): Likewise.
94889         * tests/test-sleep.c (ASSERT): Likewise.
94890         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94891         * tests/test-snprintf.c (ASSERT): Likewise.
94892         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94893         * tests/test-stat-time.c (ASSERT): Likewise.
94894         * tests/test-strcasestr.c (ASSERT): Likewise.
94895         * tests/test-strerror.c (ASSERT): Likewise.
94896         * tests/test-striconv.c (ASSERT): Likewise.
94897         * tests/test-striconveh.c (ASSERT): Likewise.
94898         * tests/test-striconveha.c (ASSERT): Likewise.
94899         * tests/test-strsignal.c (ASSERT): Likewise.
94900         * tests/test-strstr.c (ASSERT): Likewise.
94901         * tests/test-strtod.c (ASSERT): Likewise.
94902         * tests/test-trunc1.c (ASSERT): Likewise.
94903         * tests/test-trunc2.c (ASSERT): Likewise.
94904         * tests/test-truncf1.c (ASSERT): Likewise.
94905         * tests/test-truncf2.c (ASSERT): Likewise.
94906         * tests/test-truncl.c (ASSERT): Likewise.
94907         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94908         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94909         * tests/test-vasnprintf.c (ASSERT): Likewise.
94910         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94911         * tests/test-vasprintf.c (ASSERT): Likewise.
94912         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94913         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94914         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94915         * tests/test-vsnprintf.c (ASSERT): Likewise.
94916         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94917         * tests/test-wcwidth.c (ASSERT): Likewise.
94918         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94919         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94920         * tests/test-xvasprintf.c (ASSERT): Likewise.
94921         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94922         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94923         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94924         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94925         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94926         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94927         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94928         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94929         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94930         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94931         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94932         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94933         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94934         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94935         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94936         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94937         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94938         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94939         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94940         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94941         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94942         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94943         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94944         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94945         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94946         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94947         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94948         * tests/unictype/test-combining.c (ASSERT): Likewise.
94949         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94950         * tests/unictype/test-digit.c (ASSERT): Likewise.
94951         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94952         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94953         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94954         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94955         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94956         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94957         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94958         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94959         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94960         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94961         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94962         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94963         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94964         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94965         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94966         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94967         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94968         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94969         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94970         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94971         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94972         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94973         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94974         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94975         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94976         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94977         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94978         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94979         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94980         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94981         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94982         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94983         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94984         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94985         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94986         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94987         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94988         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94989         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94990         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94991         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94992         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94993         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94994         Reported by Eric Blake.
94996 2008-04-11  Bruno Haible  <bruno@clisp.org>
94998         * lib/wchar.in.h: Tweak comment.
95000 2008-04-11  Bruno Haible  <bruno@clisp.org>
95002         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
95003         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
95004         gl_COMMON.
95005         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
95007 2008-04-11  Bruno Haible  <bruno@clisp.org>
95009         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
95011 2008-04-11  Simon Josefsson  <simon@josefsson.org>
95013         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
95014         of attempting to use non-existing /dev/*random.  Based on patch
95015         from Adam Strzelecki <ono@java.pl> in
95016         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
95018 2008-04-08  Bruno Haible  <bruno@clisp.org>
95020         Add tentative support for emx+gcc.
95021         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
95022         * lib/fpurge.c (fpurge): Likewise.
95023         * lib/freadable.c (freadable): Likewise.
95024         * lib/freadahead.c (freadahead): Likewise.
95025         * lib/freading.c (freading): Likewise.
95026         * lib/freadptr.c (freadptr): Likewise.
95027         * lib/freadseek.c (freadptrinc): Likewise.
95028         * lib/fseeko.c (rpl_fseeko): Likewise.
95029         * lib/fseterr.c (fseterr): Likewise.
95030         * lib/fwritable.c (fwritable): Likewise.
95031         * lib/fwriting.c (fwriting): Likewise.
95032         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
95034 2008-04-09  Eric Blake  <ebb9@byu.net>
95036         Avoid some autoconf warnings.
95037         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
95038         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
95039         * m4/afs.m4 (gl_AFS): Likewise.
95040         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
95041         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
95042         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95043         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
95044         (gl_INTEGER_TYPE_SUFFIX): Likewise.
95045         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
95046         (AC_CHECK_DECLS_ONCE): Likewise.
95047         Rename file...
95048         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
95049         gnulib-tool requires autoconf 2.59 or better.
95050         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
95052 2008-04-08  Eric Blake  <ebb9@byu.net>
95054         Use 'git describe --match' if present (added in git 1.5.5).
95055         * build-aux/git-version-gen: Limit result to tags that match 'v*'
95056         if possible.
95058 2008-04-08  Bruno Haible  <bruno@clisp.org>
95060         Add tentative support for OpenServer.
95061         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
95062         _ptr, _cnt.
95063         * lib/fpurge.c (fpurge): Likewise.
95064         * lib/freadable.c (freadable): Likewise.
95065         * lib/freadahead.c (freadahead): Likewise.
95066         * lib/freading.c (freading): Likewise.
95067         * lib/freadptr.c (freadptr): Likewise.
95068         * lib/freadseek.c (freadptrinc): Likewise.
95069         * lib/fseeko.c (rpl_fseeko): Likewise.
95070         * lib/fseterr.c (fseterr): Likewise.
95071         * lib/fwritable.c (fwritable): Likewise.
95072         * lib/fwriting.c (fwriting): Likewise.
95073         Reported by Roger Cornelius <rac@tenzing.org> and
95074         Brian K. White <brian@aljex.com>.
95076 2008-04-06  Jim Meyering  <meyering@redhat.com>
95078         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
95080 2008-04-06  Bruno Haible  <bruno@clisp.org>
95082         Avoid possible error with non-ASCII bytes in UTF-8 locales.
95083         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
95084         * tests/test-printf-posix.sh: Likewise.
95085         * tests/test-vfprintf-posix.sh: Likewise.
95086         * tests/test-vprintf-posix.sh: Likewise.
95087         * tests/test-xprintf-posix.sh: Likewise.
95089 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95091         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
95092         hide error from 'ls', needed on OS/2.
95093         Report by Elbert Pol <elbert.pol@gmail.com>.
95095 2008-04-04  Eric Blake  <ebb9@byu.net>
95097         Make test-fseeko.c failures meaningful.
95098         * tests/test-fseeko.c: Print line number on failure.
95099         * tests/test-fseek.c: Likewise.
95100         Reported by Nelson H. F. Beebe.
95102         Improve strtod bug detection check.
95103         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
95104         required for Solaris 10.
95105         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
95107 2008-04-04  Bruno Haible  <bruno@clisp.org>
95109         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
95110         by m4/setenv.m4.
95112 2008-04-03  Eric Blake  <ebb9@byu.net>
95114         Ensure sane .version contents.
95115         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
95116         version string.
95117         * build-aux/git-version-gen: Improve documentation.
95119         Make GNU make output nicer.
95120         * top/GNUmakefile [!_have-Makefile]: Add dependency on
95121         MAKECMDGOALS to enforce message for all command line targets.  Set
95122         srcdir for use in maint.mk.
95124         Another maintainer tweak.
95125         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
95126         a target that regenerates version.
95128 2008-04-03  Jim Meyering  <meyering@redhat.com>
95130         vc-list-files: don't cause coreutils "make po-check" failure
95131         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
95133 2008-04-03  Eric Blake  <ebb9@byu.net>
95135         Allow VPATH usage of vc-list-files.
95136         * build-aux/vc-list-files (scriptversion): Add timestamp.
95137         (options): Add --help, --version, -C.
95138         (CVS): Support installed cvsu.
95140 2008-04-02  Bruno Haible  <bruno@clisp.org>
95142         Avoid some "statement with no effect" warnings from gcc.
95143         * tests/test-wctype.c (main): Explicitly ignore unused values.
95144         Reported by Jim Meyering.
95146 2008-04-02  Jim Meyering  <meyering@redhat.com>
95148         Avoid some warnings from "gcc -Wshadow".
95149         * tests/test-frexp.c (exp): Define to a different identifier.
95150         * tests/test-frexpl.c (exp): Likewise.
95152 2008-04-03  Jim Meyering  <meyering@redhat.com>
95154         bootstrap: remove dangling *.[ch] symlinks from lib
95155         * build-aux/bootstrap [dangling symlink removal]: Move find's
95156         -depth option to precede all others, to avoid a warning.
95157         Remove *.[ch] files too, and from "$source_base" (usually lib/).
95159 2008-04-02  Bruno Haible  <bruno@clisp.org>
95161         Avoid some warnings from "gcc -Wshadow".
95162         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
95163         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
95164         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
95165         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
95166         Reported by Jim Meyering.
95168 2008-04-01  Bruno Haible  <bruno@clisp.org>
95170         Fix test to work on IRIX 6.5 with cc.
95171         * tests/test-math.c (numeric_equal): New function.
95172         (main): Use it.
95174 2008-04-01  Bruno Haible  <bruno@clisp.org>
95176         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
95178 2008-04-01  Bruno Haible  <bruno@clisp.org>
95180         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
95181         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95182         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
95183         (Depends-on): Remove math.
95185         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
95186         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95187         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
95188         (Depends-on): Remove math.
95190         * tests/test-snprintf-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/snprintf-posix-tests (Files): Add tests/nan.h.
95193         (Depends-on): Remove math.
95194         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
95195         (Depends-on): Remove math.
95197         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
95198         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
95199         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
95200         (Depends-on): Remove math.
95201         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
95202         (Depends-on): Remove math.
95204         * tests/test-round1.c: Include nan.h.
95205         (main): Use NaNd instead of NAN.
95206         * modules/round-tests (Files): Add tests/nan.h.
95208         * tests/test-trunc1.c: Include nan.h.
95209         (main): Use NaNd instead of NAN.
95210         * modules/trunc-tests (Files): Add tests/nan.h.
95212         * tests/test-roundf1.c: Include nan.h.
95213         (main): Use NaNf instead of NAN.
95214         * modules/roundf-tests (Files): Add tests/nan.h.
95216         * tests/test-truncf1.c: Include nan.h.
95217         (main): Use NaNf instead of NAN.
95218         * modules/truncf-tests (Files): Add tests/nan.h.
95220         * tests/test-ceilf1.c: Include nan.h.
95221         (main): Use NaNf instead of NAN.
95222         * modules/ceilf-tests (Files): Add tests/nan.h.
95224         * tests/test-floorf1.c: Include nan.h.
95225         (main): Use NaNf instead of NAN.
95226         * modules/floorf-tests (Files): Add tests/nan.h.
95228         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
95229         (main): Use NaNf instead of NAN.
95230         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
95232         * tests/test-isnand.c: Include nan.h instead of <math.h>.
95233         (main): Use NaNd instead of NAN.
95234         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
95236         * tests/test-frexp.c: Include nan.h.
95237         (main): Use NaNd instead of NAN.
95238         * modules/frexp-tests (Files): Add tests/nan.h.
95240         * lib/isnan.c: Don't include <math.h>.
95241         (FUNC): Don't use NAN macro.
95242         * modules/isnand-nolibm (Depends-on): Remove math.
95243         * modules/isnanf-nolibm (Depends-on): Remove math.
95244         * modules/isnanl (Depends-on): Remove math.
95245         * modules/isnanl-nolibm (Depends-on): Remove math.
95247         * tests/nan.h: New file.
95249 2008-04-01  Eric Blake  <ebb9@byu.net>
95251         Fix typos.
95252         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
95253         values to be the right type.
95255         For now, cater to gnulib strtod inaccuracies.
95256         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95257         fractional results.  While not as nice from a QoI perspective, it
95258         is a quicker patch than correctly implementing decimal to binary
95259         rounding.
95261 2008-03-31  Eric Blake  <ebb9@byu.net>
95263         Guarantee a definition of NAN.
95264         * lib/math.in.h (NAN): Define if missing.
95265         * tests/test-math.c (main): Test it.
95266         * doc/posix-headers/math.texi (math.h): Document this.
95267         * lib/isnan.c (rpl_isnand): Use it.
95268         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95269         * tests/test-floorf1.c (NaN): Likewise.
95270         * tests/test-frexp.c (NaN): Likewise.
95271         * tests/test-isnand.c (NaN): Likewise.
95272         * tests/test-isnanf.c (NaN): Likewise.
95273         * tests/test-round1.c (NaN): Likewise.
95274         * tests/test-roundf1.c (NaN): Likewise.
95275         * tests/test-snprintf-posix.h (NaN): Likewise.
95276         * tests/test-sprintf-posix.h (NaN): Likewise.
95277         * tests/test-trunc1.c (NaN): Likewise.
95278         * tests/test-truncf1.c (NaN): Likewise.
95279         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95280         * tests/test-vasprintf-posix.c (NaN): Likewise.
95281         * modules/isnand-nolibm (Depends-on): Add math.
95282         * modules/isnanf-nolibm (Depends-on): Likewise.
95283         * modules/isnanl (Depends-on): Likewise.
95284         * modules/isnanl-nolibm (Depends-on): Likewise.
95285         * modules/snprintf-posix-tests (Depends-on): Likewise.
95286         * modules/sprintf-posix-tests (Depends-on): Likewise.
95287         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95288         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95289         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95290         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95292 2008-03-31  Bruno Haible  <bruno@clisp.org>
95294         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95295         * doc/posix-functions/strtod.texi: Likewise.
95297 2008-03-31  Bruno Haible  <bruno@clisp.org>
95299         * tests/test-strtod.c (main): Don't use C99 syntax.
95301 2008-03-31  Bruno Haible  <bruno@clisp.org>
95303         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95304         Reported by Eric Blake.
95306 2008-03-31  Jim Meyering  <meyering@redhat.com>
95308         Don't compare actual signbit return values.
95309         * tests/test-strtod.c (main): Rather, compare only their
95310         zero/non-zero nature.
95312 2008-03-31  Eric Blake  <ebb9@byu.net>
95314         More strtod documentation.
95315         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95316         failures as distinct bugs.
95318 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95320         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95321         Problem reported by Erik Benada in
95322         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95324 2008-03-30  Bruno Haible  <bruno@clisp.org>
95326         * tests/test-strtod.c: Add comments about which assertion fails on which
95327         platform.
95328         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95330 2008-03-30  Eric Blake  <ebb9@byu.net>
95332         Test signbit behavior on zeros.
95333         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95334         (test_signbitd, test_signbitl): Likewise.
95336         More strtod touchups.
95337         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95338         sign of negative underflow, for now.  Use .5, not .1.
95339         * doc/posix-functions/strtod.texi (strtod): Mention these
95340         limitations.
95341         Reported by Jim Meyering.
95343 2008-03-30  Bruno Haible  <bruno@clisp.org>
95345         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95346         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95348 2008-03-30  Bruno Haible  <bruno@clisp.org>
95350         Avoid failure when attempting to return empty iconv results on some
95351         platforms.
95352         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95353         allocation, don't report ENOMEM when the resulting string is empty.
95355 2008-03-30  Bruno Haible  <bruno@clisp.org>
95357         Fix buffer overrun.
95358         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95359         Don't consider the width for tmp_length. Check count against tmp_length
95360         before doing the padding. Ensure enough allocation during padding.
95362 2008-03-30  Eric Blake  <ebb9@byu.net>
95364         strtod touchups.
95365         * lib/strtod.c (strtod): Avoid compiler warnings.
95366         Reported by Jim Meyering.
95368 2008-03-30  Bruno Haible  <bruno@clisp.org>
95370         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95371         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95372         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95373         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95374         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95375         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95376         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95377         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95379         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95380         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95381         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95382         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95383         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95384         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95385         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95386         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95388         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95389         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95390         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95391         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95392         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95393         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95394         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95395         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95397         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95398         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95400         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95401         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95403         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95404         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95406         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95407         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95408         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95410         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95412         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95414         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95416         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95418         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95419         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95420         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95422         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95423         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95425         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95426         (Depends-on): Add EOVERFLOW.
95427         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95428         (Depends-on): Add EOVERFLOW.
95429         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95430         (Depends-on): Add EOVERFLOW.
95431         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95432         (Depends-on): Add EOVERFLOW.
95433         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95434         (Depends-on): Add EOVERFLOW.
95435         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95436         (Depends-on): Add EOVERFLOW.
95437         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95438         (Depends-on): Add EOVERFLOW.
95439         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95440         (Depends-on): Add EOVERFLOW.
95442         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95444         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95446         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95447         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95448         * modules/snprintf (Depends-on): Add EOVERFLOW.
95450         * lib/poll.c (EOVERFLOW): Remove fallback.
95451         * modules/poll (Depends-on): Add EOVERFLOW.
95453         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95454         * modules/getugroups (Depends-on): Add EOVERFLOW.
95456         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95457         * modules/getdelim (Depends-on): Add EOVERFLOW.
95459         * lib/ftell.c (EOVERFLOW): Remove fallback.
95460         * modules/ftell (Depends-on): Add EOVERFLOW.
95462         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95463         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95464         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95466         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95468         * modules/EOVERFLOW-tests: New file.
95469         * tests/test-EOVERFLOW.c: New file.
95471         * modules/EOVERFLOW: New file.
95472         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95474 2008-03-30  Bruno Haible  <bruno@clisp.org>
95476         Fix bug introduced on 2007-06-10.
95477         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95478         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95480 2008-03-30  Bruno Haible  <bruno@clisp.org>
95482         Improve freadseek's efficiency after ungetc.
95483         * lib/freadseek.c: Include freadahead.h.
95484         (freadptrinc): New function, extracted from freadseek.
95485         (freadseek): Use it in a loop. Use freadahead to determine the number
95486         of loop iterations.
95487         * modules/freadseek (Depends-on): Add freadahead.
95488         (configure.ac): Require AC_C_INLINE.
95490 2008-03-30  Bruno Haible  <bruno@clisp.org>
95492         * lib/freadseek.c (freadseek): Don't ignore the return value of
95493         freadptr.
95495 2008-03-29  Eric Blake  <ebb9@byu.net>
95497         Add hex float support.
95498         * modules/strtod (Depends-on): Add c-ctype.
95499         (Link): Mention POW_LIB.
95500         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95501         whitespace between 'e' and exponent.
95502         * tests/test-strtod.c (main): Enable hex float tests.
95503         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95504         now provides.
95506         Document various strtod bugs, with some fixes.
95507         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95508         "-0x", "inf", "nan", and hex constants.
95509         * doc/posix-functions/atof.texi (atof): Likewise.
95510         * modules/stdlib (Makefile.am): Support strtod.
95511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95512         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95513         detect additional strtod bugs.
95514         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95515         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95516         bool where appropriate.  Parse 'inf' and 'nan'.
95517         * tests/test-strtod.c: New file.
95518         * modules/strtod (Depends-on): Add stdbool, stdlib.
95519         (configure.ac): Turn on module indicator.
95520         * modules/strtod-tests: New module.
95522 2008-03-29  Eric Blake  <ebb9@byu.net>
95524         Fix ftell on mingw.
95525         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95526         * modules/ftell-tests (Depends-on): Add binary-io.
95527         * modules/ftello-tests (Depends-on): Likewise.
95528         * tests/test-ftell.c (main): Enhance test to cover behavior after
95529         ungetc.  Enforce binary mode.
95530         * tests/test-ftello.c (main): Likewise.
95532         Pass test-freadseek on cygwin.
95533         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95534         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95535         ungetc buffer.
95537         * tests/test-fflush2.c (main): Fix typo.
95539 2008-03-29  Bruno Haible  <bruno@clisp.org>
95541         * tests/test-fflush2.c (main): Temporarily disable the contents of
95542         this test.
95543         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95544         Reported by Eric Blake.
95546 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95548         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95549         (GC_SHA224_DIGEST_SIZE): Add.
95551         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95552         (gc_hash_digest_length): Likewise.
95553         (gc_hash_buffer): Likewise.
95555 2008-03-25  Bruno Haible  <bruno@clisp.org>
95557         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95558         detail which gettext release to use.
95559         Reported by Simon Josefsson.
95561 2008-03-26  Jim Meyering  <meyering@redhat.com>
95563         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95564         * modules/gnumakefile (clean-GNUmakefile): Also, use
95565         test ... && ... || : syntax rather than if-then ... fi.
95567         gnumakefile: Don't double-quote-expand $(VPATH) value.
95568         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95570 2008-03-24  Eric Blake  <ebb9@byu.net>
95572         Alter GNUmakefile to install into top directory.
95573         * modules/maintainer-makefile: Split, and add dependency...
95574         * modules/gnumakefile: to this new module.
95575         * build-aux/GNUmakefile: Move...
95576         * top/GNUmakefile: ...here.
95577         * build-aux/maint.mk: Move...
95578         * top/maint.mk: ...here.
95579         * MODULES.html.sh (Support for maintaining...): Document new
95580         module.
95582 2008-03-23  Bruno Haible  <bruno@clisp.org>
95584         * gnulib-tool: New options --vc-files, --no-vc-files.
95585         (func_usage): Document them.
95586         (vc_files): New variable.
95587         (func_import): Consider vc_files.
95588         (func_create_testdir): Set vc_files to empty.
95589         Suggested by Jim Meyering and Karl Berry.
95591 2008-03-23  Bruno Haible  <bruno@clisp.org>
95593         Fix regex compilation error on HP-UX 11.
95594         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95595         * modules/regex (Files): Add m4/mbstate_t.m4.
95596         Reported by Ton Voon <ton.voon@altinity.com>.
95598 2008-03-23  Bruno Haible  <bruno@clisp.org>
95600         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95602 2008-03-23  Eric Blake  <ebb9@byu.net>
95603             Bruno Haible  <bruno@clisp.org>
95605         Install files from top/ in the destination directory.
95606         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95607         augmentation also for the files from top/.
95608         (func_import, func_create_testdir): Rewrite file names:
95609         top/filename -> filename.
95611 2008-03-23  Bruno Haible  <bruno@clisp.org>
95613         Tweak "gnulib --version" output.
95614         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95616 2008-03-23  Bruno Haible  <bruno@clisp.org>
95618         Tweak "gnulib --version" output.
95619         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95620         rather than contents of ChangeLog, when possible.
95622 2008-03-21  Eric Blake  <ebb9@byu.net>
95624         More --version tweaks.
95625         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95626         date of last ChangeLog entry.
95628 2008-03-21  Jim Meyering  <meyering@redhat.com>
95630         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95632 2008-03-20  Eric Blake  <ebb9@byu.net>
95634         VPATH fix.
95635         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95637 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95639         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95640         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95642 2008-03-20  Eric Blake  <ebb9@byu.net>
95644         Sync GNUmakefile with coreutils.
95645         * build-aux/GNUmakefile (have-Makefile): Rename...
95646         (_have-Makefile): ...to this, for namespace consideration.
95647         (GNUmakefile.cfg): Include, if present.
95648         (_autoreconf): Define a default.
95649         (_is-dist-target): New rule for rebuilds to pick up intra-release
95650         version.
95651         (maint-cfg.mk): Rename...
95652         (cfg.mk): ...to this.
95654 2008-03-18  Jim Meyering  <meyering@redhat.com>
95656         New script and module: mktempd
95657         * MODULES.html.sh (maint+release support): Add mktempd.
95658         * build-aux/mktempd: New file.
95659         * modules/mktempd: New file.
95661 2008-03-15  Jim Meyering  <meyering@redhat.com>
95663         Undo last change.
95664         * lib/sha1.c, lib/md5.c: 63 != ~63.
95665         Reported by Andreas Schwab.
95667         sha1.c, md5.c: Hoist a redundant expression.
95668         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95669         "ctx->buflen" only once, before calling *_process_block.
95670         * lib/md5.c (md5_process_bytes): Likewise.
95672 2008-03-14  Eric Blake  <ebb9@byu.net>
95674         Bump copyright year in files generated by gnulib-tool.
95675         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95676         gnulib-tool, rather than hard-coding it.
95678         Fix 'gnulib-tool --version' output to work with git.
95679         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95680         (startup): ...here.
95681         (func_version): Use it to invoke git-version-gen, rather than
95682         relying on CVS keyword expansion.  Modernize wording.
95683         (cvsdatestamp, last_checkin_date, version): Kill unused
95684         variables.
95686 2008-03-12  Jim Meyering  <meyering@redhat.com>
95688         Recognize optional cast of the argument to free.
95689         * build-aux/useless-if-before-free: Update regexps.
95691         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95693 2008-03-11  Bruno Haible  <bruno@clisp.org>
95695         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95696         by a single package.
95697         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95698         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95699         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95700         Reported by Sam Steingold <sds@gnu.org>.
95702 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95704         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95705         repositories.
95707 2008-03-11  Bruno Haible  <bruno@clisp.org>
95709         Avoid conflicts between local macro definitions.
95710         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95711         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95713 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95714             Bruno Haible  <bruno@clisp.org>
95716         Make va_copy work with some version of xlc on AIX 5.1.
95717         * lib/stdarg.in.h: New file.
95718         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95719         On AIX, use a <stdarg.h> file substitute.
95720         * modules/stdarg (Files): Add lib/stdarg.in.h.
95721         (Depends-on): Add include_next.
95722         (Makefile.am): Build a stdarg.h substitute if requested.
95723         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95725 2008-03-10  Bruno Haible  <bruno@clisp.org>
95727         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95728         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95729         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95731 2008-03-10  Bruno Haible  <bruno@clisp.org>
95733         * modules/stdlib (Depends-on): Add include_next, remove
95734         absolute-header.
95736 2008-03-09  Bruno Haible  <bruno@clisp.org>
95738         * lib/freadahead.h (freadahead): Document more precisely.
95739         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95740         the sum of both buffer sizes.
95741         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95742         * NEWS: Document the change.
95744 2008-03-09  Bruno Haible  <bruno@clisp.org>
95746         Extend freadptr to return also the buffer size.
95747         * lib/freadptr.h (freadptr): Add sizep argument.
95748         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95749         (freadptr): Add sizep argument. Determine buffer size like freadahead
95750         does.
95751         * tests/test-freadptr.c: Don't include freadahead.h.
95752         (main): Adapt for new calling convention of freadptr.
95753         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95754         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95755         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95756         tests/test-freadptr2.sh.
95757         (Depends): Remove freadahead.
95758         (TESTS): Add test-freadptr2.sh.
95759         (check_PROGRAMS): Add test-freadptr2.
95761 2008-03-09  Bruno Haible  <bruno@clisp.org>
95763         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95764         Report and solution by Simon Josefsson.
95766 2008-03-06  Bruno Haible  <bruno@clisp.org>
95768         Make fflush after ungetc work on BSD platforms.
95769         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95770         * tests/test-fflush2.c: New file.
95771         * tests/test-fflush2.sh: New file.
95772         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95773         tests/test-fflush2.c.
95774         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95775         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95777 2008-03-06  Eric Blake  <ebb9@byu.net>
95779         Likewise for ftello.
95780         * modules/ftello (Dependencies): Add extensions.
95781         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95783 2008-03-06  Bruno Haible  <bruno@clisp.org>
95785         * modules/fseeko (Dependencies): Add extensions.
95786         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95787         Needed on glibc systems.
95789 2008-03-06  Bruno Haible  <bruno@clisp.org>
95791         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95792         email address.
95793         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95795 2008-03-06  Bruno Haible  <bruno@clisp.org>
95797         * users.txt: Add libgnupdf.
95799 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95801         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95802         (Header File Substitutes, Function Substitutes,
95803         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95804         (Build robot for gnulib): Fix typo.
95806 2008-03-06  Bruno Haible  <bruno@clisp.org>
95808         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95809         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95811 2008-03-06  Bruno Haible  <bruno@clisp.org>
95813         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95814         * doc/gnulib.texi: Include it.
95816 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95818         * modules/func (License): Change license to unlimited; there was
95819         no LGPL parts in the module anyway.
95821 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95823         * modules/__func__: Renamed to modules/func.
95824         * modules/__func__-tests: Renamed to modules/func-tests.
95825         * tests/test-__func__.c: Renamed to tests/test-func.c.
95826         * m4/__func__.m4: Renamed to m4/func.m4.
95827         * doc/gnulib.texi (__func__): Section renamed to func.
95828         Suggested by Eric Blake <ebb9@byu.net>.
95830 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95832         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95833         about __func__.  Make example self-contained.  Suggested by Eric
95834         Blake <ebb9@byu.net>.
95836         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95837         Suggested by Eric Blake <ebb9@byu.net>.
95839 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95841         * modules/__func__: New file.
95842         * modules/__func__-tests: New file.
95843         * tests/test-__func__.c: New file.
95844         * m4/__func__.m4: New file.
95845         * doc/gnulib.texi (__func__): Document __func__ module.
95847 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95849         * modules/byteswap (License): Re-license as LGPLv2+.
95851 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95853         * doc/Makefile: Add pdf target.
95855 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95857         * modules/inline (License): Use 'unlimited', since there are only
95858         *.m4 files in this module.
95860 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95861             Bruno Haible  <bruno@clisp.org>
95863         Add support for HP C 7.1 on OpenVMS 8.3.
95864         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95866 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95868         Update VMS specifics.
95869         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95871 2008-03-02  Jim Meyering  <meyering@redhat.com>
95873         Remove the last dependency on the "free" module.
95874         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95875         Reported by Bob Proulx.
95877         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95879         Remove useless "if" tests before free.  Deprecate "free" module.
95880         * doc/posix-functions/free.texi: Mention that this
95881         module is no longer useful.
95882         * modules/free (Notice): Say this module is obsolete.
95883         * modules/readutmp (Depends-on): Remove free.
95884         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95885         * lib/putenv.c (putenv): Likewise.
95886         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95887         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95888         * tests/test-c-strcasestr.c (main): Likewise.
95889         * tests/test-c-strstr.c (main): Likewise.
95890         * tests/test-mbscasestr1.c (main): Likewise.
95891         * tests/test-mbscasestr2.c (main): Likewise.
95892         * tests/test-mbsstr1.c (main): Likewise.
95893         * tests/test-mbsstr2.c (main): Likewise.
95894         * tests/test-memmem.c (main): Likewise.
95895         * tests/test-strcasestr.c (main): Likewise.
95896         * tests/test-striconv.c (main): Likewise.
95897         * tests/test-striconveh.c (main): Likewise.
95898         * tests/test-striconveha.c (main): Likewise.
95899         * tests/test-strstr.c (main): Likewise.
95901         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95903         bootstrap: sync from coreutils again
95904         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95906 2008-03-01  Jim Meyering  <meyering@redhat.com>
95908         bootstrap: sync from coreutils
95909         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95910         also when the target doesn't exist.
95912 2008-03-01  Eric Blake  <ebb9@byu.net>
95914         Fix bugs in last patch.
95915         * lib/memchr2.c (memchr2): Fix typo.
95916         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95917         extension.
95918         Reported by Bruce Korb.
95920         New module 'memchr2'.
95921         * modules/memchr2: New file.
95922         * modules/memchr2-tests: Likewise.
95923         * lib/memchr2.h: Likewise.
95924         * lib/memchr2.c: Likewise, based on memchr.c.
95925         * tests/test-memchr2.c: New test.
95926         * MODULES.html.sh (String handling): Add memchr2.
95928 2008-02-29  Bruno Haible  <bruno@clisp.org>
95930         * modules/freadseek-tests: New file.
95931         * tests/test-freadseek.sh: New file.
95932         * tests/test-freadseek.c: New file.
95934         New module 'freadseek'.
95935         * modules/freadseek: New file.
95936         * lib/freadseek.h: New file.
95937         * lib/freadseek.c: New file.
95938         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95940 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95942         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95943         wydawca.
95945         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95946         program_invocation_name and program_invocation_short_name are
95947         present.
95949 2008-02-28  Bruno Haible  <bruno@clisp.org>
95951         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95952         * tests/test-freadptr.sh: Also test non-seekable stdin.
95954 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95956         * build-aux/bootstrap (source_base, m4_base)
95957         (doc_base, tests_base): New variables.
95958         (gnulib_tool_options): Do not hardcode base directories, use
95959         the above variables instead.
95961 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95963         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95965 2008-02-28  Bruno Haible  <bruno@clisp.org>
95967         * modules/freadptr-tests: New file.
95968         * tests/test-freadptr.sh: New file.
95969         * tests/test-freadptr.c: New file.
95971         New module 'freadptr'.
95972         * modules/freadptr: New file.
95973         * lib/freadptr.h: New file.
95974         * lib/freadptr.c: New file.
95975         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95977 2008-02-26  Karl Berry  <karl@freefriends.org>
95979         Sync from Libtool:
95980         * libltdl/argz.c (argz_add, argz_count): New functions.
95981         * libltdl/argz.in.h: Declare them.
95982         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95984 2008-02-22  Bruno Haible  <bruno@clisp.org>
95986         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95987         is a pointer type.  Needed for HP-UX 10.
95988         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95989         * doc/posix-functions/gmtime_r.texi: Likewise.
95990         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95992 2008-02-24  Bruno Haible  <bruno@clisp.org>
95994         * modules/environ-tests: New file.
95995         * tests/test-environ.c: New file.
95997         New module 'environ'.
95998         * modules/environ: New file.
95999         * lib/unistd.in.h (environ): New declaration.
96000         * m4/environ.m4: New file.
96001         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
96002         after use.
96003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
96004         HAVE_DECL_ENVIRON.
96005         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
96006         HAVE_DECL_ENVIRON.
96007         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
96008         wrong claim that 'environ' is missing on some systems.
96009         * modules/execute (Depends-on): Add environ.
96010         * lib/execute.c (environ): Remove fallback declaration.
96011         * modules/pipe (Depends-on): Add environ.
96012         * lib/pipe.c (environ): Remove fallback declaration.
96013         * modules/setenv (Depends-on): Add environ.
96014         * lib/setenv.c (environ): Remove fallback declaration.
96015         * modules/unsetenv (Depends-on): Add environ.
96016         * lib/unsetenv.c (environ): Remove fallback declaration.
96017         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
96018         m4/environ.m4.
96019         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
96020         (gl_PREREQ_UNSETENV): Likewise.
96022 2008-02-24  Bruno Haible  <bruno@clisp.org>
96024         * doc/posix-functions/environ.texi: Document the MacOS X problem.
96026 2008-02-20  Bob Proulx  <bob@proulx.com>
96028         Enable use of older two part flavor 'git describe'.
96029         * build-aux/git-version-gen: If using the older two part flavor of
96030         git version then recreate the third part now present in the
96031         newer three part flavor of git describe.
96033 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
96035         * lib/fts.c (fts_build): Typo correction to comment.
96037 2008-02-17  Bruno Haible  <bruno@clisp.org>
96039         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
96040         generating no-op conflicts.
96042 2008-02-17  Bruno Haible  <bruno@clisp.org>
96044         Speed up by 10%.
96045         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
96046         result_entries, rather than an index-based loop.
96048 2008-02-17  Bruno Haible  <bruno@clisp.org>
96050         Speed up by 25%.
96051         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
96052         'hashcode_cached'.
96053         (entry_create): New function.
96054         (entry_hashcode): Use the cached hashcode if possible.
96055         (read_changelog_file, try_split_merged_entry): Use entry_create.
96057 2008-02-17  Bruno Haible  <bruno@clisp.org>
96059         Speed up from O(n^2) to O(n) for long ChangeLog files.
96060         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
96061         (read_changelog_file): Change implementation of entries_reversed list
96062         to rbtreehash.
96063         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
96065 2008-02-17  Bruno Haible  <bruno@clisp.org>
96067         New option --split-merged-entry.
96068         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
96069         (find_paragraph_end, try_split_merged_entry): New functions.
96070         (long_options): Add option --split-merged-entry.
96071         (usage): Document option --split-merged-entry.
96072         (main): Implement option --split-merged-entry.
96073         Reported by Eric Blake.
96075 2008-02-17  Bruno Haible  <bruno@clisp.org>
96077         * lib/git-merge-changelog.c: Include c-strstr.h.
96078         (main): Support the "git pull --rebase" situation.
96079         * modules/git-merge-changelog (Depends-on): Add c-strstr.
96080         Reported by Eric Blake.
96082 2008-02-16  Eric Blake  <ebb9@byu.net>
96084         Avoid doubling \ in common case of "c-maybe" quoting style.
96085         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
96086         eliding outer quotes.
96087         * lib/quotearg.h: Document this.
96088         * tests/test-quotearg.c (result_strings, inputs, results_g)
96089         (flag_results, locale_results): Test it by adding a new string to
96090         each test group.
96091         (compare_strings): Test new string.
96093 2008-02-13  Eric Blake  <ebb9@byu.net>
96095         Avoid trigraph quoting in default output.
96096         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
96097         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
96098         unless explicitly requested.
96099         * tests/test-quotearg.c (flag_results, main): Add additional tests.
96101 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
96103         Don't rely on signed integer overflowing to negative value.
96104         * lib/getugroups.c (getugroups): Include <limits.h>.
96105         Instead, compare against INT_MAX, and increment only if the test passes.
96107 2008-02-13  Jim Meyering  <meyering@redhat.com>
96108         and Eric Blake  <ebb9@byu.net>
96110         Avoid shadowing warning and compile errors on Linux.
96111         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
96112         forwarding macros on Linux.
96113         (dcgettext): Define a stub, for Linux.
96114         (results_g, main): Avoid warnings.
96116 2008-02-12  Eric Blake  <ebb9@byu.net>
96118         Silence warning in last patch.
96119         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
96121         Quotearg part 4: add tests, fix c-maybe colon quoting.
96122         * lib/quotearg.h: Improve documentation.
96123         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
96124         escapes when adding outer quotes.  When quoting trigraphs, use
96125         valid C notation.  When quoting NUL, omit extra characters if next
96126         character is not digit.  Alter prototype.
96127         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
96128         callers.
96129         * modules/quotearg-tests: New module.
96130         * tests/test-quotearg.c: New test.
96132 2008-02-07  Eric Blake  <ebb9@byu.net>
96134         Quotearg part 3: add flag to control outer quote elision.
96135         * lib/quotearg.h (c_maybe_quoting_style): New style.
96136         (enum quoting_flags): Better documentation of flags.
96137         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
96138         c-maybe style.
96139         (quotearg_buffer_restyled): Handle new flag to elide outer
96140         quotes.
96142         Quotearg part 2: add flag that can control NUL elision.
96143         * lib/quotearg.h (set_quoting_flags): New prototype.
96144         * lib/quotearg.c (struct quoting_options): Add flag field.
96145         (set_quoting_flags): New function.
96146         (quotearg_buffer_restyled): Add flags parameter.
96147         (quotearg_alloc_mem): Set the flag if length cannot be returned.
96148         (quotearg_n_options): Set the flag, since length cannot be
96149         returned.
96150         (quoting_options_from_style): Default flags correctly.
96152         Quotearg part 1: more wrappers, restore quotearg_char state.
96153         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
96154         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
96155         (quotearg_colon_mem): New wrappers.
96156         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
96157         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
96158         functions.
96159         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
96160         (quotearg_colon_mem): New functions.
96162 2008-02-11  Bruno Haible  <bruno@clisp.org>
96164         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
96165         library in the current directory: it does not work with parallel make.
96166         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96168 2008-02-11  Bruno Haible  <bruno@clisp.org>
96170         * .gitattributes: New file.
96172 2008-02-11  Jim Meyering  <meyering@redhat.com>
96174         useless-if-before-free: Fix reversed exit values.
96175         * build-aux/useless-if-before-free: Use correct values
96176         for EXIT_MATCH and EXIT_NO_MATCH.
96178         * build-aux/useless-if-before-free: Close stdout carefully.
96180 2008-02-10  Bruno Haible  <bruno@clisp.org>
96182         New module 'git-merge-changelog'.
96183         * modules/git-merge-changelog: New file.
96184         * lib/git-merge-changelog.c: New file.
96186 2008-02-10  Jim Meyering  <meyering@redhat.com>
96188         useless-if-before-free: New option: --list (-l).
96190         useless-if-before-free: Don't exit immediately upon open failure.
96191         * build-aux/useless-if-before-free: Exit 2 for errors.
96192         Upon failure to open a file, don't exit immediately.
96193         Rather, just warn and continue with any remaining files.
96195 2008-02-10  Bruno Haible  <bruno@clisp.org>
96197         New abstract list operation 'node_set_value'.
96198         * lib/gl_list.h (gl_list_node_set_value): New function.
96199         (struct gl_list_implementation): New field node_set_value.
96200         * lib/gl_list.c (gl_list_node_set_value): New function.
96201         * lib/gl_array_list.c (gl_array_node_set_value): New function.
96202         (gl_array_list_implementation): Update.
96203         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
96204         (gl_carray_list_implementation): Update.
96205         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
96206         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96207         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96208         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
96209         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96210         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96211         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96212         Update.
96213         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
96214         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
96215         (gl_sublist_list_implementation): Update.
96217 2008-02-10  Bruno Haible  <bruno@clisp.org>
96219         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
96220         Needed when ELEMENT is #defined to 'some_type *'.
96222 2008-02-10  Jim Meyering  <meyering@redhat.com>
96224         New script and module: useless-if-before-free
96225         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
96226         * build-aux/useless-if-before-free: New file.
96227         * modules/useless-if-before-free: New file.
96229         * build-aux/gitlog-to-changelog: Use committer date, not author date.
96231         xstrtol_error: Fix typo.
96232         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
96233         s/exit_failure/exit_status/.
96235 2008-02-09  Jim Meyering  <meyering@redhat.com>
96237         New script and module: gitlog-to-changelog
96238         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
96239         * modules/gitlog-to-changelog: New file.
96240         * build-aux/gitlog-to-changelog: New file.
96242 2008-02-08  Jim Meyering  <meyering@redhat.com>
96244         Avoid two "parameter unused" warnings.
96245         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
96246         Mark "st" as used.
96248         Use "git COMMAND", not "git-COMMAND".
96249         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
96250         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
96251         * build-aux/git-version-gen: Use "git status", not "git-status".
96253 2008-02-07  Bruno Haible  <bruno@clisp.org>
96255         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96256         Avoids a crash on Windows Vista.
96257         Reported by Adam Strzelecki <ono@java.pl> via
96258         Simon Josefsson <simon@josefsson.org>.
96260 2008-02-06  Bruno Haible  <bruno@clisp.org>
96262         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96263         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96264         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96266         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96268         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96269         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96277         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96278         left-adjust flag.
96279         * tests/test-snprintf-posix.h (test_function): Likewise.
96280         * tests/test-sprintf-posix.h (test_function): Likewise.
96281         * tests/test-vasprintf-posix.c (test_function): Likewise.
96282         * doc/posix-functions/fprintf.texi: Update.
96283         * doc/posix-functions/printf.texi: Update.
96284         * doc/posix-functions/snprintf.texi: Update.
96285         * doc/posix-functions/sprintf.texi: Update.
96286         * doc/posix-functions/vfprintf.texi: Update.
96287         * doc/posix-functions/vprintf.texi: Update.
96288         * doc/posix-functions/vsnprintf.texi: Update.
96289         * doc/posix-functions/vsprintf.texi: Update.
96290         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96292 2008-02-06  Bruno Haible  <bruno@clisp.org>
96294         Fix bug introduced on 2008-01-26.
96295         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96297 2008-02-06  Bruno Haible  <bruno@clisp.org>
96299         Fix bug introduced on 2007-06-10.
96300         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96301         !NEED_PRINTF_FLAG_ZERO.
96303 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96305         getloadavg: use libperfstat on AIX5
96306         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96308 2008-02-03  Bruno Haible  <bruno@clisp.org>
96310         * lib/diffseq.h: Add comments about required #includes.
96311         Reported by Michael Biggs <gnulib@doubleplum.net>.
96313 2008-02-01  Bruno Haible  <bruno@clisp.org>
96315         * users.txt: Add gnuit.
96317 2008-01-31  Bruno Haible  <bruno@clisp.org>
96319         * lib/md4.c (set_uint32): Mark as inline.
96320         * lib/md5.c (set_uint32): Likewise.
96321         * lib/sha1.c (set_uint32): Likewise.
96322         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96323         * m4/md5.m4 (gl_MD5): Likewise.
96324         * m4/sha1.m4 (gl_SHA1): Likewise.
96326 2008-01-31  Jim Meyering  <meyering@redhat.com>
96328         Use "sizeof VAR", rather than a literal "4".
96329         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96330         * lib/md4.c (md4_read_ctx): Likewise.
96331         * lib/sha1.c (sha1_read_ctx): Likewise.
96333 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96335         * tests/test-sha1.c: New file, based on test-md5.c.
96337         * modules/crypto/sha1-tests: New file.
96339 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96341         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96343 2008-01-31  Jim Meyering  <meyering@redhat.com>
96345         Prefer "sizeof v" over the equivalent "4".
96346         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96347         * lib/md5.c (set_uint32): Likewise.
96348         * lib/sha1.c (set_uint32): Likewise.
96350 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96352         * lib/sha1.c (set_uint32): Mark function as static.
96354 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96356         md2: clarify comments to say that alignment is not required.
96357         * lib/md2.h: Remove warning about alignment in comment.
96358         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96359         never been required.
96361 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96363         md4: adapt alignment constraint fix from sha1.
96364         * lib/md4.c (set_uint32): New function, from sha1.c
96365         (md4_read_ctx): Use it.
96366         (md4_finish_ctx): Doc fix.
96367         * lib/md4.h: Doc fix.
96369 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96371         md5: adapt alignment constraint fix from sha1.
96372         * lib/md5.c (set_uint32): New function, from sha1.c
96373         (md5_read_ctx): Use it.
96374         (md5_finish_ctx): Doc fix.
96375         * lib/md5.h: Doc fix.
96377 2008-01-30  Peter Palfrader  <weasel@debian.org>
96379         sha1: remove the result buffer alignment constraint
96380         * lib/sha1.c (set_uint32): New function.
96381         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96382         constraint.
96383         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96384         * lib/sha1.h: Likewise.
96386 2008-01-30  Andreas Schwab  <schwab@suse.de>
96387             Bruno Haible  <bruno@clisp.org>
96389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96390         correct definition of LDBL_MIN_EXP.
96392 2008-01-30  Karl Berry  <karl@gnu.org>
96394         * config/srclist-update: try to preserve x bit on updates.
96395         * config/srclistvars.sh: update for karl.
96397 2008-01-29  Jim Meyering  <meyering@redhat.com>
96399         vasnprintf.c: Avoid warning about unused label
96400         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96401         "overflow" label definition and associated code with the
96402         same cpp condition that guards the sole use of that label.
96404 2008-01-26  Bruno Haible  <bruno@clisp.org>
96406         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96407         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96408         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96409         * lib/isnanl-nolibm.h (isnanl): Likewise.
96410         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96412 2008-01-26  Bruno Haible  <bruno@clisp.org>
96414         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96415         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96417 2008-01-26  Bruno Haible  <bruno@clisp.org>
96419         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96420         GCC >= 4.0 built-in.
96421         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96423 2008-01-26  Bruno Haible  <bruno@clisp.org>
96425         Rename isnan, applicable to 'double' only, to isnand.
96426         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96427         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96428         (configure.ac): Update.
96429         (Include): Replace "isnan.h" with "isnand.h".
96430         * m4/isnand.m4: Renamed from m4/isnan.m4.
96431         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96432         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96433         instead of isnan.c.
96434         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96435         instead of HAVE_ISNAN_IN_LIBC.
96436         (isnand): Renamed from isnan.
96437         * lib/isnand.c: New file.
96438         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96439         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96440         (Makefile.am): Update.
96441         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96442         Include isnand.h instead of isnan.h.
96443         (main): Test isnand instead of isnan.
96444         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96445         isnan-nolibm.
96446         * modules/frexp (Depends-on): Likewise.
96447         * modules/frexp-tests (Depends-on): Likewise.
96448         * modules/frexp-nolibm (Depends-on): Likewise.
96449         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96450         * modules/isfinite (Depends-on): Likewise.
96451         * modules/round-tests (Depends-on): Likewise.
96452         * modules/signbit (Depends-on): Likewise.
96453         * modules/signbit-tests (Depends-on): Likewise.
96454         * modules/snprintf-posix (Depends-on): Likewise.
96455         * modules/sprintf-posix (Depends-on): Likewise.
96456         * modules/trunc-tests (Depends-on): Likewise.
96457         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96458         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96459         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96460         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96461         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96462         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96463         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96464         * modules/vasnprintf-posix (Depends-on): Likewise.
96465         * modules/vasprintf-posix (Depends-on): Likewise.
96466         * modules/vfprintf-posix (Depends-on): Likewise.
96467         * modules/vsnprintf-posix (Depends-on): Likewise.
96468         * modules/vsprintf-posix (Depends-on): Likewise.
96469         * lib/frexp.c: Include isnand.h instead of isnan.h.
96470         (ISNAN): Set to isnand instead of isnan.
96471         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96472         (gl_isfinited): Use isnand instead of isnan.
96473         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96474         (gl_signbitd): Use isnand instead of isnan.
96475         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96476         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96477         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96478         (main): Use isnand instead of isnan.
96479         * tests/test-round1.c: Include isnand.h.
96480         (main): Use isnand instead of isnan.
96481         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96482         (ISNAN): Set to isnand instead of isnan.
96483         * tests/test-trunc1.c: Include isnand.h.
96484         (main): Use isnand instead of isnan.
96485         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96486         (equal): Use isnand instead of isnan.
96487         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96488         isnand-nolibm.
96489         * NEWS: Mention the change.
96491 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96492             Bruno Haible  <bruno@clisp.org>
96494         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96495         the GCC builtins for signbits are present and set
96496         REPLACE_SIGNBIT_USING_GCC if so.
96497         * lib/math.in.h (signbit): Define using GCC builtins if
96498         REPLACE_SIGNBIT_USING_GCC is set.
96499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96500         REPLACE_SIGNBIT_USING_GCC.
96501         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96503 2008-01-25  Jim Meyering  <meyering@redhat.com>
96505         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96506         * lib/poll.c: Include <config.h>, not "config.h".
96507         * tests/test-getaddrinfo.c: Likewise.
96509 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96511         * modules/sockets-tests: New file.
96513 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96515         * modules/sockets: New module, can be used to call WSA_Startup and
96516         WSA_Cleanup when needed.
96518         * lib/sockets.h, lib/sockets.c: New files.
96520         * m4/sockets.m4: New file.
96522         * tests/test-sockets.c: New file.
96524 2008-01-19  Bruno Haible  <bruno@clisp.org>
96526         * doc/posix-headers: Renamed from doc/headers.
96527         * doc/posix-functions: Renamed from doc/functions.
96528         * doc/gnulib.texi: Update.
96530 2008-01-19  Bruno Haible  <bruno@clisp.org>
96532         * doc/glibc-functions/strcasestr.texi: Include contents of
96533         doc/functions/strcasestr.texi, fixing the list of platforms.
96534         * doc/functions/strcasestr.texi: Remove file.
96536 2008-01-19  Bruno Haible  <bruno@clisp.org>
96538         * doc/glibc-functions/memmem.texi: Include contents of
96539         doc/functions/memmem.texi.
96540         * doc/functions/memmem.texi: Remove file.
96542 2008-01-18  Bruno Haible  <bruno@clisp.org>
96544         * doc/glibc-functions/*.texi: New files.
96545         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96546         to use the new files.
96548 2008-01-17  Bruno Haible  <bruno@clisp.org>
96550         * tests/test-gethostname.c (main): Fix printf statement.
96552 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96554         * modules/gethostname-tests: New file.
96556         * tests/test-gethostname.c: New file.
96558 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96560         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96561         used by the UNAME case.  Reported by Bruno Haible
96562         <bruno@clisp.org>.
96564 2008-01-17  Eric Blake  <ebb9@byu.net>
96566         Convert c-strcasestr to be more efficient.
96567         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96568         (Depends-on): Add c-strcase, remove malloca, strnlen.
96569         * tests/test-c-strcasestr.c (main): Enhance test.
96570         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96572 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96574         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96575         Use it in creating po/Makevars.
96577 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96579         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96580         Applications that requires it should initialize libgcrypt
96581         manually.
96583 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96585         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96587 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96589         Fix problem with getdate on mingw32 reported by Simon Josefsson
96590         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96591         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96592         tzname", when deciding whether to declare tzname.
96593         * lib/strftime.c (tzname): Likewise.
96595 2008-01-15  Bruno Haible  <bruno@clisp.org>
96597         Work around a MacOS X 10.5 bug in frexpl().
96598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96599         * doc/functions/frexpl.texi: Document the bug.
96600         Reported by Elias Pipping <pipping@gentoo.org>.
96602 2008-01-14  Eric Blake  <ebb9@byu.net>
96604         Touch up previous patch.
96605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96606         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96608         Convert strcasestr module to use Two-Way algorithm.
96609         * modules/strcasestr-simple: New module, based on the old
96610         strcasestr, but with Two-Way rather than KMP.
96611         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96612         * lib/string.in.h (rpl_strcasestr): Declare.
96613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96614         performance.
96615         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96616         * modules/string (Makefile.am): Support strcasestr.
96617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96618         * modules/strcasestr-tests (Depends-on): Check for alarm.
96619         * tests/test-strcasestr.c: Augment test.
96620         * lib/str-two-way.h: Clean up stray macro.
96621         * NEWS: Document new module.
96622         * MODULES.html.sh (string handling): Likewise.
96623         * doc/functions/strcasestr.texi: New file.
96624         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96625         here, since it is not a POSIX function.
96627 2008-01-14  Colin Watson  <cjwatson@debian.org>
96628             Bruno Haible  <bruno@clisp.org>
96630         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96631         works fine; if not, set REPLACE_STRSIGNAL.
96632         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96633         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96634         REPLACE_STRSIGNAL.
96635         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96636         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96637         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96639 2008-01-14  Bruno Haible  <bruno@clisp.org>
96641         * modules/strsignal (Include): Change to <string.h>.
96643 2008-01-14  Colin Watson  <cjwatson@debian.org>
96645         * modules/argp (Notice): Add a notice recommending to change
96646         XGETTEXT_OPTIONS.
96647         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96649 2008-01-13  Colin Watson  <cjwatson@debian.org>
96651         * modules/strsignal-tests: New file.
96652         * tests/test-strsignal.c: New file.
96654         * lib/strsignal.c: New file, from glibc with modifications.
96655         * lib/siglist.h: New file, from glibc with modifications.
96656         * lib/string.in.h (strsignal): New declaration.
96657         * m4/strsignal.m4: New file.
96658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96659         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96660         * modules/strsignal: New file.
96661         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96662         HAVE_DECL_STRSIGNAL.
96664 2008-01-13  Bruno Haible  <bruno@clisp.org>
96666         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96667         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96668         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96669         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96671 2008-01-13  Bruno Haible  <bruno@clisp.org>
96673         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96674         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96675         * lib/argp.h (__attribute__): Likewise.
96676         * lib/c-stack.c (__attribute__): Likewise.
96677         * lib/error.h (__attribute__): Likewise.
96678         * lib/fts.c (__attribute__): Likewise.
96679         * lib/openat.h (__attribute__): Likewise.
96680         * lib/stdio.in.h (__attribute__): Likewise.
96681         * lib/string.in.h (__attribute__): Likewise.
96682         * lib/utimens.c (__attribute__): Likewise.
96683         * lib/vasnprintf.h (__attribute__): Likewise.
96684         * lib/xalloc.h (__attribute__): Likewise.
96685         * lib/xprintf.h (__attribute__): Likewise.
96686         * lib/xstrtol.h (__attribute__): Likewise.
96687         * lib/xvasprintf.h (__attribute__): Likewise.
96689 2008-01-12  Bruno Haible  <bruno@clisp.org>
96691         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96692         * doc/glibc-headers/a.out.texi: New file.
96693         * doc/glibc-headers/aliases.texi: New file.
96694         * doc/glibc-headers/alloca.texi: New file.
96695         * doc/glibc-headers/ar.texi: New file.
96696         * doc/glibc-headers/argp.texi: New file.
96697         * doc/glibc-headers/argz.texi: New file.
96698         * doc/glibc-headers/byteswap.texi: New file.
96699         * doc/glibc-headers/crypt.texi: New file.
96700         * doc/glibc-headers/endian.texi: New file.
96701         * doc/glibc-headers/envz.texi: New file.
96702         * doc/glibc-headers/err.texi: New file.
96703         * doc/glibc-headers/error.texi: New file.
96704         * doc/glibc-headers/execinfo.texi: New file.
96705         * doc/glibc-headers/fpu_control.texi: New file.
96706         * doc/glibc-headers/fstab.texi: New file.
96707         * doc/glibc-headers/fts.texi: New file.
96708         * doc/glibc-headers/getopt.texi: New file.
96709         * doc/glibc-headers/ieee754.texi: New file.
96710         * doc/glibc-headers/ifaddrs.texi: New file.
96711         * doc/glibc-headers/libintl.texi: New file.
96712         * doc/glibc-headers/mcheck.texi: New file.
96713         * doc/glibc-headers/mntent.texi: New file.
96714         * doc/glibc-headers/obstack.texi: New file.
96715         * doc/glibc-headers/paths.texi: New file.
96716         * doc/glibc-headers/printf.texi: New file.
96717         * doc/glibc-headers/pty.texi: New file.
96718         * doc/glibc-headers/resolv.texi: New file.
96719         * doc/glibc-headers/shadow.texi: New file.
96720         * doc/glibc-headers/sysexits.texi: New file.
96721         * doc/glibc-headers/ttyent.texi: New file.
96723 2008-01-12  Jim Meyering  <meyering@redhat.com>
96725         announce-gen: emit Gnulib's git-based version string.
96726         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96727         New option --gnulib-version=V, where V is expected to be
96728         the output of running git describe in the gnulib directory.
96729         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96730         not useful, and plan to stop publishing an xdelta file with each
96731         coreutils release.
96733         * build-aux/announce-gen: Also check for lzma-compressed files.
96735 2008-01-11  Bruno Haible  <bruno@clisp.org>
96737         * tests/test-memmem.c (main): Increase maximum allowed time.
96738         * tests/test-strstr.c (main): Likewise.
96740 2008-01-11  Bruno Haible  <bruno@clisp.org>
96742         * doc/functions/memmem.texi: Add more precisions about platforms.
96743         * doc/functions/strstr.texi: Likewise.
96745 2008-01-10  Eric Blake  <ebb9@byu.net>
96747         * m4/strstr.m4: Delete cruft from copy-n-paste.
96748         Reported by Bruno Haible.
96750 2008-01-10  Bruno Haible  <bruno@clisp.org>
96752         Make c-strstr rely on strstr.
96753         * lib/c-strstr.c: Don't include str-kmp.h.
96754         (c_strstr): Define in terms of strstr.
96755         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96756         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96758 2008-01-10  Bruno Haible  <bruno@clisp.org>
96760         * doc/gnulib.texi (String Functions in C Locale): New section.
96761         * doc/c-ctype.texi: New file.
96762         * doc/c-strcase.texi: New file.
96763         * doc/c-strcaseeq.texi: New file.
96764         * doc/c-strcasestr.texi: New file.
96765         * doc/c-strstr.texi: New file.
96766         * doc/c-strtod.texi: New file.
96767         * doc/c-strtold.texi: New file.
96769 2008-01-10  Eric Blake  <ebb9@byu.net>
96771         * lib/relocatable.h: Fix a comment.
96773 2008-01-10  Eric Blake  <ebb9@byu.net>
96775         Share two-way algorithm.
96776         * lib/str-two-way.h: New file, merged from...
96777         * lib/memmem.c: ...here...
96778         * lib/strstr.c: ...and here.
96779         * modules/memmem (Files): Use it.
96780         * modules/strstr (Files): Likewise.
96782         Avoid quadratic strstr implementations.
96783         * lib/strstr.c: New file.
96784         * m4/strstr.m4: Likewise.
96785         * modules/strstr: Likewise.
96786         * modules/strstr-tests: Likewise.
96787         * tests/test-strstr.c: Likewise.
96788         * lib/string.in.h (rpl_strstr): Declare.
96789         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96791         * modules/string (Makefile.am): Likewise.
96792         * MODULES.html.sh (string handling): Mention new module.
96793         * doc/functions/strstr.texi (strstr): Document the bug.
96795 2008-01-10  Bruno Haible  <bruno@clisp.org>
96797         * lib/relocatable.h (relocate): State whether result is freshly
96798         allocated or not.
96799         * lib/relocatable.c (relocate): Return a freshly allocated string
96800         instead of a pointer to a privately held string.
96801         Reported by Sylvain Beucler <beuc@gnu.org>.
96803 2008-01-10  Colin Watson  <cjwatson@debian.org>
96805         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96806         s/S_ISNLK/S_ISLNK/.
96808 2008-01-09  Bruno Haible  <bruno@clisp.org>
96810         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96811         and other files.
96812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96813         if it's only a guess.
96814         * modules/memmem: Simplify by depending on memmem-simple.
96816 2008-01-09  Bruno Haible  <bruno@clisp.org>
96818         Work around OpenBSD 4.0 tdelete() bug.
96819         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96820         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96821         macros and don't redefine the enum values.
96822         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96823         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96824         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96826 2008-01-09  Bruno Haible  <bruno@clisp.org>
96828         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96829         (main): Don't perform the tests if setlocale did not install a UTF-8
96830         locale. Needed on OpenBSD 4.0.
96831         * modules/wcwidth-tests (Depends-on): Add localcharset.
96833 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96835         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96836         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96837         * NEWS: announce this.
96838         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96840 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96841         and Eric Blake  <ebb9@byu.net>
96843         Add memmem-simple module.
96844         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96845         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96846         * modules/memmem-simple: New file.
96847         * modules/memmem (Description): Tweak.
96848         * MODULES.html.sh (string handling): Mention new module.
96849         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96850         addressed by memmem-simple.
96851         * NEWS: Document the difference.
96853 2008-01-09  Eric Blake  <ebb9@byu.net>
96855         Give gcc some memmem optimization hints.
96856         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96857         (strcasestr): Declare as pure.
96858         * modules/memmem (Maintainer): Claim my implementation.
96860 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96862         Support AIX 6.1 and higher.
96863         * build-aux/config.libpath: Likewise.
96864         * build-aux/config.rpath: Likewise.
96866 2008-01-08  Jim Meyering  <meyering@redhat.com>
96867             Bruno Haible  <bruno@clisp.org>
96869         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96870         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96871         Reported by Peter Fales in
96872         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96874 2008-01-08  Bruno Haible  <bruno@clisp.org>
96876         * modules/unictype/category-of (Depends-on): Add
96877         unictype/category-none.
96878         * modules/unictype/category-and-tests (Depends-on): Add
96879         unictype/category-{L,N,Lu,Nd}.
96880         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96881         * modules/unictype/category-or-tests (Depends-on): Add
96882         unictype/category-{L,N}.
96883         * modules/unictype/category-name-tests (Depends-on): Add
96884         unictype/category-{Z,Nl}.
96885         Reported by Simon Josefsson.
96887 2008-01-08  Bruno Haible  <bruno@clisp.org>
96889         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96890         convention better.
96891         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96892         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96893         Reported by Peter Miller <millerp@canb.auug.org.au>.
96895 2008-01-08  Eric Blake  <ebb9@byu.net>
96897         Rewrite memmem to guarantee linear complexity without malloc.
96898         * lib/memmem.c (memmem): Use Two-Way rather than
96899         Knuth-Morris-Pratt, to allow O(1) space usage.
96900         (critical_factorization, two_way_short_needle)
96901         (two_way_long_needle): New functions.
96902         (knuth_morris_pratt): Delete.
96903         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96904         Add stdint.
96905         * tests/test-memmem.c (main): Add tests for periodic needle and
96906         sublinear performance.
96907         * doc/functions/memmem.texi (memmem): Document other deficiencies
96908         in cygwin and older glibc.
96910 2008-01-08  Bruno Haible  <bruno@clisp.org>
96912         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96913         augmentation.
96915 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96917         Add a configure time option: --disable-acl.
96918         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96919         AC_ARG_ENABLE(acl).
96921 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96923         * tests/test-localename.c: Don't include obsolete "setenv.h".
96925         * modules/localename-tests (Depends-on): Need unsetenv.
96927 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96929         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96931 2008-01-06  Colin Watson  <cjwatson@debian.org>
96933         * users.txt: Add man-db.
96935 2008-01-07  Bruno Haible  <bruno@clisp.org>
96937         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96938         previous section name.
96940 2008-01-07  Bruno Haible  <bruno@clisp.org>
96942         * lib/progname.c (set_program_name): Don't strip off a leading
96943         "lt-" prefix outside a .libs directory.
96944         Suggested by Paul Eggert.
96946 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96947             Bruno Haible  <bruno@clisp.org>
96949         Improve memory cleanup in 'relocatable' module.
96950         * lib/relocatable.h (compute_curr_prefix): Change return type to
96951         'char *'.
96952         * lib/relocatable.c (compute_curr_prefix): Change return type to
96953         'char *'. Free curr_installdir after use.
96954         (relocate): Free curr_prefix_better after use.
96955         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96957 2008-01-01  Bruno Haible  <bruno@clisp.org>
96959         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96960         failure on older glibc systems.
96961         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96963 2008-01-05  Eric Blake  <ebb9@byu.net>
96965         Avoid quadratic system memmem.
96966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96967         Reported by Ralf Wildenhues.
96969         Fix memmem test for mingw.
96970         * modules/memmem-tests (configure.ac): Check for alarm.
96971         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96972         it.
96973         * doc/functions/memmem.texi: New file.
96974         * doc/gnulib.texi (Function Substitutes): Add memmem.
96975         Reported by Bruno Haible.
96977 2008-01-04  Bruno Haible  <bruno@clisp.org>
96979         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96980         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96981         gl_HEADER_STRING_H_DEFAULTS.
96983 2008-01-04  Eric Blake  <ebb9@byu.net>
96985         Shorten duration of memmem test.
96986         * tests/test-memmem.c (main): Use alarm to declare failure if test
96987         is taking too long.
96988         Reported by Ralf Wildenhues.
96990 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96992         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96993         string, needed by strerror.
96995 2008-01-03  Colin Watson  <cjwatson@debian.org>
96996             Bruno Haible  <bruno@clisp.org>
96998         * doc/gnulib-tool.texi (Localization): New section.
97000 2008-01-02  Bruno Haible  <bruno@clisp.org>
97002         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
97003         variables to 'unsigned char *' type.
97004         Reported by Paul Eggert.
97006 2008-01-02  Jim Meyering  <jim@meyering.net>
97008         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
97010 2007-12-31  Jim Meyering  <jim@meyering.net>
97012         Avoid use of private FTS type name.
97013         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
97015 2007-12-30  Karl Berry  <karl@gnu.org>
97017         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
97018         work around defect in Texinfo and/or the standalone Info browser.
97020 2007-12-30  Bruno Haible  <bruno@clisp.org>
97022         Unify 5 copies of the KMP code.
97023         * lib/str-kmp.h: New file.
97024         * lib/c-strcasestr.c: Include str-kmp.h.
97025         (knuth_morris_pratt): Remove function.
97026         (c_strcasestr): Update.
97027         * lib/c-strstr.c: Include str-kmp.h.
97028         (knuth_morris_pratt): Remove function.
97029         (c_strcasestr): Update.
97030         * lib/mbscasestr.c: Include str-kmp.h.
97031         (knuth_morris_pratt_unibyte): Remove function.
97032         * lib/mbsstr.c: Include str-kmp.h.
97033         (knuth_morris_pratt_unibyte): Remove function.
97034         * lib/strcasestr.c: Include str-kmp.h.
97035         (knuth_morris_pratt): Remove function.
97036         (strcasestr): Update.
97037         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
97038         * modules/c-strstr (Files): Likewise.
97039         * modules/mbscasestr (Files): Likewise.
97040         * modules/mbsstr (Files): Likewise.
97041         * modules/strcasestr (Files): Likewise.
97042         Suggested by Paul Eggert.
97044 2007-12-30  Bruno Haible  <bruno@clisp.org>
97046         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
97047         defined.
97049 2007-12-30  Bruno Haible  <bruno@clisp.org>
97051         * lib/xmalloca.h: Include xalloc.h.
97052         (xnmalloca): New macro.
97054 2007-12-30  Bruno Haible  <bruno@clisp.org>
97056         * lib/malloca.h (nmalloca): New macro.
97057         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
97058         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
97059         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
97060         knuth_morris_pratt_multibyte): Likewise.
97061         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
97062         knuth_morris_pratt_multibyte): Likewise.
97063         * lib/memmem.c (knuth_morris_pratt): Likewise.
97064         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
97066 2007-12-25  Bruno Haible  <bruno@clisp.org>
97068         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
97069         * lib/glob.c: Don't include openat.h.
97070         (link_exists2_p): Add back the code that deals with the
97071         !GLOB_ALTDIRFUNC case.
97072         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
97073         let it do the filename concatenation.
97074         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
97075         * modules/glob (Depends-on): Remove openat.
97077 2007-12-31  Bruno Haible  <bruno@clisp.org>
97079         * modules/dirfd (License): Change to LGPLv2+.
97080         Approved by Jim Meyering.
97082 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
97084         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
97085         when multiplying M by sizeof (size_t).
97087 2007-12-10  Martin Lambers  <marlam@marlam.de>
97089         Override getpagesize on mingw.
97090         * lib/getpagesize.c: New file.
97091         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
97092         * modules/getpagesize (Files): Add lib/getpagesize.c.
97093         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
97094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
97095         REPLACE_GETPAGESIZE.
97096         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
97098 2007-12-25  Bruno Haible  <bruno@clisp.org>
97100         * modules/localcharset (Notice): New field.
97101         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
97102         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
97104 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
97105             Bruno Haible  <bruno@clisp.org>
97107         Avoid using the syntax symbol() in formatted documentation.
97108         * MODULES.html.sh (func_module): When replacing symbol() with a
97109         hyperlink, remove the parentheses. Show an error if some remain.
97110         Recognize and render the '...' syntax.
97111         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
97112         Rework. Add paragraph about GCC's inlining.
97113         * doc/alloca.texi: Likewise.
97114         * doc/error.texi: Remove parentheses from symbol reference.
97115         * doc/gnulib-intro.texi: Likewise.
97116         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
97117         * modules/fnmatch (Description): Reword to say "the ... function".
97118         * modules/full-read (Description): Likewise.
97119         * modules/full-write (Description): Likewise.
97120         * modules/safe-read (Description): Likewise.
97121         * modules/safe-write (Description): Likewise.
97122         * modules/strchrnul (Description): Likewise.
97123         * modules/trim (Description): Likewise.
97124         * modules/error (Description): Remove parentheses from symbol
97125         references.
97126         * modules/verror (Description): Likewise.
97127         Reported by Karl Berry.
97129 2007-12-25  Bruno Haible  <bruno@clisp.org>
97131         Fixup after 2007-10-16 commit.
97132         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
97134 2007-12-24  Bruno Haible  <bruno@clisp.org>
97136         Make --enable-relocatable work with DESTDIR.
97137         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
97138         to compute installdir from destprog.
97139         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
97140         also set the RELOC_DESTDIR variable.
97141         Reported by Левашев Иван <octagram@bluebottle.com>.
97143 2007-12-24  Bruno Haible  <bruno@clisp.org>
97145         Fix link error due to xalloc_die().
97146         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
97147         of xreadlink.
97148         * lib/relocwrapper.c: Update comments.
97149         * build-aux/install-reloc: Remove xreadlink.c from file list.
97150         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
97151         xreadlink.c.
97152         Reported by Левашев Иван <octagram@bluebottle.com>.
97154 2007-12-24  Bruno Haible  <bruno@clisp.org>
97156         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
97157         * lib/setenv.h: Remove file.
97158         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
97159         lib/setenv.h.
97160         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
97161         (Depends-on): Add stdlib.
97162         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
97163         gl_FUNC_UNSETENV.
97164         (Include): Replace setenv.h with <stdlib.h>.
97165         * modules/unsetenv: New file.
97166         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
97167         * lib/unsetenv.c: Include <stdlib.h> first.
97168         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
97169         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
97170         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
97171         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
97172         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
97173         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
97175         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
97176         * doc/functions/unsetenv.texi: Update.
97177         * modules/xsetenv (Depends-on): Add unsetenv.
97178         * modules/getdate (Depends-on): Likewise.
97179         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
97180         * lib/xsetenv.c: Don't include setenv.h.
97181         * lib/getdate.y: Likewise.
97182         * lib/relocwrapper.c: Likewise.
97183         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
97184         (Depends-on): Add stdlib.
97185         * NEWS: Mention the changes.
97186         Reported by Левашев Иван <octagram@bluebottle.com>.
97188 2007-12-23  Bruno Haible  <bruno@clisp.org>
97190         * lib/memmem.c (memmem): Use lowercase variable names. Tab
97191         indentation.
97193 2007-12-23  Bruno Haible  <bruno@clisp.org>
97195         * lib/c-strcasestr.c: Add more comments.
97196         * lib/c-strstr.c: Likewise.
97197         * lib/mbscasestr.c: Likewise.
97198         * lib/mbsstr.c: Likewise.
97199         * lib/strcasestr.c: Likewise.
97200         * lib/memmem.c: Likewise.
97202 2007-12-23  Bruno Haible  <bruno@clisp.org>
97204         * tests/test-memmem.c: Include <string.h> first.
97206 2007-12-22  Bruno Haible  <bruno@clisp.org>
97208         * gnulib-tool (func_create_testdir): Change $auxdir while generating
97209         the contents of $testsbase.
97210         Reported by Ralf Wildenhues.
97212 2007-12-22  Bruno Haible  <bruno@clisp.org>
97214         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
97215         two variables local_ldadd_before, local_ldadd_last.
97217 2007-12-20  Eric Blake  <ebb9@byu.net>
97219         Work around circular library issue when cross-compiling.
97220         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
97221         that progname.o does not need to pull in rpl_memcmp.
97223 2007-12-19  Eric Blake  <ebb9@byu.net>
97225         Fix memmem to avoid O(n^2) worst-case complexity.
97226         * lib/memmem.c (knuth_morris_pratt): New function.
97227         (memmem): Use it if first few naive iterations fail.
97228         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
97229         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
97230         * modules/memchr (License): Likewise.
97231         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
97232         malloca.
97233         * tests/test-memmem.c: Rewrite, borrowing ideas from
97234         test-mbsstr1.c; the old version wouldn't even compile!
97235         * modules/memmem-tests: New file.
97236         * lib/string.in.h (rpl_memmem): Add declaration.
97237         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
97238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
97239         REPLACE_MEMMEM.
97241 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
97243         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
97244         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
97245         before any system include files, and undef after them all.  This
97246         should fix a problem on VMS reported by John E. Malmberg in
97247         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
97249 2007-12-17  Eric Blake  <ebb9@byu.net>
97251         Revert addition of verify, for BSD/OS.
97252         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
97253         can't handle large files, for the sake of obsolete platforms.
97254         * modules/fseeko (Depends-on): Remove verify.
97255         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97256         * doc/functions/ftello.texi (ftello): Likewise.
97257         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97258         Reported by Larry Jones.
97260 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97262         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97263         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97265 2007-12-17  Jim Meyering  <meyering@redhat.com>
97267         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97268         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97269         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97270         * modules/getcwd (Depends-on): Add openat.
97271         Reported by Petr Salinger.
97273 2007-12-17  Bruno Haible  <bruno@clisp.org>
97275         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97276         avoid a segmentation fault of the configure test on x86_64 systems.
97278 2007-12-15  Jim Meyering  <meyering@redhat.com>
97280         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97282 2007-12-13  Eric Blake  <ebb9@byu.net>
97284         Another fseek test.
97285         * tests/test-fseek.c (main): Also test ungetc handling.
97286         * tests/test-fseeko.c (main): Likewise.
97287         * modules/fseeko (Depends-on): Add verify.
97288         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97289         large.
97290         Reported by Larry Jones.
97292         Fix fseeko on mingw.
97293         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97294         seek.
97296         Beef up fseek tests.
97297         * tests/test-fseek.c (main): Also test eof handling.
97298         * tests/test-fseeko.c (main): Likewise.
97299         Reported by Larry Jones.
97301 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97303         Fix fseeko on BSD-based platforms.
97304         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97305         successful seek.
97307 2007-12-12  Eric Blake  <ebb9@byu.net>
97309         Allow circular dependency of separate libtests.a
97310         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97311         when use_libtests.
97313 2007-12-11  Eric Blake  <ebb9@byu.net>
97315         Fix bug with -0.0L in previous patch.
97316         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97317         * tests/test-isnan.c (main): Also test on zeroes.
97318         * tests/test-isnanf.c (main): Likewise.
97319         * tests/test-isnanl.h (main): Likewise.
97321         Detect pseudo-denormals on x86 even when cross-compiling.
97322         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97323         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97324         invalid bit patterns that happen to satisfy ==.
97326         Avoid link failures with separate libtests.a.
97327         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97328         last, to satisfy circular dependencies.
97330 2007-12-11  Eric Blake  <ebb9@byu.net>
97331         and Bruno Haible  <bruno@clisp.org>
97333         Fix OpenBSD 4.0 <float.h> handling of long double.
97334         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97335         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97336         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97338 2007-12-11  Jim Meyering  <meyering@redhat.com>
97340         * users.txt: Add libvirt.
97342         Support versions of autoconf prior to 2.59c.
97343         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97344         if it is not already defined.
97346 2007-12-09  Bruno Haible  <bruno@clisp.org>
97348         Let 'gnulib-tool --import' collect sources needed for the tests in
97349         tests/ rather than in lib/.
97350         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97351         argument. If true, add rules to generate libtests.a, and put libtests.a
97352         into $(LDADD). Consider source files in subdirectories and set
97353         uses_subdirs.
97354         (func_emit_initmacro_start, func_emit_initmacro_end,
97355         func_emit_initmacro_done): Pass all arguments explicitly.
97356         (func_import): Determine two module lists main_modules,
97357         testsrelated_modules. Determine use_libtests. Determine two variables
97358         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97359         instead of just sed_transform_lib_file. Determine two variables
97360         main_files and testsrelated_files. Compute 'files' as the union of
97361         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97362         func_add_or_update. In the generated gnulib-comp.m4, collect the
97363         object files for tests/ in different variables than those for lib/.
97364         Substitute LIBTESTS_LIBDEPS.
97365         (func_create_testdir): Combine the uses_subdirs results from
97366         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97368 2007-12-09  Bruno Haible  <bruno@clisp.org>
97370         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97371         the build-aux directory.
97373 2007-12-09  Bruno Haible  <bruno@clisp.org>
97375         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97376         introduced on 2006-09-09.
97378 2007-12-07  Jim Meyering  <meyering@redhat.com>
97380         Let these macros work also with autoconf-2.59.
97381         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97382         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97383         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97385 2007-12-06  Jim Meyering  <meyering@redhat.com>
97387         Avoid a configure-time syntax error in gl_FUNC_ACL.
97388         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97389         function in each branch, before testing the cache variable.
97391 2007-12-04  Eric Blake  <ebb9@byu.net>
97393         Make scripts executable.
97394         * build-aux/config.guess: Add execute permissions.
97395         * build-aux/config.sub: Likewise.
97396         * build-aux/gendocs.sh: Likewise.
97398         Fix frexp on mingw.
97399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97400         cross-compiling.
97401         * doc/functions/frexp.texi (frexp): Document the bug.
97403         Make cygwin fseeko check more reliable.
97404         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97405         version numbers, rather than unrelated feature check.
97406         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97407         * doc/functions/ftello.texi (ftello): Likewise.
97408         Reported by Bruno Haible.
97410         * m4/strerror.m4: Bump version number.
97412 2007-12-03  Bruno Haible  <bruno@clisp.org>
97414         * doc/functions/mprotect.texi: Mention the mingw problem.
97416 2007-12-03  Eric Blake  <ebb9@byu.net>
97418         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97419         REPLACE_STRERROR is initialized before this macro.
97421 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97423         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97424         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97425         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97426         put -lsec in even for programs other than 'ls'.  This fixes a problem
97427         for gettext reported by Bruno Haible in
97428         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97429         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97430         Add support for Solaris 10.  This isn't efficient, but should get the
97431         job done for now.
97433 2007-12-03  James Youngman  <jay@gnu.org>
97435         * doc/regexprops-generic.texi: change "an close-group" to "a
97436         close-group" and "illegal" to "not allowed".
97438 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97440         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97441         pr_byname.h. Needed for the rare case when the maintainer has done
97442         "make maintainer-clean" in the source directory and then attempts a
97443         build outside the source directory.
97444         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97445         scripts_byname.h.
97447 2007-12-02  Martin Lambers  <marlam@marlam.de>
97448             Bruno Haible  <bruno@clisp.org>
97450         * lib/getpagesize.h: Remove file.
97451         * lib/unistd.in.h: Include declaration of getpagesize here.
97452         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97453         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97454         HAVE_SYS_PARAM_H.
97455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97456         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97457         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97458         (Depends-on): Add unistd.
97459         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97460         (Include): Use <unistd.h> instead of getpagesize.h.
97461         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97462         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97463         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97464         gl_GETPAGESIZE invocation, already handled by module dependency.
97465         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97467 2007-12-02  Bruno Haible  <bruno@clisp.org>
97469         * modules/strings-tests: New file.
97470         * tests/test-strings.c: New file.
97472         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97473         * lib/strings.in.h: New file.
97474         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97475         * m4/strings_h.m4: New file.
97476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97477         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97478         * modules/strings: New file.
97479         * modules/string (Makefile.am): Update.
97480         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97481         Reported by Karl Berry.
97483 2007-12-01  Eric Blake  <ebb9@byu.net>
97485         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97486         accommodate fix in cygwin 1.5.25.
97488 2007-12-01  Jim Meyering  <meyering@redhat.com>
97490         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97491         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97492         that would inhibit utf8-optimization of a regexp containing line-
97493         or buffer-anchors, e.g., `^', `$'.
97495 2007-11-30  Bruno Haible  <bruno@clisp.org>
97497         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97498         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97499         glthread_recursive_lock_init.
97500         * lib/lock.c (glthread_recursive_lock_init)
97501         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97502         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97504 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97506         New function qset_acl, like set_acl but with syscall semantics.
97507         * lib/acl.h (qset_acl): New decl.
97508         * lib/acl.c (qset_acl): New function.
97509         (set_acl): Use new function.  Use more-consistent diagnostics.
97511 2007-11-28  Jim Meyering  <meyering@redhat.com>
97513         * modules/physmem (License): Change from GPL to LGPLv2+.
97515 2007-11-26  Bruno Haible  <bruno@clisp.org>
97517         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97518         'long double' type has excess precision.
97519         Reported by Jim Meyering in
97520         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97522 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97524         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97525         Sync from <http://gnu.org/licenses>.
97526         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97527         with license text from same location.
97528         * doc/maintain.texi, doc/standards.texi:  Sync from
97529         <http://savannah.gnu.org/projects/gnustandards>.
97531 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97532         and Jim Meyering  <meyering@redhat.com>
97534         Adjust getdate' grammar to accept a slightly more regular language.
97535         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97536         Before, the former was rejected.
97537         * lib/getdate.y (digits_to_date_time): New function, factored
97538         out of ...
97539         (number): ...here.  Just call digits_to_date_time.
97540         (hybrid): New non-terminal to handle an <unsigned number,
97541         signed relative offset> sequence consistently.
97543 2007-11-18  Jim Meyering  <meyering@redhat.com>
97545         Pull my changes from coreutils:
97546         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97547         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97548         use of $gnulib_tool_option_extras, so that it's separated from the
97549         preceding argument.
97551         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97552         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97553         parent destination directories before copying a file into place.
97555 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97557         bootstrap: work also with 4-argument variant of AC_INIT
97558         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97560 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97562         Port test-getaddrinfo to Solaris.
97563         Problem reported by Bruno Haible in
97564         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97565         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97566         explanation of setting 'hints'.
97567         Don't reject an implementation merely because it returns EAI_SERVICE.
97568         (EAI_SERVICE): Define to 0 if not defined.
97570 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97572         The license of gnu-make and posix-shell is now "GPLed build tool".
97573         * modules/gnu-make (License): Likewise.
97574         * modules/posix-shell (License): Likewise.
97576         New module posix-shell, for determining a POSIX shell
97577         or perhaps something that is close enough to a POSIX shell.
97578         * m4/posix-shell.m4: New file.
97579         * modules/posix-shell: New file.
97581         * MODULES.html.sh: Mention new module.
97583         New module gnu-make, for determining whether we're using GNU Make.
97584         * m4/gnu-make.m4: New file.
97585         * modules/gnu-make: New file.
97586         * MODULES.html.sh: Mention new module.
97588 2007-11-14  Jim Meyering  <meyering@redhat.com>
97590         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97591         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97592         use this macro to create a function _definition_.
97593         Remove useless "#undef ARGMATCH_DIE".
97595 2007-11-14  Bruno Haible  <bruno@clisp.org>
97597         * lib/config.charset: Update for OpenBSD 4.1.
97598         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97600 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97602         Document 64-bit #if problems in stdint.texi.
97603         * doc/headers/stdint.texi (stdint.h): Mention problems with
97604         64-bit-#if, and how to work around them.
97606         Don't insist on 'long long int' support in the preprocessor.  It
97607         breaks too many things.  For example, PRIdMAX still uses a 'long
97608         long int' format with the latest Sun compiler, even though
97609         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97610         preprocessor problem.  This causes the latest coreutils to dump
97611         core on Solaris 10 sparc with the Sun C compiler.
97612         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97613         the troublesome expressions at configure-time, not at #if-time.
97614         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97615         preprocessor.
97616         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97617         compile-time C checks, done at 'configure'-time.
97618         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97619         * modules/inttypes (Makefile): Substitute the new symbols that
97620         gl_INTTYPES_H now generates.
97621         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97623 2007-11-12  Bruno Haible  <bruno@clisp.org>
97625         Tests for Unicode character classification functions.
97627         * modules/unictype/bidicategory-byname-tests: New file.
97628         * modules/unictype/bidicategory-name-tests: New file.
97629         * modules/unictype/bidicategory-of-tests: New file.
97630         * modules/unictype/bidicategory-test-tests: New file.
97631         * modules/unictype/block-list-tests: New file.
97632         * modules/unictype/block-of-tests: New file.
97633         * modules/unictype/block-test-tests: New file.
97634         * modules/unictype/category-C-tests: New file.
97635         * modules/unictype/category-Cc-tests: New file.
97636         * modules/unictype/category-Cf-tests: New file.
97637         * modules/unictype/category-Cn-tests: New file.
97638         * modules/unictype/category-Co-tests: New file.
97639         * modules/unictype/category-Cs-tests: New file.
97640         * modules/unictype/category-L-tests: New file.
97641         * modules/unictype/category-Ll-tests: New file.
97642         * modules/unictype/category-Lm-tests: New file.
97643         * modules/unictype/category-Lo-tests: New file.
97644         * modules/unictype/category-Lt-tests: New file.
97645         * modules/unictype/category-Lu-tests: New file.
97646         * modules/unictype/category-M-tests: New file.
97647         * modules/unictype/category-Mc-tests: New file.
97648         * modules/unictype/category-Me-tests: New file.
97649         * modules/unictype/category-Mn-tests: New file.
97650         * modules/unictype/category-N-tests: New file.
97651         * modules/unictype/category-Nd-tests: New file.
97652         * modules/unictype/category-Nl-tests: New file.
97653         * modules/unictype/category-No-tests: New file.
97654         * modules/unictype/category-P-tests: New file.
97655         * modules/unictype/category-Pc-tests: New file.
97656         * modules/unictype/category-Pd-tests: New file.
97657         * modules/unictype/category-Pe-tests: New file.
97658         * modules/unictype/category-Pf-tests: New file.
97659         * modules/unictype/category-Pi-tests: New file.
97660         * modules/unictype/category-Po-tests: New file.
97661         * modules/unictype/category-Ps-tests: New file.
97662         * modules/unictype/category-S-tests: New file.
97663         * modules/unictype/category-Sc-tests: New file.
97664         * modules/unictype/category-Sk-tests: New file.
97665         * modules/unictype/category-Sm-tests: New file.
97666         * modules/unictype/category-So-tests: New file.
97667         * modules/unictype/category-Z-tests: New file.
97668         * modules/unictype/category-Zl-tests: New file.
97669         * modules/unictype/category-Zp-tests: New file.
97670         * modules/unictype/category-Zs-tests: New file.
97671         * modules/unictype/category-and-not-tests: New file.
97672         * modules/unictype/category-and-tests: New file.
97673         * modules/unictype/category-byname-tests: New file.
97674         * modules/unictype/category-name-tests: New file.
97675         * modules/unictype/category-none-tests: New file.
97676         * modules/unictype/category-of-tests: New file.
97677         * modules/unictype/category-or-tests: New file.
97678         * modules/unictype/category-test-withtable-tests: New file.
97679         * modules/unictype/combining-class-tests: New file.
97680         * modules/unictype/ctype-alnum-tests: New file.
97681         * modules/unictype/ctype-alpha-tests: New file.
97682         * modules/unictype/ctype-blank-tests: New file.
97683         * modules/unictype/ctype-cntrl-tests: New file.
97684         * modules/unictype/ctype-digit-tests: New file.
97685         * modules/unictype/ctype-graph-tests: New file.
97686         * modules/unictype/ctype-lower-tests: New file.
97687         * modules/unictype/ctype-print-tests: New file.
97688         * modules/unictype/ctype-punct-tests: New file.
97689         * modules/unictype/ctype-space-tests: New file.
97690         * modules/unictype/ctype-upper-tests: New file.
97691         * modules/unictype/ctype-xdigit-tests: New file.
97692         * modules/unictype/decimal-digit-tests: New file.
97693         * modules/unictype/digit-tests: New file.
97694         * modules/unictype/mirror-tests: New file.
97695         * modules/unictype/numeric-tests: New file.
97696         * modules/unictype/property-alphabetic-tests: New file.
97697         * modules/unictype/property-ascii-hex-digit-tests: New file.
97698         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97699         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97700         * modules/unictype/property-bidi-block-separator-tests: New file.
97701         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97702         * modules/unictype/property-bidi-common-separator-tests: New file.
97703         * modules/unictype/property-bidi-control-tests: New file.
97704         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97705         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97706         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97707         * modules/unictype/property-bidi-european-digit-tests: New file.
97708         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97709         * modules/unictype/property-bidi-left-to-right-tests: New file.
97710         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97711         * modules/unictype/property-bidi-other-neutral-tests: New file.
97712         * modules/unictype/property-bidi-pdf-tests: New file.
97713         * modules/unictype/property-bidi-segment-separator-tests: New file.
97714         * modules/unictype/property-bidi-whitespace-tests: New file.
97715         * modules/unictype/property-byname-tests: New file.
97716         * modules/unictype/property-combining-tests: New file.
97717         * modules/unictype/property-composite-tests: New file.
97718         * modules/unictype/property-currency-symbol-tests: New file.
97719         * modules/unictype/property-dash-tests: New file.
97720         * modules/unictype/property-decimal-digit-tests: New file.
97721         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97722         * modules/unictype/property-deprecated-tests: New file.
97723         * modules/unictype/property-diacritic-tests: New file.
97724         * modules/unictype/property-extender-tests: New file.
97725         * modules/unictype/property-format-control-tests: New file.
97726         * modules/unictype/property-grapheme-base-tests: New file.
97727         * modules/unictype/property-grapheme-extend-tests: New file.
97728         * modules/unictype/property-grapheme-link-tests: New file.
97729         * modules/unictype/property-hex-digit-tests: New file.
97730         * modules/unictype/property-hyphen-tests: New file.
97731         * modules/unictype/property-id-continue-tests: New file.
97732         * modules/unictype/property-id-start-tests: New file.
97733         * modules/unictype/property-ideographic-tests: New file.
97734         * modules/unictype/property-ids-binary-operator-tests: New file.
97735         * modules/unictype/property-ids-trinary-operator-tests: New file.
97736         * modules/unictype/property-ignorable-control-tests: New file.
97737         * modules/unictype/property-iso-control-tests: New file.
97738         * modules/unictype/property-join-control-tests: New file.
97739         * modules/unictype/property-left-of-pair-tests: New file.
97740         * modules/unictype/property-line-separator-tests: New file.
97741         * modules/unictype/property-logical-order-exception-tests: New file.
97742         * modules/unictype/property-lowercase-tests: New file.
97743         * modules/unictype/property-math-tests: New file.
97744         * modules/unictype/property-non-break-tests: New file.
97745         * modules/unictype/property-not-a-character-tests: New file.
97746         * modules/unictype/property-numeric-tests: New file.
97747         * modules/unictype/property-other-alphabetic-tests: New file.
97748         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97749         * modules/unictype/property-other-grapheme-extend-tests: New file.
97750         * modules/unictype/property-other-id-continue-tests: New file.
97751         * modules/unictype/property-other-id-start-tests: New file.
97752         * modules/unictype/property-other-lowercase-tests: New file.
97753         * modules/unictype/property-other-math-tests: New file.
97754         * modules/unictype/property-other-uppercase-tests: New file.
97755         * modules/unictype/property-paired-punctuation-tests: New file.
97756         * modules/unictype/property-paragraph-separator-tests: New file.
97757         * modules/unictype/property-pattern-syntax-tests: New file.
97758         * modules/unictype/property-pattern-white-space-tests: New file.
97759         * modules/unictype/property-private-use-tests: New file.
97760         * modules/unictype/property-punctuation-tests: New file.
97761         * modules/unictype/property-quotation-mark-tests: New file.
97762         * modules/unictype/property-radical-tests: New file.
97763         * modules/unictype/property-sentence-terminal-tests: New file.
97764         * modules/unictype/property-soft-dotted-tests: New file.
97765         * modules/unictype/property-space-tests: New file.
97766         * modules/unictype/property-terminal-punctuation-tests: New file.
97767         * modules/unictype/property-test-tests: New file.
97768         * modules/unictype/property-titlecase-tests: New file.
97769         * modules/unictype/property-unassigned-code-value-tests: New file.
97770         * modules/unictype/property-unified-ideograph-tests: New file.
97771         * modules/unictype/property-uppercase-tests: New file.
97772         * modules/unictype/property-variation-selector-tests: New file.
97773         * modules/unictype/property-white-space-tests: New file.
97774         * modules/unictype/property-xid-continue-tests: New file.
97775         * modules/unictype/property-xid-start-tests: New file.
97776         * modules/unictype/property-zero-width-tests: New file.
97777         * modules/unictype/scripts-tests: New file.
97778         * modules/unictype/syntax-c-ident-tests: New file.
97779         * modules/unictype/syntax-c-whitespace-tests: New file.
97780         * modules/unictype/syntax-java-ident-tests: New file.
97781         * modules/unictype/syntax-java-whitespace-tests: New file.
97782         * tests/unictype/test-bidi_byname.c: New file.
97783         * tests/unictype/test-bidi_name.c: New file.
97784         * tests/unictype/test-bidi_of.c: New file.
97785         * tests/unictype/test-bidi_test.c: New file.
97786         * tests/unictype/test-block_list.c: New file.
97787         * tests/unictype/test-block_of.c: New file.
97788         * tests/unictype/test-block_test.c: New file.
97789         * tests/unictype/test-categ_and.c: New file.
97790         * tests/unictype/test-categ_and_not.c: New file.
97791         * tests/unictype/test-categ_byname.c: New file.
97792         * tests/unictype/test-categ_name.c: New file.
97793         * tests/unictype/test-categ_none.c: New file.
97794         * tests/unictype/test-categ_of.c: New file.
97795         * tests/unictype/test-categ_or.c: New file.
97796         * tests/unictype/test-categ_test_withtable.c: New file.
97797         * tests/unictype/test-combining.c: New file.
97798         * tests/unictype/test-decdigit.c: New file.
97799         * tests/unictype/test-digit.c: New file.
97800         * tests/unictype/test-mirror.c: New file.
97801         * tests/unictype/test-numeric.c: New file.
97802         * tests/unictype/test-pr_byname.c: New file.
97803         * tests/unictype/test-pr_test.c: New file.
97804         * tests/unictype/test-predicate-part1.h: New file.
97805         * tests/unictype/test-predicate-part2.h: New file.
97806         * tests/unictype/test-scripts.c: New file.
97807         * tests/unictype/test-sy_c_ident.c: New file.
97808         * tests/unictype/test-sy_java_ident.c: New file.
97810         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97811         for Unicode 5.0.0.
97812         * tests/unictype/test-categ_Cc.c: Likewise.
97813         * tests/unictype/test-categ_Cf.c: Likewise.
97814         * tests/unictype/test-categ_Cn.c: Likewise.
97815         * tests/unictype/test-categ_Co.c: Likewise.
97816         * tests/unictype/test-categ_Cs.c: Likewise.
97817         * tests/unictype/test-categ_L.c: Likewise.
97818         * tests/unictype/test-categ_Ll.c: Likewise.
97819         * tests/unictype/test-categ_Lm.c: Likewise.
97820         * tests/unictype/test-categ_Lo.c: Likewise.
97821         * tests/unictype/test-categ_Lt.c: Likewise.
97822         * tests/unictype/test-categ_Lu.c: Likewise.
97823         * tests/unictype/test-categ_M.c: Likewise.
97824         * tests/unictype/test-categ_Mc.c: Likewise.
97825         * tests/unictype/test-categ_Me.c: Likewise.
97826         * tests/unictype/test-categ_Mn.c: Likewise.
97827         * tests/unictype/test-categ_N.c: Likewise.
97828         * tests/unictype/test-categ_Nd.c: Likewise.
97829         * tests/unictype/test-categ_Nl.c: Likewise.
97830         * tests/unictype/test-categ_No.c: Likewise.
97831         * tests/unictype/test-categ_P.c: Likewise.
97832         * tests/unictype/test-categ_Pc.c: Likewise.
97833         * tests/unictype/test-categ_Pd.c: Likewise.
97834         * tests/unictype/test-categ_Pe.c: Likewise.
97835         * tests/unictype/test-categ_Pf.c: Likewise.
97836         * tests/unictype/test-categ_Pi.c: Likewise.
97837         * tests/unictype/test-categ_Po.c: Likewise.
97838         * tests/unictype/test-categ_Ps.c: Likewise.
97839         * tests/unictype/test-categ_S.c: Likewise.
97840         * tests/unictype/test-categ_Sc.c: Likewise.
97841         * tests/unictype/test-categ_Sk.c: Likewise.
97842         * tests/unictype/test-categ_Sm.c: Likewise.
97843         * tests/unictype/test-categ_So.c: Likewise.
97844         * tests/unictype/test-categ_Z.c: Likewise.
97845         * tests/unictype/test-categ_Zl.c: Likewise.
97846         * tests/unictype/test-categ_Zp.c: Likewise.
97847         * tests/unictype/test-categ_Zs.c: Likewise.
97848         * tests/unictype/test-ctype_alnum.c: Likewise.
97849         * tests/unictype/test-ctype_alpha.c: Likewise.
97850         * tests/unictype/test-ctype_blank.c: Likewise.
97851         * tests/unictype/test-ctype_cntrl.c: Likewise.
97852         * tests/unictype/test-ctype_digit.c: Likewise.
97853         * tests/unictype/test-ctype_graph.c: Likewise.
97854         * tests/unictype/test-ctype_lower.c: Likewise.
97855         * tests/unictype/test-ctype_print.c: Likewise.
97856         * tests/unictype/test-ctype_punct.c: Likewise.
97857         * tests/unictype/test-ctype_space.c: Likewise.
97858         * tests/unictype/test-ctype_upper.c: Likewise.
97859         * tests/unictype/test-ctype_xdigit.c: Likewise.
97860         * tests/unictype/test-decdigit.h: Likewise.
97861         * tests/unictype/test-digit.h: Likewise.
97862         * tests/unictype/test-numeric.h: Likewise.
97863         * tests/unictype/test-pr_alphabetic.c: Likewise.
97864         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97865         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97866         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97867         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97868         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97869         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97870         * tests/unictype/test-pr_bidi_control.c: Likewise.
97871         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97872         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97873         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97874         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97875         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97876         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97877         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97878         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97879         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97880         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97881         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97882         * tests/unictype/test-pr_combining.c: Likewise.
97883         * tests/unictype/test-pr_composite.c: Likewise.
97884         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97885         * tests/unictype/test-pr_dash.c: Likewise.
97886         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97887         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97888         * tests/unictype/test-pr_deprecated.c: Likewise.
97889         * tests/unictype/test-pr_diacritic.c: Likewise.
97890         * tests/unictype/test-pr_extender.c: Likewise.
97891         * tests/unictype/test-pr_format_control.c: Likewise.
97892         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97893         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97894         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97895         * tests/unictype/test-pr_hex_digit.c: Likewise.
97896         * tests/unictype/test-pr_hyphen.c: Likewise.
97897         * tests/unictype/test-pr_id_continue.c: Likewise.
97898         * tests/unictype/test-pr_id_start.c: Likewise.
97899         * tests/unictype/test-pr_ideographic.c: Likewise.
97900         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97901         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97902         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97903         * tests/unictype/test-pr_iso_control.c: Likewise.
97904         * tests/unictype/test-pr_join_control.c: Likewise.
97905         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97906         * tests/unictype/test-pr_line_separator.c: Likewise.
97907         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97908         * tests/unictype/test-pr_lowercase.c: Likewise.
97909         * tests/unictype/test-pr_math.c: Likewise.
97910         * tests/unictype/test-pr_non_break.c: Likewise.
97911         * tests/unictype/test-pr_not_a_character.c: Likewise.
97912         * tests/unictype/test-pr_numeric.c: Likewise.
97913         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97914         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97915         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97916         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97917         * tests/unictype/test-pr_other_id_start.c: Likewise.
97918         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97919         * tests/unictype/test-pr_other_math.c: Likewise.
97920         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97921         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97922         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97923         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97924         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97925         * tests/unictype/test-pr_private_use.c: Likewise.
97926         * tests/unictype/test-pr_punctuation.c: Likewise.
97927         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97928         * tests/unictype/test-pr_radical.c: Likewise.
97929         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97930         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97931         * tests/unictype/test-pr_space.c: Likewise.
97932         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97933         * tests/unictype/test-pr_titlecase.c: Likewise.
97934         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97935         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97936         * tests/unictype/test-pr_uppercase.c: Likewise.
97937         * tests/unictype/test-pr_variation_selector.c: Likewise.
97938         * tests/unictype/test-pr_white_space.c: Likewise.
97939         * tests/unictype/test-pr_xid_continue.c: Likewise.
97940         * tests/unictype/test-pr_xid_start.c: Likewise.
97941         * tests/unictype/test-pr_zero_width.c: Likewise.
97942         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97943         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97945 2007-11-12  Bruno Haible  <bruno@clisp.org>
97947         Unicode character classification functions.
97948         * lib/unictype.h: New file.
97949         * modules/unictype/base: New file.
97950         * modules/unictype/category-L: New file.
97951         * modules/unictype/category-Lu: New file.
97952         * modules/unictype/category-Ll: New file.
97953         * modules/unictype/category-Lt: New file.
97954         * modules/unictype/category-Lm: New file.
97955         * modules/unictype/category-Lo: New file.
97956         * modules/unictype/category-M: New file.
97957         * modules/unictype/category-Mn: New file.
97958         * modules/unictype/category-Mc: New file.
97959         * modules/unictype/category-Me: New file.
97960         * modules/unictype/category-N: New file.
97961         * modules/unictype/category-Nd: New file.
97962         * modules/unictype/category-Nl: New file.
97963         * modules/unictype/category-No: New file.
97964         * modules/unictype/category-P: New file.
97965         * modules/unictype/category-Pc: New file.
97966         * modules/unictype/category-Pd: New file.
97967         * modules/unictype/category-Ps: New file.
97968         * modules/unictype/category-Pe: New file.
97969         * modules/unictype/category-Pi: New file.
97970         * modules/unictype/category-Pf: New file.
97971         * modules/unictype/category-Po: New file.
97972         * modules/unictype/category-S: New file.
97973         * modules/unictype/category-Sm: New file.
97974         * modules/unictype/category-Sc: New file.
97975         * modules/unictype/category-Sk: New file.
97976         * modules/unictype/category-So: New file.
97977         * modules/unictype/category-Z: New file.
97978         * modules/unictype/category-Zs: New file.
97979         * modules/unictype/category-Zl: New file.
97980         * modules/unictype/category-Zp: New file.
97981         * modules/unictype/category-C: New file.
97982         * modules/unictype/category-Cc: New file.
97983         * modules/unictype/category-Cf: New file.
97984         * modules/unictype/category-Cs: New file.
97985         * modules/unictype/category-Co: New file.
97986         * modules/unictype/category-Cn: New file.
97987         * modules/unictype/category-or: New file.
97988         * modules/unictype/category-of: New file.
97989         * modules/unictype/category-test: New file.
97990         * modules/unictype/category-test-withtable: New file.
97991         * modules/unictype/category-byname: New file.
97992         * modules/unictype/category-none: New file.
97993         * modules/unictype/category-and: New file.
97994         * modules/unictype/category-and-not: New file.
97995         * modules/unictype/category-name: New file.
97996         * modules/unictype/combining-class: New file.
97997         * modules/unictype/category-all: New file.
97998         * modules/unictype/bidicategory-all: New file.
97999         * modules/unictype/bidicategory-byname: New file.
98000         * modules/unictype/bidicategory-name: New file.
98001         * modules/unictype/bidicategory-of: New file.
98002         * modules/unictype/bidicategory-test: New file.
98003         * modules/unictype/decimal-digit: New file.
98004         * modules/unictype/digit: New file.
98005         * modules/unictype/numeric: New file.
98006         * modules/unictype/mirror: New file.
98007         * modules/unictype/property-white-space: New file.
98008         * modules/unictype/property-alphabetic: New file.
98009         * modules/unictype/property-other-alphabetic: New file.
98010         * modules/unictype/property-not-a-character: New file.
98011         * modules/unictype/property-default-ignorable-code-point: New file.
98012         * modules/unictype/property-other-default-ignorable-code-point: New
98013         file.
98014         * modules/unictype/property-deprecated: New file.
98015         * modules/unictype/property-logical-order-exception: New file.
98016         * modules/unictype/property-variation-selector: New file.
98017         * modules/unictype/property-private-use: New file.
98018         * modules/unictype/property-unassigned-code-value: New file.
98019         * modules/unictype/property-uppercase: New file.
98020         * modules/unictype/property-other-uppercase: New file.
98021         * modules/unictype/property-lowercase: New file.
98022         * modules/unictype/property-other-lowercase: New file.
98023         * modules/unictype/property-titlecase: New file.
98024         * modules/unictype/property-soft-dotted: New file.
98025         * modules/unictype/property-id-start: New file.
98026         * modules/unictype/property-other-id-start: New file.
98027         * modules/unictype/property-id-continue: New file.
98028         * modules/unictype/property-other-id-continue: New file.
98029         * modules/unictype/property-xid-start: New file.
98030         * modules/unictype/property-xid-continue: New file.
98031         * modules/unictype/property-pattern-white-space: New file.
98032         * modules/unictype/property-pattern-syntax: New file.
98033         * modules/unictype/property-join-control: New file.
98034         * modules/unictype/property-grapheme-base: New file.
98035         * modules/unictype/property-grapheme-extend: New file.
98036         * modules/unictype/property-other-grapheme-extend: New file.
98037         * modules/unictype/property-grapheme-link: New file.
98038         * modules/unictype/property-bidi-control: New file.
98039         * modules/unictype/property-bidi-left-to-right: New file.
98040         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
98041         * modules/unictype/property-bidi-arabic-right-to-left: New file.
98042         * modules/unictype/property-bidi-european-digit: New file.
98043         * modules/unictype/property-bidi-eur-num-separator: New file.
98044         * modules/unictype/property-bidi-eur-num-terminator: New file.
98045         * modules/unictype/property-bidi-arabic-digit: New file.
98046         * modules/unictype/property-bidi-common-separator: New file.
98047         * modules/unictype/property-bidi-block-separator: New file.
98048         * modules/unictype/property-bidi-segment-separator: New file.
98049         * modules/unictype/property-bidi-whitespace: New file.
98050         * modules/unictype/property-bidi-non-spacing-mark: New file.
98051         * modules/unictype/property-bidi-boundary-neutral: New file.
98052         * modules/unictype/property-bidi-pdf: New file.
98053         * modules/unictype/property-bidi-embedding-or-override: New file.
98054         * modules/unictype/property-bidi-other-neutral: New file.
98055         * modules/unictype/property-hex-digit: New file.
98056         * modules/unictype/property-ascii-hex-digit: New file.
98057         * modules/unictype/property-ideographic: New file.
98058         * modules/unictype/property-unified-ideograph: New file.
98059         * modules/unictype/property-radical: New file.
98060         * modules/unictype/property-ids-binary-operator: New file.
98061         * modules/unictype/property-ids-trinary-operator: New file.
98062         * modules/unictype/property-zero-width: New file.
98063         * modules/unictype/property-space: New file.
98064         * modules/unictype/property-non-break: New file.
98065         * modules/unictype/property-iso-control: New file.
98066         * modules/unictype/property-format-control: New file.
98067         * modules/unictype/property-dash: New file.
98068         * modules/unictype/property-hyphen: New file.
98069         * modules/unictype/property-punctuation: New file.
98070         * modules/unictype/property-line-separator: New file.
98071         * modules/unictype/property-paragraph-separator: New file.
98072         * modules/unictype/property-quotation-mark: New file.
98073         * modules/unictype/property-sentence-terminal: New file.
98074         * modules/unictype/property-terminal-punctuation: New file.
98075         * modules/unictype/property-currency-symbol: New file.
98076         * modules/unictype/property-math: New file.
98077         * modules/unictype/property-other-math: New file.
98078         * modules/unictype/property-paired-punctuation: New file.
98079         * modules/unictype/property-left-of-pair: New file.
98080         * modules/unictype/property-combining: New file.
98081         * modules/unictype/property-composite: New file.
98082         * modules/unictype/property-decimal-digit: New file.
98083         * modules/unictype/property-numeric: New file.
98084         * modules/unictype/property-diacritic: New file.
98085         * modules/unictype/property-extender: New file.
98086         * modules/unictype/property-ignorable-control: New file.
98087         * modules/unictype/property-test: New file.
98088         * modules/unictype/property-byname: New file.
98089         * modules/unictype/property-all: New file.
98090         * modules/unictype/scripts: New file.
98091         * modules/unictype/scripts-all: New file.
98092         * modules/unictype/block-of: New file.
98093         * modules/unictype/block-test: New file.
98094         * modules/unictype/block-list: New file.
98095         * modules/unictype/block-all: New file.
98096         * modules/unictype/syntax-c-whitespace: New file.
98097         * modules/unictype/syntax-java-whitespace: New file.
98098         * modules/unictype/syntax-c-ident: New file.
98099         * modules/unictype/syntax-java-ident: New file.
98100         * modules/unictype/ctype-alnum: New file.
98101         * modules/unictype/ctype-alpha: New file.
98102         * modules/unictype/ctype-cntrl: New file.
98103         * modules/unictype/ctype-digit: New file.
98104         * modules/unictype/ctype-graph: New file.
98105         * modules/unictype/ctype-lower: New file.
98106         * modules/unictype/ctype-print: New file.
98107         * modules/unictype/ctype-punct: New file.
98108         * modules/unictype/ctype-space: New file.
98109         * modules/unictype/ctype-upper: New file.
98110         * modules/unictype/ctype-xdigit: New file.
98111         * modules/unictype/ctype-blank: New file.
98112         * lib/unictype/bidi_byname.c: New file.
98113         * lib/unictype/bidi_name.c: New file.
98114         * lib/unictype/bidi_of.c: New file.
98115         * lib/unictype/bidi_test.c: New file.
98116         * lib/unictype/bitmap.h: New file.
98117         * lib/unictype/block_test.c: New file.
98118         * lib/unictype/blocks.c: New file.
98119         * lib/unictype/categ_C.c: New file.
98120         * lib/unictype/categ_Cc.c: New file.
98121         * lib/unictype/categ_Cf.c: New file.
98122         * lib/unictype/categ_Cn.c: New file.
98123         * lib/unictype/categ_Co.c: New file.
98124         * lib/unictype/categ_Cs.c: New file.
98125         * lib/unictype/categ_L.c: New file.
98126         * lib/unictype/categ_Ll.c: New file.
98127         * lib/unictype/categ_Lm.c: New file.
98128         * lib/unictype/categ_Lo.c: New file.
98129         * lib/unictype/categ_Lt.c: New file.
98130         * lib/unictype/categ_Lu.c: New file.
98131         * lib/unictype/categ_M.c: New file.
98132         * lib/unictype/categ_Mc.c: New file.
98133         * lib/unictype/categ_Me.c: New file.
98134         * lib/unictype/categ_Mn.c: New file.
98135         * lib/unictype/categ_N.c: New file.
98136         * lib/unictype/categ_Nd.c: New file.
98137         * lib/unictype/categ_Nl.c: New file.
98138         * lib/unictype/categ_No.c: New file.
98139         * lib/unictype/categ_P.c: New file.
98140         * lib/unictype/categ_Pc.c: New file.
98141         * lib/unictype/categ_Pd.c: New file.
98142         * lib/unictype/categ_Pe.c: New file.
98143         * lib/unictype/categ_Pf.c: New file.
98144         * lib/unictype/categ_Pi.c: New file.
98145         * lib/unictype/categ_Po.c: New file.
98146         * lib/unictype/categ_Ps.c: New file.
98147         * lib/unictype/categ_S.c: New file.
98148         * lib/unictype/categ_Sc.c: New file.
98149         * lib/unictype/categ_Sk.c: New file.
98150         * lib/unictype/categ_Sm.c: New file.
98151         * lib/unictype/categ_So.c: New file.
98152         * lib/unictype/categ_Z.c: New file.
98153         * lib/unictype/categ_Zl.c: New file.
98154         * lib/unictype/categ_Zp.c: New file.
98155         * lib/unictype/categ_Zs.c: New file.
98156         * lib/unictype/categ_and.c: New file.
98157         * lib/unictype/categ_and_not.c: New file.
98158         * lib/unictype/categ_byname.c: New file.
98159         * lib/unictype/categ_name.c: New file.
98160         * lib/unictype/categ_none.c: New file.
98161         * lib/unictype/categ_of.c: New file.
98162         * lib/unictype/categ_or.c: New file.
98163         * lib/unictype/categ_test.c: New file.
98164         * lib/unictype/combining.c: New file.
98165         * lib/unictype/ctype_alnum.c: New file.
98166         * lib/unictype/ctype_alpha.c: New file.
98167         * lib/unictype/ctype_blank.c: New file.
98168         * lib/unictype/ctype_cntrl.c: New file.
98169         * lib/unictype/ctype_digit.c: New file.
98170         * lib/unictype/ctype_graph.c: New file.
98171         * lib/unictype/ctype_lower.c: New file.
98172         * lib/unictype/ctype_print.c: New file.
98173         * lib/unictype/ctype_punct.c: New file.
98174         * lib/unictype/ctype_space.c: New file.
98175         * lib/unictype/ctype_upper.c: New file.
98176         * lib/unictype/ctype_xdigit.c: New file.
98177         * lib/unictype/decdigit.c: New file.
98178         * lib/unictype/digit.c: New file.
98179         * lib/unictype/identsyntaxmap.h: New file.
98180         * lib/unictype/mirror.c: New file.
98181         * lib/unictype/numeric.c: New file.
98182         * lib/unictype/pr_alphabetic.c: New file.
98183         * lib/unictype/pr_ascii_hex_digit.c: New file.
98184         * lib/unictype/pr_bidi_arabic_digit.c: New file.
98185         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
98186         * lib/unictype/pr_bidi_block_separator.c: New file.
98187         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
98188         * lib/unictype/pr_bidi_common_separator.c: New file.
98189         * lib/unictype/pr_bidi_control.c: New file.
98190         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
98191         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
98192         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
98193         * lib/unictype/pr_bidi_european_digit.c: New file.
98194         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
98195         * lib/unictype/pr_bidi_left_to_right.c: New file.
98196         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
98197         * lib/unictype/pr_bidi_other_neutral.c: New file.
98198         * lib/unictype/pr_bidi_pdf.c: New file.
98199         * lib/unictype/pr_bidi_segment_separator.c: New file.
98200         * lib/unictype/pr_bidi_whitespace.c: New file.
98201         * lib/unictype/pr_byname.c: New file.
98202         * lib/unictype/pr_byname.gperf: New file.
98203         * lib/unictype/pr_combining.c: New file.
98204         * lib/unictype/pr_composite.c: New file.
98205         * lib/unictype/pr_currency_symbol.c: New file.
98206         * lib/unictype/pr_dash.c: New file.
98207         * lib/unictype/pr_decimal_digit.c: New file.
98208         * lib/unictype/pr_default_ignorable_code_point.c: New file.
98209         * lib/unictype/pr_deprecated.c: New file.
98210         * lib/unictype/pr_diacritic.c: New file.
98211         * lib/unictype/pr_extender.c: New file.
98212         * lib/unictype/pr_format_control.c: New file.
98213         * lib/unictype/pr_grapheme_base.c: New file.
98214         * lib/unictype/pr_grapheme_extend.c: New file.
98215         * lib/unictype/pr_grapheme_link.c: New file.
98216         * lib/unictype/pr_hex_digit.c: New file.
98217         * lib/unictype/pr_hyphen.c: New file.
98218         * lib/unictype/pr_id_continue.c: New file.
98219         * lib/unictype/pr_id_start.c: New file.
98220         * lib/unictype/pr_ideographic.c: New file.
98221         * lib/unictype/pr_ids_binary_operator.c: New file.
98222         * lib/unictype/pr_ids_trinary_operator.c: New file.
98223         * lib/unictype/pr_ignorable_control.c: New file.
98224         * lib/unictype/pr_iso_control.c: New file.
98225         * lib/unictype/pr_join_control.c: New file.
98226         * lib/unictype/pr_left_of_pair.c: New file.
98227         * lib/unictype/pr_line_separator.c: New file.
98228         * lib/unictype/pr_logical_order_exception.c: New file.
98229         * lib/unictype/pr_lowercase.c: New file.
98230         * lib/unictype/pr_math.c: New file.
98231         * lib/unictype/pr_non_break.c: New file.
98232         * lib/unictype/pr_not_a_character.c: New file.
98233         * lib/unictype/pr_numeric.c: New file.
98234         * lib/unictype/pr_other_alphabetic.c: New file.
98235         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
98236         * lib/unictype/pr_other_grapheme_extend.c: New file.
98237         * lib/unictype/pr_other_id_continue.c: New file.
98238         * lib/unictype/pr_other_id_start.c: New file.
98239         * lib/unictype/pr_other_lowercase.c: New file.
98240         * lib/unictype/pr_other_math.c: New file.
98241         * lib/unictype/pr_other_uppercase.c: New file.
98242         * lib/unictype/pr_paired_punctuation.c: New file.
98243         * lib/unictype/pr_paragraph_separator.c: New file.
98244         * lib/unictype/pr_pattern_syntax.c: New file.
98245         * lib/unictype/pr_pattern_white_space.c: New file.
98246         * lib/unictype/pr_private_use.c: New file.
98247         * lib/unictype/pr_punctuation.c: New file.
98248         * lib/unictype/pr_quotation_mark.c: New file.
98249         * lib/unictype/pr_radical.c: New file.
98250         * lib/unictype/pr_sentence_terminal.c: New file.
98251         * lib/unictype/pr_soft_dotted.c: New file.
98252         * lib/unictype/pr_space.c: New file.
98253         * lib/unictype/pr_terminal_punctuation.c: New file.
98254         * lib/unictype/pr_test.c: New file.
98255         * lib/unictype/pr_titlecase.c: New file.
98256         * lib/unictype/pr_unassigned_code_value.c: New file.
98257         * lib/unictype/pr_unified_ideograph.c: New file.
98258         * lib/unictype/pr_uppercase.c: New file.
98259         * lib/unictype/pr_variation_selector.c: New file.
98260         * lib/unictype/pr_white_space.c: New file.
98261         * lib/unictype/pr_xid_continue.c: New file.
98262         * lib/unictype/pr_xid_start.c: New file.
98263         * lib/unictype/pr_zero_width.c: New file.
98264         * lib/unictype/scripts.c: New file.
98265         * lib/unictype/sy_c_ident.c: New file.
98266         * lib/unictype/sy_c_whitespace.c: New file.
98267         * lib/unictype/sy_java_ident.c: New file.
98268         * lib/unictype/sy_java_whitespace.c: New file.
98270         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98271         Unicode 5.0.0.
98272         * lib/unictype/blocks.h: Likewise.
98273         * lib/unictype/categ_C.h: Likewise.
98274         * lib/unictype/categ_Cc.h: Likewise.
98275         * lib/unictype/categ_Cf.h: Likewise.
98276         * lib/unictype/categ_Cn.h: Likewise.
98277         * lib/unictype/categ_Co.h: Likewise.
98278         * lib/unictype/categ_Cs.h: Likewise.
98279         * lib/unictype/categ_L.h: Likewise.
98280         * lib/unictype/categ_Ll.h: Likewise.
98281         * lib/unictype/categ_Lm.h: Likewise.
98282         * lib/unictype/categ_Lo.h: Likewise.
98283         * lib/unictype/categ_Lt.h: Likewise.
98284         * lib/unictype/categ_Lu.h: Likewise.
98285         * lib/unictype/categ_M.h: Likewise.
98286         * lib/unictype/categ_Mc.h: Likewise.
98287         * lib/unictype/categ_Me.h: Likewise.
98288         * lib/unictype/categ_Mn.h: Likewise.
98289         * lib/unictype/categ_N.h: Likewise.
98290         * lib/unictype/categ_Nd.h: Likewise.
98291         * lib/unictype/categ_Nl.h: Likewise.
98292         * lib/unictype/categ_No.h: Likewise.
98293         * lib/unictype/categ_P.h: Likewise.
98294         * lib/unictype/categ_Pc.h: Likewise.
98295         * lib/unictype/categ_Pd.h: Likewise.
98296         * lib/unictype/categ_Pe.h: Likewise.
98297         * lib/unictype/categ_Pf.h: Likewise.
98298         * lib/unictype/categ_Pi.h: Likewise.
98299         * lib/unictype/categ_Po.h: Likewise.
98300         * lib/unictype/categ_Ps.h: Likewise.
98301         * lib/unictype/categ_S.h: Likewise.
98302         * lib/unictype/categ_Sc.h: Likewise.
98303         * lib/unictype/categ_Sk.h: Likewise.
98304         * lib/unictype/categ_Sm.h: Likewise.
98305         * lib/unictype/categ_So.h: Likewise.
98306         * lib/unictype/categ_Z.h: Likewise.
98307         * lib/unictype/categ_Zl.h: Likewise.
98308         * lib/unictype/categ_Zp.h: Likewise.
98309         * lib/unictype/categ_Zs.h: Likewise.
98310         * lib/unictype/categ_of.h: Likewise.
98311         * lib/unictype/combining.h: Likewise.
98312         * lib/unictype/ctype_alnum.h: Likewise.
98313         * lib/unictype/ctype_alpha.h: Likewise.
98314         * lib/unictype/ctype_blank.h: Likewise.
98315         * lib/unictype/ctype_cntrl.h: Likewise.
98316         * lib/unictype/ctype_digit.h: Likewise.
98317         * lib/unictype/ctype_graph.h: Likewise.
98318         * lib/unictype/ctype_lower.h: Likewise.
98319         * lib/unictype/ctype_print.h: Likewise.
98320         * lib/unictype/ctype_punct.h: Likewise.
98321         * lib/unictype/ctype_space.h: Likewise.
98322         * lib/unictype/ctype_upper.h: Likewise.
98323         * lib/unictype/ctype_xdigit.h: Likewise.
98324         * lib/unictype/decdigit.h: Likewise.
98325         * lib/unictype/digit.h: Likewise.
98326         * lib/unictype/mirror.h: Likewise.
98327         * lib/unictype/numeric.h: Likewise.
98328         * lib/unictype/pr_alphabetic.h: Likewise.
98329         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98330         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98331         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98332         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98333         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98334         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98335         * lib/unictype/pr_bidi_control.h: Likewise.
98336         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98337         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98338         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98339         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98340         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98341         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98342         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98343         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98344         * lib/unictype/pr_bidi_pdf.h: Likewise.
98345         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98346         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98347         * lib/unictype/pr_combining.h: Likewise.
98348         * lib/unictype/pr_composite.h: Likewise.
98349         * lib/unictype/pr_currency_symbol.h: Likewise.
98350         * lib/unictype/pr_dash.h: Likewise.
98351         * lib/unictype/pr_decimal_digit.h: Likewise.
98352         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98353         * lib/unictype/pr_deprecated.h: Likewise.
98354         * lib/unictype/pr_diacritic.h: Likewise.
98355         * lib/unictype/pr_extender.h: Likewise.
98356         * lib/unictype/pr_format_control.h: Likewise.
98357         * lib/unictype/pr_grapheme_base.h: Likewise.
98358         * lib/unictype/pr_grapheme_extend.h: Likewise.
98359         * lib/unictype/pr_grapheme_link.h: Likewise.
98360         * lib/unictype/pr_hex_digit.h: Likewise.
98361         * lib/unictype/pr_hyphen.h: Likewise.
98362         * lib/unictype/pr_id_continue.h: Likewise.
98363         * lib/unictype/pr_id_start.h: Likewise.
98364         * lib/unictype/pr_ideographic.h: Likewise.
98365         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98366         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98367         * lib/unictype/pr_ignorable_control.h: Likewise.
98368         * lib/unictype/pr_iso_control.h: Likewise.
98369         * lib/unictype/pr_join_control.h: Likewise.
98370         * lib/unictype/pr_left_of_pair.h: Likewise.
98371         * lib/unictype/pr_line_separator.h: Likewise.
98372         * lib/unictype/pr_logical_order_exception.h: Likewise.
98373         * lib/unictype/pr_lowercase.h: Likewise.
98374         * lib/unictype/pr_math.h: Likewise.
98375         * lib/unictype/pr_non_break.h: Likewise.
98376         * lib/unictype/pr_not_a_character.h: Likewise.
98377         * lib/unictype/pr_numeric.h: Likewise.
98378         * lib/unictype/pr_other_alphabetic.h: Likewise.
98379         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98380         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98381         * lib/unictype/pr_other_id_continue.h: Likewise.
98382         * lib/unictype/pr_other_id_start.h: Likewise.
98383         * lib/unictype/pr_other_lowercase.h: Likewise.
98384         * lib/unictype/pr_other_math.h: Likewise.
98385         * lib/unictype/pr_other_uppercase.h: Likewise.
98386         * lib/unictype/pr_paired_punctuation.h: Likewise.
98387         * lib/unictype/pr_paragraph_separator.h: Likewise.
98388         * lib/unictype/pr_pattern_syntax.h: Likewise.
98389         * lib/unictype/pr_pattern_white_space.h: Likewise.
98390         * lib/unictype/pr_private_use.h: Likewise.
98391         * lib/unictype/pr_punctuation.h: Likewise.
98392         * lib/unictype/pr_quotation_mark.h: Likewise.
98393         * lib/unictype/pr_radical.h: Likewise.
98394         * lib/unictype/pr_sentence_terminal.h: Likewise.
98395         * lib/unictype/pr_soft_dotted.h: Likewise.
98396         * lib/unictype/pr_space.h: Likewise.
98397         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98398         * lib/unictype/pr_titlecase.h: Likewise.
98399         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98400         * lib/unictype/pr_unified_ideograph.h: Likewise.
98401         * lib/unictype/pr_uppercase.h: Likewise.
98402         * lib/unictype/pr_variation_selector.h: Likewise.
98403         * lib/unictype/pr_white_space.h: Likewise.
98404         * lib/unictype/pr_xid_continue.h: Likewise.
98405         * lib/unictype/pr_xid_start.h: Likewise.
98406         * lib/unictype/pr_zero_width.h: Likewise.
98407         * lib/unictype/scripts.h: Likewise.
98408         * lib/unictype/scripts_byname.gperf: Likewise.
98409         * lib/unictype/sy_c_ident.h: Likewise.
98410         * lib/unictype/sy_c_whitespace.h: Likewise.
98411         * lib/unictype/sy_java_ident.h: Likewise.
98412         * lib/unictype/sy_java_whitespace.h: Likewise.
98414         * lib/unictype/Makefile: New file.
98415         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98416         glibc.
98417         * lib/unictype/3level.h: New file, copied from glibc.
98418         * lib/unictype/3levelbit.h: New file.
98420 2007-11-11  Bruno Haible  <bruno@clisp.org>
98422         * modules/gperf: New file.
98423         * modules/iconv_open (Depends-on): Add it.
98424         (Makefile.am): Remove the GPERF definition.
98426 2007-11-11  Bruno Haible  <bruno@clisp.org>
98428         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98429         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98431 2007-11-11  Bruno Haible  <bruno@clisp.org>
98433         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98434         (usage): Remove function.
98436 2007-11-11  Bruno Haible  <bruno@clisp.org>
98438         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98439         gl_FUNC_CEILF_LIBS.
98440         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98441         gl_FUNC_CEIL_LIBS.
98442         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98443         gl_FUNC_CEILL_LIBS.
98444         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98445         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98446         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98448 2007-11-11  Bruno Haible  <bruno@clisp.org>
98450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98451         roundf were declared but do not exist on functions.
98452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98453         roundl were declared but do not exist on functions.
98454         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98455         HAVE_FLOORL_AND_CEILL, respectively.
98456         Needed for Sun C on Solaris 10.
98458 2007-11-11  Bruno Haible  <bruno@clisp.org>
98460         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98461         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98462         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98463         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98464         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98465         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98466         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98467         HAVE_DECL_ROUNDF.
98468         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98469         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98471         of HAVE_DECL_ROUND*.
98472         * modules/math (Makefile.am): Update.
98474 2007-11-10  Bruno Haible  <bruno@clisp.org>
98476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98477         ptrdiff_t as m4/intl.m4.
98479 2007-11-10  Jim Meyering  <meyering@redhat.com>
98481         Avoid link failure for the argmatch test.
98482         * tests/test-argmatch.c (usage): Define function to avoid a link
98483         failure: argmatch_die requires a usage function.
98485 2007-11-09  Bruno Haible  <bruno@clisp.org>
98487         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98488         * doc/functions/vsnprintf.texi: Likewise.
98489         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98490         with a size argument < 2.
98492 2007-11-09  Bruno Haible  <bruno@clisp.org>
98494         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98495         buffer. Fixes an inefficiency introduced on 2007-11-03.
98497 2007-11-09  Bruno Haible  <bruno@clisp.org>
98499         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98500         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98502 2007-11-08  Jim Meyering  <meyering@redhat.com>
98504         Change cache variable name prefix "jm_" to "gl_" everywhere.
98505         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98506         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98507         * m4/uptime.m4: s/gl_/jm_/
98509 2007-11-07  Bruno Haible  <bruno@clisp.org>
98511         Update to GNU gettext 0.17.
98512         * m4/intl.m4: Update to GNU gettext 0.17.
98513         * m4/po.m4: Likewise.
98514         * modules/gettext (Files): Remove m4/ulonglong.m4.
98515         (configure.ac): Require gettext infrastructure from version 0.17.
98517 2007-11-06  Bruno Haible  <bruno@clisp.org>
98519         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98520         symbolic values are not defined in a public header.
98521         * lib/freadable.c (freadable) [QNX]: Likewise.
98522         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98523         * lib/freading.c (freading) [QNX]: Likewise.
98524         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98525         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98526         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98527         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98528         Reported by Alain Magloire.
98530         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98532 2007-11-05  Bruno Haible  <bruno@clisp.org>
98534         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98535         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98536         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98537         Reported by Eric Blake.
98539 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98540             Bruno Haible  <bruno@clisp.org>
98542         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98543         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98544         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98545         (malloc): Undefine also before including <stdlib.h>.
98546         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98547         Needed on OSF/1 4.0.
98549 2007-11-05  Jim Meyering  <meyering@redhat.com>
98551         git-version-gen: sync from coreutils.
98552         * build-aux/git-version-gen: Add comments.
98553         Change the first '-' to '.' in the snapshot version string,
98554         e.g., 6.9-377-08144 -> 6.9.377-08144
98555         Remove first parameter.
98556         Don't declare a version "-dirty" merely because a time
98557         stamp has changed.
98559 2007-11-04  Bruno Haible  <bruno@clisp.org>
98561         * lib/lock.h: Protect all macro definitions containing an 'if'
98562         statement through a "do { ... } while (0)".
98563         * lib/tls.h: Likewise.
98565 2007-11-04  Bruno Haible  <bruno@clisp.org>
98567         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98569 2007-11-04  Bruno Haible  <bruno@clisp.org>
98571         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98572         * modules/fprintf-posix (Depends-on): Add nocrash.
98573         * modules/snprintf-posix (Depends-on): Likewise.
98574         * modules/sprintf-posix (Depends-on): Likewise.
98575         * modules/vasnprintf-posix (Depends-on): Likewise.
98576         * modules/vasprintf-posix (Depends-on): Likewise.
98577         * modules/vfprintf-posix (Depends-on): Likewise.
98578         * modules/vsnprintf-posix (Depends-on): Likewise.
98579         * modules/vsprintf-posix (Depends-on): Likewise.
98580         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98581         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98582         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98583         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98584         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98585         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98586         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98588 2007-11-04  Bruno Haible  <bruno@clisp.org>
98590         * modules/nocrash: New file.
98591         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98592         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98594 2007-11-04  Bruno Haible  <bruno@clisp.org>
98596         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98597         precision handling.
98598         * tests/test-vasprintf-posix.c (test_function): Likewise.
98599         * tests/test-snprintf-posix.h (test_function): Likewise.
98600         * tests/test-sprintf-posix.h (test_function): Likewise.
98602         Fix *printf behaviour for large precisions on mingw and BeOS.
98603         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98604         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98606         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98607         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98608         gl_PRINTF_PRECISION and test its result. Invoke
98609         gl_PREREQ_VASNPRINTF_PRECISION.
98610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98617         * doc/functions/fprintf.texi: Update.
98618         * doc/functions/printf.texi: Update.
98619         * doc/functions/snprintf.texi: Update.
98620         * doc/functions/sprintf.texi: Update.
98621         * doc/functions/vfprintf.texi: Update.
98622         * doc/functions/vprintf.texi: Update.
98623         * doc/functions/vsnprintf.texi: Update.
98624         * doc/functions/vsprintf.texi: Update.
98626 2007-11-04  Bruno Haible  <bruno@clisp.org>
98628         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98630 2007-11-04  Bruno Haible  <bruno@clisp.org>
98632         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98633         Reported by Sylvain Beucler <beuc@gnu.org>.
98635 2007-11-03  Bruno Haible  <bruno@clisp.org>
98637         * tests/test-fprintf-posix2.sh: New file.
98638         * tests/test-fprintf-posix2.c: New file.
98639         * modules/fprintf-posix-tests (Files): Add them.
98640         (TESTS): Add test-fprintf-posix2.sh.
98641         (configure.ac): Check for getrlimit and setrlimit.
98642         (check_PROGRAMS): Add test-fprintf-posix2.
98644         * tests/test-printf-posix2.sh: New file.
98645         * tests/test-printf-posix2.c: New file.
98646         * modules/printf-posix-tests (Files): Add them.
98647         (TESTS): Add test-printf-posix2.sh.
98648         (configure.ac): Check for getrlimit and setrlimit.
98649         (check_PROGRAMS): Add test-printf-posix2.
98651         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98652         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98653         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98654         (decode_double): New function, copied from decode_long_double.
98655         (scale10_round_decimal_decoded): New function, extracted from
98656         scale10_round_decimal_long_double.
98657         (scale10_round_decimal_long_double): Use it.
98658         (scale10_round_decimal_double): New function.
98659         (floorlog10): New function.
98660         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98662         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98664         gl_PRINTF_ENOMEM and test its result. Invoke
98665         gl_PREREQ_VASNPRINTF_ENOMEM.
98666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98673         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98674         * modules/snprintf-posix (Depends-on): Likewise.
98675         * modules/sprintf-posix (Depends-on): Likewise.
98676         * modules/vasnprintf-posix (Depends-on): Likewise.
98677         * modules/vasprintf-posix (Depends-on): Likewise.
98678         * modules/vfprintf-posix (Depends-on): Likewise.
98679         * modules/vsnprintf-posix (Depends-on): Likewise.
98680         * modules/vsprintf-posix (Depends-on): Likewise.
98681         * doc/functions/fprintf.texi: Update.
98682         * doc/functions/printf.texi: Update.
98683         * doc/functions/snprintf.texi: Update.
98684         * doc/functions/sprintf.texi: Update.
98685         * doc/functions/vfprintf.texi: Update.
98686         * doc/functions/vprintf.texi: Update.
98687         * doc/functions/vsnprintf.texi: Update.
98688         * doc/functions/vsprintf.texi: Update.
98690 2007-11-03  Bruno Haible  <bruno@clisp.org>
98692         * modules/frexp-nolibm-tests: New file.
98694         * modules/frexp-nolibm: New file.
98695         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98697 2007-11-03  Bruno Haible  <bruno@clisp.org>
98699         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98700         value is C99 compliant.
98701         Needed for OSF/1 5.1.
98703 2007-11-03  Bruno Haible  <bruno@clisp.org>
98705         Fix out-of-memory handling of vasnprintf.
98706         * lib/printf-parse.c: Include <errno.h>.
98707         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98708         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98709         is already set.
98711 2007-11-02  Eric Blake  <ebb9@byu.net>
98713         Fix tests on cygwin.
98714         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98716 2007-11-01  Bruno Haible  <bruno@clisp.org>
98718         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98719         warning.
98720         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98721         needed for POSIX compatibility.
98723 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98725         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98726         for compatibility with GNU.
98728 2007-11-01  Bruno Haible  <bruno@clisp.org>
98730         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98731         (putenv): Renamed from rpl_putenv. Change argument type from
98732         'const char *' to 'char *'.
98733         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98734         of defining putenv in config.h, just set REPLACE_PUTENV.
98735         * modules/putenv (Depends-on): Add stdlib.
98736         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98737         (Include): Use <stdlib.h>.
98738         * lib/stdlib.in.h (putenv): New declaration.
98739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98740         REPLACE_PUTENV.
98741         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98742         REPLACE_PUTENV.
98743         Needed for MacOS X 10.5.0.
98744         Reported by Peter O'Gorman <peter@pogma.com>.
98746 2007-11-01  Jim Meyering  <meyering@redhat.com>
98748         Treat an empty date string exactly like "0".
98749         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98750         if the remaining date string (to be parsed) is empty, use "0".
98751         Reported by Mischa Molhoek and discussed in this thread:
98752         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98754 2007-10-31  Bruno Haible  <bruno@clisp.org>
98756         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98757         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98758         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98759         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98760         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98761         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98763 2007-10-31  Bruno Haible  <bruno@clisp.org>
98765         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98766         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98767         (AC_TYPE_LONG_LONG_INT): Use it.
98768         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98769         it as well.
98770         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98771         to m4/longlong.m4.
98772         * modules/stdint (Files): Remove m4/ulonglong.m4.
98773         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98774         m4/ulonglong.m4.
98775         * modules/strtoumax (Files): Likewise.
98777 2007-10-30  Bruno Haible  <bruno@clisp.org>
98779         * modules/xvasprintf-posix: New file.
98780         Suggested by Eric Blake.
98782 2007-10-30  Bruno Haible  <bruno@clisp.org>
98784         * modules/xprintf-posix-tests: New file.
98785         * tests/test-xprintf-posix.sh: New file.
98786         * tests/test-xprintf-posix.c: New file.
98787         * tests/test-xfprintf-posix.c: New file.
98789         * modules/xprintf-posix: New file.
98791 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98793         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98794         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98795         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98797 2007-10-29  Bruno Haible  <bruno@clisp.org>
98799         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98800         contain the special marker '_cv_'.
98801         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98802         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98803         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98804         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98805         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98806         Reported by Ralf Wildenhues.
98808 2007-10-29  Bruno Haible  <bruno@clisp.org>
98810         * gnulib-tool (func_import): When --lgpl is not specified, set
98811         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98812         GPLv3.
98813         Reported by Simon Josefsson.
98815 2007-10-28  Bruno Haible  <bruno@clisp.org>
98817         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98818         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98819         HAVE_DECL_ISFINITE.
98820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98821         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98822         HAVE_DECL_ISFINITE.
98824 2007-10-28  Bruno Haible  <bruno@clisp.org>
98826         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98827         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98829 2007-10-28  Bruno Haible  <bruno@clisp.org>
98831         Fix link errors with Sun C 5.0 on Solaris 10.
98832         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98833         function is declared but not present in the compiler's libm.
98834         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98835         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98836         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98837         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98838         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98839         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98840         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98842         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98843         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98844         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98845         HAVE_DECL_FLOORL.
98847 2007-10-28  Bruno Haible  <bruno@clisp.org>
98849         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98850         gl_FUNC_FLOORL. Cache the result.
98851         (gl_FUNC_FLOORL): Use it.
98852         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98853         gl_FUNC_CEILL. Cache the result.
98854         (gl_FUNC_CEILL): Use it.
98856         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98857         gl_FUNC_FLOOR. Cache the result.
98858         (gl_FUNC_FLOOR): Use it.
98859         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98860         gl_FUNC_CEIL. Cache the result.
98861         (gl_FUNC_CEIL): Use it.
98863         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98864         gl_FUNC_FLOORF. Cache the result.
98865         (gl_FUNC_FLOORF): Use it.
98866         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98867         gl_FUNC_CEILF. Cache the result.
98868         (gl_FUNC_CEILF): Use it.
98870 2007-10-28  Bruno Haible  <bruno@clisp.org>
98872         * gnulib-tool: Allow specifying the LGPL version number through
98873         --lgpl=2 or --lgpl=3.
98874         (func_usage): Document --lgpl with argument.
98875         Handle --lgpl=... arguments.
98876         (func_import): Recognize also gl_LGPL calls with an argument. When
98877         --lgpl=2 is used and the module's license is just LGPL, report an
98878         error. Set sed_transform_lib_file according to the lgpl variable. In
98879         the generated files, use --lgpl or gl_LGPL invocations with argument,
98880         if necessary.
98881         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98882         an LGPv2+ license.
98883         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98884         gl_LGPL macro.
98886 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98887             Bruno Haible  <bruno@clisp.org>
98889         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98890         (u16_uctomb_aux): Likewise.
98891         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98892         !HAVE_INLINE.
98893         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98895 2007-10-28  Bruno Haible  <bruno@clisp.org>
98897         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98898         Invoke AM_GETTEXT_OPTION if it exists.
98899         * modules/vasprintf: Likewise.
98900         * modules/verror: Likewise.
98901         * modules/xprintf: Likewise.
98902         * modules/xvasprintf: Likewise.
98904 2007-10-27  Ben Pfaff  <blp@gnu.org>
98906         * lib/math.in.h: Define isfinite macro and prototypes for
98907         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98908         implementations.
98909         * m4/math_h.m4: New substitutions for isfinite module.
98910         * lib/isfinite.c: New file.
98911         * m4/isfinite.m4: New file.
98912         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98913         * modules/isfinite: New file.
98914         * modules/isfinite-tests: New file.
98915         * tests/tests-isfinite.c: New file.
98916         * doc/functions/isfinite.texi: Mention isfinite module.
98917         * MODULES.html.sh: Mention new module.
98919 2007-10-27  Ben Pfaff  <blp@gnu.org>
98921         Ralf Wildenhues reported that Tru64 4.0D declares the round
98922         functions but does not have definitions.
98923         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98924         cannot be found in any library, set the output variable to
98925         "missing" instead of "".
98926         * m4/round.m4: Also use our substitute if we cannot find round in
98927         any library, even if it is declared.
98928         * m4/roundf.m4: Likewise for roundf.
98929         * m4/roundl.m4: Likewise for roundl.
98930         * lib/math.in.h: Undefine roundf, round, roundl before defining
98931         their replacements, to allow for hypothetical systems where these
98932         may be defined as macros but not available in libraries.
98934 2007-10-27  Bruno Haible  <bruno@clisp.org>
98936         * doc/gnulib.texi: Invoke @firstparagraphindent.
98937         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98938         changes in gnulib.
98939         (Source changes): New section.
98941 2007-10-26  Bruno Haible  <bruno@clisp.org>
98943         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98944         borrowed from autoconf.
98946 2007-10-26  Bruno Haible  <bruno@clisp.org>
98948         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98949         strerror returned the empty string. Needed on HP-UX 11.00.
98951 2007-10-24  Micah Cowan  <micah@cowan.name>
98953         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98954         * build-aux/bootstrap: Remove support for now-unnecessary option,
98955         --cvs-user, and envvars CVS_USER, CVS_RSH.
98957 2007-10-24  Jim Meyering  <meyering@redhat.com>
98959         Avoid diagnostics from sha1sum when there is no cached checksum.
98960         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98961         if the po.s1 file hasn't been created yet.
98963         * build-aux/bootstrap: Sync from coreutils:
98964         2007-10-24  Jim Meyering  <meyering@redhat.com>
98965         Get gnulib from the git repository, not from an obsolete cvs one.
98966         * build-aux/bootstrap: Suggestion from Micah Cowan.
98967         2007-10-04  Jim Meyering  <jim@meyering.net>
98968         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98969         (update_po_files): Work also when there are no .po files in po/.
98971 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98973         * README: Append ".git" to git and cg examples.
98974         Problem reported by Benoit Sigoure.
98976 2007-10-23  Micah Cowan  <micah@cowan.name>
98978         * users.txt: Add wget.
98980 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98982         Fix linking of some unistdio tests on FreeBSD.
98983         * modules/unistdio/u16-vsnprintf-tests
98984         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98985         * modules/unistdio/u16-vsprintf-tests
98986         (test_u16_vsnprintf1_LDADD): Likewise.
98987         * modules/unistdio/u32-vsnprintf-tests
98988         (test_u32_vsnprintf1_LDADD): Likewise.
98989         * modules/unistdio/u32-vsprintf-tests
98990         (test_u32_vsprintf1_LDADD): Likewise.
98991         * modules/unistdio/u8-vsnprintf-tests
98992         (test_u8_vsnprintf1_LDADD): Likewise.
98993         * modules/unistdio/u8-vsprintf-tests
98994         (test_u8_vsprintf1_LDADD): Likewise.
98995         * modules/unistdio/ulc-vsnprintf-tests
98996         (test_ulc_vsnprintf1_LDADD): Likewise.
98997         * modules/unistdio/ulc-vsprintf-tests
98998         (test_ulc_vsprintf1_LDADD): Likewise.
99000         Fix linking of some uniconv tests on FreeBSD.
99001         * modules/uniconv/u16-conv-from-enc-tests
99002         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
99003         * modules/uniconv/u16-conv-to-enc-tests
99004         (test_u16_conv_to_enc_LDADD): Likewise.
99005         * modules/uniconv/u16-strconv-from-enc-tests
99006         (test_u16_strconv_from_enc_LDADD): Likewise.
99007         * modules/uniconv/u16-strconv-to-enc-tests
99008         (test_u16_strconv_to_enc_LDADD): Likewise.
99009         * modules/uniconv/u32-conv-from-enc-tests
99010         (test_u32_conv_from_enc_LDADD): Likewise.
99011         * modules/uniconv/u32-conv-to-enc-tests
99012         (test_u32_conv_to_enc_LDADD): Likewise.
99013         * modules/uniconv/u32-strconv-from-enc-tests
99014         (test_u32_strconv_from_enc_LDADD): Likewise.
99015         * modules/uniconv/u32-strconv-to-enc-tests
99016         (test_u32_strconv_to_enc_LDADD): Likewise.
99017         * modules/uniconv/u8-conv-from-enc-tests
99018         (test_u8_conv_from_enc_LDADD): Likewise.
99019         * modules/uniconv/u8-conv-to-enc-tests
99020         (test_u8_conv_to_enc_LDADD): Likewise.
99021         * modules/uniconv/u8-strconv-from-enc-tests
99022         (test_u8_strconv_from_enc_LDADD): Likewise.
99023         * modules/uniconv/u8-strconv-to-enc-tests
99024         (test_u8_strconv_to_enc_LDADD): Likewise.
99026 2007-10-22  Bruno Haible  <bruno@clisp.org>
99028         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
99029         size.
99031 2007-10-22  Eric Blake  <ebb9@byu.net>
99033         Tweak x*printf documentation.
99034         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
99035         variable name and comments.
99036         Suggested by Bruno Haible.
99038 2007-10-22  Bruno Haible  <bruno@clisp.org>
99040         * lib/acl.c (copy_acl): Fix file name in comment.
99042 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99044         Fix Tru64 problem with stdbool.h.
99045         * lib/stdbool.in.h (false, true):
99046         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
99047         Don't declare as an enum in this situation; it runs afoul of Tru64.
99048         Problem reported by Steven M. Schweda in
99049         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
99051 2007-10-22  Eric Blake  <ebb9@byu.net>
99053         Also wrap vf?printf.
99054         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
99055         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
99056         (xvprintf, xvfprintf): New functions.
99058 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99060         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
99061         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
99063         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
99064         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
99066 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
99068         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
99069         by Bruno Haible.
99071 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99073         * lib/getloadavg.c
99074         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
99075         Undef `sys' after including sys/table.h, for Tru64 4.0D.
99077         * tests/test-i-ring.c: Work for C89.
99079 2007-10-22  Bruno Haible  <bruno@clisp.org>
99081         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
99082         -1u, in preprocessor expression, so that we don't test for the bug
99083         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
99084         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
99086 2007-10-22  Eric Blake  <ebb9@byu.net>
99088         * tests/test-yesno.sh: Silence stderr during test.
99090 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99092         * modules/crypto/gc-camellia: New file.
99094         * m4/gc-camellia.m4: New file.
99096         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
99098         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
99100 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99102         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
99103         --help to stdout.  Reported by sms@antinode.org (Steven
99104         M. Schweda).
99106 2007-10-22  Simon Josefsson  <simon@josefsson.org>
99108         * users.txt: Fix link to libksba.
99110 2007-10-21  Ben Pfaff  <blp@gnu.org>
99112         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
99113         round.c roundf implementation that depends on floorf and ceilf to
99114         be tested unconditionally.
99116 2007-10-21  Ben Pfaff  <blp@gnu.org>
99118         * m4/check-libm-func.m4: Removed.
99119         * m4/check-math-lib.m4: New file.
99120         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
99121         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
99122         definition and lack of AC_LIBOBJ([roundf]).
99123         * m4/roundl.m4: Ditto, and similarly for roundl.
99124         * modules/round: Reference new m4 file.
99125         * modules/roundf: Ditto.
99126         * modules/roundl: Ditto.
99127         * tests/test-round2.c (main): Use ROUND instead of round.
99128         Bug report from Bruno Haible.
99130 2007-10-21  Bruno Haible  <bruno@clisp.org>
99132         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
99133         context.
99135 2007-10-21  Bruno Haible  <bruno@clisp.org>
99137         * tests/test-wcwidth.c (main): Allow negative result for some control
99138         characters.
99140         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
99141         Needed on OSF/1 5.1.
99143 2007-10-21  Bruno Haible  <bruno@clisp.org>
99145         * tests/test-floorf1.c: Include isnanf.h.
99146         (main): Use isnanf() instead of isnan().
99147         * tests/test-ceilf1.c: Include isnanf.h.
99148         (main): Use isnanf() instead of isnan().
99149         * tests/test-truncf1.c: Include isnanf.h.
99150         (main): Use isnanf() instead of isnan().
99151         * tests/test-roundf1.c: Include isnanf.h.
99152         (main): Use isnanf() instead of isnan().
99154 2007-10-21  Eric Blake  <ebb9@byu.net>
99156         * users.txt: Update URL for m4.
99158 2007-10-21  Bruno Haible  <bruno@clisp.org>
99160         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
99162 2007-10-21  Bruno Haible  <bruno@clisp.org>
99164         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
99165         Git's management files if the CVS files are not present.
99167 2007-10-20  Bruno Haible  <bruno@clisp.org>
99169         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
99170         gcc-3.4.x.
99172 2007-10-20  Ben Pfaff  <blp@gnu.org>
99174         * lib/math.in.h: Declare round, roundf, roundl if we are providing
99175         implementations.
99176         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
99177         * lib/round.c: New file.
99178         * lib/roundf.c: New file.
99179         * lib/roundl.c: New file.
99180         * m4/round.m4: New file.
99181         * m4/roundf.m4: New file.
99182         * m4/roundl.m4: New file.
99183         * m4/check-libm-func-m4: New file.
99184         * modules/math: Replace round, roundf, roundl related @VARS@ in
99185         math.in.h.
99186         * modules/round: New file.
99187         * modules/round-tests: New file.
99188         * modules/roundf: New file.
99189         * modules/roundf-tests: New file.
99190         * modules/roundl: New file.
99191         * modules/roundl-tests: New file.
99192         * tests/test-round1.c: New file.
99193         * tests/test-round2.c: New file.
99194         * tests/test-roundf1.c: New file.
99195         * tests/test-roundf2.c: New file.
99196         * tests/test-roundl.c: New file.
99197         * doc/functions/round.texi: Mention round module.
99198         * doc/functions/roundf.texi: Mention roundf module.
99199         * doc/functions/roundl.texi: Mention roundl module.
99200         * MODULES.html.sh: Mention new modules.
99201         Thanks to Bruno Haible for suggestions.
99203 2007-10-20  Jim Meyering  <meyering@redhat.com>
99205         * lib/xprintf.c: Include <config.h> unconditionally.
99207         Change xprintf's license to GPL.
99208         * modules/xprintf (License): s/LGPL/GPL/, since this module
99209         depends on modules (exit and exitfail) which are GPL.
99210         Suggestion from Bruno Haible.
99212         xprintf fixes.
99213         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
99214         Use a clearer diagnostic.
99215         Patch from Bruno Haible.
99217 2007-10-20  Bruno Haible  <bruno@clisp.org>
99219         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
99220         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
99221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99223 2007-10-20  Bruno Haible  <bruno@clisp.org>
99225         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
99226         precision in the comparison result > x - 1 or similar.
99227         * tests/test-ceilf2.c (correct_result_p): Likewise.
99228         * tests/test-truncf2.c (correct_result_p): Likewise.
99229         * tests/test-trunc2.c (correct_result_p): Likewise.
99230         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99232 2007-10-20  Bruno Haible  <bruno@clisp.org>
99234         * modules/ceil: New file.
99235         * m4/ceil.m4: New file.
99236         * doc/functions/ceil.texi: Mention the 'ceil' module.
99238 2007-10-20  Bruno Haible  <bruno@clisp.org>
99240         * modules/floor: New file.
99241         * m4/floor.m4: New file.
99242         * doc/functions/floor.texi: Mention the 'floor' module.
99244 2007-10-20  Bruno Haible  <bruno@clisp.org>
99246         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
99247         of %a.
99248         * modules/floorf-tests (Depends-on): Likewise.
99249         * modules/truncf-tests (Depends-on): Likewise.
99250         * modules/trunc-tests (Depends-on): Likewise.
99251         Reported by Ben Pfaff.
99253 2007-10-19  Jim Meyering  <meyering@redhat.com>
99255         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99256         Don't bother testing specific errno values.  Just test ferror.
99258         New module: xprintf
99259         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99261 2007-10-19  Bruno Haible  <bruno@clisp.org>
99263         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99264         syntax.
99265         * modules/javaexec (Makefile.am): Likewise.
99266         * modules/relocatable-prog (Makefile.am): Likewise.
99267         Suggested by Jim Meyering.
99269 2007-10-18  Bruno Haible  <bruno@clisp.org>
99271         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99272         Reported by Jim Meyering.
99274 2007-10-18  Eric Blake  <ebb9@byu.net>
99276         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99278 2007-10-18  Bruno Haible  <bruno@clisp.org>
99280         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99281         the format string into writable memory. Needed in Fortify conditions.
99283 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99284             Bruno Haible  <bruno@clisp.org>
99286         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99287         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99288         * modules/trim (Depends-on): Add mbchar.
99289         (configure.ac): Add gl_FUNC_MBRTOWC.
99290         (Makefile.am): Augment lib_SOURCES.
99292 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99294         Modify glob.c to use fstatat and dirfd, to simplify it.
99295         Suggested by Eric Blake.
99296         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99297         Don't include <stdbool.h>; not used.
99298         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99299         (link_exists_p): Simplify implementation, since we can now assume
99300         dirfd and fstatat.
99301         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99303 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99305         * gnulib-tool (func_get_dependencies): Fix sed script to
99306         match only tests.
99308 2007-10-17  Bruno Haible  <bruno@clisp.org>
99310         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99311         allow locale names without encoding suffix.
99312         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99313         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99315 2007-10-16  Bruno Haible  <bruno@clisp.org>
99317         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99318         * lib/getgroups.c (getgroups): Likewise.
99319         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99321 2007-10-16  Bruno Haible  <bruno@clisp.org>
99323         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99324         * modules/malloc-posix (License): Likewise.
99325         * modules/realloc-posix (License): Likewise.
99326         * modules/calloc-posix (License): Likewise.
99327         * modules/intprops (License): Change from GPL to LGPL, with
99328         Paul Eggert's approval.
99330 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99332         Merge glibc changes into lib/glob.c.
99334         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99335         2007-10-15 04:59:03 UTC.  Here are the changes:
99337         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99339         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99341         * lib/glob.c: Add some branch prediction throughout.
99343         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99345         [BZ #5103]
99346         * lib/glob.c (glob): Recognize patterns starting \/.
99348         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99350         [BZ #3996]
99351         * lib/glob.c (attribute_hidden): Define if not defined.
99352         (glob): Unescape dirname, filename or username when needed and not
99353         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99354         is NULL.  Handle unescaped [ in pattern without closing ].
99355         Don't pass GLOB_CHECK down to recursive glob for directories.
99356         (__glob_pattern_type): New function.
99357         (__glob_pattern_p): Implement using __glob_pattern_type.
99358         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99359         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99360         Remove unreachable code.
99362         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99364         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99365         explain why there are no leaks.
99367         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99369         [BZ #3253]
99370         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99371         time, rather allocate increasingly bigger arrays of pointers, if
99372         possible with alloca, if too large with malloc.
99374 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99376         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99377         Problem reported by H.Merijn Brand in
99378         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99379         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99380         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99382 2007-10-15  Bruno Haible  <bruno@clisp.org>
99384         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99385         with explicit rpl_ prefix.
99386         * lib/fopen.c (fopen): Likewise.
99387         * lib/freopen.c (freopen): Likewise.
99388         * lib/iconv.c (iconv): Likewise.
99389         * lib/iconv_close.c (iconv_close): Likewise.
99391 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99393         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99395 2007-10-15  Bruno Haible  <bruno@clisp.org>
99397         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99398         <stddef.h> instead of <stdlib.h> since we only need NULL.
99399         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99401 2007-10-15  Bruno Haible  <bruno@clisp.org>
99403         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99404         Replace paragraph talking about LIBOBJS.
99405         Reported by Colin Watson <cjwatson@debian.org>.
99407 2007-10-15  Bruno Haible  <bruno@clisp.org>
99409         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99410         <stdlib.h> before using NULL.
99412 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99414         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99415         Reported by Albert Chin <china@thewrittenword.com>.
99417 2007-10-14  Bruno Haible  <bruno@clisp.org>
99419         * modules/iconv_open-utf-tests: New file.
99420         * tests/test-iconv-utf.c: New file.
99422         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99423         * modules/iconv_open-utf: New file.
99424         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99425         (iconv, iconv_close): New declarations.
99426         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99427         be defined.
99428         (iconv_open): Add special handling of conversion between UTF-8 and
99429         UTF-{16,32}{BE,LE}.
99430         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99431         * lib/iconv_close.c: New file.
99432         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99433         gl_FUNC_ICONV_OPEN.
99434         (gl_FUNC_ICONV_OPEN): Use it.
99435         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99436         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99437         and REPLACE_ICONV_UTF.
99438         * modules/iconv_open (Depends-on): Add c-strcase.
99439         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99440         ICONV_CONST.
99441         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99443 2007-10-13  Albert Chin  <china@thewrittenword.com>
99444             Bruno Haible  <bruno@clisp.org>
99446         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99447         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99449 2007-10-13  Bruno Haible  <bruno@clisp.org>
99451         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99452         defined, use the ISO C99 inline semantics.
99453         * lib/argp.h (ARGP_EI): Likewise.
99455 2007-10-13  Bruno Haible  <bruno@clisp.org>
99457         Handle 'inline' change in gcc 4.3.0.
99458         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99459         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99460         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99461         argp_fmtstream_point): Disable 'extern' declaration if the function
99462         definition is going to be provided inline.
99463         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99464         semantics, not the ISO C99 inline semantics.
99465         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99466         'extern' declaration if the function definition is going to be provided
99467         inline.
99468         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99469         the GNU C inline semantics, not the ISO C99 inline semantics. With
99470         GCC 4.2, avoid a warning.
99472 2007-10-13  Bruno Haible  <bruno@clisp.org>
99474         * lib/freading.h (freading): Enable the use of __freading for
99475         glibc >= 2.7.
99476         * lib/freading.c (freading): Likewise.
99478 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99480         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99481         "warning: C99 inline functions are not supported; using GNU89".
99483 2007-10-12  Bruno Haible  <bruno@clisp.org>
99485         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99486         of 2.
99487         * tests/test-ceilf2.c: New file.
99488         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99490         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99491         * modules/ceilf-tests: Update.
99493 2007-10-12  Bruno Haible  <bruno@clisp.org>
99495         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99496         of 2.
99497         * tests/test-floorf2.c: New file.
99498         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99500         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99501         * modules/floorf-tests: Update.
99503 2007-10-12  Bruno Haible  <bruno@clisp.org>
99505         * tests/test-trunc2.c: New file.
99506         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99508         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99509         * modules/trunc-tests: Update.
99511 2007-10-12  Bruno Haible  <bruno@clisp.org>
99513         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99514         of 2.
99515         * tests/test-truncf2.c: New file.
99516         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99518         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99519         * modules/truncf-tests: Update.
99521 2007-10-11  Eric Blake  <ebb9@byu.net>
99523         Don't claim strerror is broken on Interix.
99524         * doc/functions/strerror.texi (strerror): Known broken systems are
99525         now Solaris 8, and not Interix.
99526         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99527         Interix on cross-compile.
99528         Reported by Martin Koeppe in
99529         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99531 2007-10-11  Bruno Haible  <bruno@clisp.org>
99533         * modules/i-ring-tests: New file.
99534         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99535         instead of assert.
99537 2007-10-11  Bruno Haible  <bruno@clisp.org>
99539         * modules/filenamecat-tests: New file.
99540         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99541         * lib/filenamecat.c: Remove test code.
99543 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99545         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99547         * lib/strerror.c: Include <string.h> always, to test interface,
99548         and to remove the need for the dummy.
99549         Include intprops.h to compute width instead of doing it ourselves
99550         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99551         (strerror): Define it to return NULL if there's no system strerror.
99552         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99553         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99554         ancient pre-strerror Unix systems well any more.  Saying "unknown
99555         system error" is enough.
99556         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99557         simpler strerror.c implementation.
99558         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99559         Simplify the tests to reflect the simpler strerror implementation.
99560         * modules/strerror (Depends-on): Add intprops.
99562 2007-10-09  Eric Blake  <ebb9@byu.net>
99564         Silence test-fpending.
99565         * modules/fpending-tests (Files): Add wrapper script.
99566         * tests/test-fpending.sh: New file.
99568 2007-10-09  Bruno Haible  <bruno@clisp.org>
99570         * MODULES.html.sh (func_module): Don't create a hyperlink for
99571         function names like 'printf_frexp'.
99572         (Misc): Add crc, memxor.
99573         (Characteristics of floating types): New section.
99574         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99575         isnanf-nolibm, signbit, trunc, truncf, truncl.
99576         (Enhancements for ISO C 99 functions): New subsection Input/output.
99577         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99578         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99579         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99580         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99581         (Enhancements for POSIX:2001 functions): Add chdir-long.
99582         (File system functions): Add areadlink, chdir-safer, read-file.
99583         Remove cycle-check.
99584         (File system as inode set): New section.
99585         (Date and time): Add gethrxtime.
99586         (Multithreading): Add openmp.
99587         (Internationalization functions): Add localename.
99588         (Unicode string functions): Add unistr/u*-mbsnlen.
99589         (Support for maintaining and releasing projects): Add git-version-gen.
99590         (Lone files): Remove directories.
99592 2007-10-08  Ben Pfaff  <blp@gnu.org>
99594         * lib/xmalloca.h: Fix typo in comment.
99596 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99598         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99599         when avoiding problems with integer overflow.  Use a portable test
99600         instead.
99602 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99604         * modules/dummy (License): Change to LGPLv2+.
99605         * modules/float (License): Likewise
99606         * modules/realloc (License): Likewise
99607         * modules/stdlib (License): Likewise
99609 2007-10-07  Bruno Haible  <bruno@clisp.org>
99611         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99612         * floor.c (TWO_MANT_DIG): Likewise.
99613         * ceil.c (TWO_MANT_DIG): Likewise.
99614         Reported by Ben Pfaff.
99616 2007-10-07  Bruno Haible  <bruno@clisp.org>
99618         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99619         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99620         * lib/frexp.c (FUNC): Likewise.
99621         * lib/printf-frexp.h (printf_frexp): Likewise.
99622         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99623         * lib/printf-frexp.c (FUNC): Likewise.
99624         Suggested by Jim Meyering.
99626 2007-10-07  Jim Meyering  <meyering@redhat.com>
99628         Make xnanosleep's integer overflow test more robust.
99629         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99630         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99632 2007-10-07  Bruno Haible  <bruno@clisp.org>
99634         * NEWS: Mention the license change.
99636         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99637         abbreviations in the modules files.
99639         Change copyright notice from GPLv2+ to GPLv3+.
99640         * README: Change copyright notice.
99641         * MODULES.html.sh: Likewise.
99642         * build-aux/bootstrap.conf: Likewise.
99643         * build-aux/config.libpath: Likewise.
99644         * build-aux/csharpcomp.sh.in: Likewise.
99645         * build-aux/csharpexec.sh.in: Likewise.
99646         * build-aux/install-reloc: Likewise.
99647         * build-aux/javacomp.sh.in: Likewise.
99648         * build-aux/javaexec.sh.in: Likewise.
99649         * build-aux/ldd.sh.in: Likewise.
99650         * build-aux/reloc-ldflags: Likewise.
99651         * build-aux/relocatable.sh.in: Likewise.
99652         * build-aux/x-to-1.in: Likewise.
99653         * check-module: Likewise.
99654         * config/srclistvars.sh: Likewise.
99655         * gnulib-tool: Likewise.
99656         * lib/acl-internal.h: Likewise.
99657         * lib/acl.c: Likewise.
99658         * lib/acl.h: Likewise.
99659         * lib/acl_entries.c: Likewise.
99660         * lib/areadlink-with-size.c: Likewise.
99661         * lib/areadlink.c: Likewise.
99662         * lib/areadlink.h: Likewise.
99663         * lib/argmatch.c: Likewise.
99664         * lib/argmatch.h: Likewise.
99665         * lib/argp-ba.c: Likewise.
99666         * lib/argp-eexst.c: Likewise.
99667         * lib/argp-fmtstream.c: Likewise.
99668         * lib/argp-fmtstream.h: Likewise.
99669         * lib/argp-fs-xinl.c: Likewise.
99670         * lib/argp-help.c: Likewise.
99671         * lib/argp-namefrob.h: Likewise.
99672         * lib/argp-parse.c: Likewise.
99673         * lib/argp-pin.c: Likewise.
99674         * lib/argp-pv.c: Likewise.
99675         * lib/argp-pvh.c: Likewise.
99676         * lib/argp-xinl.c: Likewise.
99677         * lib/argp.h: Likewise.
99678         * lib/at-func.c: Likewise.
99679         * lib/atanl.c: Likewise.
99680         * lib/backupfile.c: Likewise.
99681         * lib/backupfile.h: Likewise.
99682         * lib/basename.c: Likewise.
99683         * lib/binary-io.h: Likewise.
99684         * lib/byteswap.in.h: Likewise.
99685         * lib/c-stack.c: Likewise.
99686         * lib/c-stack.h: Likewise.
99687         * lib/c-strcasestr.c: Likewise.
99688         * lib/c-strcasestr.h: Likewise.
99689         * lib/c-strstr.c: Likewise.
99690         * lib/c-strstr.h: Likewise.
99691         * lib/c-strtod.c: Likewise.
99692         * lib/calloc.c: Likewise.
99693         * lib/canon-host.c: Likewise.
99694         * lib/canon-host.h: Likewise.
99695         * lib/canonicalize-lgpl.c: Likewise.
99696         * lib/canonicalize.c: Likewise.
99697         * lib/canonicalize.h: Likewise.
99698         * lib/ceil.c: Likewise.
99699         * lib/ceilf.c: Likewise.
99700         * lib/ceill.c: Likewise.
99701         * lib/chdir-long.c: Likewise.
99702         * lib/chdir-long.h: Likewise.
99703         * lib/chdir-safer.c: Likewise.
99704         * lib/chdir-safer.h: Likewise.
99705         * lib/chown.c: Likewise.
99706         * lib/classpath.c: Likewise.
99707         * lib/classpath.h: Likewise.
99708         * lib/clean-temp.c: Likewise.
99709         * lib/clean-temp.h: Likewise.
99710         * lib/cloexec.c: Likewise.
99711         * lib/close-stream.c: Likewise.
99712         * lib/closein.c: Likewise.
99713         * lib/closein.h: Likewise.
99714         * lib/closeout.c: Likewise.
99715         * lib/closeout.h: Likewise.
99716         * lib/concat-filename.c: Likewise.
99717         * lib/copy-file.c: Likewise.
99718         * lib/copy-file.h: Likewise.
99719         * lib/count-one-bits.h: Likewise.
99720         * lib/crc.c: Likewise.
99721         * lib/crc.h: Likewise.
99722         * lib/creat-safer.c: Likewise.
99723         * lib/csharpcomp.c: Likewise.
99724         * lib/csharpcomp.h: Likewise.
99725         * lib/csharpexec.c: Likewise.
99726         * lib/csharpexec.h: Likewise.
99727         * lib/cycle-check.c: Likewise.
99728         * lib/cycle-check.h: Likewise.
99729         * lib/diacrit.c: Likewise.
99730         * lib/diacrit.h: Likewise.
99731         * lib/diffseq.h: Likewise.
99732         * lib/dirchownmod.c: Likewise.
99733         * lib/dirent.in.h: Likewise.
99734         * lib/dirfd.c: Likewise.
99735         * lib/dirfd.h: Likewise.
99736         * lib/dirname.c: Likewise.
99737         * lib/dirname.h: Likewise.
99738         * lib/dummy.c: Likewise.
99739         * lib/dup-safer.c: Likewise.
99740         * lib/dup2.c: Likewise.
99741         * lib/eealloc.h: Likewise.
99742         * lib/error.c: Likewise.
99743         * lib/error.h: Likewise.
99744         * lib/euidaccess.c: Likewise.
99745         * lib/exclude.c: Likewise.
99746         * lib/exclude.h: Likewise.
99747         * lib/execute.c: Likewise.
99748         * lib/execute.h: Likewise.
99749         * lib/exitfail.c: Likewise.
99750         * lib/exitfail.h: Likewise.
99751         * lib/expl.c: Likewise.
99752         * lib/fatal-signal.c: Likewise.
99753         * lib/fatal-signal.h: Likewise.
99754         * lib/fbufmode.c: Likewise.
99755         * lib/fbufmode.h: Likewise.
99756         * lib/fchdir.c: Likewise.
99757         * lib/fchmodat.c: Likewise.
99758         * lib/fchownat.c: Likewise.
99759         * lib/fcntl--.h: Likewise.
99760         * lib/fcntl-safer.h: Likewise.
99761         * lib/fcntl.in.h: Likewise.
99762         * lib/fd-safer.c: Likewise.
99763         * lib/fflush.c: Likewise.
99764         * lib/file-has-acl.c: Likewise.
99765         * lib/file-set.c: Likewise.
99766         * lib/file-type.c: Likewise.
99767         * lib/file-type.h: Likewise.
99768         * lib/fileblocks.c: Likewise.
99769         * lib/filemode.c: Likewise.
99770         * lib/filemode.h: Likewise.
99771         * lib/filename.h: Likewise.
99772         * lib/filenamecat.c: Likewise.
99773         * lib/filenamecat.h: Likewise.
99774         * lib/findprog.c: Likewise.
99775         * lib/findprog.h: Likewise.
99776         * lib/float.in.h: Likewise.
99777         * lib/floor.c: Likewise.
99778         * lib/floorf.c: Likewise.
99779         * lib/floorl.c: Likewise.
99780         * lib/fopen-safer.c: Likewise.
99781         * lib/fopen.c: Likewise.
99782         * lib/fpending.c: Likewise.
99783         * lib/fpending.h: Likewise.
99784         * lib/fprintf.c: Likewise.
99785         * lib/fprintftime.h: Likewise.
99786         * lib/fpucw.h: Likewise.
99787         * lib/fpurge.c: Likewise.
99788         * lib/fpurge.h: Likewise.
99789         * lib/freadable.c: Likewise.
99790         * lib/freadable.h: Likewise.
99791         * lib/freadahead.c: Likewise.
99792         * lib/freadahead.h: Likewise.
99793         * lib/freading.c: Likewise.
99794         * lib/freading.h: Likewise.
99795         * lib/free.c: Likewise.
99796         * lib/freopen.c: Likewise.
99797         * lib/frexp.c: Likewise.
99798         * lib/frexpl.c: Likewise.
99799         * lib/fseek.c: Likewise.
99800         * lib/fseterr.c: Likewise.
99801         * lib/fseterr.h: Likewise.
99802         * lib/fstatat.c: Likewise.
99803         * lib/fstrcmp.c: Likewise.
99804         * lib/fstrcmp.h: Likewise.
99805         * lib/fsusage.c: Likewise.
99806         * lib/fsusage.h: Likewise.
99807         * lib/ftell.c: Likewise.
99808         * lib/ftello.c: Likewise.
99809         * lib/fts-cycle.c: Likewise.
99810         * lib/fts.c: Likewise.
99811         * lib/fts_.h: Likewise.
99812         * lib/full-read.c: Likewise.
99813         * lib/full-read.h: Likewise.
99814         * lib/full-write.c: Likewise.
99815         * lib/full-write.h: Likewise.
99816         * lib/fwritable.c: Likewise.
99817         * lib/fwritable.h: Likewise.
99818         * lib/fwriteerror.c: Likewise.
99819         * lib/fwriteerror.h: Likewise.
99820         * lib/fwriting.c: Likewise.
99821         * lib/fwriting.h: Likewise.
99822         * lib/gcd.c: Likewise.
99823         * lib/gcd.h: Likewise.
99824         * lib/getcwd.c: Likewise.
99825         * lib/getdate.h: Likewise.
99826         * lib/getdate.y: Likewise.
99827         * lib/getdomainname.c: Likewise.
99828         * lib/getdomainname.h: Likewise.
99829         * lib/getgroups.c: Likewise.
99830         * lib/gethostname.c: Likewise.
99831         * lib/gethrxtime.c: Likewise.
99832         * lib/gethrxtime.h: Likewise.
99833         * lib/getloadavg.c: Likewise.
99834         * lib/getndelim2.c: Likewise.
99835         * lib/getndelim2.h: Likewise.
99836         * lib/getnline.c: Likewise.
99837         * lib/getnline.h: Likewise.
99838         * lib/getopt.c: Likewise.
99839         * lib/getopt.in.h: Likewise.
99840         * lib/getopt1.c: Likewise.
99841         * lib/getopt_int.h: Likewise.
99842         * lib/getpagesize.h: Likewise.
99843         * lib/getsubopt.c: Likewise.
99844         * lib/gettime.c: Likewise.
99845         * lib/getugroups.c: Likewise.
99846         * lib/getugroups.h: Likewise.
99847         * lib/getusershell.c: Likewise.
99848         * lib/gl_anyavltree_list1.h: Likewise.
99849         * lib/gl_anyavltree_list2.h: Likewise.
99850         * lib/gl_anyhash_list1.h: Likewise.
99851         * lib/gl_anyhash_list2.h: Likewise.
99852         * lib/gl_anylinked_list1.h: Likewise.
99853         * lib/gl_anylinked_list2.h: Likewise.
99854         * lib/gl_anyrbtree_list1.h: Likewise.
99855         * lib/gl_anyrbtree_list2.h: Likewise.
99856         * lib/gl_anytree_list1.h: Likewise.
99857         * lib/gl_anytree_list2.h: Likewise.
99858         * lib/gl_anytree_oset.h: Likewise.
99859         * lib/gl_anytreehash_list1.h: Likewise.
99860         * lib/gl_anytreehash_list2.h: Likewise.
99861         * lib/gl_array_list.c: Likewise.
99862         * lib/gl_array_list.h: Likewise.
99863         * lib/gl_array_oset.c: Likewise.
99864         * lib/gl_array_oset.h: Likewise.
99865         * lib/gl_avltree_list.c: Likewise.
99866         * lib/gl_avltree_list.h: Likewise.
99867         * lib/gl_avltree_oset.c: Likewise.
99868         * lib/gl_avltree_oset.h: Likewise.
99869         * lib/gl_avltreehash_list.c: Likewise.
99870         * lib/gl_avltreehash_list.h: Likewise.
99871         * lib/gl_carray_list.c: Likewise.
99872         * lib/gl_carray_list.h: Likewise.
99873         * lib/gl_linked_list.c: Likewise.
99874         * lib/gl_linked_list.h: Likewise.
99875         * lib/gl_linkedhash_list.c: Likewise.
99876         * lib/gl_linkedhash_list.h: Likewise.
99877         * lib/gl_list.c: Likewise.
99878         * lib/gl_list.h: Likewise.
99879         * lib/gl_oset.c: Likewise.
99880         * lib/gl_oset.h: Likewise.
99881         * lib/gl_rbtree_list.c: Likewise.
99882         * lib/gl_rbtree_list.h: Likewise.
99883         * lib/gl_rbtree_oset.c: Likewise.
99884         * lib/gl_rbtree_oset.h: Likewise.
99885         * lib/gl_rbtreehash_list.c: Likewise.
99886         * lib/gl_rbtreehash_list.h: Likewise.
99887         * lib/gl_sublist.c: Likewise.
99888         * lib/gl_sublist.h: Likewise.
99889         * lib/group-member.c: Likewise.
99890         * lib/group-member.h: Likewise.
99891         * lib/hard-locale.c: Likewise.
99892         * lib/hard-locale.h: Likewise.
99893         * lib/hash-pjw.c: Likewise.
99894         * lib/hash-pjw.h: Likewise.
99895         * lib/hash-triple.c: Likewise.
99896         * lib/hash.c: Likewise.
99897         * lib/hash.h: Likewise.
99898         * lib/human.c: Likewise.
99899         * lib/human.h: Likewise.
99900         * lib/i-ring.c: Likewise.
99901         * lib/i-ring.h: Likewise.
99902         * lib/idcache.c: Likewise.
99903         * lib/imaxabs.c: Likewise.
99904         * lib/imaxdiv.c: Likewise.
99905         * lib/inet_pton.c: Likewise.
99906         * lib/inet_pton.h: Likewise.
99907         * lib/intprops.h: Likewise.
99908         * lib/inttostr.c: Likewise.
99909         * lib/inttostr.h: Likewise.
99910         * lib/inttypes.in.h: Likewise.
99911         * lib/isapipe.c: Likewise.
99912         * lib/isdir.c: Likewise.
99913         * lib/isnan.c: Likewise.
99914         * lib/isnan.h: Likewise.
99915         * lib/isnanf.c: Likewise.
99916         * lib/isnanf.h: Likewise.
99917         * lib/isnanl-nolibm.h: Likewise.
99918         * lib/isnanl.c: Likewise.
99919         * lib/isnanl.h: Likewise.
99920         * lib/javacomp.c: Likewise.
99921         * lib/javacomp.h: Likewise.
99922         * lib/javaexec.c: Likewise.
99923         * lib/javaexec.h: Likewise.
99924         * lib/javaversion.c: Likewise.
99925         * lib/javaversion.h: Likewise.
99926         * lib/javaversion.java: Likewise.
99927         * lib/lbrkprop.h: Likewise.
99928         * lib/lchmod.h: Likewise.
99929         * lib/lchown.c: Likewise.
99930         * lib/ldexpl.c: Likewise.
99931         * lib/linebreak.c: Likewise.
99932         * lib/linebreak.h: Likewise.
99933         * lib/linebuffer.c: Likewise.
99934         * lib/linebuffer.h: Likewise.
99935         * lib/locale.in.h: Likewise.
99936         * lib/logl.c: Likewise.
99937         * lib/long-options.c: Likewise.
99938         * lib/long-options.h: Likewise.
99939         * lib/lstat.c: Likewise.
99940         * lib/lstat.h: Likewise.
99941         * lib/math.in.h: Likewise.
99942         * lib/mbchar.c: Likewise.
99943         * lib/mbchar.h: Likewise.
99944         * lib/mbfile.h: Likewise.
99945         * lib/mbiter.h: Likewise.
99946         * lib/mbscasecmp.c: Likewise.
99947         * lib/mbscasestr.c: Likewise.
99948         * lib/mbschr.c: Likewise.
99949         * lib/mbscspn.c: Likewise.
99950         * lib/mbslen.c: Likewise.
99951         * lib/mbsncasecmp.c: Likewise.
99952         * lib/mbsnlen.c: Likewise.
99953         * lib/mbspbrk.c: Likewise.
99954         * lib/mbspcasecmp.c: Likewise.
99955         * lib/mbsrchr.c: Likewise.
99956         * lib/mbssep.c: Likewise.
99957         * lib/mbsspn.c: Likewise.
99958         * lib/mbsstr.c: Likewise.
99959         * lib/mbstok_r.c: Likewise.
99960         * lib/mbswidth.c: Likewise.
99961         * lib/mbswidth.h: Likewise.
99962         * lib/mbuiter.h: Likewise.
99963         * lib/memcasecmp.c: Likewise.
99964         * lib/memcasecmp.h: Likewise.
99965         * lib/memchr.c: Likewise.
99966         * lib/memcmp.c: Likewise.
99967         * lib/memcoll.c: Likewise.
99968         * lib/memcoll.h: Likewise.
99969         * lib/memcpy.c: Likewise.
99970         * lib/memrchr.c: Likewise.
99971         * lib/mkancesdirs.c: Likewise.
99972         * lib/mkdir-p.c: Likewise.
99973         * lib/mkdir-p.h: Likewise.
99974         * lib/mkdir.c: Likewise.
99975         * lib/mkdirat.c: Likewise.
99976         * lib/mkdtemp.c: Likewise.
99977         * lib/mkstemp-safer.c: Likewise.
99978         * lib/mkstemp.c: Likewise.
99979         * lib/modechange.c: Likewise.
99980         * lib/modechange.h: Likewise.
99981         * lib/mountlist.c: Likewise.
99982         * lib/mountlist.h: Likewise.
99983         * lib/mpsort.c: Likewise.
99984         * lib/nanosleep.c: Likewise.
99985         * lib/obstack.c: Likewise.
99986         * lib/obstack.h: Likewise.
99987         * lib/open-safer.c: Likewise.
99988         * lib/open.c: Likewise.
99989         * lib/openat-die.c: Likewise.
99990         * lib/openat-priv.h: Likewise.
99991         * lib/openat-proc.c: Likewise.
99992         * lib/openat.c: Likewise.
99993         * lib/openat.h: Likewise.
99994         * lib/pagealign_alloc.c: Likewise.
99995         * lib/pagealign_alloc.h: Likewise.
99996         * lib/physmem.c: Likewise.
99997         * lib/physmem.h: Likewise.
99998         * lib/pipe-safer.c: Likewise.
99999         * lib/pipe.c: Likewise.
100000         * lib/pipe.h: Likewise.
100001         * lib/posixtm.c: Likewise.
100002         * lib/posixtm.h: Likewise.
100003         * lib/posixver.c: Likewise.
100004         * lib/printf-frexp.c: Likewise.
100005         * lib/printf-frexp.h: Likewise.
100006         * lib/printf-frexpl.c: Likewise.
100007         * lib/printf-frexpl.h: Likewise.
100008         * lib/printf.c: Likewise.
100009         * lib/progname.c: Likewise.
100010         * lib/progname.h: Likewise.
100011         * lib/progreloc.c: Likewise.
100012         * lib/putenv.c: Likewise.
100013         * lib/quote.c: Likewise.
100014         * lib/quote.h: Likewise.
100015         * lib/quotearg.c: Likewise.
100016         * lib/quotearg.h: Likewise.
100017         * lib/raise.c: Likewise.
100018         * lib/readline.c: Likewise.
100019         * lib/readline.h: Likewise.
100020         * lib/readlink.c: Likewise.
100021         * lib/readtokens.c: Likewise.
100022         * lib/readtokens.h: Likewise.
100023         * lib/readtokens0.c: Likewise.
100024         * lib/readtokens0.h: Likewise.
100025         * lib/readutmp.c: Likewise.
100026         * lib/readutmp.h: Likewise.
100027         * lib/realloc.c: Likewise.
100028         * lib/relocwrapper.c: Likewise.
100029         * lib/rename-dest-slash.c: Likewise.
100030         * lib/rename.c: Likewise.
100031         * lib/rmdir.c: Likewise.
100032         * lib/rpmatch.c: Likewise.
100033         * lib/safe-read.c: Likewise.
100034         * lib/safe-read.h: Likewise.
100035         * lib/safe-write.c: Likewise.
100036         * lib/safe-write.h: Likewise.
100037         * lib/same-inode.h: Likewise.
100038         * lib/same.c: Likewise.
100039         * lib/same.h: Likewise.
100040         * lib/save-cwd.c: Likewise.
100041         * lib/save-cwd.h: Likewise.
100042         * lib/savedir.c: Likewise.
100043         * lib/savedir.h: Likewise.
100044         * lib/savewd.c: Likewise.
100045         * lib/savewd.h: Likewise.
100046         * lib/search.in.h: Likewise.
100047         * lib/setenv.c: Likewise.
100048         * lib/setenv.h: Likewise.
100049         * lib/settime.c: Likewise.
100050         * lib/sh-quote.c: Likewise.
100051         * lib/sh-quote.h: Likewise.
100052         * lib/sig2str.c: Likewise.
100053         * lib/sig2str.h: Likewise.
100054         * lib/signal.in.h: Likewise.
100055         * lib/signbitd.c: Likewise.
100056         * lib/signbitf.c: Likewise.
100057         * lib/signbitl.c: Likewise.
100058         * lib/sigprocmask.c: Likewise.
100059         * lib/sincosl.c: Likewise.
100060         * lib/sleep.c: Likewise.
100061         * lib/sprintf.c: Likewise.
100062         * lib/sqrtl.c: Likewise.
100063         * lib/stat-time.h: Likewise.
100064         * lib/stdio--.h: Likewise.
100065         * lib/stdio-safer.h: Likewise.
100066         * lib/stdlib--.h: Likewise.
100067         * lib/stdlib-safer.h: Likewise.
100068         * lib/stdlib.in.h: Likewise.
100069         * lib/stpcpy.c: Likewise.
100070         * lib/stpncpy.c: Likewise.
100071         * lib/strchrnul.c: Likewise.
100072         * lib/strcspn.c: Likewise.
100073         * lib/strerror.c: Likewise.
100074         * lib/strftime.c: Likewise.
100075         * lib/strftime.h: Likewise.
100076         * lib/striconveh.c: Likewise.
100077         * lib/striconveh.h: Likewise.
100078         * lib/striconveha.c: Likewise.
100079         * lib/striconveha.h: Likewise.
100080         * lib/stripslash.c: Likewise.
100081         * lib/strnlen1.c: Likewise.
100082         * lib/strnlen1.h: Likewise.
100083         * lib/strtod.c: Likewise.
100084         * lib/strtoimax.c: Likewise.
100085         * lib/strtok_r.c: Likewise.
100086         * lib/strtol.c: Likewise.
100087         * lib/strtoll.c: Likewise.
100088         * lib/strtoul.c: Likewise.
100089         * lib/strtoull.c: Likewise.
100090         * lib/sysexits.in.h: Likewise.
100091         * lib/tempname.c: Likewise.
100092         * lib/tempname.h: Likewise.
100093         * lib/timespec.h: Likewise.
100094         * lib/tls.c: Likewise.
100095         * lib/tls.h: Likewise.
100096         * lib/tmpdir.c: Likewise.
100097         * lib/tmpdir.h: Likewise.
100098         * lib/tmpfile-safer.c: Likewise.
100099         * lib/tmpfile.c: Likewise.
100100         * lib/trigl.c: Likewise.
100101         * lib/trigl.h: Likewise.
100102         * lib/trim.c: Likewise.
100103         * lib/trim.h: Likewise.
100104         * lib/trunc.c: Likewise.
100105         * lib/truncf.c: Likewise.
100106         * lib/truncl.c: Likewise.
100107         * lib/tsearch.c: Likewise.
100108         * lib/unicodeio.c: Likewise.
100109         * lib/unicodeio.h: Likewise.
100110         * lib/unistd--.h: Likewise.
100111         * lib/unistd-safer.h: Likewise.
100112         * lib/unistdio/ulc-fprintf.c: Likewise.
100113         * lib/unistdio/ulc-vfprintf.c: Likewise.
100114         * lib/unlinkdir.c: Likewise.
100115         * lib/unlinkdir.h: Likewise.
100116         * lib/unlocked-io.h: Likewise.
100117         * lib/unsetenv.c: Likewise.
100118         * lib/userspec.c: Likewise.
100119         * lib/utime.c: Likewise.
100120         * lib/utimecmp.c: Likewise.
100121         * lib/utimecmp.h: Likewise.
100122         * lib/utimens.c: Likewise.
100123         * lib/verify.h: Likewise.
100124         * lib/verror.c: Likewise.
100125         * lib/verror.h: Likewise.
100126         * lib/version-etc-fsf.c: Likewise.
100127         * lib/version-etc.c: Likewise.
100128         * lib/version-etc.h: Likewise.
100129         * lib/vfprintf.c: Likewise.
100130         * lib/vprintf.c: Likewise.
100131         * lib/vsprintf.c: Likewise.
100132         * lib/w32spawn.h: Likewise.
100133         * lib/wait-process.c: Likewise.
100134         * lib/wait-process.h: Likewise.
100135         * lib/wcwidth.c: Likewise.
100136         * lib/write-any-file.c: Likewise.
100137         * lib/xalloc-die.c: Likewise.
100138         * lib/xalloc.h: Likewise.
100139         * lib/xasprintf.c: Likewise.
100140         * lib/xgetcwd.c: Likewise.
100141         * lib/xgetcwd.h: Likewise.
100142         * lib/xgetdomainname.c: Likewise.
100143         * lib/xgetdomainname.h: Likewise.
100144         * lib/xgethostname.c: Likewise.
100145         * lib/xmalloc.c: Likewise.
100146         * lib/xmalloca.c: Likewise.
100147         * lib/xmalloca.h: Likewise.
100148         * lib/xmemcoll.c: Likewise.
100149         * lib/xnanosleep.c: Likewise.
100150         * lib/xreadlink.c: Likewise.
100151         * lib/xreadlink.h: Likewise.
100152         * lib/xsetenv.c: Likewise.
100153         * lib/xsetenv.h: Likewise.
100154         * lib/xstriconv.c: Likewise.
100155         * lib/xstriconv.h: Likewise.
100156         * lib/xstrndup.c: Likewise.
100157         * lib/xstrndup.h: Likewise.
100158         * lib/xstrtod.c: Likewise.
100159         * lib/xstrtod.h: Likewise.
100160         * lib/xstrtol-error.c: Likewise.
100161         * lib/xstrtol.c: Likewise.
100162         * lib/xstrtol.h: Likewise.
100163         * lib/xtime.h: Likewise.
100164         * lib/xvasprintf.c: Likewise.
100165         * lib/xvasprintf.h: Likewise.
100166         * lib/yesno.c: Likewise.
100167         * lib/yesno.h: Likewise.
100168         * posix-modules: Likewise.
100169         * tests/test-alloca-opt.c: Likewise.
100170         * tests/test-arcfour.c: Likewise.
100171         * tests/test-arctwo.c: Likewise.
100172         * tests/test-argmatch.c: Likewise.
100173         * tests/test-argp-2.sh: Likewise.
100174         * tests/test-argp.c: Likewise.
100175         * tests/test-arpa_inet.c: Likewise.
100176         * tests/test-array_list.c: Likewise.
100177         * tests/test-array_oset.c: Likewise.
100178         * tests/test-atexit.c: Likewise.
100179         * tests/test-avltree_list.c: Likewise.
100180         * tests/test-avltree_oset.c: Likewise.
100181         * tests/test-avltreehash_list.c: Likewise.
100182         * tests/test-base64.c: Likewise.
100183         * tests/test-binary-io.c: Likewise.
100184         * tests/test-byteswap.c: Likewise.
100185         * tests/test-c-ctype.c: Likewise.
100186         * tests/test-c-strcasecmp.c: Likewise.
100187         * tests/test-c-strcasestr.c: Likewise.
100188         * tests/test-c-strncasecmp.c: Likewise.
100189         * tests/test-c-strstr.c: Likewise.
100190         * tests/test-canonicalize-lgpl.c: Likewise.
100191         * tests/test-canonicalize.c: Likewise.
100192         * tests/test-carray_list.c: Likewise.
100193         * tests/test-ceilf.c: Likewise.
100194         * tests/test-ceill.c: Likewise.
100195         * tests/test-count-one-bits.c: Likewise.
100196         * tests/test-crc.c: Likewise.
100197         * tests/test-dirname.c: Likewise.
100198         * tests/test-fbufmode.c: Likewise.
100199         * tests/test-fcntl.c: Likewise.
100200         * tests/test-fflush.c: Likewise.
100201         * tests/test-floorf.c: Likewise.
100202         * tests/test-floorl.c: Likewise.
100203         * tests/test-fopen.c: Likewise.
100204         * tests/test-fprintf-posix.c: Likewise.
100205         * tests/test-fprintf-posix.h: Likewise.
100206         * tests/test-fpurge.c: Likewise.
100207         * tests/test-freadable.c: Likewise.
100208         * tests/test-freadahead.c: Likewise.
100209         * tests/test-freading.c: Likewise.
100210         * tests/test-freopen.c: Likewise.
100211         * tests/test-frexp.c: Likewise.
100212         * tests/test-frexpl.c: Likewise.
100213         * tests/test-fseek.c: Likewise.
100214         * tests/test-fseeko.c: Likewise.
100215         * tests/test-fseterr.c: Likewise.
100216         * tests/test-fstrcmp.c: Likewise.
100217         * tests/test-ftell.c: Likewise.
100218         * tests/test-ftello.c: Likewise.
100219         * tests/test-fwritable.c: Likewise.
100220         * tests/test-fwriting.c: Likewise.
100221         * tests/test-getaddrinfo.c: Likewise.
100222         * tests/test-getpass.c: Likewise.
100223         * tests/test-gettimeofday.c: Likewise.
100224         * tests/test-hmac-md5.c: Likewise.
100225         * tests/test-hmac-sha1.c: Likewise.
100226         * tests/test-iconv.c: Likewise.
100227         * tests/test-iconvme.c: Likewise.
100228         * tests/test-inttypes.c: Likewise.
100229         * tests/test-isnan.c: Likewise.
100230         * tests/test-isnanf.c: Likewise.
100231         * tests/test-isnanl-nolibm.c: Likewise.
100232         * tests/test-isnanl.c: Likewise.
100233         * tests/test-isnanl.h: Likewise.
100234         * tests/test-ldexpl.c: Likewise.
100235         * tests/test-linked_list.c: Likewise.
100236         * tests/test-linkedhash_list.c: Likewise.
100237         * tests/test-locale.c: Likewise.
100238         * tests/test-localename.c: Likewise.
100239         * tests/test-lock.c: Likewise.
100240         * tests/test-lseek.c: Likewise.
100241         * tests/test-malloca.c: Likewise.
100242         * tests/test-math.c: Likewise.
100243         * tests/test-mbscasecmp.c: Likewise.
100244         * tests/test-mbscasestr1.c: Likewise.
100245         * tests/test-mbscasestr2.c: Likewise.
100246         * tests/test-mbscasestr3.c: Likewise.
100247         * tests/test-mbscasestr4.c: Likewise.
100248         * tests/test-mbschr.c: Likewise.
100249         * tests/test-mbscspn.c: Likewise.
100250         * tests/test-mbsncasecmp.c: Likewise.
100251         * tests/test-mbspbrk.c: Likewise.
100252         * tests/test-mbspcasecmp.c: Likewise.
100253         * tests/test-mbsrchr.c: Likewise.
100254         * tests/test-mbsspn.c: Likewise.
100255         * tests/test-mbsstr1.c: Likewise.
100256         * tests/test-mbsstr2.c: Likewise.
100257         * tests/test-mbsstr3.c: Likewise.
100258         * tests/test-md5.c: Likewise.
100259         * tests/test-memmem.c: Likewise.
100260         * tests/test-netinet_in.c: Likewise.
100261         * tests/test-open.c: Likewise.
100262         * tests/test-printf-frexp.c: Likewise.
100263         * tests/test-printf-frexpl.c: Likewise.
100264         * tests/test-printf-posix.c: Likewise.
100265         * tests/test-printf-posix.h: Likewise.
100266         * tests/test-rbtree_list.c: Likewise.
100267         * tests/test-rbtree_oset.c: Likewise.
100268         * tests/test-rbtreehash_list.c: Likewise.
100269         * tests/test-read-file.c: Likewise.
100270         * tests/test-rijndael.c: Likewise.
100271         * tests/test-search.c: Likewise.
100272         * tests/test-signbit.c: Likewise.
100273         * tests/test-sleep.c: Likewise.
100274         * tests/test-snprintf-posix.c: Likewise.
100275         * tests/test-snprintf-posix.h: Likewise.
100276         * tests/test-snprintf.c: Likewise.
100277         * tests/test-sprintf-posix.c: Likewise.
100278         * tests/test-sprintf-posix.h: Likewise.
100279         * tests/test-stat-time.c: Likewise.
100280         * tests/test-stdbool.c: Likewise.
100281         * tests/test-stdint.c: Likewise.
100282         * tests/test-stdio.c: Likewise.
100283         * tests/test-stdlib.c: Likewise.
100284         * tests/test-stpncpy.c: Likewise.
100285         * tests/test-strcasestr.c: Likewise.
100286         * tests/test-striconv.c: Likewise.
100287         * tests/test-striconveh.c: Likewise.
100288         * tests/test-striconveha.c: Likewise.
100289         * tests/test-string.c: Likewise.
100290         * tests/test-sys_select.c: Likewise.
100291         * tests/test-sys_socket.c: Likewise.
100292         * tests/test-sys_stat.c: Likewise.
100293         * tests/test-sys_time.c: Likewise.
100294         * tests/test-sysexits.c: Likewise.
100295         * tests/test-time.c: Likewise.
100296         * tests/test-tls.c: Likewise.
100297         * tests/test-trunc.c: Likewise.
100298         * tests/test-truncf.c: Likewise.
100299         * tests/test-truncl.c: Likewise.
100300         * tests/test-unistd.c: Likewise.
100301         * tests/test-vasnprintf-posix.c: Likewise.
100302         * tests/test-vasnprintf-posix2.c: Likewise.
100303         * tests/test-vasnprintf.c: Likewise.
100304         * tests/test-vasprintf-posix.c: Likewise.
100305         * tests/test-vasprintf.c: Likewise.
100306         * tests/test-verify.c: Likewise.
100307         * tests/test-vfprintf-posix.c: Likewise.
100308         * tests/test-vprintf-posix.c: Likewise.
100309         * tests/test-vsnprintf-posix.c: Likewise.
100310         * tests/test-vsnprintf.c: Likewise.
100311         * tests/test-vsprintf-posix.c: Likewise.
100312         * tests/test-wchar.c: Likewise.
100313         * tests/test-wctype.c: Likewise.
100314         * tests/test-wcwidth.c: Likewise.
100315         * tests/test-xstrtol.c: Likewise.
100316         * tests/test-xvasprintf.c: Likewise.
100317         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100318         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100319         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100320         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100321         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100322         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100323         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100324         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100325         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100326         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100327         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100328         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100329         * tests/uniname/test-uninames.c: Likewise.
100330         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100331         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100332         * tests/unistdio/test-u16-printf1.h: Likewise.
100333         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100334         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100335         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100336         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100337         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100338         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100339         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100340         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100341         * tests/unistdio/test-u32-printf1.h: Likewise.
100342         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100343         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100344         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100345         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100346         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100347         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100348         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100349         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100350         * tests/unistdio/test-u8-printf1.h: Likewise.
100351         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100352         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100353         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100354         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100355         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100356         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100357         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100358         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100359         * tests/unistdio/test-ulc-printf1.h: Likewise.
100360         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100361         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100362         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100363         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100364         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100365         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100366         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100367         * tests/uniwidth/test-u16-width.c: Likewise.
100368         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100369         * tests/uniwidth/test-u32-width.c: Likewise.
100370         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100371         * tests/uniwidth/test-u8-width.c: Likewise.
100372         * tests/uniwidth/test-uc_width.c: Likewise.
100373         * config/srclist-update: Likewise.
100374         (fixlicense): Update to GPLv3+.
100376         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100377         * tests/test-tsearch.c: Change copyright notice.
100379         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100380         * lib/c-strcaseeq.h: Change copyright notice.
100381         * lib/streq.h: Likewise.
100382         * lib/uniconv.h: Likewise.
100383         * lib/uniconv/u-conv-from-enc.h: Likewise.
100384         * lib/uniconv/u-conv-to-enc.h: Likewise.
100385         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100386         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100387         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100388         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100389         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100390         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100391         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100392         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100393         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100394         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100395         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100396         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100397         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100398         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100399         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100400         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100401         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100402         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100403         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100404         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100405         * lib/uniname.h: Likewise.
100406         * lib/uniname/uniname.c: Likewise.
100407         * lib/unistdio.h: Likewise.
100408         * lib/unistdio/u-asnprintf.h: Likewise.
100409         * lib/unistdio/u-asprintf.h: Likewise.
100410         * lib/unistdio/u-printf-args.c: Likewise.
100411         * lib/unistdio/u-printf-args.h: Likewise.
100412         * lib/unistdio/u-printf-parse.h: Likewise.
100413         * lib/unistdio/u-snprintf.h: Likewise.
100414         * lib/unistdio/u-sprintf.h: Likewise.
100415         * lib/unistdio/u-vasprintf.h: Likewise.
100416         * lib/unistdio/u-vsnprintf.h: Likewise.
100417         * lib/unistdio/u-vsprintf.h: Likewise.
100418         * lib/unistdio/u16-asnprintf.c: Likewise.
100419         * lib/unistdio/u16-asprintf.c: Likewise.
100420         * lib/unistdio/u16-printf-parse.c: Likewise.
100421         * lib/unistdio/u16-snprintf.c: Likewise.
100422         * lib/unistdio/u16-sprintf.c: Likewise.
100423         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100424         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100425         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100426         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100427         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100428         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100429         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100430         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100431         * lib/unistdio/u16-vasnprintf.c: Likewise.
100432         * lib/unistdio/u16-vasprintf.c: Likewise.
100433         * lib/unistdio/u16-vsnprintf.c: Likewise.
100434         * lib/unistdio/u16-vsprintf.c: Likewise.
100435         * lib/unistdio/u32-asnprintf.c: Likewise.
100436         * lib/unistdio/u32-asprintf.c: Likewise.
100437         * lib/unistdio/u32-printf-parse.c: Likewise.
100438         * lib/unistdio/u32-snprintf.c: Likewise.
100439         * lib/unistdio/u32-sprintf.c: Likewise.
100440         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100441         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100442         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100443         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100444         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100445         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100446         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100447         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100448         * lib/unistdio/u32-vasnprintf.c: Likewise.
100449         * lib/unistdio/u32-vasprintf.c: Likewise.
100450         * lib/unistdio/u32-vsnprintf.c: Likewise.
100451         * lib/unistdio/u32-vsprintf.c: Likewise.
100452         * lib/unistdio/u8-asnprintf.c: Likewise.
100453         * lib/unistdio/u8-asprintf.c: Likewise.
100454         * lib/unistdio/u8-printf-parse.c: Likewise.
100455         * lib/unistdio/u8-snprintf.c: Likewise.
100456         * lib/unistdio/u8-sprintf.c: Likewise.
100457         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100458         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100459         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100460         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100461         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100462         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100463         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100464         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100465         * lib/unistdio/u8-vasnprintf.c: Likewise.
100466         * lib/unistdio/u8-vasprintf.c: Likewise.
100467         * lib/unistdio/u8-vsnprintf.c: Likewise.
100468         * lib/unistdio/u8-vsprintf.c: Likewise.
100469         * lib/unistdio/ulc-asnprintf.c: Likewise.
100470         * lib/unistdio/ulc-asprintf.c: Likewise.
100471         * lib/unistdio/ulc-printf-parse.c: Likewise.
100472         * lib/unistdio/ulc-snprintf.c: Likewise.
100473         * lib/unistdio/ulc-sprintf.c: Likewise.
100474         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100475         * lib/unistdio/ulc-vasprintf.c: Likewise.
100476         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100477         * lib/unistdio/ulc-vsprintf.c: Likewise.
100478         * lib/unistr.h: Likewise.
100479         * lib/unistr/u-cpy-alloc.h: Likewise.
100480         * lib/unistr/u-cpy.h: Likewise.
100481         * lib/unistr/u-endswith.h: Likewise.
100482         * lib/unistr/u-move.h: Likewise.
100483         * lib/unistr/u-set.h: Likewise.
100484         * lib/unistr/u-startswith.h: Likewise.
100485         * lib/unistr/u-stpcpy.h: Likewise.
100486         * lib/unistr/u-stpncpy.h: Likewise.
100487         * lib/unistr/u-strcat.h: Likewise.
100488         * lib/unistr/u-strcpy.h: Likewise.
100489         * lib/unistr/u-strcspn.h: Likewise.
100490         * lib/unistr/u-strdup.h: Likewise.
100491         * lib/unistr/u-strlen.h: Likewise.
100492         * lib/unistr/u-strncat.h: Likewise.
100493         * lib/unistr/u-strncpy.h: Likewise.
100494         * lib/unistr/u-strnlen.h: Likewise.
100495         * lib/unistr/u-strpbrk.h: Likewise.
100496         * lib/unistr/u-strspn.h: Likewise.
100497         * lib/unistr/u-strstr.h: Likewise.
100498         * lib/unistr/u-strtok.h: Likewise.
100499         * lib/unistr/u16-check.c: Likewise.
100500         * lib/unistr/u16-chr.c: Likewise.
100501         * lib/unistr/u16-cmp.c: Likewise.
100502         * lib/unistr/u16-cpy-alloc.c: Likewise.
100503         * lib/unistr/u16-cpy.c: Likewise.
100504         * lib/unistr/u16-endswith.c: Likewise.
100505         * lib/unistr/u16-mblen.c: Likewise.
100506         * lib/unistr/u16-mbsnlen.c: Likewise.
100507         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100508         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100509         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100510         * lib/unistr/u16-mbtouc.c: Likewise.
100511         * lib/unistr/u16-mbtoucr.c: Likewise.
100512         * lib/unistr/u16-move.c: Likewise.
100513         * lib/unistr/u16-next.c: Likewise.
100514         * lib/unistr/u16-prev.c: Likewise.
100515         * lib/unistr/u16-set.c: Likewise.
100516         * lib/unistr/u16-startswith.c: Likewise.
100517         * lib/unistr/u16-stpcpy.c: Likewise.
100518         * lib/unistr/u16-stpncpy.c: Likewise.
100519         * lib/unistr/u16-strcat.c: Likewise.
100520         * lib/unistr/u16-strchr.c: Likewise.
100521         * lib/unistr/u16-strcmp.c: Likewise.
100522         * lib/unistr/u16-strcpy.c: Likewise.
100523         * lib/unistr/u16-strcspn.c: Likewise.
100524         * lib/unistr/u16-strdup.c: Likewise.
100525         * lib/unistr/u16-strlen.c: Likewise.
100526         * lib/unistr/u16-strmblen.c: Likewise.
100527         * lib/unistr/u16-strmbtouc.c: Likewise.
100528         * lib/unistr/u16-strncat.c: Likewise.
100529         * lib/unistr/u16-strncmp.c: Likewise.
100530         * lib/unistr/u16-strncpy.c: Likewise.
100531         * lib/unistr/u16-strnlen.c: Likewise.
100532         * lib/unistr/u16-strpbrk.c: Likewise.
100533         * lib/unistr/u16-strrchr.c: Likewise.
100534         * lib/unistr/u16-strspn.c: Likewise.
100535         * lib/unistr/u16-strstr.c: Likewise.
100536         * lib/unistr/u16-strtok.c: Likewise.
100537         * lib/unistr/u16-to-u32.c: Likewise.
100538         * lib/unistr/u16-to-u8.c: Likewise.
100539         * lib/unistr/u16-uctomb-aux.c: Likewise.
100540         * lib/unistr/u16-uctomb.c: Likewise.
100541         * lib/unistr/u32-check.c: Likewise.
100542         * lib/unistr/u32-chr.c: Likewise.
100543         * lib/unistr/u32-cmp.c: Likewise.
100544         * lib/unistr/u32-cpy-alloc.c: Likewise.
100545         * lib/unistr/u32-cpy.c: Likewise.
100546         * lib/unistr/u32-endswith.c: Likewise.
100547         * lib/unistr/u32-mblen.c: Likewise.
100548         * lib/unistr/u32-mbsnlen.c: Likewise.
100549         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100550         * lib/unistr/u32-mbtouc.c: Likewise.
100551         * lib/unistr/u32-mbtoucr.c: Likewise.
100552         * lib/unistr/u32-move.c: Likewise.
100553         * lib/unistr/u32-next.c: Likewise.
100554         * lib/unistr/u32-prev.c: Likewise.
100555         * lib/unistr/u32-set.c: Likewise.
100556         * lib/unistr/u32-startswith.c: Likewise.
100557         * lib/unistr/u32-stpcpy.c: Likewise.
100558         * lib/unistr/u32-stpncpy.c: Likewise.
100559         * lib/unistr/u32-strcat.c: Likewise.
100560         * lib/unistr/u32-strchr.c: Likewise.
100561         * lib/unistr/u32-strcmp.c: Likewise.
100562         * lib/unistr/u32-strcpy.c: Likewise.
100563         * lib/unistr/u32-strcspn.c: Likewise.
100564         * lib/unistr/u32-strdup.c: Likewise.
100565         * lib/unistr/u32-strlen.c: Likewise.
100566         * lib/unistr/u32-strmblen.c: Likewise.
100567         * lib/unistr/u32-strmbtouc.c: Likewise.
100568         * lib/unistr/u32-strncat.c: Likewise.
100569         * lib/unistr/u32-strncmp.c: Likewise.
100570         * lib/unistr/u32-strncpy.c: Likewise.
100571         * lib/unistr/u32-strnlen.c: Likewise.
100572         * lib/unistr/u32-strpbrk.c: Likewise.
100573         * lib/unistr/u32-strrchr.c: Likewise.
100574         * lib/unistr/u32-strspn.c: Likewise.
100575         * lib/unistr/u32-strstr.c: Likewise.
100576         * lib/unistr/u32-strtok.c: Likewise.
100577         * lib/unistr/u32-to-u16.c: Likewise.
100578         * lib/unistr/u32-to-u8.c: Likewise.
100579         * lib/unistr/u32-uctomb.c: Likewise.
100580         * lib/unistr/u8-check.c: Likewise.
100581         * lib/unistr/u8-chr.c: Likewise.
100582         * lib/unistr/u8-cmp.c: Likewise.
100583         * lib/unistr/u8-cpy-alloc.c: Likewise.
100584         * lib/unistr/u8-cpy.c: Likewise.
100585         * lib/unistr/u8-endswith.c: Likewise.
100586         * lib/unistr/u8-mblen.c: Likewise.
100587         * lib/unistr/u8-mbsnlen.c: Likewise.
100588         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100589         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100590         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100591         * lib/unistr/u8-mbtouc.c: Likewise.
100592         * lib/unistr/u8-mbtoucr.c: Likewise.
100593         * lib/unistr/u8-move.c: Likewise.
100594         * lib/unistr/u8-next.c: Likewise.
100595         * lib/unistr/u8-prev.c: Likewise.
100596         * lib/unistr/u8-set.c: Likewise.
100597         * lib/unistr/u8-startswith.c: Likewise.
100598         * lib/unistr/u8-stpcpy.c: Likewise.
100599         * lib/unistr/u8-stpncpy.c: Likewise.
100600         * lib/unistr/u8-strcat.c: Likewise.
100601         * lib/unistr/u8-strchr.c: Likewise.
100602         * lib/unistr/u8-strcmp.c: Likewise.
100603         * lib/unistr/u8-strcpy.c: Likewise.
100604         * lib/unistr/u8-strcspn.c: Likewise.
100605         * lib/unistr/u8-strdup.c: Likewise.
100606         * lib/unistr/u8-strlen.c: Likewise.
100607         * lib/unistr/u8-strmblen.c: Likewise.
100608         * lib/unistr/u8-strmbtouc.c: Likewise.
100609         * lib/unistr/u8-strncat.c: Likewise.
100610         * lib/unistr/u8-strncmp.c: Likewise.
100611         * lib/unistr/u8-strncpy.c: Likewise.
100612         * lib/unistr/u8-strnlen.c: Likewise.
100613         * lib/unistr/u8-strpbrk.c: Likewise.
100614         * lib/unistr/u8-strrchr.c: Likewise.
100615         * lib/unistr/u8-strspn.c: Likewise.
100616         * lib/unistr/u8-strstr.c: Likewise.
100617         * lib/unistr/u8-strtok.c: Likewise.
100618         * lib/unistr/u8-to-u16.c: Likewise.
100619         * lib/unistr/u8-to-u32.c: Likewise.
100620         * lib/unistr/u8-uctomb-aux.c: Likewise.
100621         * lib/unistr/u8-uctomb.c: Likewise.
100622         * lib/unitypes.h: Likewise.
100623         * lib/uniwidth.h: Likewise.
100624         * lib/uniwidth/cjk.h: Likewise.
100625         * lib/uniwidth/u16-strwidth.c: Likewise.
100626         * lib/uniwidth/u16-width.c: Likewise.
100627         * lib/uniwidth/u32-strwidth.c: Likewise.
100628         * lib/uniwidth/u32-width.c: Likewise.
100629         * lib/uniwidth/u8-strwidth.c: Likewise.
100630         * lib/uniwidth/u8-width.c: Likewise.
100631         * lib/uniwidth/width.c: Likewise.
100633 2007-10-07  Bruno Haible  <bruno@clisp.org>
100635         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100636         The file is still under LGPL (see modules/inttypes).
100638 2007-10-06  Bruno Haible  <bruno@clisp.org>
100640         * modules/trunc (Dependencies): Add 'extensions'.
100641         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100642         Reported by Ben Pfaff <blp@gnu.org>.
100644 2007-10-06  Bruno Haible  <bruno@clisp.org>
100646         * modules/freopen-tests: New file.
100647         * tests/test-freopen.c: New file.
100649         * modules/fopen-tests: New file.
100650         * tests/test-fopen.c: New file.
100652         * modules/fopen: New file.
100653         * lib/fopen.c: New file.
100654         * m4/fopen.m4: New file.
100655         * modules/freopen: New file.
100656         * lib/freopen.c: New file.
100657         * m4/freopen.m4: New file.
100658         * lib/stdio.in.h (fopen, freopen): New declarations.
100659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100660         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100661         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100662         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100663         * doc/functions/fopen.texi: Mention the 'fopen' module.
100664         * doc/functions/freopen.texi: Mention the 'freopen' module.
100666 2007-10-06  Bruno Haible  <bruno@clisp.org>
100668         * modules/open-tests: New file.
100669         * tests/test-open.c: New file.
100671         * modules/open: New file.
100672         * lib/open.c: New file.
100673         * m4/open.m4: New file.
100674         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100675         lib/open.c does.
100676         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100677         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100678         macros.
100679         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100680         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100681         REPLACE_OPEN.
100682         * doc/functions/open.texi: Mention the 'open' module.
100684 2007-10-04  Bruno Haible  <bruno@clisp.org>
100686         * modules/ceill-tests: New file.
100687         * tests/test-ceill.c: New file.
100689         * modules/ceill: New file.
100690         * lib/ceill.c: Replace entire file.
100691         * m4/ceill.m4: New file.
100692         * lib/math.in.h (ceill): Replace declaration.
100693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100694         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100695         * doc/functions/ceill.texi: Mention the 'ceill' module.
100696         * modules/mathl (Files): Remove lib/ceill.c.
100697         (Depends-on): Add ceill.
100699 2007-10-04  Bruno Haible  <bruno@clisp.org>
100701         * modules/ceilf-tests: New file.
100702         * tests/test-ceilf.c: New file.
100704         * modules/ceilf: New file.
100705         * lib/ceil.c: New file.
100706         * lib/ceilf.c: New file.
100707         * m4/ceilf.m4: New file.
100708         * lib/math.in.h (ceilf): New declaration.
100709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100710         HAVE_DECL_CEILF.
100711         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100712         HAVE_DECL_CEILF.
100713         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100715 2007-10-04  Bruno Haible  <bruno@clisp.org>
100717         * modules/floorl-tests: New file.
100718         * tests/test-floorl.c: New file.
100720         * modules/floorl: New file.
100721         * lib/floorl.c: Replace entire file.
100722         * m4/floorl.m4: New file.
100723         * lib/math.in.h (floorl): Replace declaration.
100724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100725         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100726         * doc/functions/floorl.texi: Mention the 'floorl' module.
100727         * modules/mathl (Files): Remove lib/floorl.c.
100728         (Depends-on): Add floorl.
100730 2007-10-04  Bruno Haible  <bruno@clisp.org>
100732         * modules/floorf-tests: New file.
100733         * tests/test-floorf.c: New file.
100735         * modules/floorf: New file.
100736         * lib/floor.c: New file.
100737         * lib/floorf.c: New file.
100738         * m4/floorf.m4: New file.
100739         * lib/math.in.h (floorf): New declaration.
100740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100741         HAVE_DECL_FLOORF.
100742         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100743         HAVE_DECL_FLOORF.
100744         * doc/functions/floorf.texi: Mention the 'floorf' module.
100746 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100747             Bruno Haible  <bruno@clisp.org>
100749         Advertise for the Git server instead of the CVS server.
100750         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100751         repository instead of the CVS one.
100752         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100753         about all VCS systems generically.
100754         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100756 2007-10-04  Bruno Haible  <bruno@clisp.org>
100758         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100759         means.
100760         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100762 2007-10-04  Bruno Haible  <bruno@clisp.org>
100764         * modules/truncl-tests: New file.
100765         * tests/test-truncl.c: New file.
100767         * modules/truncl: New file.
100768         * lib/truncl.c: New file.
100769         * m4/truncl.m4: New file.
100770         * lib/math.in.h (truncl): New declaration.
100771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100772         HAVE_DECL_TRUNCL.
100773         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100774         HAVE_DECL_TRUNCL.
100775         * doc/functions/truncl.texi: Mention the 'truncl' module.
100777 2007-10-04  Bruno Haible  <bruno@clisp.org>
100779         * modules/truncf-tests: New file.
100780         * tests/test-truncf.c: New file.
100782         * modules/truncf: New file.
100783         * lib/trunc.c: Make paramerizable through USE_* macros.
100784         * lib/truncf.c: New file.
100785         * m4/truncf.m4: New file.
100786         * lib/math.in.h (truncf): New declaration.
100787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100788         HAVE_DECL_TRUNCF.
100789         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100790         HAVE_DECL_TRUNCF.
100791         * doc/functions/truncf.texi: Mention the 'truncf' module.
100793 2007-10-03  Bruno Haible  <bruno@clisp.org>
100795         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100796         augmentation also for tests modules.
100797         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100798         * modules/atexit-tests (Makefile.am): Likewise.
100799         * modules/binary-io-tests (Makefile.am): Likewise.
100800         * modules/c-strcase-tests (Makefile.am): Likewise.
100801         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100802         * modules/canonicalize-tests (Makefile.am): Likewise.
100803         * modules/closein-tests (Makefile.am): Likewise.
100804         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100805         * modules/freadahead-tests (Makefile.am): Likewise.
100806         * modules/fseek-tests (Makefile.am): Likewise.
100807         * modules/fseeko-tests (Makefile.am): Likewise.
100808         * modules/ftell-tests (Makefile.am): Likewise.
100809         * modules/ftello-tests (Makefile.am): Likewise.
100810         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100811         * modules/isnanl-tests (Makefile.am): Likewise.
100812         * modules/lseek-tests (Makefile.am): Likewise.
100813         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100814         * modules/mbscasestr-tests (Makefile.am): Likewise.
100815         * modules/mbschr-tests (Makefile.am): Likewise.
100816         * modules/mbscspn-tests (Makefile.am): Likewise.
100817         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100818         * modules/mbspbrk-tests (Makefile.am): Likewise.
100819         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100820         * modules/mbsrchr-tests (Makefile.am): Likewise.
100821         * modules/mbsspn-tests (Makefile.am): Likewise.
100822         * modules/mbsstr-tests (Makefile.am): Likewise.
100823         * modules/printf-posix-tests (Makefile.am): Likewise.
100824         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100825         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100826         * modules/tsearch-tests (Makefile.am): Likewise.
100827         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100828         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100829         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100830         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100831         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100832         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100833         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100834         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100835         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100836         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100837         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100838         * modules/xstrtol-tests (Makefile.am): Likewise.
100839         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100840         * modules/yesno-tests (Makefile.am): Likewise.
100842 2007-10-03  Bruno Haible  <bruno@clisp.org>
100844         * modules/trunc-tests: New file.
100845         * tests/test-trunc.c: New file.
100847         * modules/trunc: New file.
100848         * lib/trunc.c: New file.
100849         * m4/trunc.m4: New file.
100850         * lib/math.in.h (trunc): New declaration.
100851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100852         HAVE_DECL_TRUNC.
100853         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100854         HAVE_DECL_TRUNC.
100855         * doc/functions/trunc.texi: Mention the 'trunc' module.
100857 2007-10-03  Bruno Haible  <bruno@clisp.org>
100859         * tests/test-fpending.c: New file, mostly copied
100860         from coreutils/lib/t-fpending.c.
100861         * modules/fpending-tests: New file.
100863 2007-10-03  Bruno Haible  <bruno@clisp.org>
100865         Port the stdio extensions to QNX (untested).
100866         * lib/fseterr.c (fseterr): Add support for QNX.
100867         * lib/fbufmode.c (fbufmode): Likewise.
100868         * lib/freadable.c (freadable): Likewise.
100869         * lib/fwritable.c (fwritable): Likewise.
100870         * lib/freading.c (freading): Likewise.
100871         * lib/fwriting.c (fwriting): Likewise.
100872         * lib/freadahead.c (freadahed): Likewise.
100873         * lib/fpurge.c (fpurge): Likewise.
100874         * lib/fseeko.c (rpl_fseeko): Likewise.
100876 2007-10-03  Bruno Haible  <bruno@clisp.org>
100877             Jim Meyering  <jim@meyering.net>
100878             Eric Blake  <ebb9@byu.net>
100880         * doc/relocatable.texi: Use @command instead of @program.
100882 2007-10-02  Jim Meyering  <jim@meyering.net>
100884         Perform one more "_.h" -> ".in.h" substitution.
100885         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100886         instead of unistd_.h here, too.
100888 2007-10-01  Bruno Haible  <bruno@clisp.org>
100890         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100891         Needed for the alloca-opt module.
100893 2007-09-30  Bruno Haible  <bruno@clisp.org>
100895         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100896         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100897         alloca_.h.
100898         * lib/argz.in.h: Renamed from lib/argz_.h.
100899         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100900         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100901         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100902         byteswap_.h.
100903         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100904         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100905         dirent_.h.
100906         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100907         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100908         fcntl_.h.
100909         * lib/float.in.h: Renamed from lib/float_.h.
100910         * modules/float (Files, Makefile.am): Use float.in.h instead of
100911         float_.h.
100912         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100913         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100914         fnmatch_.h.
100915         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100916         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100917         getopt_.h.
100918         * lib/glob.in.h: Renamed from lib/glob_.h.
100919         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100920         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100921         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100922         iconv_.h.
100923         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100924         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100925         inttypes_.h.
100926         * lib/locale.in.h: Renamed from lib/locale_.h.
100927         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100928         locale_.h.
100929         * lib/math.in.h: Renamed from lib/math_.h.
100930         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100931         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100932         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100933         of netinet_in_.h. Add dependency.
100934         * lib/poll.in.h: Renamed from lib/poll_.h.
100935         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100936         * lib/search.in.h: Renamed from lib/search_.h.
100937         * modules/search (Files, Makefile.am): Use search.in.h instead of
100938         search_.h.
100939         * lib/signal.in.h: Renamed from lib/signal_.h.
100940         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100941         _signal.h.
100942         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100943         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100944         stdbool_.h.
100945         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100946         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100947         stdint_.h.
100948         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100949         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100950         stdio_.h.
100951         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100952         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100953         stdlib_.h.
100954         * lib/string.in.h: Renamed from lib/string_.h.
100955         * modules/string (Files, Makefile.am): Use string.in.h instead of
100956         string_.h.
100957         * doc/gnulib-tool.texi (Initial import): Update.
100958         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100959         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100960         of sys_select_.h. Add dependency.
100961         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100962         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100963         of sys_socket_.h.
100964         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100965         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100966         sys_stat_.h.
100967         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100968         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100969         sys_time_.h.
100970         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100971         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100972         sysexits_.h.
100973         * lib/time.in.h: Renamed from lib/time_.h.
100974         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100975         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100976         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100977         unistd_.h.
100978         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100979         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100980         wchar_.h.
100981         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100982         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100983         wctype_.h.
100984         * build-aux/bootstrap (slurp): Update.
100985         * lib/.cppi-disable: Update.
100987 2007-09-30  Bruno Haible  <bruno@clisp.org>
100989         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100990         Needed on BeOS.
100992 2007-09-30  Bruno Haible  <bruno@clisp.org>
100994         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100996 2007-09-29  Bruno Haible  <bruno@clisp.org>
100998         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
101000 2007-09-29  Bruno Haible  <bruno@clisp.org>
101002         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
101003         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
101004         * build-aux/install-reloc: Compile also areadlink.c.
101005         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
101007 2007-09-29  Bruno Haible  <bruno@clisp.org>
101009         * gnulib-tool (func_emit_initmacro_done): Indentation.
101011 2007-09-29  Bruno Haible  <bruno@clisp.org>
101013         * README: Add CVS checkout update instructions.
101014         Info from Bob Proulx <bob@proulx.com>.
101016 2007-09-28  Eric Blake  <ebb9@byu.net>
101018         Provide move-if-change.
101019         * build-aux/move-if-change: New file, based on best practice
101020         rather than any canonical upstream location.
101022 2007-09-28  Jim Meyering  <jim@meyering.net>
101024         Fix canonicalize loop-detection corner case.
101025         Do not attempt to stat the symlink values stored via seen_triple.
101026         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
101027         on linux-2.6.18, (but not 2.6.22).
101028         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
101029         triple_compare.  The former compares dev,ino,filename, while the latter
101030         would actually stat dirname(filename) when dev and ino were equal.
101031         * lib/hash-triple.c: Install <string.h>.
101032         (STREQ): Define.
101033         (triple_compare_ino_str): New function.
101034         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
101036 2007-09-28  Eric Blake  <ebb9@byu.net>
101038         Enforce that AC_REPLACE_FUNCS files exist.
101039         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
101040         override check for typos.
101042         Fix test-closein on Solaris 10.
101043         * tests/test-closein.c (main): Don't assume stdin can be inherited
101044         closed on all systems.
101045         * tests/test-closein.sh: Likewise.
101046         Reported by Piotr Tarnowski.
101048 2007-09-28  Jim Meyering  <jim@meyering.net>
101050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
101052 2007-09-27  Jim Meyering  <jim@meyering.net>
101054         canonicalize: Avoid a false-positive cycle failure.
101055         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
101056         Sort.  Remove cycle-check.
101057         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
101058         not cycle-check.h.
101059         (seen_triple): New function.
101060         (canonicalize_filename_mode): Use it instead of cycle-check.
101061         * tests/test-canonicalize.c: Add a test for this bug.
101062         * tests/test-canonicalize.sh: Set up and run the test.
101064         New module, file-set, from coreutils.
101065         * modules/file-set: Define it.
101066         * lib/file-set.c, lib/file-set.h: Implement.
101068         New module, hash-triple, from coreutils.
101069         * modules/hash-triple: Define it.
101070         * lib/hash-triple.c, lib/hash-triple.h: Implement.
101072 2007-09-25  Eric Blake  <ebb9@byu.net>
101074         Fix strerror on Interix.
101075         * lib/string_.h (strerror): Declare replacement.
101076         * doc/functions/strerror.texi (strerror): Document the Interix
101077         shortcoming.
101078         * modules/string (Makefile.am): Support new hooks.
101079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
101080         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
101081         gl_FUNC_STRERROR_SEPARATE.
101082         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
101083         * lib/strerror.c (rpl_strerror): Provide replacement.
101084         * modules/strerror (Depends-on): Add string.
101085         (configure.ac): Detect use of module.
101086         * tests/test-strerror.c: New file.
101087         * modules/strerror-tests: New test module.
101088         * modules/argp (Depends-on): Add strerror.
101089         * modules/error (Depends-on): Likewise.
101090         Reported by Martin Koeppe.
101092 2007-09-24  Bruno Haible  <bruno@clisp.org>
101094         * README: Update git instructions.
101096 2007-09-24  Eric Blake  <ebb9@byu.net>
101098         Revert fpending breakage from 2007-09-08.
101099         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
101100         __fpending.c.
101102 2007-09-24  Jim Meyering  <jim@meyering.net>
101104         filenamecat.c: Add a test.
101105         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
101106         showing how the function works when DIR is the empty string.
101108 2007-09-21  Simon Josefsson  <simon@josefsson.org>
101110         * tests/test-canonicalize.sh: Turn on executable bit.
101112 2007-09-19  Eric Blake  <ebb9@byu.net>
101114         * README: Update CVS instructions.
101116 2007-09-18  Bruno Haible  <bruno@clisp.org>
101118         * modules/areadlink: New file.
101119         * lib/areadlink.h (areadlink): New declaration.
101120         * lib/areadlink.c: New file, based on lib/xreadlink.c.
101122 2007-09-17  Jim Meyering  <jim@meyering.net>
101124         * lib/savewd.c (ESTALE) [!defined]: Define.
101125         Reported to be required on Interix by Martin Koeppe.
101127 2007-09-17  Bruno Haible  <bruno@clisp.org>
101129         * gnulib-tool (func_version): Use $version.
101131 2007-09-16  Bruno Haible  <bruno@clisp.org>
101133         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
101134         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
101135         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
101136         Reported by Greg Schafer <gschafer@zip.com.au>.
101138 2007-09-15  Bruno Haible  <bruno@clisp.org>
101140         * gnulib-tool (sed): Try a little harder to make bash understand the
101141         alias.
101142         Reported by Bruce Korb <bruce.korb@gmail.com>.
101144 2007-09-13  Eric Blake  <ebb9@byu.net>
101146         * ChangeLog: Remove conflict markers.
101148 2007-09-13  Simon Josefsson  <simon@josefsson.org>
101150         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
101151         Reported by Bruno Haible <bruno@clisp.org>.
101153 2007-09-12  Bruno Haible  <bruno@clisp.org>
101155         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
101156         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
101157         is not defined.
101159 2007-09-12  Eric Blake  <ebb9@byu.net>
101161         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
101162         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
101163         Autoconf definition.
101164         * modules/euidaccess (Depends-on): Add extensions, for
101165         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
101166         * modules/fnmatch (Depends-on): Likewise.
101167         * modules/getaddrinfo (Depends-on): Likewise.
101168         * modules/getdelim (Depends-on): Likewise.
101169         * modules/getline (Depends-on): Likewise.
101170         * modules/getsubopt (Depends-on): Likewise.
101171         * modules/gettext (Depends-on): Likewise.
101172         * modules/group-member (Depends-on): Likewise.
101173         * modules/mbchar (Depends-on): Likewise.
101174         * modules/memmem (Depends-on): Likewise.
101175         * modules/mempcpy (Depends-on): Likewise.
101176         * modules/memrchr (Depends-on): Likewise.
101177         * modules/pagealign_alloc (Depends-on): Likewise.
101178         * modules/readutmp (Depends-on): Likewise.
101179         * modules/stpcpy (Depends-on): Likewise.
101180         * modules/stpncpy (Depends-on): Likewise.
101181         * modules/strchrnul (Depends-on): Likewise.
101182         * modules/strndup (Depends-on): Likewise.
101183         * modules/strsep (Depends-on): Likewise.
101184         * modules/strverscmp (Depends-on): Likewise.
101185         * modules/vasprintf (Depends-on): Likewise.
101186         * modules/wcwidth (Depends-on): Likewise.
101187         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
101188         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
101189         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
101190         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
101191         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
101192         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101193         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
101194         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
101195         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
101196         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
101197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
101198         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
101199         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
101200         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
101201         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
101202         * m4/readutmp.m4 (gl_READUTMP): Likewise.
101203         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
101204         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
101205         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101206         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
101207         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
101208         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
101209         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
101210         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
101211         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
101212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
101213         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
101214         so that lock.m4 can be used in gettext without extensions module.
101216 2007-09-11  Bruno Haible  <bruno@clisp.org>
101218         * m4/isc-posix.m4: Remove file.
101219         Suggested by Eric Blake.
101221 2007-09-11  Eric Blake  <ebb9@byu.net>
101223         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
101225 2007-09-10  Bruno Haible  <bruno@clisp.org>
101227         * posix-modules: Fix typo in error message.
101228         Reported by Matt <mkraai@beckman.com>.
101230 2007-09-09  Bruno Haible  <bruno@clisp.org>
101232         * doc/functions/getdelim.texi: Update list of platforms lacking the
101233         function.
101234         * doc/functions/getline.texi: Likewise.
101236 2007-09-09  Jim Meyering  <jim@meyering.net>
101238         * lib/hash.c (hash_initialize): Detect calloc failure.
101239         Reported by Bruno Haible.
101241 2007-09-09  Bruno Haible  <bruno@clisp.org>
101243         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
101244         malloc or realloc fails.
101246 2007-09-09  Bruno Haible  <bruno@clisp.org>
101248         * modules/getcwd (Depends-on): Add malloc-posix.
101249         * modules/glob (Depends-on): Likewise.
101250         * modules/putenv (Depends-on): Likewise.
101251         * modules/strdup (Depends-on): Likewise.
101252         * modules/getdelim (Depends-on): Add realloc-posix.
101253         * modules/read-file (Depends-on): Likewise.
101255 2007-09-09  Bruno Haible  <bruno@clisp.org>
101257         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101258         (gl_FUNC_MALLOC_POSIX): Require it.
101259         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101260         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101261         * modules/realloc (Files): Add m4/malloc.m4.
101262         * modules/calloc (Files): Likewise.
101264 2007-09-09  Bruno Haible  <bruno@clisp.org>
101266         * modules/malloc-posix: New file.
101267         * modules/malloc (Depends-on): Add malloc-posix.
101268         * lib/malloc.c: Include errno.h.
101269         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101270         and a POSIX-compatible malloc into a single function. Set ENOMEM
101271         when returning NULL.
101272         * m4/malloc.m4: New file.
101273         * doc/functions/malloc.texi: Mention the malloc-posix module.
101274         * lib/stdlib_.h (malloc): New declaration.
101275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101276         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101277         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101278         and HAVE_MALLOC_POSIX.
101280 2007-09-09  Bruno Haible  <bruno@clisp.org>
101282         * modules/realloc-posix: New file.
101283         * modules/realloc (Depends-on): Add realloc-posix.
101284         * lib/realloc.c: Include errno.h.
101285         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101286         and a POSIX-compatible realloc into a single function. Set ENOMEM
101287         when returning NULL.
101288         * m4/realloc.m4: New file.
101289         * doc/functions/realloc.texi: Mention the realloc-posix module.
101290         * lib/stdlib_.h (realloc): New declaration.
101291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101292         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101293         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101294         and HAVE_REALLOC_POSIX.
101296 2007-09-09  Bruno Haible  <bruno@clisp.org>
101298         * modules/calloc-posix: New file.
101299         * modules/calloc (Depends-on): Add calloc-posix.
101300         * lib/calloc.c: Include errno.h.
101301         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101302         and a POSIX-compatible calloc into a single function. Set ENOMEM
101303         when returning NULL.
101304         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101305         * doc/functions/calloc.texi: Mention the calloc-posix module.
101306         * lib/stdlib_.h (calloc): New declaration.
101307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101308         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101309         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101310         and HAVE_CALLOC_POSIX.
101312 2007-09-09  Bruno Haible  <bruno@clisp.org>
101314         Allow for modules to show an arbitrary notice.
101315         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101316         * gnulib-tool: New option --extract-notice.
101317         (func_usage): Document it.
101318         (sed_extract_prog): Update.
101319         (func_get_notice): New function.
101320         (func_modules_notice): New function.
101321         (func_import, func_create_testdir): Invoke it.
101322         Suggested by Jim Meyering.
101324 2007-09-09  Bruno Haible  <bruno@clisp.org>
101326         * gnulib-tool: New options --verbose, --quiet.
101327         (func_usage): Document them.
101328         (verbose): New variable.
101329         (func_execute_command): New function.
101330         (func_import): Don't show the module list and the file list if
101331         $verbose < 0.
101332         (func_create_testdir): Likewise. Use func_execute_command.
101333         (func_create_megatestdir): Use func_execute_command.
101335 2007-09-08  Bruno Haible  <bruno@clisp.org>
101337         * gnulib-tool (func_import): Prefer rsync over wget when available,
101338         for fetching the PO files.
101340 2007-09-08  Bruno Haible  <bruno@clisp.org>
101342         * posix-modules: New file. Portions copied from gnulib-tool.
101343         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101345 2007-09-08  Jim Meyering  <jim@meyering.net>
101347         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101348         * lib/fpending.h: Rename from __fpending.h.
101349         * lib/fpending.c: Rename from __fpending.c.
101350         Include "fpending.h", not "__fpending.h".
101351         * lib/__fpending.h, lib/__fpending.c: Remove files.
101352         * modules/fpending (Files): Reflect new file names.
101353         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101355 2007-09-08  Bruno Haible  <bruno@clisp.org>
101357         * m4/inttypes-h.m4: Remove stub file.
101359 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101361         * doc/headers/stdint.texi: Discuss #include_next issue.
101363 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101365         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101367 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101369         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101370         in variable name.
101372 2007-09-03  Jim Meyering  <jim@meyering.net>
101374         New module: git-version-gen.
101375         * modules/git-version-gen: New file.
101377         Import changes from coreutils for bootstrap script.
101379         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101381         bootstrap: uses rsync to download the .po files
101382         * build-aux/bootstrap (po_download_command_format): New global.
101383         (download_po_files): Use rsync.
101384         (update_po_files): Don't remove .po files after download,
101385         so future rsync runs can take advantage of the copies.
101387         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101389         Solve the unnecessary-.po-file-regeneration problem once and for all.
101390         * build-aux/bootstrap (download_po_files): New function, renamed from
101391         get_translations.  Now, downloads, but doesn't update LINGUAS.
101392         (update_po_files): New function.
101394         bootstrap: Ignore more.
101395         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101396         uniwidth to e.g., lib/.gitignore.
101397         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101399         * build-aux/bootstrap: New setting: vc_ignore.
101400         (insert_sorted_if_absent): Create $file if absent.
101401         Adapt to new, possibly empty, list: $vc_ignore.
101403         bootstrap: generate more ignorable names
101404         * build-aux/bootstrap (slurp): When generating ignorable names,
101405         also map .sin to .sed, .gperf to .c, and .y to .c.
101407 2007-09-03  Jim Meyering  <jim@meyering.net>
101409         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101410         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101412 2007-09-02  Bruno Haible  <bruno@clisp.org>
101414         Fix mis-recognition of 'mcs' on QNX 6.
101415         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101416         output contains the string "Mono".
101417         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101418         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101420 2007-09-01  Bruno Haible  <bruno@clisp.org>
101422         Fix collision between uniwidth/* and linebreak modules.
101423         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101424         u32_width): Remove declarations.
101425         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101426         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101427         streq3, streq2, streq1, streq0): Remove functions.
101428         (STREQ): Remove macro.
101429         (is_cjk_encoding): Remove function.
101430         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101431         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101432         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101433         * NEWS: Document the change.
101435 2007-09-01  Bruno Haible  <bruno@clisp.org>
101437         * lib/streq.h: Add double-inclusion guard.
101439 2007-09-01  Karl Berry  <karl@gnu.org>
101441         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101443 2007-08-28  Jim Meyering  <jim@meyering.net>
101445         Rename mreadlink_with_size to areadlink_with_size.
101446         * NEWS: Document the change.
101447         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101448         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101449         * lib/mreadlink.h: Rename this to...
101450         * lib/areadlink.h: ...this.
101451         * modules/mreadlink-with-size: Rename this to...
101452         * modules/areadlink-with-size: ...this.
101453         * lib/canonicalize.c: Reflect the renaming.
101454         * modules/canonicalize: Likewise.
101456 2007-08-26  Bruno Haible  <bruno@clisp.org>
101458         * gnulib-tool (func_import): When deciding which files to remove,
101459         consider also dangling symbolic links.
101460         Reported by Eric Blake.
101462 2007-08-26  Bruno Haible  <bruno@clisp.org>
101464         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101466 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101468         * lib/readline.c: Don't include getline.h, the prototype is now
101469         found in stdio.h.
101471 2007-08-23  Jim Meyering  <jim@meyering.net>
101473         Getdelim touchup.
101474         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101475         around the funlockfile call, since funlockfile never sets errno.
101476         Don't set errno upon failed realloc.
101478 2007-08-22  Eric Blake  <ebb9@byu.net>
101480         Getline touchups.
101481         * lib/getdelim.c (getdelim): Revert regression that required *n to
101482         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101483         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101484         getdelim, rather than whether implementation is missing.
101485         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101486         * lib/stdio_.h (getline): Also declare if replacement is
101487         required.
101488         * doc/functions/getdelim.texi: New file.
101489         * doc/functions/getline.texi: Likewise.
101490         * doc/gnulib.texi (Function Substitutes): Add new files.
101491         Reported by Bruno Haible.
101493 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101495         * users.txt: Add Guile.
101497 2007-08-22  Eric Blake  <ebb9@byu.net>
101499         * tests/test-getdelim.c (main): Use remove, not unlink.
101500         * tests/test-getline.c (main): Likewise.
101502         Move getline and getdelim into stdio.h, per POSIX 200x.
101503         * modules/getline (Files): Remove getline.h.
101504         (Depends-on): Add stdio.
101505         (configure.ac): Add module indicator.
101506         * modules/getdelim (Files): Remove getdelim.h.
101507         (Depends-on): Add stdio.
101508         (configure.ac): Add module indicator.
101509         * modules/stdio (Makefile.am): Work with new indicators.
101510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101511         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101512         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101513         * lib/getdelim.h: Delete.
101514         * lib/getline.h: Delete.
101515         * lib/stdio_.h (getdelim, getline): Declare.
101516         * modules/getdelim-tests: New module.
101517         * modules/getline-tests: Likewise.
101518         * tests/test-getdelim.c: New file.
101519         * tests/test-getline.c: Likewise.
101520         * NEWS: Document the change.
101521         * lib/getline.c: Update choice of header.
101522         * lib/csharpcomp.c: Likewise.
101523         * lib/getpass.c: Likewise.
101524         * lib/javacomp.c: Likewise.
101525         * lib/javaversion.c: Likewise.
101526         * lib/yesno.c: Likewise.
101527         * lib/getdelim.c: Likewise.
101528         (getdelim): Set errno on failure, and avoid memory leak.
101530 2007-08-19  Bruno Haible  <bruno@clisp.org>
101532         * modules/closein (Depends-on): Add freadahead.
101533         * lib/closein.c: Include freadahead.h.
101534         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101535         is zero.
101537 2007-08-19  Bruno Haible  <bruno@clisp.org>
101539         * modules/freadahead-tests: New file.
101540         * tests/test-freadahead.sh: New file.
101541         * tests/test-freadahead.c: New file.
101543         * modules/freadahead: New file.
101544         * lib/freadahead.h: New file.
101545         * lib/freadahead.c: New file.
101546         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101547         fbufmode, fpurge, freadable, fwritable.
101549 2007-08-19  Eric Blake  <ebb9@byu.net>
101551         Test yesno in combination with closein.
101552         * lib/yesno.c (yesno): Document use of stdin.
101553         * modules/yesno-tests (Files): New module.
101554         * tests/test-yesno.c (main): New file.
101555         * tests/test-yesno.sh: Likewise.
101557 2007-08-19  Bruno Haible  <bruno@clisp.org>
101559         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101560         * lib/fseeko.c (rpl_fseeko): Likewise.
101561         * lib/fseterr.c (fseterr): Likewise.
101563 2007-08-19  Bruno Haible  <bruno@clisp.org>
101565         * tests/test-lseek.c (main): Disable a test for BeOS.
101566         * doc/functions/lseek.texi: Document the BeOS bug.
101568 2007-08-19  Bruno Haible  <bruno@clisp.org>
101569             Eric Blake  <ebb9@byu.net>
101571         * lib/lseek.c: Include <sys/stat.h>.
101572         (rpl_lseek): Add workaround code also for Unix platforms.
101573         Needed for BeOS.
101574         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101575         * doc/functions/lseek.texi: Document BeOS definiency.
101577 2007-08-18  Bruno Haible  <bruno@clisp.org>
101579         * modules/fstrcmp-tests: New file.
101580         * tests/test-fstrcmp.c: New file.
101582 2007-08-18  Bruno Haible  <bruno@clisp.org>
101584         * modules/fstrcmp: New file, from GNU gettext with modifications.
101585         * lib/fstrcmp.h: New file, from GNU gettext.
101586         * lib/fstrcmp.c: New file, from GNU gettext.
101587         * MODULES.html.sh (String handling): Add fstrcmp.
101589 2007-08-18  Bruno Haible  <bruno@clisp.org>
101591         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101592         'bool'.
101593         (diag, compareseq): Remove const from the ctxt argument.
101594         (USE_HEURISTIC): Undefine at the end.
101596 2007-08-18  Jim Meyering  <jim@meyering.net>
101598         New file: lib/idcache.h
101599         * NEWS: Mention the addition.
101600         * modules/idcache (Files): Add lib/idcache.h
101601         * lib/idcache.c: Include "idcache.h".
101602         Don't include <sys/types.h>.
101603         Add a FIXME comment.
101604         Move file-scoped "static" declarations to the top.
101605         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101607 2007-08-17  Bruno Haible  <bruno@clisp.org>
101608         and Paul Eggert  <eggert@cs.ucla.edu>
101610         * MODULES.html.sh: Add diffseq.
101611         * modules/diffseq: New file.
101612         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101613         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101615 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101617         Import changes from coreutils for bootstrap script.
101619         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101621         * build-aux/bootstrap (slurp): Work even in environments where
101622         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101623         current code does not slurp files whose names start with ".", and
101624         this looks like it might be a troublesome area.
101626         2007-07-11  Jim Meyering  <jim@meyering.net>
101628         If there's a GPL vN copyright comment, require that N == 3.
101630         2007-07-08  Jim Meyering  <jim@meyering.net>
101632         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101633         * build-aux/bootstrap (mam_template): Move definition out of loop.
101635         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101637         * build-aux/bootstrap (symlink_to_dir): Rename function from
101638         symlink_to_gnulib.  Add a directory parameter.  Update all
101639         callers.
101640         (cp_mark_as_generated): Also check for -- and link to -- files in
101641         gl/.
101643         2007-07-08  Jim Meyering  <jim@meyering.net>
101645         Adapt to deeper hierarchy in gnulib.
101646         * build-aux/bootstrap (symlink_to_dir): If the destination
101647         directory doesn't exist, create it. This is required at least for
101648         "lib/uniwidth/cjk.h".
101650         2007-05-15  Jim Meyering  <jim@meyering.net>
101652         * build-aux/bootstrap: Now that generated Makefile.am files
101653         are no longer under version control, they must be created at
101654         bootstrap time.
101656 2007-08-14  Ben Pfaff  <blp@gnu.org>
101658         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101660 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101662         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101663         given the changes below.
101664         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101665         even on hosts that have padding bits beyond the supported 64.
101667 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101669         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101670         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101671         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101672         depends on it.
101673         (xstrtol_error): Remove.
101674         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101675         but with a different signature.
101676         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101677         * lib/xstrtol-error.c: Include exitfail.h.
101678         (xstrtol_fatal): New function, with a different signature from the
101679         old xstrtol_error, so that the caller need not worry about passing
101680         in an exit status, or about storage management of the option argument.
101681         (xstrtol_error): Now a static function.  Redo signature to
101682         implement xstrtol_fatal.  Output the correct number of hyphens in
101683         front of the option so that the caller need not worry about
101684         storage management.
101685         (N_): New macro.
101686         (_): Remove; not used now.
101687         * modules/xstrtol: Depend on getopt.
101688         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101689         of old STRTOL_FATAL_ERROR macro.
101690         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101691         of test program.
101692         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101693         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101695 2007-08-08  Eric Blake  <ebb9@byu.net>
101697         * lib/xstrtol-error.c: Add missing include.
101699         Move xstrtol messages into gnulib domain, when --pobase is used.
101700         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101701         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101702         * modules/xstrtol (Files): Distribute new file.
101703         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101704         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101705         * tests/test-xstrtol.c: ...into new file.
101706         * tests/test-xstrtoul.c: Also test xstrtoul.
101707         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101708         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101709         * tests/test-xstrtol.sh: Drive the tests.
101710         * tests/test-xstrtoimax.sh: Likewise.
101711         * tests/test-xstrtoumax.sh: Likewise.
101712         * modules/xstrtol-tests: New module.
101713         * modules/xstrtoimax-tests: Likewise.
101714         * modules/xstrtoumax-tests: Likewise.
101716 2007-08-08  Jim Meyering  <jim@meyering.net>
101718         New function: mfile_name_concat.
101719         * lib/filenamecat.c (mfile_name_concat): New function, just like
101720         file_name_concat, but return NULL upon failure rather than exiting
101721         with a diagnostic.
101722         * lib/filenamecat.h: Declare it.
101724 2007-08-07  Bruno Haible  <bruno@clisp.org>
101726         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101727         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101728         warning from gcc.
101729         Reported by Eric Blake.
101731 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101733         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101734         * modules/crypto/arcfour (License): Likewise.
101735         * modules/crypto/des-tests (License): Likewise.
101736         * modules/crypto/gc-arctwo-tests (License): Likewise.
101737         * modules/crypto/gc-des-tests (License): Likewise.
101738         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101739         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101740         * modules/crypto/gc-md2-tests (License): Likewise.
101741         * modules/crypto/gc-md4-tests (License): Likewise.
101742         * modules/crypto/gc-md5-tests (License): Likewise.
101743         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101744         * modules/crypto/gc-rijndael-tests (License): Likewise.
101745         * modules/crypto/gc-sha1-tests (License): Likewise.
101746         * modules/crypto/gc-tests (License): Likewise.
101747         * modules/crypto/hmac-md5 (License): Likewise.
101748         * modules/crypto/hmac-sha1 (License): Likewise.
101749         * modules/crypto/md2-tests (License): Likewise.
101750         * modules/crypto/md4-tests (License): Likewise.
101751         * modules/crypto/md5 (License): Likewise.
101752         * modules/crypto/rijndael (License): Likewise.
101753         * modules/crypto/sha1 (License): Likewise.
101754         * modules/memxor (License): Likewise.
101756 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101757         and Bruno Haible  <bruno@clisp.org>
101759         * NEWS: Describe interface changes to human, xstrtol.
101760         * lib/human.h: Include <xstrtol.h>.
101761         (human_options): Return enum strtol_error, not int.  Remove
101762         bool arg; take int * instead.
101763         * lib/human.c: Don't include "gettext.h".
101764         (_): Remove; no longer used.
101765         Don't include <xstrtol.h>, since human.h does it.
101766         (human_options): Adjust to abovementioned interface changes.
101767         Do not report error to stderr; that's now the caller's
101768         responsibility.
101769         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101770         interface change.
101771         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101772         Str, Argument_type_string.  All uses changed.  Put " argument"
101773         in diagnostics to make them clearer.  Change wording of suffix
101774         message for clarity.
101775         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101776         Argument_type_string.
101777         (STRTOL_FATAL_WARN): Remove; no longer used.
101778         * modules/human (Depends-on): Remove gettext-h.
101780 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101782         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101784 2007-07-31  Bruno Haible  <bruno@clisp.org>
101786         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101787         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101788         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101790 2007-07-31  Bruno Haible  <bruno@clisp.org>
101792         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101793         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101795 2007-07-30  Bruno Haible  <bruno@clisp.org>
101797         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101798         * modules/c-ctype (License): Likewise.
101799         * modules/c-strcase (License): Likewise.
101800         * modules/check-version (License): Likewise.
101801         * modules/iconv (License): Likewise.
101802         * modules/iconv_open (License): Likewise.
101803         * modules/read-file (License): Likewise.
101804         * modules/striconv (License): Likewise.
101805         * modules/strverscmp (License): Likewise.
101806         * modules/vasprintf (License): Likewise.
101807         * modules/crypto/des (License): Likewise.
101808         * modules/crypto/gc (License): Likewise.
101809         * modules/crypto/gc-arcfour (License): Likewise.
101810         * modules/crypto/gc-arctwo (License): Likewise.
101811         * modules/crypto/gc-des (License): Likewise.
101812         * modules/crypto/gc-hmac-md5 (License): Likewise.
101813         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101814         * modules/crypto/gc-md2 (License): Likewise.
101815         * modules/crypto/gc-md4 (License): Likewise.
101816         * modules/crypto/gc-md5 (License): Likewise.
101817         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101818         * modules/crypto/gc-random (License): Likewise.
101819         * modules/crypto/gc-rijndael (License): Likewise.
101820         * modules/crypto/gc-sha1 (License): Likewise.
101821         * modules/crypto/md2 (License): Likewise.
101822         * modules/crypto/md4 (License): Likewise.
101824 2007-07-30  Jim Meyering  <jim@meyering.net>
101826         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101827         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101828         it has valid stat data.  This bug would cause du not to count the
101829         sizes of inaccessible directories.
101830         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101831         in <http://bugzilla.redhat.com/250077>.
101833 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101834             Bruno Haible  <bruno@clisp.org>
101836         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101837         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101838         #include_next, gives a diagnostic about it, but reports no error in
101839         the exit code.
101840         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101842 2007-07-24  Ben Pfaff  <blp@gnu.org>
101844         Improve name: "count-one-bits" is better than "popcount".
101845         * MODULES.html.sh: Update name.
101846         * lib/popcount.h: Renamed lib/count-one-bits.h.
101847         (popcount): Renamed count_one_bits.
101848         (popcountl): Renamed count_one_bits_l.
101849         (popcountll): Renamed count_one_bits_ll.
101850         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101851         * modules/popcount: Renamed module/count-one-bits.
101852         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101853         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101855 2007-07-23  Ben Pfaff  <blp@gnu.org>
101857         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101858         better code generation, and add U to large constants to avoid
101859         warnings, in non-GCC case.
101860         Suggested by Bruno Haible.
101862 2007-07-23  Ben Pfaff  <blp@gnu.org>
101864         * lib/popcount.h: Use verify_true instead of if...abort.
101865         * modules/popcount: Depend on verify module.
101866         Suggested by Jim Meyering.
101868 2007-07-23  Bruno Haible  <bruno@clisp.org>
101870         * gnulib-tool (func_import): Create a .cvsignore file also when the
101871         directory is not yet in CVS but the toplevel directory is. When
101872         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101873         Reported by Karl Berry.
101875 2007-07-22  Ben Pfaff  <blp@gnu.org>
101877         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101878         case.
101879         Suggested by Eric Blake.
101881 2007-07-22  Ben Pfaff  <blp@gnu.org>
101883         New module: popcount.
101884         * MODULES.html.sh: Add popcount.
101885         * modules/popcount: New file.
101886         * modules/popcount-tests: New file.
101887         * tests/test-popcount.c: New file.
101888         * lib/popcount.h: New file.
101889         * m4/popcount.m4: New file.
101891 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101893         * build-aux/announce-gen: Update to GPLv3.
101895         * build-aux/config.guess: Update from config.
101897 2007-07-21  Bruno Haible  <bruno@clisp.org>
101899         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101900         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101902 2007-07-20  Jim Meyering  <jim@meyering.net>
101904         * check-module: Diagnose a self-dependency.
101906 2007-07-19  Bruno Haible  <bruno@clisp.org>
101908         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101909         empty.
101910         Reported by Eric Blake.
101912 2007-07-18  Bruno Haible  <bruno@clisp.org>
101914         * gnulib-tool: New options --po-base, --po-domain.
101915         (func_usage): Document them.
101916         (pobase, po_domain): New variables.
101917         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101918         DEFAULT_TEXT_DOMAIN.
101919         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101920         (func_import): Consider pobase and po_domain. Create a po/ directory.
101921         (func_create_testdir): Set pobase and po_domain to empty.
101922         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101923         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101925 2007-07-18  Bruno Haible  <bruno@clisp.org>
101927         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101928         EXTRA_DIST augmentation for files in build-aux/.
101930 2007-07-16  Bruno Haible  <bruno@clisp.org>
101932         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101933         * modules/getdelim (License): Likewise.
101935 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101937         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101938         * modules/d-type (License): Likewise.
101939         * modules/extensions (License): Likewise.
101940         * modules/fnmatch (License): Likewise.
101941         * modules/fseeko (License): Likewise.
101942         * modules/getaddrinfo (License): Likewise.
101943         * modules/getline (License): Likewise.
101944         * modules/getlogin_r (License): Likewise.
101945         * modules/getpass (License): Likewise.
101946         * modules/gettimeofday (License): Likewise.
101947         * modules/glob (License): Likewise.
101948         * modules/inet_ntop (License): Likewise.
101949         * modules/malloc (License): Likewise.
101950         * modules/malloca (License): Likewise.
101951         * modules/memmem (License): Likewise.
101952         * modules/mempcpy (License): Likewise.
101953         * modules/memset (License): Likewise.
101954         * modules/minmax (License): Likewise.
101955         * modules/mktime (License): Likewise.
101956         * modules/netinet_in (License): Likewise.
101957         * modules/pathmax (License): Likewise.
101958         * modules/poll (License): Likewise.
101959         * modules/regex (License): Likewise.
101960         * modules/snprintf (License): Likewise.
101961         * modules/stdbool (License): Likewise.
101962         * modules/stdint (License): Likewise.
101963         * modules/stdio (License): Likewise.
101964         * modules/strcase (License): Likewise.
101965         * modules/strcasestr (License): Likewise.
101966         * modules/strdup (License): Likewise.
101967         * modules/string (License): Likewise.
101968         * modules/strndup (License): Likewise.
101969         * modules/strnlen (License): Likewise.
101970         * modules/strpbrk (License): Likewise.
101971         * modules/strptime (License): Likewise.
101972         * modules/strsep (License): Likewise.
101973         * modules/sys_select (License): Likewise.
101974         * modules/sys_socket (License): Likewise.
101975         * modules/sys_stat (License): Likewise.
101976         * modules/sys_time (License): Likewise.
101977         * modules/time (License): Likewise.
101978         * modules/time_r (License): Likewise.
101979         * modules/timegm (License): Likewise.
101980         * modules/unistd (License): Likewise.
101981         * modules/vsnprintf (License): Likewise.
101982         * modules/wctype (License): Likewise.
101984 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101986         * modules/argz (License): LGPLv2+.
101988 2007-07-15  Karl Berry  <karl@gnu.org>
101990         * doc/gnulib.texi: revise node structure per new fdl.texi.
101992 2007-07-14  Bruno Haible  <bruno@clisp.org>
101994         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101995         the output file.
101996         * lib/uniname/uninames.h: Regenerated.
101998 2007-07-14  Karl Berry  <karl@gnu.org>
102000         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
102001         omitting sectioning and index commands.
102003 2007-07-13  Bruno Haible  <bruno@clisp.org>
102005         New gnulib-tool option --more-symlinks.
102006         * gnulib-tool (func_usage): Document --more-symlinks.
102007         (do_copyrights): New variable.
102008         Recognize option --more-symlinks.
102009         (func_import): Don't add a copyright notice transform to
102010         sed_transform_lib_file if do_copyrights is empty.
102012 2007-07-13  Bruno Haible  <bruno@clisp.org>
102014         * lib/vasnprintf.c (decimal_point_char): Define also if
102015         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
102016         && !NEED_PRINTF_DIRECTIVE_A.
102017         Reported by Clemens Koller <clemens.koller@anagramm.de> via
102018         Gary V. Vaughan <gary@gnu.org>.
102020 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
102022         * lib/inttypes_.h: Undo previous change, since it was fixed
102023         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
102025 2007-07-13  Bruno Haible  <bruno@clisp.org>
102027         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
102028         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
102030 2007-07-13  Jim Meyering  <jim@meyering.net>
102032         df: Don't fail for Tru64's "file-on-file mount".
102033         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
102034         so we fall through and use statfs instead.  Details here:
102035         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
102036         Reported by Albert Chin.
102038 2007-07-13  Bruno Haible  <bruno@clisp.org>
102040         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
102041         * modules/configmake (License): Likewise.
102042         * modules/gettext (License): Likewise.
102043         * modules/gettext-h (License): Likewise.
102044         * modules/include_next (License): Likewise.
102045         * modules/link-warning (License): Likewise.
102046         * modules/localcharset (License): Likewise.
102047         * modules/localename (License): Likewise.
102048         * modules/lock (License): Likewise.
102049         * modules/relocatable-lib-lgpl (License): Likewise.
102050         * modules/size_max (License): Likewise.
102051         * modules/vasnprintf (License): Likewise.
102052         * modules/wchar (License): Likewise.
102053         * modules/xsize (License): Likewise.
102055 2007-07-13  Bruno Haible  <bruno@clisp.org>
102057         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
102058         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
102060 2007-07-12  Bruno Haible  <bruno@clisp.org>
102062         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
102063         in the modules files.
102065 2007-07-11  Karl Berry  <karl@gnu.org>
102067         * MODULES.html.sh (func_module): use
102068          sed -e '\|^'"${includefile}"'$|d'
102069          instead of /.../d, to avoid errors on $includefile's containing /.
102071 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102073         * gnulib-tool (func_import): Avoid duplication of --avoid
102074         statements
102075         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
102076         names to `_' in variable names.
102078 2007-07-10  Eric Blake  <ebb9@byu.net>
102080         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
102081         * NEWS: Document this change.
102083 2007-07-08  Bruno Haible  <bruno@clisp.org>
102085         Update to Unicode 5.0.
102086         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
102087         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
102088         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
102089         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
102090         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
102091         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
102092         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
102093         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
102094         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
102095         U+10A3F, U+1D242..U+1D244.
102096         (nonspacing_table_ind): Update.
102097         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
102098         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
102100 2007-07-08  Bruno Haible  <bruno@clisp.org>
102102         Update to Unicode 5.0.
102103         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
102104         code transform. Extend the name index field of unicode_name_to_code and
102105         unicode_code_to_name from 16 to 24 bits.
102106         * lib/uniname/uniname.c (unicode_character_name,
102107         unicode_name_character): Add the range 0x12xxx to the code transform.
102108         * lib/uniname/uninames.h: Regenerated.
102109         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
102111 2007-07-07  Bruno Haible  <bruno@clisp.org>
102113         * modules/wcwidth-tests: New file.
102114         * tests/test-wcwidth.c: New file.
102116         Work around MacOS X wcwidth() bug.
102117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
102118         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
102119         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
102120         original wcwidth in non-UTF-8 locales.
102121         * modules/wcwidth (Depends-on): Add localcharset, streq,
102122         uniwidth/width.
102123         * doc/functions/wcwidth.texi: Update.
102125 2007-07-07  Bruno Haible  <bruno@clisp.org>
102127         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
102128         (wcwidth): New declaration.
102129         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
102130         macros.
102131         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
102132         here. Prepare for creating <wchar.h> unconditionally.
102133         * modules/wchar (Depends-on): Add link-warning.
102134         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
102135         REPLACE_WCWIDTH, and GL_LINK_WARNING.
102136         * lib/wcwidth.h: Remove file.
102137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
102138         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
102139         * modules/wcwidth (Files): Remove lib/wcwidth.h.
102140         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
102141         (Include): Replace wcwidth.h with <wchar.h>.
102142         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
102143         * lib/mbchar.h: Don't include wcwidth.h.
102144         * lib/mbswidth.c: Likewise.
102145         * NEWS: Mention the change.
102147 2007-07-07  Bruno Haible  <bruno@clisp.org>
102149         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
102150         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
102151         definition with an external declaration.
102152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
102153         defined as a function. Remove AC_C_INLINE requirement.
102154         * modules/wcwidth (Files): Add lib/wcwidth.c.
102155         (Makefile.am): Remove redundant statement.
102157 2007-07-07  Bruno Haible  <bruno@clisp.org>
102159         * MODULES.html.sh (Unicode string functions): Add the new modules.
102161         * tests/uniwidth/test-u32-strwidth.c: New file.
102162         * modules/uniwidth/u32-strwidth-tests: New file.
102164         * lib/uniwidth/u32-strwidth.c: New file.
102165         * modules/uniwidth/u32-strwidth: New file.
102167         * tests/uniwidth/test-u16-strwidth.c: New file.
102168         * modules/uniwidth/u16-strwidth-tests: New file.
102170         * lib/uniwidth/u16-strwidth.c: New file.
102171         * modules/uniwidth/u16-strwidth: New file.
102173         * tests/uniwidth/test-u8-strwidth.c: New file.
102174         * modules/uniwidth/u8-strwidth-tests: New file.
102176         * lib/uniwidth/u8-strwidth.c: New file.
102177         * modules/uniwidth/u8-strwidth: New file.
102179         * tests/uniwidth/test-u32-width.c: New file.
102180         * modules/uniwidth/u32-width-tests: New file.
102182         * lib/uniwidth/u32-width.c: New file.
102183         * modules/uniwidth/u32-width: New file.
102185         * tests/uniwidth/test-u16-width.c: New file.
102186         * modules/uniwidth/u16-width-tests: New file.
102188         * lib/uniwidth/u16-width.c: New file.
102189         * modules/uniwidth/u16-width: New file.
102191         * tests/uniwidth/test-u8-width.c: New file.
102192         * modules/uniwidth/u8-width-tests: New file.
102194         * lib/uniwidth/u8-width.c: New file.
102195         * modules/uniwidth/u8-width: New file.
102197         * tests/uniwidth/test-uc_width.c: New file.
102198         * modules/uniwidth/width-tests: New file.
102200         * lib/uniwidth/width.c: New file, from GNU libiconv.
102201         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
102202         * modules/uniwidth/width: New file.
102204         * lib/uniwidth.h: New file, from GNU libiconv.
102205         * modules/uniwidth/base: New file.
102207 2007-07-07  Bruno Haible  <bruno@clisp.org>
102209         * lib/uniname.h: New file, from GNU gettext.
102210         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
102211         * lib/uniname/uninames.h: New file, from GNU gettext.
102212         * lib/uniname/uniname.c: New file, from GNU gettext.
102213         * tests/uniname/test-uninames.sh: New file.
102214         * tests/uniname/test-uninames.c: New file, from GNU gettext.
102215         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
102216         * modules/uniname/base: New file.
102217         * modules/uniname/uniname: New file.
102218         * modules/uniname/uniname-tests: New file.
102219         * MODULES.html.sh (Unicode string functions): Add the new modules.
102221 2007-07-06  Bruno Haible  <bruno@clisp.org>
102223         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
102225 2007-07-06  Bruno Haible  <bruno@clisp.org>
102227         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
102228         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
102229         includes <cygwin/sys_time.h> which includes <sys/select.h> which
102230         include <sys/time.h>.
102231         Reported by Eric Blake.
102233 2007-07-06  Eric Blake  <ebb9@byu.net>
102235         Fix testing canonicalize on cygwin.
102236         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102237         Revert patch from 2007-06-19.
102238         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
102239         canonicalize module is also in use.
102240         * tests/test-canonicalize.c: New file.
102241         * tests/test-canonicalize.sh: Likewise.
102242         * modules/canonicalize-tests: Likewise.
102244 2007-07-06  Jim Meyering  <jim@meyering.net>
102246         * lib/getugroups.c (getugroups): Detect getgrent failure.
102247         Adjust comment to reflect reality: this function may return -1.
102249 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
102251         * build-aux/bootstrap (TP_URL,get_translations): Update to use
102252         the new TP address.
102253         (usage): Fix typo
102254         (gnulib_mk): New variable.
102256 2007-07-05  Jim Meyering  <jim@meyering.net>
102258         Don't let endgrent clobber errno, no matter how improbable.
102259         * lib/getugroups.c (getugroups): Save and restore errno around
102260         endgrent call.
102262         Close the group DB even when failing with 2^31 or more members.
102263         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102265 2007-07-04  Jim Meyering  <jim@meyering.net>
102267         * lib/getugroups.h: New file.
102268         * lib/getugroups.c: Include "getugroups.h".
102269         Remove uses of "register" keyword.
102270         Move local variable, "cp", down into scope where used.
102271         Give "username" parameter the "const" attribute.
102272         * modules/getugroups (Files): Add lib/getugroups.h
102274 2007-07-04  Karl Berry  <karl@gnu.org>
102276         * MODULES.html.sh (func_all_modules): Complete rename of
102277         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102279 2007-07-02  Bruno Haible  <bruno@clisp.org>
102281         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102282         mode, when inttypes.h comes from gnulib.
102283         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102285 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102287         * NEWS: Mention lgpl module name change.
102289         * modules/lgpl-2.1: Renamed from lgpl.
102291         * NEWS: Mention gpl module name change.
102293         * modules/gpl-3.0: New file, based on gpl-2.0.
102295         * modules/gpl-2.0: Renamed from gpl.
102297         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102298         doc/gpl-2.0.texi.
102300 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102302         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102303         #define __STDC_LIMIT_MACROS temporarily while including
102304         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102305         Problem reported by Joel E. Denny in
102306         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102308 2007-07-01  Bruno Haible  <bruno@clisp.org>
102310         * lib/unistdio.h: New file.
102311         * lib/unistdio/u-asnprintf.h: New file.
102312         * lib/unistdio/u-asprintf.h: New file.
102313         * lib/unistdio/u-printf-args.c: New file.
102314         * lib/unistdio/u-printf-args.h: New file.
102315         * lib/unistdio/u-printf-parse.h: New file.
102316         * lib/unistdio/u-snprintf.h: New file.
102317         * lib/unistdio/u-sprintf.h: New file.
102318         * lib/unistdio/u-vasprintf.h: New file.
102319         * lib/unistdio/u-vsnprintf.h: New file.
102320         * lib/unistdio/u-vsprintf.h: New file.
102321         * lib/unistdio/ulc-asnprintf.c: New file.
102322         * lib/unistdio/ulc-asprintf.c: New file.
102323         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102324         * lib/unistdio/ulc-printf-parse.c: New file.
102325         * lib/unistdio/ulc-snprintf.c: New file.
102326         * lib/unistdio/ulc-sprintf.c: New file.
102327         * lib/unistdio/ulc-vasnprintf.c: New file.
102328         * lib/unistdio/ulc-vasprintf.c: New file.
102329         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102330         * lib/unistdio/ulc-vsnprintf.c: New file.
102331         * lib/unistdio/ulc-vsprintf.c: New file.
102332         * lib/unistdio/u8-asnprintf.c: New file.
102333         * lib/unistdio/u8-asprintf.c: New file.
102334         * lib/unistdio/u8-printf-parse.c: New file.
102335         * lib/unistdio/u8-snprintf.c: New file.
102336         * lib/unistdio/u8-sprintf.c: New file.
102337         * lib/unistdio/u8-vasnprintf.c: New file.
102338         * lib/unistdio/u8-vasprintf.c: New file.
102339         * lib/unistdio/u8-vsnprintf.c: New file.
102340         * lib/unistdio/u8-vsprintf.c: New file.
102341         * lib/unistdio/u8-u8-asnprintf.c: New file.
102342         * lib/unistdio/u8-u8-asprintf.c: New file.
102343         * lib/unistdio/u8-u8-snprintf.c: New file.
102344         * lib/unistdio/u8-u8-sprintf.c: New file.
102345         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102346         * lib/unistdio/u8-u8-vasprintf.c: New file.
102347         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102348         * lib/unistdio/u8-u8-vsprintf.c: New file.
102349         * lib/unistdio/u16-asnprintf.c: New file.
102350         * lib/unistdio/u16-asprintf.c: New file.
102351         * lib/unistdio/u16-printf-parse.c: New file.
102352         * lib/unistdio/u16-snprintf.c: New file.
102353         * lib/unistdio/u16-sprintf.c: New file.
102354         * lib/unistdio/u16-vasnprintf.c: New file.
102355         * lib/unistdio/u16-vasprintf.c: New file.
102356         * lib/unistdio/u16-vsnprintf.c: New file.
102357         * lib/unistdio/u16-vsprintf.c: New file.
102358         * lib/unistdio/u16-u16-asnprintf.c: New file.
102359         * lib/unistdio/u16-u16-asprintf.c: New file.
102360         * lib/unistdio/u16-u16-snprintf.c: New file.
102361         * lib/unistdio/u16-u16-sprintf.c: New file.
102362         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102363         * lib/unistdio/u16-u16-vasprintf.c: New file.
102364         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102365         * lib/unistdio/u16-u16-vsprintf.c: New file.
102366         * lib/unistdio/u32-asnprintf.c: New file.
102367         * lib/unistdio/u32-asprintf.c: New file.
102368         * lib/unistdio/u32-printf-parse.c: New file.
102369         * lib/unistdio/u32-snprintf.c: New file.
102370         * lib/unistdio/u32-sprintf.c: New file.
102371         * lib/unistdio/u32-vasnprintf.c: New file.
102372         * lib/unistdio/u32-vasprintf.c: New file.
102373         * lib/unistdio/u32-vsnprintf.c: New file.
102374         * lib/unistdio/u32-vsprintf.c: New file.
102375         * lib/unistdio/u32-u32-asnprintf.c: New file.
102376         * lib/unistdio/u32-u32-asprintf.c: New file.
102377         * lib/unistdio/u32-u32-snprintf.c: New file.
102378         * lib/unistdio/u32-u32-sprintf.c: New file.
102379         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102380         * lib/unistdio/u32-u32-vasprintf.c: New file.
102381         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102382         * lib/unistdio/u32-u32-vsprintf.c: New file.
102383         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102384         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102385         * tests/unistdio/test-ulc-printf1.h: New file.
102386         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102387         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102388         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102389         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102390         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102391         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102392         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102393         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102394         * tests/unistdio/test-u8-asnprintf1.c: New file.
102395         * tests/unistdio/test-u8-asnprintf1.h: New file.
102396         * tests/unistdio/test-u8-printf1.h: New file.
102397         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102398         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102399         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102400         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102401         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102402         * tests/unistdio/test-u8-vasprintf1.c: New file.
102403         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102404         * tests/unistdio/test-u8-vsprintf1.c: New file.
102405         * tests/unistdio/test-u16-asnprintf1.c: New file.
102406         * tests/unistdio/test-u16-asnprintf1.h: New file.
102407         * tests/unistdio/test-u16-printf1.h: New file.
102408         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102409         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102410         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102411         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102412         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102413         * tests/unistdio/test-u16-vasprintf1.c: New file.
102414         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102415         * tests/unistdio/test-u16-vsprintf1.c: New file.
102416         * tests/unistdio/test-u32-asnprintf1.c: New file.
102417         * tests/unistdio/test-u32-asnprintf1.h: New file.
102418         * tests/unistdio/test-u32-printf1.h: New file.
102419         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102420         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102421         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102422         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102423         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102424         * tests/unistdio/test-u32-vasprintf1.c: New file.
102425         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102426         * tests/unistdio/test-u32-vsprintf1.c: New file.
102427         * modules/unistdio/base: New file.
102428         * modules/unistdio/u-printf-args: New file.
102429         * modules/unistdio/ulc-asnprintf: New file.
102430         * modules/unistdio/ulc-asprintf: New file.
102431         * modules/unistdio/ulc-fprintf: New file.
102432         * modules/unistdio/ulc-printf-parse: New file.
102433         * modules/unistdio/ulc-snprintf: New file.
102434         * modules/unistdio/ulc-sprintf: New file.
102435         * modules/unistdio/ulc-vasnprintf: New file.
102436         * modules/unistdio/ulc-vasprintf: New file.
102437         * modules/unistdio/ulc-vfprintf: New file.
102438         * modules/unistdio/ulc-vsnprintf: New file.
102439         * modules/unistdio/ulc-vsprintf: New file.
102440         * modules/unistdio/u8-asnprintf: New file.
102441         * modules/unistdio/u8-asprintf: New file.
102442         * modules/unistdio/u8-printf-parse: New file.
102443         * modules/unistdio/u8-snprintf: New file.
102444         * modules/unistdio/u8-sprintf: New file.
102445         * modules/unistdio/u8-vasnprintf: New file.
102446         * modules/unistdio/u8-vasprintf: New file.
102447         * modules/unistdio/u8-vsnprintf: New file.
102448         * modules/unistdio/u8-vsprintf: New file.
102449         * modules/unistdio/u8-u8-asnprintf: New file.
102450         * modules/unistdio/u8-u8-asprintf: New file.
102451         * modules/unistdio/u8-u8-snprintf: New file.
102452         * modules/unistdio/u8-u8-sprintf: New file.
102453         * modules/unistdio/u8-u8-vasnprintf: New file.
102454         * modules/unistdio/u8-u8-vasprintf: New file.
102455         * modules/unistdio/u8-u8-vsnprintf: New file.
102456         * modules/unistdio/u8-u8-vsprintf: New file.
102457         * modules/unistdio/u16-asnprintf: New file.
102458         * modules/unistdio/u16-asprintf: New file.
102459         * modules/unistdio/u16-printf-parse: New file.
102460         * modules/unistdio/u16-snprintf: New file.
102461         * modules/unistdio/u16-sprintf: New file.
102462         * modules/unistdio/u16-vasnprintf: New file.
102463         * modules/unistdio/u16-vasprintf: New file.
102464         * modules/unistdio/u16-vsnprintf: New file.
102465         * modules/unistdio/u16-vsprintf: New file.
102466         * modules/unistdio/u16-u16-asnprintf: New file.
102467         * modules/unistdio/u16-u16-asprintf: New file.
102468         * modules/unistdio/u16-u16-snprintf: New file.
102469         * modules/unistdio/u16-u16-sprintf: New file.
102470         * modules/unistdio/u16-u16-vasnprintf: New file.
102471         * modules/unistdio/u16-u16-vasprintf: New file.
102472         * modules/unistdio/u16-u16-vsnprintf: New file.
102473         * modules/unistdio/u16-u16-vsprintf: New file.
102474         * modules/unistdio/u32-asnprintf: New file.
102475         * modules/unistdio/u32-asprintf: New file.
102476         * modules/unistdio/u32-printf-parse: New file.
102477         * modules/unistdio/u32-snprintf: New file.
102478         * modules/unistdio/u32-sprintf: New file.
102479         * modules/unistdio/u32-vasnprintf: New file.
102480         * modules/unistdio/u32-vasprintf: New file.
102481         * modules/unistdio/u32-vsnprintf: New file.
102482         * modules/unistdio/u32-vsprintf: New file.
102483         * modules/unistdio/u32-u32-asnprintf: New file.
102484         * modules/unistdio/u32-u32-asprintf: New file.
102485         * modules/unistdio/u32-u32-snprintf: New file.
102486         * modules/unistdio/u32-u32-sprintf: New file.
102487         * modules/unistdio/u32-u32-vasnprintf: New file.
102488         * modules/unistdio/u32-u32-vasprintf: New file.
102489         * modules/unistdio/u32-u32-vsnprintf: New file.
102490         * modules/unistdio/u32-u32-vsprintf: New file.
102491         * modules/unistdio/ulc-asnprintf-tests: New file.
102492         * modules/unistdio/ulc-vasnprintf-tests: New file.
102493         * modules/unistdio/ulc-vasprintf-tests: New file.
102494         * modules/unistdio/ulc-vsnprintf-tests: New file.
102495         * modules/unistdio/ulc-vsprintf-tests: New file.
102496         * modules/unistdio/u8-asnprintf-tests: New file.
102497         * modules/unistdio/u8-vasnprintf-tests: New file.
102498         * modules/unistdio/u8-vasprintf-tests: New file.
102499         * modules/unistdio/u8-vsnprintf-tests: New file.
102500         * modules/unistdio/u8-vsprintf-tests: New file.
102501         * modules/unistdio/u16-asnprintf-tests: New file.
102502         * modules/unistdio/u16-vasnprintf-tests: New file.
102503         * modules/unistdio/u16-vasprintf-tests: New file.
102504         * modules/unistdio/u16-vsnprintf-tests: New file.
102505         * modules/unistdio/u16-vsprintf-tests: New file.
102506         * modules/unistdio/u32-asnprintf-tests: New file.
102507         * modules/unistdio/u32-vasnprintf-tests: New file.
102508         * modules/unistdio/u32-vasprintf-tests: New file.
102509         * modules/unistdio/u32-vsnprintf-tests: New file.
102510         * modules/unistdio/u32-vsprintf-tests: New file.
102511         * MODULES.html.sh (Unicode string functions): Add the new modules.
102513 2007-07-01  Bruno Haible  <bruno@clisp.org>
102515         * lib/sprintf.c (sprintf): Limit the available length estimation,
102516         to avoid address wraparound.
102517         * lib/vsprintf.c (vsprintf): Likewise.
102518         * modules/sprintf-posix (Dependencies): Add stdint.
102519         * modules/vsprintf-posix (Dependencies): Likewise.
102521 2007-07-01  Bruno Haible  <bruno@clisp.org>
102523         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102524         Windows PATH as well. Conservative double-quoting. Comments.
102526 2007-07-01  Bruno Haible  <bruno@clisp.org>
102527             Eric Blake  <ebb9@byu.net>
102528             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102530         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102531         empty components in $PATH, denoting '.'.
102533 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102535         * gnulib-tool: Fix indentation.
102536         (func_create_megatestdir): Likewise.
102537         Report by Bruno Haible.
102539 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102541         Sync from Automake.
102542         * build-aux/gnupload: Fix shell portability issues with for loops.
102543         Report by Karl Berry.
102545 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102547         * build-aux/maint.mk (POURL): Use translationproject.org.
102549 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102550             Bruno Haible  <bruno@clisp.org>
102552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102553         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102554         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102555         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102556         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102558 2007-06-27  Bruno Haible  <bruno@clisp.org>
102560         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102561         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102563 2007-06-26  Karl Berry  <karl@gnu.org>
102565         * MODULES.html.sh: remove xreadlink-with-size.
102567 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102569         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102570         method that I hope also handles the double-include problem noted
102571         by Bruno Haible in
102572         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102574 2007-06-23  Bruno Haible  <bruno@clisp.org>
102576         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102577         Don't let the 'mostlyclean' target fail if the last subdirectory could
102578         not be removed.
102579         Reported by Karl Berry.
102581 2007-06-23  Bruno Haible  <bruno@clisp.org>
102583         * gnulib-tool (echo): Add a speedier workaround for ksh.
102584         * tests/test-echo.sh: Likewise.
102586 2007-06-23  Bruno Haible  <bruno@clisp.org>
102588         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102589         * tests/test-echo.sh: Likewise.
102591 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102593         * gnulib-tool (IFS): Initialize early, so we don't set it to
102594         empty later.
102595         (self_abspathname): Rewrite algorithm to set it, reindent.
102596         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102597         (func_create_megatestdir): Merge some sed scripts.
102599 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102601         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102602         exposed by Sun Studio 11 cc on Solaris 8.
102604 2007-06-22  Bruno Haible  <bruno@clisp.org>
102606         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102607         backslashes.
102608         * tests/test-echo.sh: New file.
102610 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102612         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102613         simplify `sed_replace_build_aux' scripts, they are portable but
102614         echoing them with `echo' is not.
102615         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102617 2007-06-21  Karl Berry  <karl@gnu.org>
102619         * config/srclist.txt: guess we can't handle the licenses via
102620         srclist at the moment.
102622 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102624         * MODULES.html.sh: Add include_next.
102625         * modules/include_next: New file.
102627 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102629         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102630         INCLUDE_NEXT.
102631         (gl_CHECK_NEXT_HEADERS): New macro.
102632         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102633         the obsolescent gl_ABSOLUTE_HEADER.
102634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102635         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102636         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102637         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102638         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102639         * m4/math_h.m4 (gl_MATH_H): Likewise.
102640         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102641         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102642         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102643         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102644         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102645         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102646         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102647         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102648         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102649         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102650         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102651         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102652         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102653         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102654         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102655         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102656         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102657         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102658         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102659         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102660         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102661         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102662         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102663         * lib/float_.h: Likewise.
102664         * lib/inttypes_.h: Likewise.
102665         * lib/math_.h: Likewise.
102666         * lib/search_.h: Likewise.
102667         * lib/signal_.h: Likewise.
102668         * lib/stdint_.h: Likewise.
102669         * lib/stdio_.h: Likewise.
102670         * lib/stdlib_.h: Likewise.
102671         * lib/string_.h: Likewise.
102672         * lib/sys_stat_.h: Likewise.
102673         * lib/sys_time_.h: Likewise.
102674         * lib/time_.h: Likewise.
102675         * lib/unistd_.h: Likewise.
102676         * lib/wchar_.h: Likewise.
102677         * lib/wctype_.h: Likewise.
102678         * lib/dirent_.h: Likewise.
102679         * lib/iconv_.h: Likewise.
102680         * lib/locale_.h: Likewise.
102681         * lib/netinet_in_.h: Likewise.
102682         * lib/sys_select_.h: Likewise.
102683         * lib/sys_socket_.h: Likewise.
102684         * lib/sysexits_.h: Likewise.
102685         * modules/fcntl (Depends-on): Depend on include_next, not
102686         absolute_header.
102687         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102688         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102689         * modules/fchdir: Likewise.
102690         * modules/float: Likewise.
102691         * modules/iconv_open: Likewise.
102692         * modules/inttypes: Likewise.
102693         * modules/locale: Likewise.
102694         * modules/math: Likewise.
102695         * modules/netinet_in: Likewise.
102696         * modules/search: Likewise.
102697         * modules/signal: Likewise.
102698         * modules/stdint: Likewise.
102699         * modules/stdio: Likewise.
102700         * modules/stdlib: Likewise.
102701         * modules/string: Likewise.
102702         * modules/sys_select: Likewise.
102703         * modules/sys_socket: Likewise.
102704         * modules/sys_stat: Likewise.
102705         * modules/sys_time: Likewise.
102706         * modules/sysexits: Likewise.
102707         * modules/time: Likewise.
102708         * modules/unistd: Likewise.
102709         * modules/wchar: Likewise.
102710         * modules/wctype: Likewise.
102711         * modules/sys_stat: Change maintainer to "all".
102712         * modules/unistd: Likewise.
102714 2007-06-20  Karl Berry  <karl@gnu.org>
102716         * config/srclist.txt: track www changes in license files.
102718 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102720         * build-aux/bootstrap: Remove stray dot.
102721         Make sure build_aux settings are honored when linking
102722         gnulib_extra_files.
102724 2007-06-19  Eric Blake  <ebb9@byu.net>
102726         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102727         Allow compilation on cygwin.
102729 2007-06-19  Jim Meyering  <jim@meyering.net>
102731         xreadlink-with-size: Remove module.  No longer used.
102732         Ex-callers now use xreadlink or mreadlink-with-size.
102733         * modules/xreadlink-with-size: Remove module.
102734         * lib/xreadlink-with-size.c: Remove file.
102735         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102736         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102737         just before the function definition *is* accurate.
102739         Eliminate one way canonicalize_filename_mode could exit.
102740         * lib/canonicalize.c (canonicalize_filename_mode):
102741         Use mreadlink_with_size, not xreadlink_with_size.
102743 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102745         Detect porting problems to FreeBSD/arm, which has time_t wider than
102746         long int.  Original problem reported for GNU diff by Xin Li in
102747         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102748         * modules/getdate (Depends-on): Add intprops, verify.
102749         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102750         is an integer type no wider than long int.
102752 2007-06-18  Jim Meyering  <jim@meyering.net>
102754         New module: mreadlink-with-size.
102755         * MODULES.html.sh: Add mreadlink-with-size.
102756         * modules/mreadlink-with-size: New module
102757         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102758         not xreadlink-with-size.
102759         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102761 2007-06-16  Bruno Haible  <bruno@clisp.org>
102763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102764         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102765         Reported by Gary V. Vaughan <gary@gnu.org>.
102767 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102769         Revamp lchown so that it lives in unistd.h where it belongs.
102770         * lib/lchown.h: Remove.
102771         * lib/dirchownmod.c: Don't include lib/lchown.h.
102772         * lib/fchownat.c: Likewise.
102773         * lib/openat.c: Likewise.
102774         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102775         does not follow symlinks.
102776         (EOPNOTSUPP): Define if not defined.
102777         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102778         is defined to 0.
102779         (lchown): New decl.
102780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102781         Do not check for lchown decl.
102782         Set REPLACE_LCHOWN.
102783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102784         REPLACE_LCHOWN.
102785         * modules/chown: Make it clear it follows symlinks.
102786         * modules/lchown: Make it clear it doesn't follow symlinks.
102787         (Files): Remove lib/lchown.h
102788         (Depends-on): Add unistd.
102789         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102790         (Include): Include <unistd.h>, not "lchown.h".
102791         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102792         REPLACE_LCHOWN.
102794 2007-06-15  Jim Meyering  <jim@meyering.net>
102796         Change license (GPL to LGPL) of fsusage and dependents.
102797         * modules/fsusage (License): Change to LGPL.
102798         * modules/full-read (License): Likewise.
102799         * modules/full-write (License): Likewise.
102800         * modules/safe-read (License): Likewise.
102801         * modules/safe-write (License): Likewise.
102803 2007-06-14  Ben Pfaff  <blp@gnu.org>
102805         Missing part of allocsa -> malloca transition.
102806         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102807         gl_MALLOCA.
102809 2007-06-12  Bruno Haible  <bruno@clisp.org>
102811         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102812         to ia64, x86_64, i386.
102813         Reported by Eric Blake.
102815 2007-06-12  Bruno Haible  <bruno@clisp.org>
102817         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102818         cross-compiling to x86_64.
102820 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102822         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102823         glitch reported by Ralf Wildenhues in
102824         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102826         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102827         Vin Shelton.
102829 2007-06-11  Bruno Haible  <bruno@clisp.org>
102831         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102832         replacement string.
102833         Reported by Eric Blake.
102835 2007-06-10  Bruno Haible  <bruno@clisp.org>
102837         Prepare vasnprintf code for use with Unicode strings.
102838         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102839         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102840         TYPE_U32_STRING.
102841         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102842         a_u32_string variants.
102843         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102844         * lib/printf-args.c: Don't include config.h and the specification
102845         header if PRINTF_FETCHARGS is already defined.
102846         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102847         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102848         TYPE_U16_STRING, TYPE_U32_STRING.
102849         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102850         u16_directive, u16_directives, u32_directive, u32_directives): New
102851         types.
102852         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102853         New declarations.
102854         * lib/printf-parse.c: Don't include config.h and the specification
102855         header if PRINTF_PARSE is already defined. Eliminate the set of
102856         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102857         them now. Include c-ctype.h.
102858         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102859         directive and CHAR_T_ONLY_ASCII.
102860         * lib/vasnprintf.c: Don't include config.h and the specification header
102861         if VASNPRINTF is already defined.
102862         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102863         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102864         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102865         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102866         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102867         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102868         code accordingly.
102869         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102870         pad_ourselves also in this case, with the 'c' and 's' directives, and
102871         with a different notion of "width".
102872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102874 2007-06-10  Bruno Haible  <bruno@clisp.org>
102876         * modules/unistr/u32-mbsnlen: New file.
102877         * lib/unistr/u32-mbsnlen.c: New file.
102879         * modules/unistr/u16-mbsnlen: New file.
102880         * lib/unistr/u16-mbsnlen.c: New file.
102882         * modules/unistr/u8-mbsnlen: New file.
102883         * lib/unistr/u8-mbsnlen.c: New file.
102885         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102886         declarations.
102888 2007-06-10  Bruno Haible  <bruno@clisp.org>
102890         * lib/string_.h (mbsnlen): New declaration.
102891         * lib/mbsnlen.c: New file.
102892         * m4/mbsnlen.m4: New file.
102893         * modules/mbsnlen: New file.
102894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102895         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102896         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102898 2007-06-10  Bruno Haible  <bruno@clisp.org>
102900         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102902 2007-06-10  Bruno Haible  <bruno@clisp.org>
102904         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102905         * lib/mbuiter.h: Likewise.
102907 2007-06-10  Bruno Haible  <bruno@clisp.org>
102909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102910         declaration.
102912 2007-06-10  Karl Berry  <karl@gnu.org>
102914         * config/srclist.txt: remove gettext entries, Bruno prefers
102915         to update individually.
102917 2007-06-10  Bruno Haible  <bruno@clisp.org>
102919         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102920         'maxlen'. Ensure only length + width bytes are allocated, not
102921         length + 1 + width.
102923 2007-06-09  Bruno Haible  <bruno@clisp.org>
102925         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102926         (CHAR_T): Remove macro.
102927         (VASNPRINTF): Update.
102929 2007-06-09  Bruno Haible  <bruno@clisp.org>
102931         * MODULES.html.sh (Unicode string functions): Add the new modules.
102933         * modules/uniconv/u32-conv-to-enc: New file.
102934         * lib/uniconv/u32-conv-to-enc.c: New file.
102935         * modules/uniconv/u32-conv-to-enc-tests: New file.
102936         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102938         * modules/uniconv/u16-conv-to-enc: New file.
102939         * lib/uniconv/u16-conv-to-enc.c: New file.
102940         * lib/uniconv/u-conv-to-enc.h: New file.
102941         * modules/uniconv/u16-conv-to-enc-tests: New file.
102942         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102944         * modules/uniconv/u8-conv-to-enc: New file.
102945         * lib/uniconv/u8-conv-to-enc.c: New file.
102946         * modules/uniconv/u8-conv-to-enc-tests: New file.
102947         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102949         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102950         u32_conv_to_encoding): New declarations.
102952 2007-06-09  Bruno Haible  <bruno@clisp.org>
102954         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102956 2007-06-09  Bruno Haible  <bruno@clisp.org>
102958         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102959         * modules/malloca: Renamed from modules/allocsa, updated.
102960         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102961         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102962         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102963         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102964         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102965         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102966         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102967         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102968         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102969         * modules/c-strcasestr (Depends-on): Update.
102970         * lib/c-strcasestr.c: Update.
102971         * modules/c-strstr (Depends-on): Update.
102972         * lib/c-strstr.c: Update.
102973         * modules/canonicalize-lgpl (Depends-on): Update.
102974         * lib/canonicalize-lgpl.c: Update.
102975         * modules/clean-temp (Depends-on): Update.
102976         * lib/clean-temp.c: Update.
102977         * modules/csharpcomp (Depends-on): Update.
102978         * lib/csharpcomp.c: Update.
102979         * modules/csharpexec (Depends-on): Update.
102980         * lib/csharpexec.c: Update.
102981         * modules/javacomp (Depends-on): Update.
102982         * lib/javacomp.c: Update.
102983         * modules/javaexec (Depends-on): Update.
102984         * lib/javaexec.c: Update.
102985         * modules/mbscasestr (Depends-on): Update.
102986         * lib/mbscasestr.c: Update.
102987         * modules/mbsstr (Depends-on): Update.
102988         * lib/mbsstr.c: Update.
102989         * modules/setenv (Depends-on): Update.
102990         * lib/setenv.c: Update.
102991         * modules/strcasestr (Depends-on): Update.
102992         * lib/strcasestr.c: Update.
102993         * modules/striconveha (Depends-on): Update.
102994         * lib/striconveha.c: Update.
102995         * modules/relocatable-prog-wrapper (Files): Update.
102996         * lib/relocwrapper.c: Update.
102997         * build-aux/install-reloc: Update.
102998         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
103000 2007-06-08  Bruno Haible  <bruno@clisp.org>
103002         Port to uClibc.
103003         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
103004         * lib/fpurge.c (fpurge): Likewise.
103005         * lib/freading.c (freading): Likewise.
103006         * lib/fseeko.c (rpl_fseeko): Likewise.
103007         * lib/fseterr.c (fseterr): Likewise.
103008         * lib/fwriting.c (fwriting): Likewise.
103009         * tests/test-fflush.c (main): Avoid a failure on uClibc.
103011 2007-06-08  Bruno Haible  <bruno@clisp.org>
103013         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
103014         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
103015         * modules/gettext (Files): Add m4/intlmacosx.m4.
103017 2007-06-07  Bruno Haible  <bruno@clisp.org>
103019         * modules/localename-tests: New file.
103020         * tests/test-localename.c: New file.
103022         New module 'localename'.
103023         * lib/localename.h: New file.
103024         * lib/localename.c: New file, from GNU gettext.
103025         * m4/localename.m4: New file.
103026         * modules/localename: New file.
103028 2007-06-07  Bruno Haible  <bruno@clisp.org>
103030         Work around the lack of <wchar.h> on some builds of uClibc.
103031         * doc/headers/wchar.texi: Update.
103032         * lib/wchar_.h: Include <wchar.h> only if it exists.
103033         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
103034         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
103035         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
103036         doesn't exist.
103037         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
103038         * modules/mbfile (Depends-on): Add wchar.
103039         * modules/mbiter (Depends-on): Likewise.
103040         * modules/mbuiter (Depends-on): Likewise.
103041         Reported by Simon Josefsson.
103043 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103045         Work around problem reported by Steven M. Schweda in
103046         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
103047         Tru64 5.1B with the Compaq compiler environment installed declares
103048         an 'isblank' function but does not define it in the C library.
103049         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
103050         * lib/regex_internal.h (isblank): Likewise.
103051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
103052         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
103054 2007-06-05  Bruno Haible  <bruno@clisp.org>
103056         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
103057         ia64.
103058         * modules/printf-safe: New file.
103059         * modules/fprintf-posix (Depends-on): Add printf-safe.
103060         * modules/printf-posix (Depends-on): Likewise.
103061         * modules/snprintf-posix (Depends-on): Likewise.
103062         * modules/sprintf-posix (Depends-on): Likewise.
103063         * modules/vasnprintf-posix (Depends-on): Likewise.
103064         * modules/vasprintf-posix (Depends-on): Likewise.
103065         * modules/vfprintf-posix (Depends-on): Likewise.
103066         * modules/vprintf-posix (Depends-on): Likewise.
103067         * modules/vsnprintf-posix (Depends-on): Likewise.
103068         * modules/vsprintf-posix (Depends-on): Likewise.
103069         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
103070         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
103071         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
103072         "no" on i386, x86_64, ia64.
103073         * tests/test-snprintf-posix.h (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-sprintf-posix.h (LDBL80_WORDS): New macro.
103077         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103078         on i386, x86_64, ia64.
103079         * tests/test-vasnprintf-posix.c: Include float.h.
103080         (LDBL80_WORDS): New macro.
103081         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103082         on i386, x86_64, ia64.
103083         * tests/test-vasprintf-posix.c: Include float.h.
103084         (LDBL80_WORDS): New macro.
103085         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
103086         on i386, x86_64, ia64.
103087         * tests/test-snprintf-posix.c: Include float.h.
103088         * tests/test-sprintf-posix.c: Likewise.
103089         * tests/test-vsnprintf-posix.c: Likewise.
103090         * tests/test-vsprintf-posix.c: Likewise.
103092 2007-06-05  Bruno Haible  <bruno@clisp.org>
103094         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
103095         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
103096         non-IEEE numbers on i386, x86_64, ia64.
103097         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
103098         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
103099         * tests/test-isnanl.h: Include float.h.
103100         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
103102 2007-06-05  Bruno Haible  <bruno@clisp.org>
103104         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
103105         also the %a / %A. Handle the %a / %A code before this extra handling.
103107 2007-06-05  Bruno Haible  <bruno@clisp.org>
103109         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
103110         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
103112 2007-06-05  Bruno Haible  <bruno@clisp.org>
103114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
103115         typo in variable name.
103117 2007-06-05  Eric Blake  <ebb9@byu.net>
103119         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
103120         Reported by Simon Josefsson.
103122 2007-06-04  Bruno Haible  <bruno@clisp.org>
103124         Avoid test failures on some PowerPC platforms.
103125         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
103126         Define differently for PowerPC.
103127         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
103128         Reported by Gary V. Vaughan <gary@gnu.org>.
103130 2007-06-02  Bruno Haible  <bruno@clisp.org>
103132         Fix test-stdint failure on FreeBSD/ia64.
103133         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
103134         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
103135         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
103136         * doc/headers/stdint.texi: Update.
103138 2007-06-01  Bruno Haible  <bruno@clisp.org>
103140         * tests/test-binary-io.c (main): Pass a third argument to open().
103141         Reported by Gary V. Vaughan <gary@gnu.org>.
103143 2007-06-01  Bruno Haible  <bruno@clisp.org>
103145         * doc/functions/frexpl.texi: Update for mingw.
103147 2007-06-01  Bruno Haible  <bruno@clisp.org>
103149         * tests/test-lseek.c (main): Disable test of errno for invalid third
103150         argument.
103151         * doc/functions/lseek.texi: Update.
103152         Reported by Gary V. Vaughan <gary@gnu.org>.
103154 2007-05-28  Bruno Haible  <bruno@clisp.org>
103156         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
103158 2007-05-31  Eric Blake  <ebb9@byu.net>
103160         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
103161         cross compiling.
103163 2007-05-30  Eric Blake  <ebb9@byu.net>
103164         and Bruno Haible  <bruno@clisp.org>
103166         Work around mingw test failures exposed by m4-1.4.9b.
103167         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
103168         * tests/test-unistd.c: Disable uid_t and git_t tests for the
103169         moment.
103171 2007-05-30  Bruno Haible  <bruno@clisp.org>
103173         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
103174         assuming that they are closed. Needed on HP-UX 11.
103176 2007-05-29  Bruno Haible  <bruno@clisp.org>
103178         Fix a problem with #include_next.
103179         * lib/dirent_.h: Split the double-inclusion guard.
103180         * lib/fcntl_.h: Likewise.
103181         * lib/float_.h: Likewise.
103182         * lib/iconv_.h: Likewise.
103183         * lib/inttypes_.h: Likewise.
103184         * lib/locale_.h: Likewise.
103185         * lib/math_.h: Likewise.
103186         * lib/netinet_in_.h: Likewise.
103187         * lib/search_.h: Likewise.
103188         * lib/signal_.h: Likewise.
103189         * lib/stdint_.h: Likewise.
103190         * lib/stdio_.h: Likewise.
103191         * lib/stdlib_.h: Likewise.
103192         * lib/string_.h: Likewise.
103193         * lib/sys_select_.h: Likewise.
103194         * lib/sys_socket_.h: Likewise.
103195         * lib/sys_stat_.h: Likewise.
103196         * lib/sys_time_.h: Likewise.
103197         * lib/sysexits_.h: Likewise.
103198         * lib/time_.h: Likewise.
103199         * lib/unistd_.h: Likewise.
103200         * lib/wchar_.h: Likewise.
103201         * lib/wctype_.h: Likewise.
103203 2007-05-29  Bruno Haible  <bruno@clisp.org>
103205         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
103206         for the moment.
103208 2007-05-29  Bruno Haible  <bruno@clisp.org>
103210         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
103211         invocation.
103212         Reported by Eric Blake.
103214 2007-05-29  Bruno Haible  <bruno@clisp.org>
103216         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
103217         compiling case.
103219 2007-05-29  Eric Blake  <ebb9@byu.net>
103220             Bruno Haible  <bruno@clisp.org>
103222         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
103223         cross compiles.
103225 2007-05-28  Eric Blake  <ebb9@byu.net>
103227         * modules/closein-tests (test_closein_LDADD): Support test on
103228         cygwin with libtool.
103230 2007-05-28  Bruno Haible  <bruno@clisp.org>
103232         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
103233         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
103234         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
103235         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
103236         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
103237         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
103238         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
103239         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
103240         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
103242 2007-05-28  Eric Blake  <ebb9@byu.net>
103244         Unconditionally include <config.h> in unit tests.
103245         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
103246         * tests/test-allocsa.c, tests/test-arcfour.c,
103247         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
103248         tests/test-array_list.c, tests/test-array_oset.c,
103249         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
103250         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
103251         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
103252         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
103253         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103254         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103255         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103256         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103257         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103258         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103259         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103260         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103261         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103262         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103263         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103264         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103265         test-md5.c, test-memmem.c, test-printf-posix.c,
103266         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103267         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103268         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103269         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103270         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103271         test-vasnprintf-posix2.c, test-vasnprintf.c,
103272         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103273         test-vfprintf-posix.c, test-vprintf-posix.c,
103274         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103275         test-xvasprintf.c: Likewise.
103277 2007-05-28  Bruno Haible  <bruno@clisp.org>
103279         * gnulib-tool (func_import): Remember the --with-tests command-line
103280         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103281         Reported by Eric Blake.
103283 2007-05-28  Bruno Haible  <bruno@clisp.org>
103285         * modules/ftell-tests: New file.
103286         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103287         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103289         * lib/ftell.c: New file.
103290         * modules/ftell: New file.
103291         * m4/ftell.m4: New file.
103292         * doc/functions/ftell.texi: Update.
103293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103294         REPLACE_FTELL.
103295         * lib/stdio_.h (rpl_ftell): New declaration.
103296         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103297         REPLACE_FTELL.
103299 2007-05-28  Eric Blake  <ebb9@byu.net>
103301         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103303 2007-05-28  Bruno Haible  <bruno@clisp.org>
103305         * modules/fseek-tests: New file.
103306         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103307         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103309         * lib/fseek.c: New file.
103310         * modules/fseek: New file.
103311         * m4/fseek.m4: New file.
103312         * doc/functions/fseek.texi: Update.
103313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103314         REPLACE_FSEEK.
103315         * lib/stdio_.h (rpl_fseek): New declaration.
103316         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103317         REPLACE_FSEEK.
103319 2007-05-28  Bruno Haible  <bruno@clisp.org>
103321         * lib/stdio_.h (fflush): More comments.
103323 2007-05-28  Bruno Haible  <bruno@clisp.org>
103325         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103326         runtime test.
103328 2007-05-28  Eric Blake  <ebb9@byu.net>
103330         Improve lseek module.
103331         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103332         * lib/unistd_.h (lseek): Scale back link warning message.
103333         * tests/test-lseek.c: Beef up test.
103334         * tests/test-lseek.sh: Exercise more facets of lseek.
103335         Reported by Bruno Haible.
103337 2007-05-28  Bruno Haible  <bruno@clisp.org>
103339         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103340         to define.
103342 2007-05-27  Bruno Haible  <bruno@clisp.org>
103344         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103346 2007-05-27  Bruno Haible  <bruno@clisp.org>
103348         * modules/openmp: New file.
103349         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103350         Noah Misch.
103352 2007-05-26  Bruno Haible  <bruno@clisp.org>
103354         * modules/chdir-long (Depends-on): Add fchdir.
103355         * modules/chdir-safer (Depends-on): Likewise.
103356         * modules/fts (Depends-on): Likewise.
103357         * modules/fts-lgpl (Depends-on): Likewise.
103358         * modules/openat (Depends-on): Likewise.
103359         * modules/savewd (Depends-on): Likewise.
103361 2007-05-24  Eric Blake  <ebb9@byu.net>
103363         Fix lseek on mingw.
103364         * modules/lseek: New module.
103365         * m4/lseek.m4: New file.
103366         * lib/lseek.c: New file.
103367         * modules/lseek-tests: New file.
103368         * tests/test-lseek.c: New file.
103369         * tests/test-lseek.sh: New file.
103370         * MODULES.html.sh: Document lseek module.
103371         * modules/fflush (Depends-on): Add lseek, fseeko.
103372         * modules/fseeko (Depends-on): Likewise.
103373         * modules/ftello (Depends-on): Likewise.
103374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103375         broken.
103376         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103377         broken.
103378         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103379         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103380         * lib/ftello.c (rpl_ftello): Likewise.
103381         * tests/test-fseeko.c (main): Test this.
103382         * tests/test-fseeko.sh: Likewise.
103383         * tests/test-ftello.c (main): Likewise.
103384         * tests/test-ftello.sh: Likewise.
103385         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103386         implies replacing fseek.
103387         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103388         HAVE_FTELLO.
103389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103390         * modules/unistd (Makefile.am): Likewise.
103391         * lib/unistd_.h (lseek): Declare a replacement.
103392         * doc/functions/lseek.texi (lseek): Document this fix.
103393         * doc/functions/fseek.texi (fseek): Likewise.
103394         * doc/functions/ftell.texi (ftell): Likewise.
103396 2007-05-24  Bruno Haible  <bruno@clisp.org>
103398         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103399         in the printed representation of a NaN.
103400         * tests/test-vasprintf-posix.c (test_function): Likewise.
103401         * tests/test-snprintf-posix.h (test_function): Likewise.
103402         * tests/test-sprintf-posix.h (test_function): Likewise.
103403         Reported by Eric Blake.
103405 2007-05-23  Eric Blake  <ebb9@byu.net>
103407         Fix fseeko/ftello on cygwin 1.5.24.
103408         * doc/functions/fseeko.texi (fseeko): Document the fix.
103409         * doc/functions/ftello.texi (ftello): Document the fix.
103410         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103411         * doc/functions/stdout.text (stdout): New file.
103412         * doc/functions/stderr.text (stderr): New file.
103413         * doc/gnulib.texi (Function Substitutes): Use new files.
103414         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103415         prior to 1.7.0.
103416         * tests/test-ftello.c (main): Likewise for ftello.
103417         * tests/test-fseeko.sh: New file.
103418         * tests/test-ftello.sh: New file.
103419         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103420         with seekable stdin.
103421         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103422         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103423         (gl_REPLACE_FSEEKO): New macro.
103424         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103425         * modules/fseeko (Files): Distribute fseeko.c.
103426         * modules/ftello (Files): Distribute ftello.c.
103427         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103428         mode.
103429         * lib/ftello.c (rpl_ftello): New file.
103430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103431         fseeko, ftello.
103432         (gl_STDIN_LARGE_OFFSET): New macro.
103433         * modules/stdio (Makefile.am): Perform the replacement.
103434         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103436 2007-05-23  Bruno Haible  <bruno@clisp.org>
103438         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103439         GNULIB_POSIXCHECK is defined.
103441 2007-05-21  Bruno Haible  <bruno@clisp.org>
103443         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103444         Check also the output for NaN arguments. When cross-compiling, guess
103445         no on IRIX.
103446         * lib/vasnprintf.c: Update comments.
103447         * tests/test-vasnprintf-posix.c (strisnan): New function.
103448         (test_function): Use it.
103449         * tests/test-vasprintf-posix.c (strisnan): New function.
103450         (test_function): Use it.
103451         * tests/test-snprintf-posix.h (strisnan): New function.
103452         (test_function): Use it.
103453         * tests/test-sprintf-posix.h (strisnan): New function.
103454         (test_function): Use it.
103455         Reported by Eric Blake.
103457 2007-05-20  Bruno Haible  <bruno@clisp.org>
103459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103460         numbers that fails on BeOS.
103461         * doc/functions/frexpl.texi: Update.
103463 2007-05-20  Jim Meyering  <jim@meyering.net>
103465         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103466         forced upon us by glibc-2.6.
103468 2007-05-20  Bruno Haible  <bruno@clisp.org>
103470         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103471         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103472         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103473         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103474         NEED_PRINTF_INFINITE.
103475         (is_infinitel): New function.
103476         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103478         gl_PREREQ_VASNPRINTF_INFINITE.
103479         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103481         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103482         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103483         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103484         gl_PREREQ_VASNPRINTF_INFINITE.
103485         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103486         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103487         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103488         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103489         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103491         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103492         * doc/functions/fprintf.texi: Update.
103493         * doc/functions/printf.texi: Update.
103494         * doc/functions/snprintf.texi: Update.
103495         * doc/functions/sprintf.texi: Update.
103496         * doc/functions/vfprintf.texi: Update.
103497         * doc/functions/vprintf.texi: Update.
103498         * doc/functions/vsnprintf.texi: Update.
103499         * doc/functions/vsprintf.texi: Update.
103501 2007-05-20  Bruno Haible  <bruno@clisp.org>
103503         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103504         was not found in libc.
103505         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103507 2007-05-20  Bruno Haible  <bruno@clisp.org>
103509         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103510         printed as "-nan" instead of "nan".
103511         * tests/test-vasprintf-posix.c (test_function): Likewise.
103512         * tests/test-snprintf-posix.h (test_function): Likewise.
103513         * tests/test-sprintf-posix.h (test_function): Likewise.
103514         Needed for HP-UX 11.
103516 2007-05-20  Jim Meyering  <jim@meyering.net>
103518         Fix buggy test for the fchownat-deref bug.
103519         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103520         symlink required for the run-test.  Without it, this test would
103521         always declare that fchownat doesn't work, and client code would
103522         unnecessarily use the replacement function with fixed libc.
103523         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103524         Reported by Greg Schafer.
103526 2007-05-19  Bruno Haible  <bruno@clisp.org>
103528         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103529         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103530         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103531         Needed for IRIX 6.5 and Solaris 2.5.1.
103533 2007-05-19  Bruno Haible  <bruno@clisp.org>
103535         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103536         (test_function): Skip tests involving -0.0 on platforms where
103537         -0.0 = 0.0.
103538         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103539         (test_function): Skip tests involving -0.0 on platforms where
103540         -0.0 = 0.0.
103541         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103542         (test_function): Skip tests involving -0.0 on platforms where
103543         -0.0 = 0.0.
103544         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103545         (test_function): Skip tests involving -0.0 on platforms where
103546         -0.0 = 0.0.
103547         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103548         tests.
103549         * tests/test-printf-posix.h (test_function): Likewise.
103550         * tests/test-printf-posix.output: Remove all -0.0 related results.
103551         Needed for IRIX 6.5.
103553 2007-05-19  Bruno Haible  <bruno@clisp.org>
103555         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103556         printed as "nan0x7fffffff" instead of "nan".
103557         * tests/test-vasprintf-posix.c (test_function): Likewise.
103558         * tests/test-snprintf-posix.h (test_function): Likewise.
103559         * tests/test-sprintf-posix.h (test_function): Likewise.
103560         * tests/test-fprintf-posix.h (NaN): Remove macro.
103561         (test_function): Remove all NaN related tests.
103562         * tests/test-printf-posix.h (NaN): Remove macro.
103563         (test_function): Remove all NaN related tests.
103564         * tests/test-printf-posix.output: Remove all NaN related results.
103565         Needed for IRIX 6.5.
103567 2007-05-19  Bruno Haible  <bruno@clisp.org>
103569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103570         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103572 2007-05-19  Bruno Haible  <bruno@clisp.org>
103574         * lib/float_.h: New file.
103575         * m4/float_h.m4: New file.
103576         * modules/float: New file.
103577         * modules/isnanl (Dependencies): Add float.
103578         * modules/isnanl-nolibm (Dependencies): Likewise.
103579         * modules/mathl (Dependencies): Likewise.
103580         * modules/printf-frexpl (Dependencies): Likewise.
103581         * modules/signbit (Dependencies): Likewise.
103582         * modules/vasnprintf (Dependencies): Likewise.
103583         * doc/headers/float.texi: Update.
103585 2007-05-19  Jim Meyering  <jim@meyering.net>
103587         * lib/utimens.c (gl_futimens): Rename from futimens,
103588         now that glibc-2.6 declares futimens.
103589         * lib/utimens.h: Likewise.
103591 2007-05-19  Bruno Haible  <bruno@clisp.org>
103593         Avoid test failures on mingw.
103594         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103595         * tests/test-printf-posix.sh: Likewise.
103596         * tests/test-vfprintf-posix.sh: Likewise.
103597         * tests/test-vprintf-posix.sh: Likewise.
103599 2007-05-19  Bruno Haible  <bruno@clisp.org>
103601         Fix *printf result for NaN, Inf, -0.0 on mingw.
103602         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103603         * lib/vasnprintf.c: Include math.h and isnan.h.
103604         (is_infinite_or_zero): New function.
103605         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103606         values in the %f, %F, %e, %E, %g, %G directives.
103607         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103608         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103609         gl_PRINTF_INFINITE and test its result. Invoke
103610         gl_PREREQ_VASNPRINTF_INFINITE.
103611         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103613         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103614         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103617         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103618         * doc/functions/fprintf.texi: Update.
103619         * doc/functions/printf.texi: Update.
103620         * doc/functions/snprintf.texi: Update.
103621         * doc/functions/sprintf.texi: Update.
103622         * doc/functions/vfprintf.texi: Update.
103623         * doc/functions/vprintf.texi: Update.
103624         * doc/functions/vsnprintf.texi: Update.
103625         * doc/functions/vsprintf.texi: Update.
103627 2007-05-19  Bruno Haible  <bruno@clisp.org>
103629         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103630         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103631         Instead of multiplying with 10^k, set extra_zeroes to k.
103632         (scale10_round_long_double): Remove function.
103634 2007-05-18  Bruno Haible  <bruno@clisp.org>
103636         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103637         introduced on 2007-05-06.
103639 2007-05-18  Bruno Haible  <bruno@clisp.org>
103641         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103642         %g directives.
103643         * tests/test-vasprintf-posix.c (test_function): Likewise.
103644         * tests/test-snprintf-posix.h (test_function): Likewise.
103645         * tests/test-sprintf-posix.h (test_function): Likewise.
103647 2007-05-18  Bruno Haible  <bruno@clisp.org>
103649         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103650         (strmatch): New function.
103651         (test_function): Test the %f directive on numbers of various exponents.
103652         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103653         (strmatch): New function.
103654         (test_function): Test the %f directive on numbers of various exponents.
103655         * tests/test-snprintf-posix.h (strmatch): New function.
103656         (test_function): Test the %f directive on numbers of various exponents.
103657         * tests/test-sprintf-posix.h (strmatch): New function.
103658         (test_function): Test the %f directive on numbers of various exponents.
103659         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103660         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103661         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103662         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103664 2007-05-18  Bruno Haible  <bruno@clisp.org>
103666         Add support for 'long double' number output.
103667         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103668         * lib/vasnprintf.c: Include math.h and float+.h.
103669         (mp_limb_t): New type.
103670         (GMP_LIMB_BITS): New macro.
103671         (mp_twolimb_t): New type.
103672         (GMP_TWOLIMB_BITS): New macro.
103673         (mpn_t): New type.
103674         (multiply, divide, convert_to_decimal, decode_long_double,
103675         scale10_round_long_double, scale10_round_decimal_long_double,
103676         floorlog10l): New functions.
103677         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103678         for the %f, %F, %e, %E, %g, %G directives.
103679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103681         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103682         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103684         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103685         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103686         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103687         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103689         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103690         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103691         * modules/snprintf-posix (Depends-on): Likewise.
103692         * modules/sprintf-posix (Depends-on): Likewise.
103693         * modules/vasnprintf-posix (Depends-on): Likewise.
103694         * modules/vasprintf-posix (Depends-on): Likewise.
103695         * modules/vfprintf-posix (Depends-on): Likewise.
103696         * modules/vsnprintf-posix (Depends-on): Likewise.
103697         * modules/vsprintf-posix (Depends-on): Likewise.
103698         * modules/vasnprintf (Files): Add lib/float+.h.
103699         * doc/functions/fprintf.texi: Update.
103700         * doc/functions/printf.texi: Update.
103701         * doc/functions/snprintf.texi: Update.
103702         * doc/functions/sprintf.texi: Update.
103703         * doc/functions/vfprintf.texi: Update.
103704         * doc/functions/vprintf.texi: Update.
103705         * doc/functions/vsnprintf.texi: Update.
103706         * doc/functions/vsprintf.texi: Update.
103708 2007-05-18  Bruno Haible  <bruno@clisp.org>
103710         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103712 2007-05-18  Bruno Haible  <bruno@clisp.org>
103714         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103715         for printing 64-bit integers. Needed for mingw.
103717 2007-05-18  Bruno Haible  <bruno@clisp.org>
103719         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103720         gl_FUNC_FREXPL_WORKS.
103721         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103723 2007-05-18  Bruno Haible  <bruno@clisp.org>
103725         * modules/frexpl-nolibm-tests: New file.
103727         * modules/frexpl-nolibm: New file.
103728         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103730 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103732         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103733         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103734         GCC 4.2, which otherwise issues a lot of warnings.
103735         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103736         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103737         Likewise.
103738         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103739         * modules/iconv_open (iconv.h): Likewise.
103740         * modules/locale (locale.h): Likewise.
103741         * modules/netinet_in (netinet/in.h): Likewise.
103742         * modules/sys_select (sys_select.h): Likewise.
103743         * modules/sys_socket (sys/socket.h): Likewise.
103744         * modules/sys_stat (sys/stat.h): Likewise.
103745         * modules/sysexits (sysexits.h): Likewise.
103746         * modules/unistd (unistd.h): Likewise.
103748 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103750         * modules/closein-tests (Makefile.am): Distribute
103751         `test-closein.sh'.
103753 2007-05-17  Bruno Haible  <bruno@clisp.org>
103755         * tests/test-printf-posix.output: Renamed from
103756         tests/test-fprintf-posix.out.
103757         * modules/fprintf-posix-tests: Update.
103758         * modules/printf-posix-tests: Update.
103759         * modules/vfprintf-posix-tests: Update.
103760         * modules/vprintf-posix-tests: Update.
103761         * tests/test-fprintf-posix.sh: Update.
103762         * tests/test-printf-posix.sh: Update.
103763         * tests/test-vfprintf-posix.sh: Update.
103764         * tests/test-vprintf-posix.sh: Update.
103765         Reported by Ralf Wildenhues.
103767 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103769         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103770         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103771         GCC 4.2, which otherwise issues a lot of warnings.
103772         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103773         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103774         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103775         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103776         it should no longer be needed.
103777         * lib/string_.h: Likewise.
103778         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103779         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103780         * modules/inttypes (inttypes.h): Likewise.
103781         * modules/math (math.h): Likewise.
103782         * modules/search (search.h): Likewise.
103783         * modules/signal (signal.h): Likewise.
103784         * modules/stdint (stdint.h): Likewise.
103785         * modules/stdio (stdio.h): Likewise.
103786         * modules/stdlib (stdlib.h): Likewise.
103787         * modules/string (string.h): Likewise.
103788         * modules/sys_time (sys/time.h): Likewise.
103789         * modules/time (time.h): Likewise.
103790         * modules/wchar (wchar.h): Likewise.
103791         * modules/wctype (wtype.h): Likewise.
103793 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103795         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103797 2007-05-13  Bruno Haible  <bruno@clisp.org>
103799         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103800         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103801         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103802         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103803         (gl_PREREQ_STRTOK_R): Don't require it here.
103805 2007-05-13  Bruno Haible  <bruno@clisp.org>
103807         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103808         when used in C++ mode.
103810 2007-05-12  Bruno Haible  <bruno@clisp.org>
103812         * lib/linebuffer.h: Tweak doc.
103813         * lib/linebuffer.c: Likewise.
103815 2007-05-12  James Youngman  <jay@gnu.org>
103817         * lib/linebuffer.c (readlinebuffer_delim): New function,
103818         like readlinebuffer, but use a caller-specified delimiter.
103819         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103820         as the delimiter.
103821         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103823 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103825         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103826         * modules/openat (Files): Remove openat-die.c.
103827         (Depends-on): Add openat-die.
103828         * modules/openat-die: New module.
103830 2007-05-06  Bruno Haible  <bruno@clisp.org>
103832         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103833         Update with info about Cygwin.
103834         * doc/functions/fprintf.texi: Update.
103835         * doc/functions/printf.texi: Update.
103836         * doc/functions/snprintf.texi: Update.
103837         * doc/functions/sprintf.texi: Update.
103838         * doc/functions/vfprintf.texi: Update.
103839         * doc/functions/vprintf.texi: Update.
103840         * doc/functions/vsnprintf.texi: Update.
103841         * doc/functions/vsprintf.texi: Update.
103842         Reported by Eric Blake.
103844 2007-05-06  Bruno Haible  <bruno@clisp.org>
103846         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103847         padding ourselves for the floating-point directives.
103848         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103850         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103851         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103852         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103860         * tests/test-snprintf-posix.h (test_function): Also check the width
103861         and some flags in the %f directive.
103862         * tests/test-sprintf-posix.h (test_function): Likewise.
103863         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103864         * tests/test-vasprintf-posix.c (test_function): Likewise.
103865         * doc/functions/fprintf.texi: Update.
103866         * doc/functions/printf.texi: Update.
103867         * doc/functions/snprintf.texi: Update.
103868         * doc/functions/sprintf.texi: Update.
103869         * doc/functions/vfprintf.texi: Update.
103870         * doc/functions/vprintf.texi: Update.
103871         * doc/functions/vsnprintf.texi: Update.
103872         * doc/functions/vsprintf.texi: Update.
103874 2007-05-06  Bruno Haible  <bruno@clisp.org>
103876         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103877         pass the ' flag character to sprintf or snprintf.
103878         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103881         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103882         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103890         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103891         flag.
103892         * tests/test-sprintf-posix.h (test_function): Likewise.
103893         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103894         * tests/test-vasprintf-posix.c (test_function): Likewise.
103895         * doc/functions/fprintf.texi: Update.
103896         * doc/functions/printf.texi: Update.
103897         * doc/functions/snprintf.texi: Update.
103898         * doc/functions/sprintf.texi: Update.
103899         * doc/functions/vfprintf.texi: Update.
103900         * doc/functions/vprintf.texi: Update.
103901         * doc/functions/vsnprintf.texi: Update.
103902         * doc/functions/vsprintf.texi: Update.
103904 2007-05-01  Bruno Haible  <bruno@clisp.org>
103906         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103908 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103910         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103911         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103913 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103915         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103916         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103917         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103919 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103921         * lib/argp-help.c (struct hol_entry): New member `ord'.
103922         (HOL_ENTRY_PTRCMP): Use ord for comparison
103923         (hol_sort): Initialize ord.
103925 2007-05-01  Bruno Haible  <bruno@clisp.org>
103927         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103928         Reported by Eric Blake.
103929         * doc/gnulib.texi (Function Substitutes): Update.
103931 2007-05-01  Bruno Haible  <bruno@clisp.org>
103933         * doc/functions.texi: Remove file, now redundant through
103934         doc/functions/*.texi.
103936 2007-05-01  Bruno Haible  <bruno@clisp.org>
103938         * modules/argp (Depends-on): Add sleep.
103940 2007-05-01  Bruno Haible  <bruno@clisp.org>
103942         * modules/sleep-tests: New file.
103943         * tests/test-sleep.c: New file.
103945         * modules/sleep: New file.
103946         * lib/sleep.c: New file.
103947         * m4/sleep.m4: New file.
103948         * lib/unistd_.h (sleep): New declaration.
103949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103950         HAVE_SLEEP.
103951         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103952         * doc/functions/sleep.texi: Document the sleep module.
103954 2007-05-01  Bruno Haible  <bruno@clisp.org>
103956         * lib/sigprocmask.h: Remove file.
103957         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103958         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103959         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103960         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103961         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103962         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103963         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103964         HAVE_SIGSET_T as a shell variable.
103965         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103966         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103967         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103968         (Depends-on): Add signal. Remove verify.
103969         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103970         (Include): Mention <signal.h> instead of sigprocmask.h.
103971         * NEWS: Mention the change.
103972         * lib/fatal-signal.c: Don't include sigprocmask.h.
103974 2007-05-01  Bruno Haible  <bruno@clisp.org>
103976         * modules/signal: New file.
103977         * lib/signal_.h: New file.
103978         * m4/signal_h.m4: New file.
103980 2007-05-01  Bruno Haible  <bruno@clisp.org>
103982         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103983         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103984         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103985         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103987 2007-05-01  Bruno Haible  <bruno@clisp.org>
103989         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103990         configure time.
103991         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103992         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103993         * modules/sys_stat (Makefile.am): Substitute their values into
103994         sys/stat.h.
103996 2007-05-01  Bruno Haible  <bruno@clisp.org>
103998         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103999         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
104000         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
104002 2007-05-01  Bruno Haible  <bruno@clisp.org>
104004         * doc/header/assert.texi: Undo last change: don't mention the gnulib
104005         'assert' module here.
104007 2007-05-01  Bruno Haible  <bruno@clisp.org>
104009         * doc/functions/*.texi: New files.
104010         * doc/functions/google-ranking.txt: New file.
104011         * doc/gnulib.texi (Function Substitutes): New chapter.
104012         (ctime, inet_ntoa): Remove sections.
104013         * doc/ctime.texi: Remove file.
104014         * doc/inet_ntoa.texi: Remove file.
104015         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
104016         dependencies.
104017         (%.info): New rule, specifying a --reference-limit.
104019 2007-05-01  Bruno Haible  <bruno@clisp.org>
104021         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
104023 2007-05-01  Bruno Haible  <bruno@clisp.org>
104025         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
104026         the portability of 'mkdir' to mingw systems.
104028 2007-05-01  Bruno Haible  <bruno@clisp.org>
104030         * doc/headers/google-ranking.txt: New file.
104032 2007-04-30  Eric Blake  <ebb9@byu.net>
104034         Prefer fseeko to fseek.
104035         * modules/getpass (Depends-on): Add fseeko.
104036         * lib/getpass.c (getpass): Use fseeko, not fseek.
104038 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
104040         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
104041         assumes the sorting is stable, while most qsort implementations
104042         are not.  Use argument addresses to ensure they never compare as
104043         equal.
104045         * tests/test-argp-2.sh (usage-indent test): Fix output
104046         (func_compare): Restore diff options
104047         * tests/test-argp.c: Restore #include "progname.h"
104049 2007-04-29  Bruno Haible  <bruno@clisp.org>
104051         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
104052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104053         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
104054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104055         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
104056         (configure.ac): Define CHECK_SNPRINTF_POSIX.
104057         (TESTS, check_PROGRAMS): Add test-snprintf.
104058         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
104059         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
104060         (TESTS, check_PROGRAMS): Add test-vsnprintf.
104061         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
104062         assertions that fail on HP-UX, OSF/1, or IRIX.
104063         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
104065 2007-04-29  Bruno Haible  <bruno@clisp.org>
104067         * MODULES.html.sh (posix_functions): Remove 'contents'.
104069 2007-04-29  Karl Berry  <karl@gnu.org>
104071         * config/srclist.txt (gendocs_template_min): new entry.
104073 2007-04-29  Bruno Haible  <bruno@clisp.org>
104075         Work around fpurge bug on BSD systems.
104076         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
104077         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
104078         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
104079         fpurge to rpl_fpurge if the system already has this function.
104080         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
104081         the case where the system already has this function. Correct invariants
104082         on BSD systems.
104083         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
104084         BSD systems.
104086 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
104088         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
104089         proposed by Sven Verdoolaege.
104091         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
104092         options.
104093         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
104094         (usage and help tests): Update
104096 2007-04-29  Bruno Haible  <bruno@clisp.org>
104098         * tests/test-fflush.c (main): Use a file of size 17, not 10.
104099         Print more information in case of failure. Disable a test on BeOS.
104101 2007-04-29  Bruno Haible  <bruno@clisp.org>
104103         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
104104         This helps debugging on systems on which no gdb is available.
104106 2007-04-29  Bruno Haible  <bruno@clisp.org>
104108         * lib/freading.h: Improve comments.
104109         * lib/fwriting.h: Likewise.
104110         * tests/test-freading.c (main): Don't check freading immediately after
104111         repositioning. Needed for glibc.
104113 2007-04-29  Bruno Haible  <bruno@clisp.org>
104115         * lib/freading.c (freading): Trivial simplification.
104117 2007-04-28  Bruno Haible  <bruno@clisp.org>
104119         * tests/test-fwriting.c (main): Also test the interaction between
104120         fflush and fwriting.
104121         * modules/fwriting-tests (Depends-on): Add fflush.
104123         * tests/test-freading.c (main): Also test the interaction between
104124         fflush and freading.
104125         * modules/freading-tests (Depends-on): Add fflush.
104127 2007-04-28  Bruno Haible  <bruno@clisp.org>
104129         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
104130         fseeko and ftello.
104131         Suggested by Eric Blake.
104133 2007-04-28  Jim Meyering  <jim@meyering.net>
104135         Avoid false-negative in gl_STDINT_H's C99 conformance test.
104136         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
104137         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
104139 2007-04-27  Eric Blake  <ebb9@byu.net>
104141         * doc/headers/assert.texi (assert.h): Document assert module use.
104143 2007-04-27  Bruno Haible  <bruno@clisp.org>
104145         * doc/headers/*.texi: New files.
104146         * doc/gnulib.texi (Header File Substitutes): New chapter.
104147         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
104148         dependencies.
104149         (standards.info ,standards.html, standards.dvi): Update dependencies.
104150         (mostlyclean, clean): New targets.
104152 2007-04-27  Bruno Haible  <bruno@clisp.org>
104154         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
104155         * modules/sysexits (Files, Makefile.am): Update.
104157         * lib/sys_socket_.h: Renamed from lib/socket_.h.
104158         * modules/sys_socket (Files, Makefile.am): Update.
104160         * lib/sys_stat_.h: Renamed from lib/stat_.h.
104161         * modules/sys_stat (Files, Makefile.am): Update.
104163 2007-04-27  Eric Blake  <ebb9@byu.net>
104165         * lib/freading.h: Improve comments.
104166         * lib/fwriting.h: Likewise.
104167         * lib/fflush.c: Likewise.
104169         Fix closein for mingw.
104170         * modules/closein-tests: Add tests for closein.
104171         * tests/test-closein.c: New file.
104172         * tests/test-closein.sh: Likewise.
104173         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
104174         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
104176 2007-04-27  Bruno Haible  <bruno@clisp.org>
104178         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
104179         version is < 6.
104180         * lib/math_.h [__DECC]: Likewise.
104181         * lib/stdio_.h [__DECC]: Likewise.
104182         * lib/stdlib_.h [__DECC]: Likewise.
104183         * lib/string_.h [__DECC]: Likewise.
104184         * lib/time_.h [__DECC]: Likewise.
104185         * lib/wchar_.h [__DECC]: Likewise.
104186         * lib/wctype_.h [__DECC]: Likewise.
104188 2007-04-27  Bruno Haible  <bruno@clisp.org>
104190         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
104192 2007-04-27  Bruno Haible  <bruno@clisp.org>
104194         * lib/fflush.c: Add comments.
104195         * modules/fpurge-tests (Depends-on): Add fflush.
104196         * modules/freadable-tests (Depends-on): Likewise.
104197         * modules/fwritable-tests (Depends-on): Likewise.
104199 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
104201         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
104202         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
104203         Report by Bruno Haible <bruno@clisp.org>.
104205 2007-04-26  Eric Blake  <ebb9@byu.net>
104207         Fix fflush on mingw.
104208         * modules/fflush (Depends-on): Add freading.
104209         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
104210         but unread data.
104212 2007-04-26  Eric Blake  <ebb9@byu.net>
104213         and Bruno Haible  <bruno@clisp.org>
104215         Implement freading and fwriting.
104216         * lib/freading.c: New file.
104217         * lib/freading.h: Likewise.
104218         * m4/freading.m4: Likewise.
104219         * modules/freading: Likewise.
104220         * modules/freading-tests: Likewise.
104221         * tests/test-freading.c: Likewise.
104222         * lib/fwriting.c: New file.
104223         * lib/fwriting.h: Likewise.
104224         * m4/fwriting.m4: Likewise.
104225         * modules/fwriting: Likewise.
104226         * modules/fwriting-tests: Likewise.
104227         * tests/test-fwriting.c: Likewise.
104228         * MODULES.html.sh (File stream based Input/Output): Mention them.
104230 2007-04-26  Bruno Haible  <bruno@clisp.org>
104232         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
104233         'long' when we assume it.
104234         Suggested by Eric Blake.
104236 2007-04-26  Bruno Haible  <bruno@clisp.org>
104238         Ensure fseeko, ftello are declared on glibc systems.
104239         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
104240         * modules/fseeko (configure.ac-early): Likewise.
104241         * modules/ftello (configure.ac-early): Likewise.
104242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
104243         AC_FUNC_FSEEKO for this.
104244         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
104245         (gl_CHECK_FSEEKO): Remove macro.
104247 2007-04-26  Bruno Haible  <bruno@clisp.org>
104249         * tests/test-fflush.c (main): Also check the ftell result after
104250         fflush and fseek/fseeko.
104251         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
104252         file descriptor position cache in the stream.
104253         * lib/fseeko.c (rpl_fseeko): Likewise.
104255 2007-04-26  Bruno Haible  <bruno@clisp.org>
104257         * modules/fflush-tests (Depends-on): Add fseeko.
104259 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104260             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104262         * lib/argz_.h: ensure error_t definition is obtained in same
104263         mechanism system argz.h would have.
104264         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104265         argz facilities are known bad.  Err on the side of caution if
104266         cross-compiling.
104268 2007-04-25  Eric Blake  <ebb9@byu.net>
104270         * lib/fpurge.c (includes): Use stdlib.h for free.
104271         * tests/test-fflush.c (main): Also test fflush-fseeko.
104273 2007-04-25  Bruno Haible  <bruno@clisp.org>
104275         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104276         * lib/fseeko.c: New file.
104277         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104278         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104279         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104280         gl_FUNC_FSEEKO.
104281         (gl_FUNC_FSEEKO): Invoke it.
104282         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104283         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104284         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104286 2007-04-25  Bruno Haible  <bruno@clisp.org>
104288         * modules/fflush (Depends-on): Add ftello.
104290 2007-04-25  Bruno Haible  <bruno@clisp.org>
104292         * modules/ftello-tests: New file.
104293         * tests/test-ftello.c: New file.
104295         * modules/ftello: New file.
104296         * m4/ftello.m4: New file.
104297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104298         HAVE_FTELLO.
104299         * lib/stdio_.h (ftello): New declaration.
104300         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104301         HAVE_FTELLO.
104303 2007-04-25  Bruno Haible  <bruno@clisp.org>
104305         * modules/fseeko-tests: New file.
104306         * tests/test-fseeko.c: New file.
104308         * modules/fseeko: New file.
104309         * m4/fseeko.m4: New file.
104310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104311         HAVE_FSEEKO.
104312         * lib/stdio_.h (fseeko): New declaration.
104313         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104314         HAVE_FSEEKO.
104316 2007-04-25  Bruno Haible  <bruno@clisp.org>
104318         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104320 2007-04-25  Bruno Haible  <bruno@clisp.org>
104322         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104323         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104324         * tests/test-unistd.c: Likewise.
104325         * tests/test-fcntl.c: Likewise.
104327 2007-04-23  Eric Blake  <ebb9@byu.net>
104329         * lib/fflush.c: Fix missing include.
104330         Reported by Bruno Haible.
104332 2007-04-23  Bruno Haible  <bruno@clisp.org>
104334         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104335         Reported by Eric Blake.
104337 2007-04-23  Bruno Haible  <bruno@clisp.org>
104339         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104341 2007-04-23  Bruno Haible  <bruno@clisp.org>
104343         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104345 2007-04-23  Bruno Haible  <bruno@clisp.org>
104347         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104348         Needed on HP-UX 11.
104350 2007-04-16  Eric Blake  <ebb9@byu.net>
104352         Make fflush rely on fpurge.
104353         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104354         open coding all variants.
104355         * modules/fflush (Depends-on): Add fpurge and unistd.
104356         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104357         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104359         Fix --with-tests compilation on cygwin.
104360         * modules/argmatch-tests (Makefile.am): List gnulib library first
104361         in LDADD.
104362         * modules/argp-tests (Makefile.am): Likewise.
104363         * modules/array-list-tests (Makefile.am): Likewise.
104364         * modules/array-oset-tests (Makefile.am): Likewise.
104365         * modules/avltree-list-tests (Makefile.am): Likewise.
104366         * modules/avltree-oset-tests (Makefile.am): Likewise.
104367         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104368         * modules/carray-list-tests (Makefile.am): Likewise.
104369         * modules/dirname-tests (Makefile.am): Likewise.
104370         * modules/frexp-tests (Makefile.am): Likewise.
104371         * modules/isnanl-tests (Makefile.am): Likewise.
104372         * modules/linked-list-tests (Makefile.am): Likewise.
104373         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104374         * modules/lock-tests (Makefile.am): Likewise.
104375         * modules/rbtree-list-tests (Makefile.am): Likewise.
104376         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104377         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104378         * modules/tls-tests (Makefile.am): Likewise.
104379         * modules/tsearch-tests (Makefile.am): Likewise.
104380         * modules/xvasprintf-tests (Makefile.am): Likewise.
104382         Fix fpurge for cygwin.
104383         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104384         value.
104385         * modules/fpurge-tests (Depends-on): Clean up trash.
104387 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104389         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104391         * m4/autobuild.m4: Re-indent.
104393 2007-04-13  Bruno Haible  <bruno@clisp.org>
104395         * modules/fpurge-tests: New file.
104396         * tests/test-fpurge.c: New file.
104398         * modules/fpurge: New file.
104399         * lib/fpurge.h: New file.
104400         * lib/fpurge.c: New file.
104401         * m4/fpurge.m4: New file.
104403 2007-04-13  Bruno Haible  <bruno@clisp.org>
104405         * modules/fbufmode-tests: New file.
104406         * tests/test-fbufmode.c: New file.
104408         * modules/fbufmode: New file.
104409         * lib/fbufmode.h: New file.
104410         * lib/fbufmode.c: New file.
104411         * m4/fbufmode.m4: New file.
104413 2007-04-13  Bruno Haible  <bruno@clisp.org>
104415         * modules/fwritable-tests: New file.
104416         * tests/test-fwritable.c: New file.
104418         * modules/fwritable: New file.
104419         * lib/fwritable.h: New file.
104420         * lib/fwritable.c: New file.
104421         * m4/fwritable.m4: New file.
104423 2007-04-13  Bruno Haible  <bruno@clisp.org>
104425         * modules/freadable-tests: New file.
104426         * tests/test-freadable.c: New file.
104428         * modules/freadable: New file.
104429         * lib/freadable.h: New file.
104430         * lib/freadable.c: New file.
104431         * m4/freadable.m4: New file.
104433 2007-04-13  Bruno Haible  <bruno@clisp.org>
104435         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104436         MOSTLYCLEANFILES.
104438 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104440         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104441         gzip bootstrap.conf to avoid dragging in i18n machinery.
104442         (gnulib_tool_option): Use it.
104444 2007-04-13  Bruno Haible  <bruno@clisp.org>
104446         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104447         %F directives.
104448         * tests/test-vasprintf-posix.c (test_function): Likewise.
104449         * tests/test-snprintf-posix.h (test_function): Likewise.
104450         * tests/test-sprintf-posix.h (test_function): Likewise.
104451         * tests/test-fprintf-posix.h (test_function): Likewise.
104452         * tests/test-printf-posix.h (test_function): Likewise.
104453         * tests/test-fprintf-posix.out: Likewise.
104455 2007-04-13  Bruno Haible  <bruno@clisp.org>
104457         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104458         * modules/tls-tests (configure.ac): Likewise.
104459         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104461 2007-04-13  Bruno Haible  <bruno@clisp.org>
104463         * lib/tls.c (glthread_tls_get): Fix return type.
104464         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104466 2007-04-12  Eric Blake  <ebb9@byu.net>
104468         * modules/gettime (Depends-on): Remove gettime.
104469         Reported by Dmitry V. Levin.
104471 2007-04-12  Bruno Haible  <bruno@clisp.org>
104473         * modules/fflush (Include): Mention <stdio.h>.
104474         * modules/strtoimax (Include): Mention <inttypes.h>.
104475         * modules/strtoumax (Include): Likewise.
104477 2007-04-12  Eric Blake  <ebb9@byu.net>
104479         * .cvsignore: New file.
104480         * .gitignore: Likewise.
104482 2007-04-12  Bruno Haible  <bruno@clisp.org>
104484         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104485         not before, since $(LDADD) often contains libgnu.a.
104486         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104487         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104488         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104489         Needed on Cygwin.
104491 2007-04-12  Eric Blake  <ebb9@byu.net>
104493         Work around glibc's failure to flush stdin on fclose.
104494         * lib/closein.c (close_stdin): Flush stdin before closing.
104496         Work around glibc's failure to reset seekable stdin on exit.
104497         * modules/closein: New module.
104498         * lib/closein.c: New file.
104499         * lib/closein.h: Likewise.
104500         * m4/closein.m4: Likewise.
104501         * MODULES.html.sh (File stream based Input/Output): Document it.
104503 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104505         * gnulib-tool: Rename generated 'autobuild' script to
104506         'do-autobuild' in --create-megatestdir output.
104508         * doc/gnulib.texi (Build robot for gnulib): Fix.
104510 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104512         * modules/sysexits (Depends-on): Add absolute-header.
104514 2007-04-12  Eric Blake  <ebb9@byu.net>
104516         No need to preserve errno on success.
104517         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104518         Reported by Bruno Haible.
104520 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104522         * MODULES.html.sh (Support for maintaining and releasing
104523         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104525 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104527         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104529 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104531         * modules/autobuild: New module.
104533         * m4/autobuild.m4: New file.
104535 2007-04-11  Bruno Haible  <bruno@clisp.org>
104537         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104538         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104542         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104543         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104545         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104546         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104547         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104548         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104549         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104551         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104552         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104553         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104554         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104555         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104556         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104557         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104558         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104559         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104560         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104561         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104563         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104564         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104565         Reported by Eric Blake.
104567 2007-04-11  Bruno Haible  <bruno@clisp.org>
104569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104571 2007-04-10  Bruno Haible  <bruno@clisp.org>
104573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104574         for NaN and Infinity. Needed on FreeBSD 6.1.
104575         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104576         regarding results for "%010a" of Infinity and NaN.
104577         * tests/test-vasprintf-posix.c (test_function): Likewise.
104578         * tests/test-snprintf-posix.h (test_function): Likewise.
104579         * tests/test-sprintf-posix.h (test_function): Likewise.
104580         * tests/test-fprintf-posix.h (test_function): Likewise.
104581         * tests/test-printf-posix.h (test_function): Likewise.
104582         * tests/test-fprintf-posix.out: Likewise.
104584 2007-04-10  Bruno Haible  <bruno@clisp.org>
104586         * modules/locale-tests: New file.
104587         * tests/test-locale.c: New file.
104589         * modules/locale: New file.
104590         * lib/locale_.h: New file.
104591         * m4/locale_h.m4: New file.
104593 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104594             Bruno Haible  <bruno@clisp.org>
104596         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104597         be determined, test for availability of the copysignf, copysign,
104598         copysignl functions.
104599         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104600         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104601         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104603 2007-04-09  Eric Blake  <ebb9@byu.net>
104605         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104606         * modules/stdio (Makefile.am): Support fflush.
104607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104608         * modules/fflush: New file.
104609         * lib/fflush.c: Likewise.
104610         * m4/fflush.m4: Likewise.
104611         * modules/fflush-tests: New test.
104612         * tests/test-fflush.c: Likewise.
104613         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104615 2007-04-06  Bruno Haible  <bruno@clisp.org>
104617         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104618         (VASNPRINTF): Use signbit for faster determination whether to print a
104619         minus sign.
104620         * modules/vasnprintf (Files): Remove lib/float+.h.
104621         * modules/fprintf-posix (Depends-on): Add signbit.
104622         * modules/snprintf-posix (Depends-on): Likewise.
104623         * modules/sprintf-posix (Depends-on): Likewise.
104624         * modules/vasnprintf-posix (Depends-on): Likewise.
104625         * modules/vasprintf-posix (Depends-on): Likewise.
104626         * modules/vfprintf-posix (Depends-on): Likewise.
104627         * modules/vsnprintf-posix (Depends-on): Likewise.
104628         * modules/vsprintf-posix (Depends-on): Likewise.
104630 2007-04-06  Bruno Haible  <bruno@clisp.org>
104632         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104633         * tests/test-frexpl.c (main): Likewise.
104634         * tests/test-ldexpl.c (main): Likewise.
104635         * modules/frexp-tests (Depends-on): Add signbit.
104636         * modules/frexpl-tests (Depdends-on): Likewise.
104637         * modules/ldexpl-tests (Depdends-on): Likewise.
104639 2007-04-06  Bruno Haible  <bruno@clisp.org>
104641         * modules/signbit-tests: New file.
104642         * tests/test-signbit.c: New file.
104644         * modules/signbit: New file.
104645         * lib/signbitf.c: New file.
104646         * lib/signbitd.c: New file.
104647         * lib/signbitl.c: New file.
104648         * m4/signbit.m4: New file.
104649         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104650         (signbit): New macro.
104651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104652         REPLACE_SIGNBIT.
104653         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104654         REPLACE_FREXPL into math.h.
104656 2007-04-06  Bruno Haible  <bruno@clisp.org>
104658         * modules/isnanf-nolibm-tests: New file.
104659         * tests/test-isnanf.c: New file.
104661         * modules/isnanf-nolibm: New file.
104662         * lib/isnanf.h: New file.
104663         * lib/isnanf.c: New file.
104664         * lib/isnan.c: Consider the USE_FLOAT macro.
104665         * m4/isnanf.m4: New file.
104667 2007-04-06  Bruno Haible  <bruno@clisp.org>
104669         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104670         (Link): New section.
104672         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104674 2007-04-06  Bruno Haible  <bruno@clisp.org>
104676         Assume the 'long double' type.
104677         * m4/longdouble.m4: Remove file.
104678         * config/srclist.txt: Don't mention longdouble.m4.
104679         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104680         * lib/float+.h: Likewise.
104681         * lib/frexp.c: Likewise.
104682         * lib/printf-args.h: Likewise.
104683         * lib/printf-args.c: Likewise.
104684         * lib/printf-frexp.c: Likewise.
104685         * lib/printf-parse.c: Likewise.
104686         * lib/vasnprintf.c: Likewise.
104687         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104688         * m4/intl.m4: Likewise.
104689         * m4/isnanl.m4: Likewise.
104690         * m4/printf.m4: Likewise.
104691         * m4/printf-frexpl.m4: Likewise.
104692         * m4/vasnprintf.m4: Likewise.
104693         * modules/allocsa (Files): Remove m4/longdouble.m4.
104694         * modules/gettext (Files): Likewise.
104695         * modules/relocatable-prog-wrapper (Files): Likewise.
104696         * modules/vasnprintf (Files): Likewise.
104697         * modules/isnanl (Files): Likewise.
104698         (Include): Simplify.
104699         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104700         (Include): Simplify.
104701         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104702         (Include): Simplify.
104703         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104704         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104705         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104706         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104707         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104708         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104709         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104710         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104711         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104712         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104713         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104714         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104715         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104716         * tests/test-isnanl.c: Likewise.
104717         * tests/test-snprintf-posix.h: Likewise.
104718         * tests/test-sprintf-posix.h: Likewise.
104719         * tests/test-vasnprintf-posix.c: Likewise.
104720         * tests/test-vasnprintf-posix2.c: Likewise.
104721         * tests/test-vasprintf-posix.c: Likewise.
104723 2007-04-06  Bruno Haible  <bruno@clisp.org>
104725         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104726         * lib/math_.h [__DECC]: Include the overridden include file through
104727         #include_next, outside the double-inclusion guard.
104728         * lib/stdio_.h [__DECC]: Likewise.
104729         * lib/stdlib_.h [__DECC]: Likewise.
104730         * lib/string_.h [__DECC]: Likewise.
104731         * lib/time_.h [__DECC]: Likewise.
104732         * lib/wchar_.h [__DECC]: Likewise.
104733         * lib/wctype_.h [__DECC]: Likewise.
104734         * lib/inttypes_.h [__DECC]: Likewise.
104735         Reported by Albert Chin <china@thewrittenword.com> in
104736         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104738 2007-04-04  Eric Blake  <ebb9@byu.net>
104740         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104741         1.5.x.
104743 2007-04-04  Bruno Haible  <bruno@clisp.org>
104745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104746         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104748 2007-04-04  Bruno Haible  <bruno@clisp.org>
104750         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104751         results for "%010a" of Infinity and NaN.
104752         * tests/test-vasprintf-posix.c (test_function): Likewise.
104753         * tests/test-snprintf-posix.h (test_function): Likewise.
104754         * tests/test-sprintf-posix.h (test_function): Likewise.
104755         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104756         * tests/test-printf-posix.h (test_function): Likewise.
104757         * tests/test-fprintf-posix.out: Update.
104758         Needed for FreeBSD 6.1.
104760 2007-04-04  Bruno Haible  <bruno@clisp.org>
104762         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104763         directly used by the gnulib modules nor by gnulib-tool.
104765 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104767         * DEPENDENCIES: Give overall description of version dependency
104768         desirability.  Use more-typical names for apps.
104769         Add shell, coreutils, diffutils, grep, tar, gzip.
104771 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104773         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104775 2007-04-04  Karl Berry  <karl@gnu.org>
104777         * MODULES.html.sh (func_module): missing '.
104779 2007-04-03  Bruno Haible  <bruno@clisp.org>
104781         * modules/argmatch-tests (Makefile.am): New variable
104782         test_argmatch_LDADD.
104783         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104784         * modules/array-list-tests (Makefile.am): New variable
104785         test_array_list_LDADD.
104786         * modules/array-oset-tests (Makefile.am): New variable
104787         test_array_oset_LDADD.
104788         * modules/avltree-list-tests (Makefile.am): New variable
104789         test_avltree_list_LDADD.
104790         * modules/avltree-oset-tests (Makefile.am): New variable
104791         test_avltree_oset_LDADD.
104792         * modules/avltreehash-list-tests (Makefile.am): New variable
104793         test_avltreehash_list_LDADD.
104794         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104795         test_canonicalize_lgpl_LDADD.
104796         * modules/carray-list-tests (Makefile.am): New variable
104797         test_carray_list_LDADD.
104798         * modules/dirname-tests (Makefile.am): New variable
104799         test_dirname_LDADD.
104800         * modules/linked-list-tests (Makefile.am): New variable
104801         test_linked_list_LDADD.
104802         * modules/linkedhash-list-tests (Makefile.am): New variable
104803         test_linkedhash_list_LDADD.
104804         * modules/rbtree-list-tests (Makefile.am): New variable
104805         test_rbtree_list_LDADD.
104806         * modules/rbtree-oset-tests (Makefile.am): New variable
104807         test_rbtree_oset_LDADD.
104808         * modules/rbtreehash-list-tests (Makefile.am): New variable
104809         test_rbtreehash_list_LDADD.
104810         * modules/xvasprintf-tests (Makefile.am): New variable
104811         test_xvasprintf_LDADD.
104812         Reported by Eric Blake.
104814 2007-04-03  Eric Blake  <ebb9@byu.net>
104816         * DEPENDENCIES: Weaken m4 requirements.
104818 2007-04-03  Bruno Haible  <bruno@clisp.org>
104820         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104821         * modules/isnanl-tests (configure.ac): Likewise.
104823 2007-04-03  Ben Pfaff  <blp@gnu.org>
104825         * modules/iconv_open: Add $(srcdir)/ to source directory
104826         references in Makefile fragments that call gperf, to fix VPATH
104827         builds.
104829 2007-04-03  Bruno Haible  <bruno@clisp.org>
104831         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104832         * lib/ldexpl.c: Undo last change.
104834 2007-04-03  Bruno Haible  <bruno@clisp.org>
104836         * modules/printf-frexpl (Depends-on): Undo last change.
104837         (Files): Add m4/ldexpl.m4.
104839 2007-04-03  Bruno Haible  <bruno@clisp.org>
104841         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104842         * modules/isnanl (Link): New section.
104844         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104845         * modules/frexp (Link): New section.
104847         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104848         * modules/frexpl (Link): New section.
104850         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104851         * modules/ldexpl (Link): New section.
104853 2007-04-03  Bruno Haible  <bruno@clisp.org>
104855         * modules/TEMPLATE-EXTENDED: New file.
104856         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104858 2007-04-03  Bruno Haible  <bruno@clisp.org>
104860         * DEPENDENCIES: New file.
104861         Suggested by Simon Josefsson.
104863 2007-04-03  Bruno Haible  <bruno@clisp.org>
104865         * doc/gnulib.texi: Escape @.
104867 2007-04-03  James Youngman  <jay@gnu.org>
104868         and Paul Eggert  <eggert@cs.ucla.edu>
104870         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104871         birthtime on all systems that have birthtime, not just those which
104872         use st_birthtimensec rather than st_birthtim.  Putting zero in
104873         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104874         that the birth time is not available for files on an NFS mount.
104876 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104878         * modules/memxor: Move back from crypto/, suggested by Bruno.
104879         * modules/crypto/hmac-sha1: Fix memxor dependency.
104881         * modules/crypto/gc: Moved from ../.
104883 2007-04-02  Eric Blake  <ebb9@byu.net>
104885         * lib/ldexpl.c (includes): Avoid libm.
104887         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104889 2007-04-02  Bruno Haible  <bruno@clisp.org>
104891         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104892         on IRIX.
104894 2007-04-02  Bruno Haible  <bruno@clisp.org>
104896         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104897         x86 or x86_64 platforms running MacOS X.
104898         Reported by Ryan Schmidt <@ryandesign.com>.
104900 2007-04-02  Bruno Haible  <bruno@clisp.org>
104902         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104903         i386.
104905 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104907         * modules/crypto/arcfour: Moved from ../.
104908         * modules/crypto/arcfour-tests: Moved from ../.
104909         * modules/crypto/arctwo: Moved from ../.
104910         * modules/crypto/arctwo-tests: Moved from ../.
104911         * modules/crypto/des: Moved from ../.
104912         * modules/crypto/des-tests: Moved from ../.
104913         * modules/crypto/gc-arcfour: Moved from ../.
104914         * modules/crypto/gc-arcfour-tests: Moved from ../.
104915         * modules/crypto/gc-arctwo: Moved from ../.
104916         * modules/crypto/gc-arctwo-tests: Moved from ../.
104917         * modules/crypto/gc-des: Moved from ../.
104918         * modules/crypto/gc-des-tests: Moved from ../.
104919         * modules/crypto/gc-hmac-md5: Moved from ../.
104920         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104921         * modules/crypto/gc-hmac-sha1: Moved from ../.
104922         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104923         * modules/crypto/gc-md2: Moved from ../.
104924         * modules/crypto/gc-md2-tests: Moved from ../.
104925         * modules/crypto/gc-md4: Moved from ../.
104926         * modules/crypto/gc-md4-tests: Moved from ../.
104927         * modules/crypto/gc-md5: Moved from ../.
104928         * modules/crypto/gc-md5-tests: Moved from ../.
104929         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104930         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104931         * modules/crypto/gc-random: Moved from ../.
104932         * modules/crypto/gc-rijndael: Moved from ../.
104933         * modules/crypto/gc-rijndael-tests: Moved from ../.
104934         * modules/crypto/gc-sha1: Moved from ../.
104935         * modules/crypto/gc-sha1-tests: Moved from ../.
104936         * modules/crypto/gc-tests: Moved from ../.
104937         * modules/crypto/hmac-md5: Moved from ../.
104938         * modules/crypto/hmac-md5-tests: Moved from ../.
104939         * modules/crypto/hmac-sha1: Moved from ../.
104940         * modules/crypto/hmac-sha1-tests: Moved from ../.
104941         * modules/crypto/md2: Moved from ../.
104942         * modules/crypto/md2-tests: Moved from ../.
104943         * modules/crypto/md4: Moved from ../.
104944         * modules/crypto/md4-tests: Moved from ../.
104945         * modules/crypto/md5: Moved from ../.
104946         * modules/crypto/md5-tests: Moved from ../.
104947         * modules/crypto/memxor: Moved from ../.
104948         * modules/crypto/rijndael: Moved from ../.
104949         * modules/crypto/rijndael-tests: Moved from ../.
104950         * modules/crypto/sha1: Moved from ../.
104952 2007-03-30  James Youngman  <jay@gnu.org>
104954         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104955         rename() to change the ctime of a file (because ctime is unaffected
104956         by rename on jfs2 on AIX 5.1).
104957         (main): Start by doing cleanup, in case a previous run failed leaving
104958         test files behind.
104960 2007-03-31  Bruno Haible  <bruno@clisp.org>
104962         Support old proprietary implementations of iconv.
104963         * modules/iconv_open: New file.
104964         * lib/iconv_.h: New file.
104965         * m4/iconv_h.m4: New file.
104966         * lib/iconv_open.c: New file.
104967         * lib/iconv_open-aix.gperf: New file.
104968         * lib/iconv_open-hpux.gperf: New file.
104969         * lib/iconv_open-irix.gperf: New file.
104970         * lib/iconv_open-osf.gperf: New file.
104971         * m4/iconv_open.m4: New file.
104972         * modules/linebreak (Depends-on): Add iconv_open.
104973         * modules/striconv (Depends-on): Likewise.
104974         * modules/striconveh (Depends-on): Likewise.
104975         * modules/unicodeio (Depends-on): Likewise.
104976         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104977         (iconv_t)(-1).
104978         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104979         conversion if cd is (iconv_t)(-1).
104980         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104981         is not possible.
104983 2007-03-31  Bruno Haible  <bruno@clisp.org>
104985         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104986         work on Solaris either. Protect also second use of "autodetect_jp".
104988 2007-03-31  Bruno Haible  <bruno@clisp.org>
104990         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104991         the function is not present.
104993 2007-03-31  Bruno Haible  <bruno@clisp.org>
104995         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104996         the function is not present.
104998 2007-03-31  Bruno Haible  <bruno@clisp.org>
105000         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
105001         a bug in HP-UX iconv_open().
105003 2007-03-31  Bruno Haible  <bruno@clisp.org>
105005         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
105006         (Mathematics <math.h>): New section, add fpieee.
105007         (Input/output <stdio.h>): Add fseterr.
105008         (Mathematics <math.h>): New section, add printf-frexp.
105009         (Container data structures): Add sublist.
105010         (Core language properties): Add fpucw, inline.
105011         (Functions for greatest-width integer types <inttypes.h>): Add
105012         imaxabs, imaxdiv, inttypes.
105013         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
105014         isnanl-nolibm, ldexp.
105015         (Mathematics <math.h>): New section, add printf-frexpl.
105016         (Support for systems lacking POSIX:2001): Add fprintf-posix,
105017         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
105018         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
105019         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
105020         (Unicode string functions): Add unistr/u*-mbtoucr.
105021         (Java): Add javacomp-script, javaexec-script.
105022         (C#): Add csharpcomp-script, csharpexec-script.
105023         (Support for building libraries and executables): Add havelib,
105024         relocatable-*.
105025         (Support for maintaining and releasing projects): Renamed from
105026         'Support for maintaining and release projects'. Add announce-gen.
105028 2007-03-31  Bruno Haible  <bruno@clisp.org>
105030         * README: Talk primarily about git.
105031         (git and CVS): Renamed from CVS.
105032         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
105033         gnulib is available through git.
105034         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
105036 2007-03-30  Bruno Haible  <bruno@clisp.org>
105038         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
105039         * lib/poll_.h: Likewise.
105040         * lib/stat_.h: Likewise.
105041         * lib/sys_time_.h: Likewise.
105042         * lib/sysexit_.h: Likewise.
105043         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
105044         * lib/stdbool_.h: Likewise.
105045         * lib/byteswap_.h: Add double-inclusion guard.
105047 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
105049         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
105051 2007-03-30  Karl Berry  <karl@gnu.org>
105053         * config/srclist-update: double space after USA in the license
105054         substitution, since that's how it's usually (?) written.
105056 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
105058         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
105059         reported by Bruno Haible.
105061 2007-03-29  Bruno Haible  <bruno@clisp.org>
105063         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
105064         a bug in AIX iconv().
105066 2007-03-29  Bruno Haible  <bruno@clisp.org>
105068         * modules/ldexpl-tests: New file.
105069         * tests/test-ldexpl.c: New file.
105071 2007-03-29  Bruno Haible  <bruno@clisp.org>
105073         * lib/ldexpl.c: Include fpucw.h.
105074         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
105075         multiplication.
105076         * modules/ldexpl (Depends-on): Add fpucw.
105078 2007-03-29  Bruno Haible  <bruno@clisp.org>
105080         * modules/ldexpl: New file.
105081         * m4/ldexpl.m4: New file.
105082         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
105083         set.
105084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
105085         REPLACE_LDEXPL.
105086         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
105087         REPLACE_LDEXPL.
105088         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
105089         gl_FUNC_LDEXPL_WORKS.
105090         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
105091         * modules/mathl (Files): Remove lib/ldexpl.c.
105092         (Depends-on): Add ldexpl.
105094 2007-03-29  Bruno Haible  <bruno@clisp.org>
105096         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
105098 2007-03-29  Bruno Haible  <bruno@clisp.org>
105100         * tests/test-striconveh.c (main): Don't assume that a direct conversion
105101         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
105102         and possibly also HP-UX.
105103         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105104         work on AIX, IRIX, HP-UX, OSF/1.
105105         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
105106         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
105107         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
105108         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
105109         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
105110         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
105112 2007-03-29  Bruno Haible  <bruno@clisp.org>
105114         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
105116 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105118         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
105119         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
105121 2007-03-29  Eric Blake  <ebb9@byu.net>
105123         * lib/acl-internal.h: Remove redundant include.
105124         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
105125         Cygwin when a file is locked.
105127 2007-03-29  Bruno Haible  <bruno@clisp.org>
105129         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
105130         file.
105131         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
105133 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
105135         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
105136         try to remove a parent directory if the child couldn't be removed
105137         (except for the first rmdir, which could fail because the child
105138         doesn't exist).  Problem reported by Jeff Blaine in
105139         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
105141 2007-03-28  Bruno Haible  <bruno@clisp.org>
105143         * lib/striconveh.c (utf8conv_carefully): New function.
105144         (mem_cd_iconveh_internal): Invoke it.
105146 2007-03-28  Bruno Haible  <bruno@clisp.org>
105148         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
105149         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
105150         input.
105151         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
105152         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
105153         unistr/u8-uctomb.
105155 2007-03-28  Bruno Haible  <bruno@clisp.org>
105157         * modules/unistr/u8-mbtoucr: New file.
105158         * lib/unistr/u8-mbtoucr.c: New file.
105159         * modules/unistr/u16-mbtoucr: New file.
105160         * lib/unistr/u16-mbtoucr.c: New file.
105161         * modules/unistr/u16-mbtoucr: New file.
105162         * lib/unistr/u16-mbtoucr.c: New file.
105163         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
105165 2007-03-27  Simon Josefsson  <simon@josefsson.org>
105166             Bruno Haible  <bruno@clisp.org>
105168         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
105169         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
105170         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
105172         * m4/stdio_h.m4: Add stubs for vasprintf too.
105174         * modules/stdio: Support vasprintf in sed command.
105176         * modules/vasprintf: Depend on stdio for prototypes.  Remove
105177         vasprintf.h.  Add stdio module indicator.
105179         * lib/stdio_.h: Declare asprintf and vasprintf, based on
105180         vasprintf.h.
105182         * lib/vasprintf.h: File removed.
105184         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
105185         * lib/vasprintf.c: Ditto.
105186         * lib/xvasprintf.c: Ditto.
105187         * tests/test-vasprintf-posix.c: Ditto.
105188         * tests/test-vasprintf.c: Ditto.
105190 2007-03-27  Bruno Haible  <bruno@clisp.org>
105192         Make vasnprintf multithread-safe.
105193         * lib/vasnprintf.c (decimal_point_char): New function.
105194         (VASNPRINTF): Use it.
105195         Suggested by Simon Josefsson.
105197 2007-03-27  Eric Blake  <ebb9@byu.net>
105199         Support sub-second birthtime on cygwin.
105200         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
105201         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
105202         (get_stat_birthtime): Also work with st_birthtim.
105204 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
105206         * lib/stat-time.h (USE_BIRTHTIME): Remove.
105207         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
105208         (get_stat_birthtime_ns): Do not try to use "spare" fields.
105209         (get_stat_birthtime_ns): Simplify compile-time tests.
105210         (get_stat_birthtime): Change the API to look like
105211         get_stat_mtime etc., except return a negative tv_nsec on error.
105212         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
105213         Don't check for "spare" fields.
105214         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
105215         or for struct stat.st_birthtime, as these tests aren't used.
105216         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
105218 2007-03-27  Bruno Haible  <bruno@clisp.org>
105220         * lib/stat-time.h: Include <sys/stat.h>.
105222 2007-03-27  James Youngman  <jay@gnu.org>
105224         * lib/stat-time.h (get_stat_birthtime): New function for
105225           retrieving st_birthtime as provided by UFS2 (hence *BSD).
105226         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
105227           and its variants.
105228         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
105229         * modules/stat-time-test: New file.
105230         * tests/test-stat-time.c: New test, devised by Bruno Haible.
105232 2007-03-26  Bruno Haible  <bruno@clisp.org>
105234         Better support of signalling NaNs.
105235         * lib/atanl.c: Include isnanl.h.
105236         (atanl): Perform test for NaN at the beginning of the function and
105237         through a call to isnanl.
105238         * lib/cosl.c: Include isnanl.h.
105239         (cosl): Perform test for NaN at the beginning of the function and
105240         through a call to isnanl.
105241         * lib/ldexpl.c: Include isnanl.h.
105242         (ldexpl): Perform test for NaN through a call to isnanl.
105243         * lib/logl.c: Include isnanl.h.
105244         (logl): Perform test for NaN at the beginning of the function and
105245         through a call to isnanl.
105246         * lib/sinl.c: Include isnanl.h.
105247         (sinl): Perform test for NaN at the beginning of the function and
105248         through a call to isnanl.
105249         * lib/sqrtl.c: Include isnanl.h.
105250         (sqrtl): Perform test for NaN at the beginning of the function and
105251         through a call to isnanl.
105252         * lib/tanl.c: Include isnanl.h.
105253         (tanl): Perform test for NaN at the beginning of the function and
105254         through a call to isnanl.
105255         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105256         * modules/mathl (Depends-on): Add isnanl.
105258 2007-03-26  Eric Blake  <ebb9@byu.net>
105260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105261         regression in logic sense of previous patch.
105263 2007-03-26  Bruno Haible  <bruno@clisp.org>
105265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105266         unportable shell command "if ! ...".
105267         Reported by Ralf Wildenhues.
105269 2007-03-25  Bruno Haible  <bruno@clisp.org>
105271         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105272         <sysexits.h> file, and only add EX_CONFIG.
105273         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105274         absolute file name and whether it is sufficient. Substitute also
105275         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105276         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105277         ABSOLUTE_SYSEXITS_H into sysexits.h.
105279 2007-03-25  Bruno Haible  <bruno@clisp.org>
105281         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105282         hints is NULL.
105284 2007-03-25  Bruno Haible  <bruno@clisp.org>
105286         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105287         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105289 2007-03-25  Bruno Haible  <bruno@clisp.org>
105291         * lib/vasnprintf.c: Include langinfo.h.
105292         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105293         multithread-safe.
105294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105303         Reported by Simon Josefsson.
105305 2007-03-25  Bruno Haible  <bruno@clisp.org>
105307         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105308         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105309         * modules/vasnprintf (Depends-on): Add stdint.
105311 2007-03-25  Bruno Haible  <bruno@clisp.org>
105313         * modules/fpieee: New file.
105314         * m4/fpieee.m4: New file.
105315         * modules/isnan-nolibm (Depends-on): Add fpieee.
105316         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105317         * modules/isnanl (Depends-on): Add fpieee.
105319 2007-03-25  Bruno Haible  <bruno@clisp.org>
105321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105323 2007-03-25  Bruno Haible  <bruno@clisp.org>
105325         Avoid test failures on IRIX 6.5.
105326         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105327         (main): Use it.
105328         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105329         macros.
105330         (main): Use them.
105332 2007-03-25  Bruno Haible  <bruno@clisp.org>
105334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105335         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105336         exists but doesn't work.
105337         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105338         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105340         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105341         math.h.
105343 2007-03-25  Bruno Haible  <bruno@clisp.org>
105345         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105346         returns inf. Needed on IRIX 6.5.
105348 2007-03-25  Bruno Haible  <bruno@clisp.org>
105350         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105351         (main): Use isnanl instead of x != x idiom.
105352         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105354         * tests/test-frexp.c: Include isnan.h.
105355         (main): Use isnan instead of x != x idiom.
105356         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105358 2007-03-25  Bruno Haible  <bruno@clisp.org>
105360         * tests/test-frexp.c (NaN): New function/macro.
105361         (main): Use it instead of 0.0 / 0.0.
105362         * tests/test-isnan.c (NaN): New function/macro.
105363         (main): Use it instead of 0.0 / 0.0.
105364         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105365         (test_function): Use it instead of 0.0 / 0.0.
105366         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105367         (test_function): Use it instead of 0.0 / 0.0.
105368         * tests/test-snprintf-posix.h (NaN): New function/macro.
105369         (test_function): Use it instead of 0.0 / 0.0.
105370         * tests/test-sprintf-posix.h (NaN): New function/macro.
105371         (test_function): Use it instead of 0.0 / 0.0.
105372         * tests/test-fprintf-posix.h (NaN): New function/macro.
105373         (test_function): Use it instead of 0.0 / 0.0.
105374         * tests/test-printf-posix.h (NaN): New function/macro.
105375         (test_function): Use it instead of 0.0 / 0.0.
105377         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105379 2007-03-25  Bruno Haible  <bruno@clisp.org>
105381         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105383 2007-03-25  Bruno Haible  <bruno@clisp.org>
105385         * lib/regexec.c (merge_state_with_log): Make static.
105387 2007-03-25  Bruno Haible  <bruno@clisp.org>
105389         * lib/trigl.c (kernel_rem_pio2): Make static.
105391 2007-03-25  Bruno Haible  <bruno@clisp.org>
105393         * lib/sincosl.c (sincosl_table): Make static.
105395 2007-03-25  Bruno Haible  <bruno@clisp.org>
105397         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105398         if the compiler does not support C99.
105400 2007-03-25  Bruno Haible  <bruno@clisp.org>
105402         * modules/time (Makefile.am): Ensure all rule action lines start with a
105403         tab.
105405 2007-03-24  Bruno Haible  <bruno@clisp.org>
105407         * modules/tsearch-tests: New file.
105408         * tests/test-tsearch.sh: New file.
105409         * tests/test-tsearch.c: New file, mostly copied from glibc.
105411         * modules/search-tests: New file.
105412         * tests/test-search.c: New file.
105414         * modules/search: New file.
105415         * lib/search_.h: New file, incorporating lib/tsearch.h.
105416         * m4/search_h.m4: New file.
105417         * lib/tsearch.h: Remove file.
105418         * lib/tsearch.c: Include search.h instead of tsearch.h.
105419         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105420         HAVE_TSEARCH.
105421         * modules/tsearch (Files): Remove lib/tsearch.h.
105422         (Depends-on): Add search.
105423         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105424         (Include): Change tsearch.h into search.h.
105426 2007-03-24  Bruno Haible  <bruno@clisp.org>
105428         * modules/fpucw: New file.
105429         * lib/fpucw.h: New file.
105430         * lib/frexp.c: Include fpucw.h.
105431         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105432         (FUNC): Use them.
105433         * lib/printf-frexp.c: Include fpucw.h.
105434         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105435         (FUNC): Use them.
105436         * lib/vasnprintf.c: Include fpucw.h.
105437         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105438         'long double' calculations.
105439         * tests/test-frexpl.c: Include fpucw.h.
105440         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105441         * tests/test-printf-frexpl.c: Include fpucw.h.
105442         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105443         * modules/frexpl (Depends-on): Add fpucw.
105444         * modules/printf-frexpl (Depends-on): Likewise.
105445         * modules/fprintf-posix (Depends-on): Likewise.
105446         * modules/snprintf-posix (Depends-on): Likewise.
105447         * modules/sprintf-posix (Depends-on): Likewise.
105448         * modules/vasnprintf-posix (Depends-on): Likewise.
105449         * modules/vasprintf-posix (Depends-on): Likewise.
105450         * modules/vfprintf-posix (Depends-on): Likewise.
105451         * modules/vsnprintf-posix (Depends-on): Likewise.
105452         * modules/vsprintf-posix (Depends-on): Likewise.
105453         * modules/frexpl-tests (Depends-on): Likewise.
105454         * modules/printf-frexpl-tests (Depends-on): Likewise.
105456 2007-03-24  Bruno Haible  <bruno@clisp.org>
105458         * lib/float+.h: New file.
105459         * lib/isnan.c: Include float+.h.
105460         (SIZE): New macro.
105461         (FUNC): Compare only SIZE bytes of the value.
105462         * lib/vasnprintf.c: Include float+.h.
105463         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105464         SIZEOF_LDBL or SIZEOF_DBL bytes.
105465         * modules/isnan-nolibm (Files): Add lib/float+.h.
105466         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105467         * modules/isnanl (Files): Add lib/float+.h.
105468         * modules/vasnprintf (Files): Add lib/float+.h.
105470 2007-03-24  Bruno Haible  <bruno@clisp.org>
105472         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105473         include isnanl-nolibm.h.
105475 2007-03-24  Bruno Haible  <bruno@clisp.org>
105477         * tests/test-read-file.c (main): Don't produce spurious output for
105478         expected situations. Make the test fail if it encountered unexpected
105479         results.
105481 2007-03-24  Bruno Haible  <bruno@clisp.org>
105483         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105484         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105486 2007-03-24  Bruno Haible  <bruno@clisp.org>
105488         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105490 2007-03-24  Bruno Haible  <bruno@clisp.org>
105492         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105493         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105495         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105496         * modules/utf8-ucs4: Turn into a symbolic link to module
105497         unistr/u8-mbtouc.
105499         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105500         utf8-ucs4-unsafe.
105501         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105502         unistr/u8-mbtouc-unsafe.
105504         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105505         * modules/utf16-ucs4: Turn into a symbolic link to module
105506         unistr/u16-mbtouc.
105508         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105509         utf16-ucs4-unsafe.
105510         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105511         unistr/u16-mbtouc-unsafe.
105513         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105514         * modules/ucs4-utf8: Turn into a symbolic link to module
105515         unistr/u8-ubtomb.
105517         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105518         * modules/ucs4-utf16: Turn into a symbolic link to module
105519         unistr/u16-ubtomb.
105521 2007-03-24  Bruno Haible  <bruno@clisp.org>
105523         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105524         Enable the function only if HAVE_INLINE.
105525         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105526         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105527         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105528         Enable the function only if HAVE_INLINE.
105529         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105530         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105531         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105532         Enable the function only if HAVE_INLINE.
105533         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105534         Enable the function only if HAVE_INLINE.
105535         * modules/utf8-ucs4: Update.
105536         * modules/utf8-ucs4-unsafe: Update.
105537         * modules/utf16-ucs4: Update.
105538         * modules/utf16-ucs4-unsafe: Update.
105539         * modules/ucs4-utf8: Update.
105540         * modules/ucs4-utf16: Update.
105542 2007-03-24  Bruno Haible  <bruno@clisp.org>
105544         * lib/utf8-ucs4.h: Remove file.
105545         * lib/utf8-ucs4-unsafe.h: Remove file.
105546         * lib/utf16-ucs4.h: Remove file.
105547         * lib/utf16-ucs4-unsafe.h: Remove file.
105548         * lib/ucs4-utf8.h: Remove file.
105549         * lib/ucs4-utf16.h: Remove file.
105550         * lib/unistr.h: Include their previous contents.
105551         * m4/utf-ucs4.m4: Remove file.
105552         * m4/ucs4-utf.m4: Remove file.
105553         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105554         (Depends-on): Add unistr/base.
105555         (configure.ac): Remove gl_UTF_UCS4.
105556         (Makefile.am): Update.
105557         (Include): Change to unistr.h.
105558         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105559         (Depends-on): Add unistr/base.
105560         (configure.ac): Remove gl_UTF_UCS4.
105561         (Makefile.am): Update.
105562         (Include): Change to unistr.h.
105563         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105564         (Depends-on): Add unistr/base.
105565         (configure.ac): Remove gl_UTF_UCS4.
105566         (Makefile.am): Update.
105567         (Include): Change to unistr.h.
105568         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105569         (Depends-on): Add unistr/base.
105570         (configure.ac): Remove gl_UTF_UCS4.
105571         (Makefile.am): Update.
105572         (Include): Change to unistr.h.
105573         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105574         (Depends-on): Add unistr/base.
105575         (configure.ac): Remove gl_UCS4_UTF.
105576         (Makefile.am): Update.
105577         (Include): Change to unistr.h.
105578         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105579         (Depends-on): Add unistr/base.
105580         (configure.ac): Remove gl_UCS4_UTF.
105581         (Makefile.am): Update.
105582         (Include): Change to unistr.h.
105583         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105584         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105585         utf8-ucs4-unsafe.h.
105586         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105587         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105588         utf16-ucs4-unsafe.h.
105589         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105590         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105591         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105592         * lib/unistr/u8-strchr.c: Likewise.
105593         * lib/unistr/u8-strrchr.c: Likewise.
105594         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105595         * lib/unistr/u16-strchr.c: Likewise.
105596         * lib/unistr/u16-strrchr.c: Likewise.
105597         * lib/striconveh.c: Update.
105598         * lib/linebreak.c: Update.
105600 2007-03-24  Bruno Haible  <bruno@clisp.org>
105602         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105603         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105605 2007-03-22  Bruno Haible  <bruno@clisp.org>
105607         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105609 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105611         * MODULES.html.sh (File system functions): New module write-any-file.
105612         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105613         * m4/write-any-file.m4: New files.
105615 2007-03-23  Eric Blake  <ebb9@byu.net>
105617         * gnulib-tool: Rearrange space-tab sequences, since some editors
105618         like to eat them.
105620 2007-03-23  Eric Blake  <ebb9@byu.net>
105622         * lib/version-etc.c (version_etc_va): Update license wording to
105623         be more concise.  Recommended by Richard Stallman.
105625 2007-03-22  Bruno Haible  <bruno@clisp.org>
105627         * lib/poll.c (MSG_PEEK): New fallback definition.
105629 2007-03-22  Bruno Haible  <bruno@clisp.org>
105631         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105632         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105633         (main): Update.
105634         Fixes a compilation error on BeOS.
105636 2007-03-22  Bruno Haible  <bruno@clisp.org>
105638         * modules/frexpl-tests: New file.
105639         * tests/test-frexpl.c: New file.
105641         * modules/frexpl: New file.
105642         * m4/frexpl.m4: New file.
105643         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105644         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105646         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105647         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105648         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105650 2007-03-22  Bruno Haible  <bruno@clisp.org>
105652         * lib/frexpl.c: Share code with lib/frexp.c.
105653         * modules/mathl (Files): Add lib/frexp.c.
105654         (Depends-on): Add isnanl-nolibm.
105656 2007-03-22  Bruno Haible  <bruno@clisp.org>
105658         * modules/printf-frexp (Files): Add m4/frexp.m4.
105659         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105660         only if the found frexp function actually works.
105662 2007-03-22  Bruno Haible  <bruno@clisp.org>
105664         * lib/frexp.c: Remove older implementation that uses divisions.
105666 2007-03-21  Bruno Haible  <bruno@clisp.org>
105668         * modules/frexp-tests: New file.
105669         * tests/test-frexp.c: New file.
105671         * modules/frexp: New file.
105672         * lib/frexp.c: New file.
105673         * m4/frexp.m4: New file.
105674         * lib/math_.h (frexp): New declaration.
105675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105676         REPLACE_FREXP.
105677         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105679 2007-03-21  Bruno Haible  <bruno@clisp.org>
105681         * modules/isnanl-tests: New file.
105682         * tests/test-isnanl.c: New file.
105684         * modules/isnanl: New file.
105685         * lib/isnanl.h: New file.
105686         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105687         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105688         gl_FUNC_ISNANL_WORKS.
105689         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105690         New macros.
105692 2007-03-21  Bruno Haible  <bruno@clisp.org>
105694         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105695         lib/isnanl.h.
105696         (Include): Update.
105697         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105698         * lib/vasnprintf.c: Update.
105699         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105700         tests/test-isnanl.h, remove tests/test-isnanl.c.
105701         (Makefile.am): Update.
105702         * tests/test-isnanl-nolibm.c: New file.
105703         * tests/test-isnanl.h: New file.
105704         * tests/test-isnanl.c: Remove file.
105706 2007-03-21  Jim Meyering  <jim@meyering.net>
105708         When trying to open ".", treat ESTALE like EACCES.
105709         * lib/savewd.c (savewd_save): Resort to forking not just upon
105710         failure with EACCES, but also when errno is ESTALE.
105712 2007-03-20  Bruno Haible  <bruno@clisp.org>
105714         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105715         Needed on AIX 5.1. Reported by Matthew Woehlke.
105717 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105719         Suggestions by Bruno Haible:
105720         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105721         our own.
105722         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105723         * modules/acl (Depends-on): Add gettext.
105725 2007-03-19  Bruno Haible  <bruno@clisp.org>
105727         * modules/iconvme: Remove file.
105728         * lib/iconvme.h: Remove file.
105729         * lib/iconvme.c: Remove file.
105730         * m4/iconvme.m4: Remove file.
105732 2007-03-19  Bruno Haible  <bruno@clisp.org>
105734         * doc/relocatable-maint.texi: Break long shell script line.
105735         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105737 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105739         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105740         handle file_has_acl.
105741         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105742         * lib/acl.c: Move header inclusions and related macro defns into
105743         lib/acl-internal.h.
105744         (S_ISLNK): Remove defn, since that's now done for us.
105745         (file_has_acl): Move to lib/file-has-acl.c.
105746         Call acl_trivial if available.  This is the crucial part of the fix.
105747         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105748         shared within the library.  Rewrite a bit, partly to make it compatible
105749         with the GNU coding style.
105750         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105751         Remove unnecessary double-quotes.
105752         Don't test for acl_to_text; the build will catch that.
105753         Replace acl_entries if it doesn't exist and it is needed.
105754         Check for -lsec and acl_trivial (as used on Solaris 10).
105755         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105756         lib/file-has-acl.c.
105757         (Depends-on): Add sys_stat, for S_ISLNK.
105759 2007-03-19  Ben Pfaff  <blp@gnu.org>
105761         * doc/gnulib.texi: Fix typos.
105762         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105764 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105766         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105767         If size is zero here, buf must be zero.
105769 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105771         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105772         <bruno@clisp.org>.
105774 2007-03-18  Bruno Haible  <bruno@clisp.org>
105776         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105777         Suggested by Eric Blake.
105779 2007-03-18  Ben Pfaff  <blp@gnu.org>
105781         * doc/relocatable.texi: Recommend using as prefix a directory
105782         that does not exist and will never be created.  Based on
105783         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105784         and others.
105786 2007-03-17  Bruno Haible  <bruno@clisp.org>
105788         * lib/fchownat.c: Include lchown.h.
105790 2007-03-17  Bruno Haible  <bruno@clisp.org>
105792         Fix endless loop when the given allocated size was > INT_MAX.
105793         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105794         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105795         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105796         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105797         * lib/sprintf.c (sprintf): Likewise.
105799 2007-03-17  Bruno Haible  <bruno@clisp.org>
105801         * tests/test-argp-2.sh (func_compare): Output a context diff.
105803 2007-03-17  Bruno Haible  <bruno@clisp.org>
105805         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105806         locale's decimal-point character.
105808 2007-03-17  Bruno Haible  <bruno@clisp.org>
105810         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105811         before comparing it. Needed because on some platforms (e.g. x86) a
105812         'long double' occupies less bytes than sizeof (long double).
105814 2007-03-17  Bruno Haible  <bruno@clisp.org>
105816         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105817         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105818         * tests/test-getaddrinfo.c (simple): Likewise.
105819         * tests/test-read-file.c (main): Likewise.
105821 2007-03-17  Bruno Haible  <bruno@clisp.org>
105823         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105825 2007-03-17  Bruno Haible  <bruno@clisp.org>
105827         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105828         unused variable.
105830 2007-03-17  Bruno Haible  <bruno@clisp.org>
105832         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105833         * tests/test-c-strncasecmp.c: Likewise.
105835 2007-03-17  Bruno Haible  <bruno@clisp.org>
105837         * modules/stdlib (Depends-on): Add unistd.
105838         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105839         Needed for MacOS X 10.3.
105841 2007-03-17  Bruno Haible  <bruno@clisp.org>
105843         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105845 2007-03-17  Bruno Haible  <bruno@clisp.org>
105847         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105849 2007-03-17  Bruno Haible  <bruno@clisp.org>
105851         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105852         to reflect files copied from gnulib (with or without modifications).
105853         Suggested by Jim Meyering.
105855 2007-03-17  Eric Blake  <ebb9@byu.net>
105857         * NEWS: Document stdlib change from 2007-02-18.
105859 2007-03-17  Jim Meyering  <jim@meyering.net>
105861         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105862         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105863         someone uses a name containing shell meta-characters.
105864         Reported by Alfred M. Szmidt.
105866         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105868 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105870         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105871         and copy gettext configuration files only if configure.ac contains
105872         a use of AM_GNU_GETTEXT_VERSION.
105874 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105876         * build-aux/bootstrap (gnulib_name): New variable.
105877         (gnulib_tool_options): Use it.
105879 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105881         * tests/test-des.c: Use new namespace.
105883 2007-03-15  Bruno Haible  <bruno@clisp.org>
105885         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105886         Reported by James Youngman <jay@gnu.org>.
105888 2007-03-15  Bruno Haible  <bruno@clisp.org>
105890         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105891         declared prototype. Needed with cc on OSF/1 5.1.
105893 2007-03-15  Bruno Haible  <bruno@clisp.org>
105895         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105896         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105897         (struct gl_list_implementation): Add dispose_fn argument to the
105898         'create_empty', 'create' methods.
105899         (struct gl_list_impl_base): Add field 'dispose_fn'.
105900         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105901         argument.
105902         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105903         dispose_fn argument.
105904         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105905         dispose_fn on the dropped values.
105906         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105907         dispose_fn argument.
105908         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105909         dropped values.
105910         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105911         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105912         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105913         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105914         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105915         argument.
105916         (gl_tree_list_free): Call dispose_fn on the dropped values.
105917         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105918         the dropped values.
105919         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105920         Add dispose_fn argument.
105921         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105922         Call dispose_fn on the dropped values.
105923         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105924         Add dispose_fn argument.
105925         (gl_sublist_create): Initialize the 'dispose_fn' field.
105926         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105927         * tests/test-array_list.c (main): Update.
105928         * tests/test-carray_list.c (main): Update.
105929         * tests/test-avltree_list.c (main): Update.
105930         * tests/test-rbtree_list.c (main): Update.
105931         * tests/test-avltreehash_list.c (main): Update.
105932         * tests/test-rbtreehash_list.c (main): Update.
105933         * tests/test-linked_list.c (main): Update.
105934         * tests/test-linkedhash_list.c (main): Update.
105935         * tests/test-array_oset.c (main): Update.
105937 2007-03-15  Bruno Haible  <bruno@clisp.org>
105939         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105940         (gl_oset_create_empty): Add dispose_fn argument.
105941         (struct gl_oset_implementation): Add dispose_fn argument to
105942         'create_empty' method.
105943         (struct gl_oset_impl_base): Add dispose_fn field.
105944         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105945         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105946         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105947         values.
105948         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105949         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105950         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105951         dropped value.
105952         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105953         dropped value.
105954         * tests/test-array_oset.c (main): Update.
105955         * tests/test-avltree_oset.c (main): Update.
105956         * tests/test-rbtree_oset.c (main): Update.
105957         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105959 2007-03-13  Bruno Haible  <bruno@clisp.org>
105961         * tests/test-stdbool.c (i): Update after last patch.
105963 2007-03-12  Bruno Haible  <bruno@clisp.org>
105965         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105966         the iswprint macro. Needed on Solaris 2.5.1.
105968 2007-03-12  Bruno Haible  <bruno@clisp.org>
105970         * tests/test-printf-frexp.c (main): Declare x as volatile.
105972 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105974         * doc/gnulib.texi (Build robot for gnulib): New section.
105976 2007-03-12  Jim Meyering  <jim@meyering.net>
105978         * build-aux/bootstrap: New file.
105979         * build-aux/bootstrap.conf: New file, from coreutils.
105981 2007-03-11  Bruno Haible  <bruno@clisp.org>
105983         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105985 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105987         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105988         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105989         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105991 2007-03-11  Bruno Haible  <bruno@clisp.org>
105993         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105994         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105996 2007-03-11  Bruno Haible  <bruno@clisp.org>
105998         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105999         formula. Needed for SunPRO C 5.0.
106001 2007-03-11  Bruno Haible  <bruno@clisp.org>
106003         * modules/long-options (Depends-on): Add getopt.
106005 2007-03-11  Bruno Haible  <bruno@clisp.org>
106007         * modules/modechange (Depends-on): Add stdbool.
106009 2007-03-11  Bruno Haible  <bruno@clisp.org>
106011         * modules/i-ring (Depends-on): Add stdbool.
106013 2007-03-11  Bruno Haible  <bruno@clisp.org>
106015         * modules/gc-des (Depends-on): Add stdbool.
106017 2007-03-11  Bruno Haible  <bruno@clisp.org>
106019         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
106021 2007-03-11  Bruno Haible  <bruno@clisp.org>
106023         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
106025 2007-03-11  Bruno Haible  <bruno@clisp.org>
106027         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
106029 2007-03-11  Bruno Haible  <bruno@clisp.org>
106031         * lib/vasnprintf.c (sprintf): Undefine.
106033 2007-03-11  Bruno Haible  <bruno@clisp.org>
106035         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
106036         initializers in SunPRO C and Compaq C compilers.
106038 2007-03-11  Bruno Haible  <bruno@clisp.org>
106040         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
106041         decrementing code ANSI C compliant.
106043 2007-03-11  Bruno Haible  <bruno@clisp.org>
106045         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
106046         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
106048 2007-03-11  Bruno Haible  <bruno@clisp.org>
106050         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
106051         <stdbool.h> substitute doesn't pass.
106053 2007-03-11  Bruno Haible  <bruno@clisp.org>
106055         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
106057 2007-03-11  Bruno Haible  <bruno@clisp.org>
106059         * gnulib-tool (func_create_megatestdir): Create also an autobuild
106060         script, for submission to autobuild.josefsson.org.
106062 2007-03-10  Bruno Haible  <bruno@clisp.org>
106064         * modules/canonicalize-lgpl-tests: New file.
106065         * tests/test-canonicalize-lgpl.sh: New file.
106066         * tests/test-canonicalize-lgpl.c: New file.
106068         * modules/c-strcase-tests: New file.
106069         * tests/test-c-strcase.sh: New file.
106070         * tests/test-c-strcasecmp.c: New file.
106071         * tests/test-c-strncasecmp.c: New file.
106073         * modules/atexit-tests: New file.
106074         * tests/test-atexit.sh: New file.
106075         * tests/test-atexit.c: New file.
106077 2007-03-10  Bruno Haible  <bruno@clisp.org>
106079         * tests/test-binary-io.sh: Use temporary filenames that are not so
106080         likely to clash with those of other tests (in a parallel make).
106081         * tests/test-binary-io.c: Likewise.
106083 2007-03-10  Bruno Haible  <bruno@clisp.org>
106085         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
106086         fallback; use #error instead.
106087         Suggested by Simon Josefsson.
106089 2007-03-10  Bruno Haible  <bruno@clisp.org>
106091         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
106092         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
106093         first and the last.
106095 2007-03-10  Bruno Haible  <bruno@clisp.org>
106097         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
106099 2007-03-10  Bruno Haible  <bruno@clisp.org>
106101         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
106102         "make distcheck".
106103         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
106104         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
106105         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
106107 2007-03-10  Bruno Haible  <bruno@clisp.org>
106109         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
106110         variable.
106111         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
106112         variable.
106114 2007-03-09  Eric Blake  <ebb9@byu.net>
106115         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
106117         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
106118         types are not being provided by gnulib.
106119         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
106120         types are supported.
106122 2007-03-10  Bruno Haible  <bruno@clisp.org>
106124         * lib/stdio_.h (__attribute__): New macro.
106125         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
106126         vsprintf): Specify __attribute__ __format__ for GCC.
106127         Suggested by Eric Blake.
106129 2007-03-09  Bruno Haible  <bruno@clisp.org>
106131         * modules/printf-posix-tests: New file.
106132         * tests/test-printf-posix.sh: New file.
106133         * tests/test-printf-posix.c: New file.
106135         * modules/printf-posix: New file.
106136         * lib/printf.c: New file.
106137         * m4/printf-posix-rpl.m4: New file.
106138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
106139         REPLACE_PRINTF.
106140         * lib/stdio_.h (printf): New declaration.
106141         (format, __format__, ____printf____, ____scanf____, ____strftime____,
106142         ____strfmon____): New macros.
106143         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
106144         REPLACE_PRINTF.
106146 2007-03-09  Bruno Haible  <bruno@clisp.org>
106148         * tests/test-vasnprintf-posix2.sh: New file.
106149         * tests/test-vasnprintf-posix2.c: New file.
106150         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
106151         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
106152         (Makefile.am): Activate test-vasnprintf-posix2.sh.
106154         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
106155         a locale dependent decimal point, rather than always '.'.
106157 2007-03-09  Eric Blake  <ebb9@byu.net>
106159         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
106160         spite of platforms like Tandem/NSK that define it to -1.
106162 2007-03-08  Bruno Haible  <bruno@clisp.org>
106164         * modules/vprintf-posix-tests: New file.
106165         * tests/test-vprintf-posix.sh: New file.
106166         * tests/test-vprintf-posix.c: New file.
106167         * tests/test-printf-posix.h: New file.
106169         * modules/vprintf-posix: New file.
106170         * lib/vprintf.c: New file.
106171         * m4/vprintf-posix.m4: New file.
106172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
106173         REPLACE_VPRINTF.
106174         * lib/stdio_.h (vprintf): New declaration.
106175         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
106176         REPLACE_VPRINTF.
106178 2007-03-08  Bruno Haible  <bruno@clisp.org>
106180         * modules/fprintf-posix-tests: New file.
106181         * tests/test-fprintf-posix.sh: New file.
106182         * tests/test-fprintf-posix.c: New file.
106184         * modules/fprintf-posix: New file.
106185         * lib/fprintf.c: New file.
106186         * m4/fprintf-posix.m4: New file.
106187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
106188         REPLACE_FPRINTF.
106189         * lib/stdio_.h (fprintf): New declaration.
106190         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
106191         REPLACE_FPRINTF.
106193 2007-03-08  Bruno Haible  <bruno@clisp.org>
106195         * modules/vfprintf-posix-tests: New file.
106196         * tests/test-vfprintf-posix.sh: New file.
106197         * tests/test-vfprintf-posix.c: New file.
106198         * tests/test-fprintf-posix.h: New file.
106199         * tests/test-fprintf-posix.out: New file.
106201         * modules/vfprintf-posix: New file.
106202         * lib/vfprintf.c: New file.
106203         * m4/vfprintf-posix.m4: New file.
106204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
106205         REPLACE_VFPRINTF.
106206         * lib/stdio_.h (vfprintf): New declaration.
106207         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
106208         REPLACE_VFPRINTF.
106210 2007-03-08  Bruno Haible  <bruno@clisp.org>
106212         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
106214 2007-03-08  Bruno Haible  <bruno@clisp.org>
106216         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
106217         instead of 'expr' invocations.
106218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
106222         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106223         Suggested by Paul Eggert.
106225 2007-03-08  Bruno Haible  <bruno@clisp.org>
106227         * modules/fseterr-tests: New file.
106228         * tests/test-fseterr.c: New file.
106230         * modules/fseterr: New file.
106231         * lib/fseterr.h: New file.
106232         * lib/fseterr.c: New file.
106234 2007-03-08  Bruno Haible  <bruno@clisp.org>
106236         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
106237         * lib/getopt_.h: Likewise.
106238         * lib/mbswidth.h: Likewise.
106239         * lib/setenv.h: Likewise.
106240         * lib/vasnprintf.h: Likewise.
106241         * lib/vasprintf.h: Likewise.
106242         * lib/verror.h: Likewise.
106243         * lib/xsetenv.h: Likewise.
106244         * lib/xvasprintf.h: Likewise.
106246 2007-03-08  Jim Meyering  <jim@meyering.net>
106248         * users.txt: Add parted.
106250         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
106252 2007-03-07  Bruno Haible  <bruno@clisp.org>
106254         * m4/printf.m4: Make the shell script snippets copy&pastable.
106256 2007-03-02  Bruno Haible  <bruno@clisp.org>
106258         * lib/netinet_in_.h: New file.
106259         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106260         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106261         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106262         (Depends-on): Add absolute-header.
106263         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106264         into netinet/in.h.
106266 2007-03-03  Bruno Haible  <bruno@clisp.org>
106268         * lib/sys_select_.h: New file.
106269         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106270         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106271         * modules/sys_select (Files): Add lib/sys_select_.h.
106272         (Depends-on): Add absolute-header.
106273         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106274         into sys/select.h.
106276 2007-03-02  Bruno Haible  <bruno@clisp.org>
106278         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106279         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106280         values.
106281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106282         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106283         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106284         * modules/sys_socket (Depends-on): Add absolute-header.
106285         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106286         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106287         (Include): Remove requirement of inclusion of <sys/types.h>.
106289 2007-03-02  Bruno Haible  <bruno@clisp.org>
106291         * lib/byteswap_.h (bswap_32): Fix formula.
106293 2007-03-06  Bruno Haible  <bruno@clisp.org>
106295         * modules/sprintf-posix-tests: New file.
106296         * tests/test-sprintf-posix.c: New file.
106298         * modules/sprintf-posix: New file.
106299         * lib/sprintf.c: New file.
106300         * m4/sprintf-posix.m4: New file.
106301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106302         REPLACE_SPRINTF.
106303         * lib/stdio_.h (sprintf): New declaration.
106304         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106305         REPLACE_SPRINTF.
106307 2007-03-06  Bruno Haible  <bruno@clisp.org>
106309         * modules/vsprintf-posix-tests: New file.
106310         * tests/test-vsprintf-posix.c: New file.
106311         * tests/test-sprintf-posix.h: New file.
106313         * modules/vsprintf-posix: New file.
106314         * lib/vsprintf.c: New file.
106315         * m4/vsprintf-posix.m4: New file.
106316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106317         REPLACE_VSPRINTF.
106318         * lib/stdio_.h (vsprintf): New declaration.
106319         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106320         REPLACE_VSPRINTF.
106322 2007-03-06  Bruno Haible  <bruno@clisp.org>
106324         * modules/vsnprintf (Depend-on): Remove minmax.
106326 2007-03-06  Bruno Haible  <bruno@clisp.org>
106328         * modules/snprintf-posix-tests: New file.
106329         * tests/test-snprintf-posix.c: New file.
106331         * modules/snprintf-posix: New file.
106332         * m4/snprintf-posix.m4: New file.
106333         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106334         gl_FUNC_SNPRINTF.
106335         (gl_FUNC_SNPRINTF): Invoke it.
106336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106337         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106338         is set.
106339         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106341 2007-03-06  Bruno Haible  <bruno@clisp.org>
106343         * modules/vsnprintf-posix-tests: New file.
106344         * tests/test-vsnprintf-posix.c: New file.
106345         * tests/test-snprintf-posix.h: New file.
106347         * modules/vsnprintf-posix: New file.
106348         * m4/vsnprintf-posix.m4: New file.
106349         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106350         gl_FUNC_VSNPRINTF.
106351         (gl_FUNC_VSNPRINTF): Invoke it.
106352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106353         * lib/stdio_.h (vsnprintf): Define as a replacement if
106354         REPLACE_VSNPRINTF is set.
106355         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106357 2007-03-06  Bruno Haible  <bruno@clisp.org>
106359         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106362 2007-03-06  Bruno Haible  <bruno@clisp.org>
106364         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106365         (asinl): Declare also if HAVE_DECL_ASINL is set.
106366         (atanl): Declare also if HAVE_DECL_ATANL is set.
106367         (ceill): Declare also if HAVE_DECL_CEILL is set.
106368         (cosl): Declare also if HAVE_DECL_COSL is set.
106369         (expl): Declare also if HAVE_DECL_EXPL is set.
106370         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106371         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106372         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106373         (logl): Declare also if HAVE_DECL_LOGL is set.
106374         (sinl): Declare also if HAVE_DECL_SINL is set.
106375         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106376         (tanl): Declare also if HAVE_DECL_TANL is set.
106377         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106379         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106380         declaration of frexpl, ldexpl.
106381         * modules/printf-frexpl (Depends-on): Add math.
106382         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106384 2007-03-05  Bruno Haible  <bruno@clisp.org>
106386         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106387         frexpl and ldexpl are declared.
106388         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106390 2007-03-05  Bruno Haible  <bruno@clisp.org>
106392         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106393         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106395 2007-03-05  Bruno Haible  <bruno@clisp.org>
106397         * lib/stdio_.h: Include <stddef.h>.
106399 2007-03-05  Bruno Haible  <bruno@clisp.org>
106401         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106403 2007-03-05  Bruno Haible  <bruno@clisp.org>
106405         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106406         NetBSD 4, from Ralf Wildenhues.
106408 2007-03-04  Bruno Haible  <bruno@clisp.org>
106410         * lib/vasprintf.h: Update #if logic for the case when the functions
106411         exist but are overridden.
106413 2007-03-04  Bruno Haible  <bruno@clisp.org>
106415         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106416         implementations: glibc-2.4 and MacOS X 10.3.
106417         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106418         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106419         * tests/test-vasprintf-posix.c (test_function): Likewise.
106421 2007-03-04  Bruno Haible  <bruno@clisp.org>
106423         * modules/vasprintf-posix-tests: New file.
106424         * tests/test-vasprintf-posix.c: New file.
106426         * modules/vasprintf-posix: New file.
106427         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106428         defined.
106429         * m4/vasprintf-posix.m4: New file.
106430         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106431         gl_FUNC_VASPRINTF.
106432         (gl_FUNC_VASPRINTF): Invoke it.
106433         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106434         here.
106435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106437 2007-03-04  Bruno Haible  <bruno@clisp.org>
106439         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106440         REPLACE_GETTIMEOFDAY.
106441         * modules/sys_time (Makefile.am): Likewise.
106442         * m4/sys_time_h.m4: Likewise.
106443         * m4/gettimeofday.m4: Likewise.
106445 2007-03-04  Bruno Haible  <bruno@clisp.org>
106447         * modules/vasnprintf-posix-tests: New file.
106448         * tests/test-vasnprintf-posix.c: New file.
106450         * modules/vasnprintf-posix: New file.
106451         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106452         printf-frexpl.h.
106453         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106454         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106455         REPLACE_VASNPRINTF is defined.
106456         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106457         gl_FUNC_VASNPRINTF.
106458         (gl_FUNC_VASNPRINTF): Invoke it.
106459         * m4/vasnprintf-posix.m4: New file.
106460         * m4/printf.m4: New file.
106462 2007-03-04  Bruno Haible  <bruno@clisp.org>
106464         Compile progreloc.c only if --enable-relocatable is specified.
106465         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106466         if --enable-relocatable was specified.
106467         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106468         lib_SOURCES.
106470 2007-03-04  Jim Meyering  <jim@meyering.net>
106472         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106473         Use it consistently, rather than enumerating errno constants.
106475 2007-03-04  Bruno Haible  <bruno@clisp.org>
106477         * modules/xvasprintf-tests: New file.
106478         * tests/test-xvasprintf.c: New file.
106480         * modules/vasprintf-tests: New file.
106481         * tests/test-vasprintf.c: New file.
106483         * modules/vasnprintf-tests: New file.
106484         * tests/test-vasnprintf.c: New file.
106486         * modules/vsnprintf-tests: New file.
106487         * tests/test-vsnprintf.c: New file.
106489         * modules/snprintf-tests: New file.
106490         * tests/test-snprintf.c: New file.
106492 2007-03-04  Bruno Haible  <bruno@clisp.org>
106494         Compile relocatable.c only if --enable-relocatable is specified.
106495         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106496         gl_RELOCATABLE_LIBRARY.
106497         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106498         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106499         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106500         gl_RELOCATABLE_LIBRARY.
106501         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106502         (Makefile.am): Remove lib_SOURCES.
106503         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106504         gl_RELOCATABLE_LIBRARY.
106505         (Makefile.am): Remove lib_SOURCES.
106506         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106507         always.
106508         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106509         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106511 2007-03-04  Bruno Haible  <bruno@clisp.org>
106513         * modules/argmatch-tests: New file.
106514         * tests/test-argmatch.c: New file.
106516         * tests/test-allocsa.c (main): Halve the number of loop runs.
106518         * modules/alloca-opt-tests: New file.
106519         * tests/test-alloca-opt.c: New file.
106521 2007-03-04  Jim Meyering  <jim@meyering.net>
106523         Work around difference between Linux ACLs and Solaris 10 ZFS.
106524         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106525         for EINVAL.
106527 2007-03-03  Bruno Haible  <bruno@clisp.org>
106529         * modules/relocatable-prog (Depends-on): Add back progreloc's
106530         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106532 2007-03-03  Bruno Haible  <bruno@clisp.org>
106534         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106535         * modules/relocatable-lib: New file.
106537 2007-03-03  Bruno Haible  <bruno@clisp.org>
106539         * modules/relocatable-prog: Renamed from modules/relocatable.
106540         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106542 2007-03-03  Bruno Haible  <bruno@clisp.org>
106544         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106545         m4/relocatable-lib.m4.
106546         (Depends-on): Remove 'relocatable'.
106547         (configure.ac): Add gl_RELOCATABLE_NOP.
106549 2007-03-03  Bruno Haible  <bruno@clisp.org>
106551         * modules/relocatable-prog-wrapper: New file.
106552         * modules/relocatable (Depends-on): Add it. Remove all other
106553         dependencies except progname.
106554         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106556         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106557         (gl_FUNC_STRERROR): Nop.
106558         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106560         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106561         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106563         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106564         (gl_FUNC_READLINK): Update.
106566         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106568 2007-03-03  Bruno Haible  <bruno@clisp.org>
106570         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106571         * modules/xreadlink (Depends-on): Add unistd.
106572         * modules/xreadlink-with-size (Depends-on): Likewise.
106574 2007-03-03  Bruno Haible  <bruno@clisp.org>
106576         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106577         extracted from gt_FUNC_SETENV.
106578         (gt_FUNC_SETENV): Remove macro.
106579         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106580         remove gt_FUNC_SETENV.
106582 2007-03-03  Bruno Haible  <bruno@clisp.org>
106584         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106585         ENABLE_RELOCATABLE here.
106586         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106588 2007-03-03  Bruno Haible  <bruno@clisp.org>
106590         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106591         * tests/test-rbtreehash_list.c: Include progname.h.
106592         (main): Call set_program_name.
106594         * modules/rbtree-oset-tests (Depends-on): Add progname.
106595         * tests/test-rbtree_oset.c: Include progname.h.
106596         (main): Call set_program_name.
106598         * modules/rbtree-list-tests (Depends-on): Add progname.
106599         * tests/test-rbtree_list.c: Include progname.h.
106600         (main): Call set_program_name.
106602         * modules/linked-list-tests (Depends-on): Add progname.
106603         * tests/test-linked_list.c: Include progname.h.
106604         (main): Call set_program_name.
106606 2007-03-03  Bruno Haible  <bruno@clisp.org>
106608         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106609         All uses of __restrict changed to _Restrict_.
106610         * lib/glob_.h (__restrict): Remove macro.
106612 2007-03-02  Bruno Haible  <bruno@clisp.org>
106614         * modules/gettext (configure.ac): Require gettext infrastructure
106615         from version 0.16.1.
106617 2007-03-02  Bruno Haible  <bruno@clisp.org>
106619         * modules/linkedhash-list-tests (Depends-on): Add progname.
106620         * tests/test-linkedhash_list.c: Include progname.h.
106621         (main): Call set_program_name.
106623         * modules/carray-list-tests (Depends-on): Add progname.
106624         * tests/test-carray_list.c: Include progname.h.
106625         (main): Call set_program_name.
106627         * modules/avltreehash-list-tests (Depends-on): Add progname.
106628         * tests/test-avltreehash_list.c: Include progname.h.
106629         (main): Call set_program_name.
106631         * modules/avltree-oset-tests (Depends-on): Add progname.
106632         * tests/test-avltree_oset.c: Include progname.h.
106633         (main): Call set_program_name.
106635         * modules/avltree-list-tests (Depends-on): Add progname.
106636         * tests/test-avltree_list.c: Include progname.h.
106637         (main): Call set_program_name.
106639         * modules/array-oset-tests (Depends-on): Add progname.
106640         * tests/test-array_oset.c: Include progname.h.
106641         (main): Call set_program_name.
106643         * modules/array-list-tests (Depends-on): Add progname.
106644         * tests/test-array_list.c: Include progname.h.
106645         (main): Call set_program_name.
106647         * modules/argp-tests (Depends-on): Add progname.
106648         * tests/test-argp.c: Include argp.h first. Include progname.h.
106649         (main): Call set_program_name.
106651 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106653         * doc/gnulib-tool.texi (Initial import): Reword description of
106654         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106655         limited effect even if defined after the first system include.
106657 2007-03-01  Bruno Haible  <bruno@clisp.org>
106659         * build-aux/config.libpath: Update to libtool-1.5.22.
106660         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106662 2007-03-01  Bruno Haible  <bruno@clisp.org>
106664         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106665         foo_CFLAGS.
106666         Reported by Ralf Wildenhues.
106668 2007-03-01  Bruno Haible  <bruno@clisp.org>
106670         * build-aux/install-reloc: Remove object files left over by some
106671         compilers.
106672         Reported by Ralf Wildenhues.
106674 2007-03-01  Bruno Haible  <bruno@clisp.org>
106676         * build-aux/install-reloc: Break long lines.
106678 2007-03-01  Bruno Haible  <bruno@clisp.org>
106680         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106681         Reported by Ralf Wildenhues.
106683 2007-03-01  Bruno Haible  <bruno@clisp.org>
106685         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106686         include ordering constraints.
106688 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106690         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106691         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106692         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106693         as another example.
106694         * lib/time_.h: Fix misspelling.
106695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106696         Require gl_HEADER_TIME_H_DEFAULTS.
106697         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106698         * m4/time_r.m4 (gl_TIME_R): Likewise.
106699         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106701 2007-03-01  Bruno Haible  <bruno@clisp.org>
106703         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106704         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106706 2007-03-01  Jim Meyering  <jim@meyering.net>
106708         * modules/xreadlink (Maintainer): Add my name.
106709         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106711 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106712             Bruno Haible  <bruno@clisp.org>
106714         * build-aux/install-reloc: Compile also c-ctype.c.
106715         * build-aux/relocatable.sh.in: New file.
106716         * doc/relocatable.texi: New file.
106717         * doc/relocatable-maint.texi: New file.
106718         * doc/gnulib.texi: Include relocatable-maint.texi.
106719         * lib/progreloc.c: Include unistd.h unconditionally.
106720         * lib/relocwrapper.c: Include unistd.h unconditionally.
106721         Include c-ctype.h.
106722         (add_dotbin): Use c_tolower.
106723         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106724         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106725         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106726         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106727         to m4/relocatable-lib.m4.
106728         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106729         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106730         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106731         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106732         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106733         * modules/relocatable: New file.
106734         * modules/relocatable-lib: New file.
106735         * modules/relocatable-script: New file.
106737 2007-02-28  Bruno Haible  <bruno@clisp.org>
106739         Import --enable-relocatable infrastructure.
106740         * build-aux/config.libpath: New file, from GNU gettext.
106741         * build-aux/install-reloc: New file, from GNU gettext.
106742         * build-aux/reloc-ldflags: New file, from GNU gettext.
106743         * lib/relocatable.h: New file, from GNU gettext.
106744         * lib/relocatable.c: New file, from GNU gettext.
106745         * lib/relocwrapper.c: New file, from GNU gettext.
106746         * m4/relocatable.m4: New file, from GNU gettext.
106748 2007-02-28  Bruno Haible  <bruno@clisp.org>
106750         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106752         * modules/xreadlink: New file, from GNU gettext with modifications.
106753         * lib/xreadlink.c: New file, from GNU gettext.
106754         * lib/xreadlink.h: Add comments.
106755         (xreadlink): New declaration.
106757         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106758         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106759         lib/xreadlink-with-size.c.
106760         (configure.ac): Remove gl_XREADLINK invocation.
106761         (Makefile.am): Augment lib_SOURCES.
106762         * m4/xreadlink.m4: Remove file.
106763         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106764         (xreadlink_with_size): Renamed from xreadink.
106765         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106766         * modules/canonicalize (Depends-on): Replace xreadlink with
106767         xreadlink-with-size.
106768         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106770 2007-02-25  Jim Meyering  <jim@meyering.net>
106772         * build-aux/announce-gen: When complaining about excess arguments,
106773         list them.
106775 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106777         * README: Document signed integer overflow situation more
106778         accurately.
106780 2007-02-25  Bruno Haible  <bruno@clisp.org>
106782         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106783         'a' or 'A' conversion.
106785 2007-02-25  Bruno Haible  <bruno@clisp.org>
106787         * modules/filename: Renamed from modules/pathname.
106788         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106789         lib/concatpath.c with lib/concat-filename.c.
106790         (Makefile.am): Update.
106791         (Include): Replace pathname.h with filename.h.
106792         * lib/filename.h: Renamed from lib/pathname.h.
106793         (concatenated_filename): Renamed from concatenated_pathname.
106794         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106795         (concatenated_filename): Renamed from concatenated_pathname.
106796         * lib/findprog.c: Include filename.h instead of pathname.h.
106797         (find_in_path): Update.
106798         * lib/javacomp.c: Include filename.h instead of pathname.h.
106799         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106800         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106801         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106802         is_oldgcj_14_13_usable, is_javac_usable): Update.
106803         * lib/javaexec.c: Include filename.h instead of pathname.h.
106804         (execute_java_class): Update.
106805         * modules/findprog: Update.
106806         * modules/javacomp: Update.
106807         * modules/javaexec: Update.
106808         * MODULES.html.sh (File system functions): Add 'filename', remove
106809         'pathname'.
106811 2007-02-25  Bruno Haible  <bruno@clisp.org>
106813         * modules/printf-frexpl-tests: New file.
106814         * tests/test-printf-frexpl.c: New file.
106816         * modules/printf-frexpl: New file.
106817         * lib/printf-frexpl.h: New file.
106818         * lib/printf-frexpl.c: New file.
106819         * m4/printf-frexpl.m4: New file.
106821 2007-02-25  Bruno Haible  <bruno@clisp.org>
106823         * modules/printf-frexp-tests: New file.
106824         * tests/test-printf-frexp.c: New file.
106826         * modules/printf-frexp: New file.
106827         * lib/printf-frexp.h: New file.
106828         * lib/printf-frexp.c: New file.
106829         * m4/printf-frexp.m4: New file.
106831 2007-02-25  Bruno Haible  <bruno@clisp.org>
106833         Assume automake >= 1.10 for the tests.
106834         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106835         * modules/arctwo-tests: Likewise.
106836         * modules/argp-tests: Likewise.
106837         * modules/avltree-list-tests: Likewise.
106838         * modules/avltree-oset-tests: Likewise.
106839         * modules/avltreehash-list-tests: Likewise.
106840         * modules/carray-list-tests: Likewise.
106841         * modules/crc-tests: Likewise.
106842         * modules/des-tests: Likewise.
106843         * modules/gc-arcfour-tests: Likewise.
106844         * modules/gc-arctwo-tests: Likewise.
106845         * modules/gc-des-tests: Likewise.
106846         * modules/gc-hmac-md5-tests: Likewise.
106847         * modules/gc-hmac-sha1-tests: Likewise.
106848         * modules/gc-md2-tests: Likewise.
106849         * modules/gc-md4-tests: Likewise.
106850         * modules/gc-md5-tests: Likewise.
106851         * modules/gc-pbkdf2-sha1-tests: Likewise.
106852         * modules/gc-rijndael-tests: Likewise.
106853         * modules/gc-sha1-tests: Likewise.
106854         * modules/gc-tests: Likewise.
106855         * modules/getaddrinfo-tests: Likewise.
106856         * modules/hmac-md5-tests: Likewise.
106857         * modules/hmac-sha1-tests: Likewise.
106858         * modules/linked-list-tests: Likewise.
106859         * modules/linkedhash-list-tests: Likewise.
106860         * modules/lock-tests: Likewise.
106861         * modules/md2-tests: Likewise.
106862         * modules/md4-tests: Likewise.
106863         * modules/md5-tests: Likewise.
106864         * modules/rbtree-list-tests: Likewise.
106865         * modules/rbtree-oset-tests: Likewise.
106866         * modules/rbtreehash-list-tests: Likewise.
106867         * modules/read-file-tests: Likewise.
106868         * modules/rijndael-tests: Likewise.
106869         * modules/stdint-tests: Likewise.
106870         * modules/tls-tests: Likewise.
106872 2007-02-24  Bruno Haible  <bruno@clisp.org>
106874         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106875         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106876         function; instead check whether isnan with a double argument links.
106877         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106878         function; instead check whether isnan with a 'long double' argument
106879         links.
106880         Reported by Eric Blake <ebb9@byu.net>.
106882 2007-02-24  Bruno Haible  <bruno@clisp.org>
106884         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106885         defined.
106886         * lib/isnanl.c: Remove all code. Just include isnan.c.
106887         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106889 2007-02-25  Jim Meyering  <jim@meyering.net>
106891         Avoid conflicting types for 'unsetenv' on FreeBSD.
106892         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106893         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106894         in stdlib.h.
106896 2007-02-24  Bruno Haible  <bruno@clisp.org>
106898         * modules/isnanl-nolibm-tests: New file.
106899         * tests/test-isnanl.c: New file.
106901         * modules/isnanl-nolibm: New file.
106902         * lib/isnanl.h: New file.
106903         * lib/isnanl.c: New file.
106904         * m4/isnanl.m4: New file.
106906 2007-02-24  Bruno Haible  <bruno@clisp.org>
106908         * modules/isnan-nolibm-tests: New file.
106909         * tests/test-isnan.c: New file.
106911         * modules/isnan-nolibm: New file.
106912         * lib/isnan.h: New file.
106913         * lib/isnan.c: New file.
106914         * m4/isnan.m4: New file.
106916 2007-02-24  Bruno Haible  <bruno@clisp.org>
106918         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106919         assume that an exponent fits in 20 bits.
106921 2007-02-24  Jim Meyering  <jim@meyering.net>
106923         * m4/regex.m4: Update the description of the configure-time option,
106924         --without-included-regex, to state accurately what the defaults are,
106925         and perhaps to give people an idea why using this option is risky.
106927 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106930         loops on small arguments.  This attempts to avoid the problem
106931         Bruno Haible reported for AIX 4.3.2 in
106932         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106934 2007-02-23  Bruno Haible  <bruno@clisp.org>
106936         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106937         Needed for help2man.
106939 2007-02-23  Karl Berry  <karl@gnu.org>
106941         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106942         exists, foo.h should be cvs-ignored, not committed.
106944 2007-02-23  Eric Blake  <ebb9@byu.net>
106946         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106947         * lib/stat-time.h (includes): Likewise.
106948         * lib/utimecmp.c (includes): Likewise.
106949         * lib/utimens.h (includes): Likewise.
106950         * lib/getdate.y (includes): Also include "timespec.h" for use
106951         internal to the module.
106952         * modules/utimens (Depends-on): Revert yesterday's patch.
106953         * modules/nanosleep (Depends-on): Add missing dependency.
106955 2007-02-22  Bruno Haible  <bruno@clisp.org>
106957         * lib/glob.c: Don't include getlogin_r.h.
106959 2007-02-22  Jim Meyering  <jim@meyering.net>
106961         * modules/utimens (Depends-on): Add timespec, required for
106962         utimens.h's inclusion of timespec.h.
106964 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106966         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106967         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106968         Schwab in
106969         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106970         I'll try to think of a better way to fix the Solaris problem.
106972         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106973         like glibc; on Solaris 10, it fails with errno == EINVAL.
106974         POSIX says the behavior is unspecified if the first argument is NULL,
106975         so play it safe and never pass NULL to the system getcwd.
106977 2007-02-21  Jim Meyering  <jim@meyering.net>
106979         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106980         of gettimeofday.  It would conflict with the one now always
106981         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106982         an IRIX 6.5 build failure.
106984 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106986         Minor fixups to port to Solaris 10 with Sun C 5.8.
106987         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106988         * modules/getcwd (Depends-on): Add dirfd.
106989         * lib/putenv.c (putenv): #undef it.
106990         (rpl_putenv): New decl.
106991         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106993 2007-02-20  Bruno Haible  <bruno@clisp.org>
106995         * modules/stdio-tests: New file.
106996         * tests/test-stdio.c: New file.
106998         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106999         (Depends-on): Add stdio.
107000         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107001         (Include): Use <stdio.h> instead of vsnprintf.h.
107002         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107003         HAVE_DECL_VSNPRINTF.
107004         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
107006         * modules/snprintf (Files): Remove lib/snprintf.h.
107007         (Depends-on): Add stdio.
107008         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
107009         (Include): Use <stdio.h> instead of snprintf.h.
107010         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
107011         HAVE_DECL_SNPRINTF.
107012         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
107013         * lib/getaddrinfo.c: Likewise.
107015         * modules/stdio: New file.
107016         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
107017         * lib/snprintf.h: Remove file.
107018         * lib/vsnprintf.h: Remove file.
107019         * lib/.cppi-disable: Remove snprintf.h.
107020         * m4/stdio_h.m4: New file.
107021         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
107023 2007-02-20  Jim Meyering  <jim@meyering.net>
107025         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
107026         used by e.g., mingw.  From Bruno Haible.
107028 2007-02-19  Bruno Haible  <bruno@clisp.org>
107030         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
107031         warnings.
107032         Reported by Ben Pfaff <blp@cs.stanford.edu>.
107034 2007-02-19  Bruno Haible  <bruno@clisp.org>
107036         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
107037         from mingw users.
107039 2007-02-19  Bruno Haible  <bruno@clisp.org>
107041         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
107042         warnings.
107043         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
107045 2007-02-19  Jim Meyering  <jim@meyering.net>
107047         Don't use FD after a successful "fdopendir (fd)".
107048         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
107049         Reset it by calling dirfd on the just-obtained DIR*.
107051         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
107052         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
107054 2007-02-18  Bruno Haible  <bruno@clisp.org>
107056         * lib/readlink.c: Include <unistd.h>.
107057         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
107058         HAVE_READLINK.
107059         * modules/readlink (Depends-on): Add unistd.
107060         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107061         (Include): Add <unistd.h>.
107063         * lib/getlogin_r.h: Remove file.
107064         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
107065         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
107066         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
107067         HAVE_DECL_GETLOGIN_R.
107068         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
107069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107070         (Include): Use <unistd.h> instead of getlogin_r.h.
107072         * lib/getcwd.h: Remove file.
107073         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
107074         * lib/xgetcwd.c: Likewise.
107075         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
107076         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
107077         * modules/getcwd (Files): Remove lib/getcwd.h.
107078         (Depends-on): Add unistd.
107079         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107080         (Include): Use <unistd.h> instad of getcwd.h.
107082         * lib/ftruncate.c: Include <unistd.h> first.
107083         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
107084         Set HAVE_FTRUNCATE.
107085         * modules/ftruncate (Depends-on): Add unistd.
107086         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107088         * lib/fchdir.c: Include <unistd.h> first.
107089         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
107090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
107091         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
107092         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107093         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
107095         * lib/dup2.c: Include <unistd.h> first.
107096         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
107097         HAVE_DUP2.
107098         * modules/dup2 (Depends-on): Add unistd.
107099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107101         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
107102         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
107103         REPLACE_CHOWN. Don't define chown as a macro here.
107104         * modules/chown (Depends-on): Add unistd.
107105         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
107107         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
107108         Add definition for GL_LINK_WARNING.
107109         (chown, dup2): New declarations.
107110         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
107111         link warning.
107112         (ftruncate): New declaration.
107113         (getcwd): New declaration, taken from old getcwd.h.
107114         (getlogin_r): New declaration, taken from old getlogin_r.h.
107115         (readlink): New declaration.
107116         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
107117         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
107118         (gl_PREREQ_UNISTD): Remove macro.
107119         (gl_UNISTD_MODULE_INDICATOR): New macro.
107120         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
107121         many new variables. Don't set UNISTD_H.
107122         * modules/unistd (Description): Change.
107123         (Depends-on): Add link-warning.
107124         (configure.ac): Update.
107125         (Makefile.am): Create unistd.h always. Substitute many new variables
107126         into it.
107128 2007-02-18  Bruno Haible  <bruno@clisp.org>
107130         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
107131         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
107132         HAVE_GETSUBOPT.
107133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
107134         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
107135         * lib/getsubopt.h: Remove file.
107136         * modules/getsubopt (Files): Remove lib/getsubopt.h.
107137         (Depends-on): Add stdlib.
107138         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107139         (Includes): Use <stdlib.h> instead of getsubopt.h.
107140         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
107141         Set HAVE_GETSUBOPT.
107142         * lib/getsubopt.c: Don't include getsubopt.h.
107144 2007-02-18  Bruno Haible  <bruno@clisp.org>
107146         * modules/fchdir (Depends-on): Add dup2.
107148 2007-02-18  Bruno Haible  <bruno@clisp.org>
107150         * lib/stdlib_.h: Handle glibc's special invocation convention
107151         specially.
107153 2007-02-18  Bruno Haible  <bruno@clisp.org>
107155         * modules/stdlib-tests: New file.
107156         * tests/test-stdlib.c: New file.
107158         * modules/mkstemp (Files): Remove lib/mkstemp.h.
107159         (Depends-on): Add stdlib.
107160         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107161         (Includes): Use <stdlib.h> instead of mkstemp.h.
107162         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107163         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
107164         * lib/mkstemp.c: Don't include mkstemp.h.
107165         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
107166         * lib/stdlib--.h: Don't include mkstemp.h.
107168         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
107169         (Depends-on): Add stdlib.
107170         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
107171         (Includes): Use <stdlib.h> instead of mkdtemp.h.
107172         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
107173         HAVE_MKDTEMP.
107174         * lib/mkdtemp.c: Don't include mkdtemp.h.
107175         * lib/clean-temp.c: Don't include mkdtemp.h.
107177         * modules/exit (Files): Remove lib/exit.h.
107178         (Depends-on): Add stdlib.
107179         (Makefile.am): Remove lib_SOURCES.
107180         (Include): Use <stdlib.h> instead of exit.h.
107181         * lib/argmatch.c: Don't include exit.h.
107182         * lib/execute.c: Likewise.
107183         * lib/pagealign_alloc.c: Likewise.
107184         * lib/pipe.c: Likewise.
107185         * lib/wait-process.c: Likewise.
107186         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
107187         * lib/exitfail.c: Likewise.
107188         * lib/savewd.c: Likewise.
107189         * lib/xsetenv.c: Likewise.
107191         * modules/stdlib: New file.
107192         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
107193         and extra comments about mkstemp().
107194         * lib/exit.h: Remove file.
107195         * lib/mkdtemp.h: Remove file.
107196         * lib/mkstemp.h: Remove file.
107197         * m4/stdlib_h.m4: New file.
107198         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
107200 2007-02-18  Bruno Haible  <bruno@clisp.org>
107202         * modules/math-tests: New file.
107203         * tests/test-math.c: New file.
107205         * modules/math: New file.
107206         * modules/mathl (Files): Remove lib/mathl.h.
107207         (Depends-on): Add math.
107208         (Makefile.am): Don't mention mathl.h.
107209         (Include): Use <math.h> instead of mathl.h.
107210         * lib/math_.h: New file.
107211         * lib/mathl.h: Remove file.
107212         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
107213         mathl.h.
107214         * lib/asinl.c: Likewise.
107215         * lib/atanl.c: Likewise.
107216         * lib/ceill.c: Likewise.
107217         * lib/cosl.c: Likewise.
107218         * lib/expl.c: Likewise.
107219         * lib/floorl.c: Likewise.
107220         * lib/frexpl.c: Likewise.
107221         * lib/ldexpl.c: Likewise.
107222         * lib/logl.c: Likewise.
107223         * lib/sincosl.c: Likewise.
107224         * lib/sinl.c: Likewise.
107225         * lib/sqrtl.c: Likewise.
107226         * lib/tanl.c: Likewise.
107227         * lib/trigl.c: Likewise.
107228         * m4/math_h.m4: New file.
107229         * MODULES.html.sh (Mathematics): Add math.
107231 2007-02-17  Bruno Haible  <bruno@clisp.org>
107233         * modules/wctype-tests: New file.
107234         * tests/test-wctype.c: New file.
107236         * modules/wchar-tests: New file.
107237         * tests/test-wchar.c: New file.
107239         * modules/unistd-tests: New file.
107240         * tests/test-unistd.c: New file.
107242         * modules/time-tests: New file.
107243         * tests/test-time.c: New file.
107245         * modules/sysexits-tests: New file.
107246         * tests/test-sysexits.c: New file.
107248         * modules/sys_time-tests: New file.
107249         * tests/test-sys_time.c: New file.
107251         * modules/sys_stat-tests: New file.
107252         * tests/test-sys_stat.c: New file.
107254         * modules/sys_socket-tests: New file.
107255         * tests/test-sys_socket.c: New file.
107257         * modules/sys_select-tests: New file.
107258         * tests/test-sys_select.c: New file.
107260         * modules/string-tests: New file.
107261         * tests/test-string.c: New file.
107263         * modules/stdbool-tests: New file.
107264         * tests/test-stdbool.c: New file.
107266         * modules/netinet_in-tests: New file.
107267         * tests/test-netinet_in.c: New file.
107269         * modules/inttypes-tests: New file.
107270         * tests/test-inttypes.c: New file.
107272         * modules/fcntl-tests: New file.
107273         * tests/test-fcntl.c: New file.
107275         * modules/byteswap-tests: New file.
107276         * tests/test-byteswap.c: New file.
107278         * modules/arpa_inet-tests: New file.
107279         * tests/test-arpa_inet.c: New file.
107281 2007-02-17  Bruno Haible  <bruno@clisp.org>
107283         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107284         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107285         if the corresponding module is not enabled. Emit link warnings if
107286         the function is used nevertheless.
107287         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107288         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107289         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107290         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107291         * modules/inttypes (Depends-on): Add link-warning.
107292         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107293         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107294         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107295         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107296         * modules/imaxdiv (configure.ac): Likewise.
107297         * modules/strtoimax (configure.ac): Likewise.
107298         * modules/strtoumax (configure.ac): Likewise.
107300 2007-02-17  Bruno Haible  <bruno@clisp.org>
107302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107303         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107304         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107305         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107307 2007-02-17  Bruno Haible  <bruno@clisp.org>
107309         * modules/link-warning: New file.
107310         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107311         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107312         * modules/string (Depends-on): Add link-warning.
107313         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107314         string.h.
107315         * MODULES.html.sh (Support for building libraries and executables): Add
107316         link-warning.
107318 2007-02-17  Bruno Haible  <bruno@clisp.org>
107320         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107321         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107322         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107323         long lines.
107325 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107326             Bruno Haible  <bruno@clisp.org>
107328         * modules/tmpfile: New file.
107329         * lib/tmpfile.c: New file.
107330         * m4/tmpfile.m4: New file.
107331         * MODULES.html.sh (func_all_modules): New section "Input/output".
107333 2007-02-15  Bruno Haible  <bruno@clisp.org>
107335         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107336         (supports_delete_on_close): New function.
107337         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107339 2007-02-14  Bruno Haible  <bruno@clisp.org>
107341         * modules/mbspcasecmp-tests: New file.
107342         * tests/test-mbspcasecmp.sh: New file.
107343         * tests/test-mbspcasecmp.c: New file.
107345         New module mbspcasecmp.
107346         * modules/mbspcasecmp: New file.
107347         * lib/mbspcasecmp.c: New file.
107348         * lib/string_.h (strncasecmp): Change warning message.
107349         (mbspcasecmp): New declaration.
107350         * m4/mbspcasecmp.m4: New file.
107351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107352         GNULIB_MBSPCASECMP.
107353         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107354         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107356 2007-02-14  Bruno Haible  <bruno@clisp.org>
107358         * modules/mbsncasecmp-tests: New file.
107359         * tests/test-mbsncasecmp.sh: New file.
107360         * tests/test-mbsncasecmp.c: New file.
107362         New module mbsncasecmp.
107363         * modules/mbsncasecmp: New file.
107364         * lib/mbsncasecmp.c: New file.
107365         * lib/string_.h (mbsncasecmp): New declaration.
107366         * m4/mbsncasecmp.m4: New file.
107367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107368         GNULIB_MBSNCASECMP.
107369         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107370         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107372 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107374         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107375         Verify that it doesn't overlap with our flags.
107376         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107377         do not have the desired effect in multibyte locales; instead, use
107378         mbscasecmp.
107379         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107380         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107381         we don't require GNU fnmatch ourselves (if our users require it, they
107382         should do so explicitly).
107384         Fix regex code so it doesn't rely on strcasecmp.
107385         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107386         Otherwise, include gnulib's langinfo.h.
107387         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107388         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107389         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107390         * modules/regex (FILES): Remove m4/codeset.m4.
107391         (Depends-on): Add localcharset.  Remove strcase.
107393 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107395         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107396         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107398 2007-02-13  Bruno Haible  <bruno@clisp.org>
107400         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107403 2007-02-12  Bruno Haible  <bruno@clisp.org>
107405         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107406         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107407         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107408         time warning rather than a link error.
107410 2007-02-12  Bruno Haible  <bruno@clisp.org>
107412         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107413         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107416 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107418         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107419         args, not 2.
107421 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107423         New module 'time', so that apps can include <time.h> as per
107424         POSIX and GNU instead of separate include files like time_r.h
107425         and timegm.h.  This implementation tries out a simpler approach
107426         for replacing decls in standard include files (as compared to
107427         the string module), somewhat as an experiment.
107429         * config/srclist.txt: Comment out mktime.c for now.
107430         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107431         since it doesn't apply any more.  Use generic wording instead.
107432         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107433         'time'.
107434         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107435         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107436         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107437         Don't include <sys/types.h>; no longer needed since we assume C89.
107438         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107439         * lib/strftime.c: Likewise.
107440         * lib/time_r.c: Likewise.
107441         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107442         * lib/nanosleep.c: Include <time.h> first, to check interface.
107443         * lib/strptime.c: Likewise.
107444         * lib/time_r.c: Likewise.
107445         * lib/timegm.c: Likewise.
107446         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107447         needed.
107448         * lib/timegm.c: Don't include timegm.h; no longer needed.
107449         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107450         time.h now handles any problems in that area.
107451         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107452         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107453         that time.h defines struct timespec.
107454         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107455         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107456         handles that.
107457         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107458         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107459         needed.  Set REPLACE_LOCALTIME.
107460         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107461         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107462         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107463         nanosleep; time_h.m4 now does that.  Don't require
107464         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107465         module handles this now.
107466         * modules/getdate (Depends-on): Remove timespec.  Add time.
107467         * modules/nanosleep (Depends-on): Likewise.
107468         * modules/stat-time (Depends-on): Likewise.
107469         * modules/nanosleep (Include): Include time.h, not timespec.h.
107470         * modules/strptime (Files): Remove lib/strptime.h.
107471         (Depends-on): Add extensions, time.
107472         (Include): Include time.h, not strptime.h.
107473         * modules/time_r (Files): Remove lib/time_r.h.
107474         (Depends-on): Add time.
107475         (Include): Include time.h, not time_r.h.
107476         * modules/timegm: Likewise.
107477         * modules/timespec (Description): Now does timespec-related decls
107478         of our own, instead of struct timespec itself.
107479         (Depends-on): Add time; remove extensions.
107480         (Maintainer): Add self.
107481         * modules/utimecmp (Depends-on): Add time; remove timespec.
107482         * modules/utimens (Depends-on): Likewise.
107483         * modules/xnanosleep (Depends-on): Likewise.
107485 2007-02-11  Bruno Haible  <bruno@clisp.org>
107487         * lib/c-strstr.c: Include allocsa.h.
107488         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107489         * lib/c-strcasestr.c: Include allocsa.h.
107490         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107491         * lib/strcasestr.c: Include allocsa.h.
107492         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107493         * lib/mbsstr.c: Include allocsa.h.
107494         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107495         allocsa/freesa instead of malloc/free.
107496         * lib/mbscasestr.c: Include allocsa.h.
107497         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107498         allocsa/freesa instead of malloc/free.
107499         * modules/c-strstr (Depends-on): Add allocsa.
107500         * modules/c-strcasestr (Depends-on): Likewise.
107501         * modules/strcasestr (Depends-on): Likewise.
107502         * modules/mbsstr (Depends-on): Likewise.
107503         * modules/mbscasestr (Depends-on): Likewise.
107505 2007-02-11  Bruno Haible  <bruno@clisp.org>
107507         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107509         * modules/mbsspn-tests: New file.
107510         * tests/test-mbsspn.sh: New file.
107511         * tests/test-mbsspn.c: New file.
107513 2007-02-11  Bruno Haible  <bruno@clisp.org>
107515         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107517         * modules/mbspbrk-tests: New file.
107518         * tests/test-mbspbrk.sh: New file.
107519         * tests/test-mbspbrk.c: New file.
107521 2007-02-11  Bruno Haible  <bruno@clisp.org>
107523         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107524         unneeded cast.
107526         * modules/mbscspn-tests: New file.
107527         * tests/test-mbscspn.sh: New file.
107528         * tests/test-mbscspn.c: New file.
107530 2007-02-11  Bruno Haible  <bruno@clisp.org>
107532         * modules/mbscasecmp-tests: New file.
107533         * tests/test-mbscasecmp.sh: New file.
107534         * tests/test-mbscasecmp.c: New file.
107536 2007-02-11  Bruno Haible  <bruno@clisp.org>
107538         Ensure O(n) worst-case complexity of mbscasestr.
107539         * lib/mbscasestr.c: Include stdbool.h.
107540         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107541         functions.
107542         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107543         the bookkeeping indicates that it's worth it.
107544         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107546         * modules/mbscasestr-tests: New file.
107547         * tests/test-mbscasestr1.c: New file.
107548         * tests/test-mbscasestr2.sh: New file.
107549         * tests/test-mbscasestr2.c: New file.
107550         * tests/test-mbscasestr3.sh: New file.
107551         * tests/test-mbscasestr3.c: New file.
107552         * tests/test-mbscasestr4.sh: New file.
107553         * tests/test-mbscasestr4.c: New file.
107554         * m4/locale-tr.m4: New file.
107556 2007-02-11  Bruno Haible  <bruno@clisp.org>
107558         Ensure O(n) worst-case complexity of mbsstr.
107559         * lib/mbsstr.c: Include stdbool.h.
107560         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107561         functions.
107562         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107563         bookkeeping indicates that it's worth it.
107564         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107566         * modules/mbsstr-tests: New file.
107567         * tests/test-mbsstr1.c: New file.
107568         * tests/test-mbsstr2.sh: New file.
107569         * tests/test-mbsstr2.c: New file.
107570         * tests/test-mbsstr3.sh: New file.
107571         * tests/test-mbsstr3.c: New file.
107572         * m4/locale-fr.m4: New file.
107574 2007-02-11  Bruno Haible  <bruno@clisp.org>
107576         * lib/mbsrchr.c (mbsrchr): Fix bug.
107578         * modules/mbsrchr-tests: New file.
107579         * tests/test-mbsrchr.sh: New file.
107580         * tests/test-mbsrchr.c: New file.
107582 2007-02-11  Bruno Haible  <bruno@clisp.org>
107584         * lib/mbschr.c (mbschr): Fix bug.
107586         * modules/mbschr-tests: New file.
107587         * tests/test-mbschr.sh: New file.
107588         * tests/test-mbschr.c: New file.
107589         * m4/locale-zh.m4: New file.
107591 2007-02-11  Bruno Haible  <bruno@clisp.org>
107593         Support for copying multibyte string iterators.
107594         * lib/mbiter.h: Include <string.h>.
107595         (mbiter_multi_copy): New function.
107596         (mbi_copy): New macro.
107597         * lib/mbuiter.h: Include <string.h>.
107598         (mbuiter_multi_copy): New function.
107599         (mbui_copy): New macro.
107601 2007-02-11  Bruno Haible  <bruno@clisp.org>
107603         New module mbslen.
107604         * modules/mbslen: New file.
107605         * lib/mbslen.c: New file.
107606         * lib/string_.h (mbslen): New declaration.
107607         * m4/mbslen.m4: New file.
107608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107609         GNULIB_MBSLEN.
107610         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107611         * MODULES.html.sh (Internationalization functions): Add mbslen.
107613 2007-02-11  Bruno Haible  <bruno@clisp.org>
107615         Ensure O(n) worst-case complexity of strcasestr substitute.
107616         * lib/strcasestr.c: Include stdbool.h.
107617         (knuth_morris_pratt): New function.
107618         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107619         bookkeeping indicates that it's worth it.
107620         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107622         * modules/strcasestr-tests: New file.
107623         * tests/test-strcasestr.c: New file.
107625 2007-02-11  Bruno Haible  <bruno@clisp.org>
107627         Ensure O(n) worst-case complexity of c_strcasestr.
107628         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107629         (knuth_morris_pratt): New function.
107630         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107631         the bookkeeping indicates that it's worth it.
107632         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107634         * modules/c-strcasestr-tests: New file.
107635         * tests/test-c-strcasestr.c: New file.
107637 2007-02-11  Bruno Haible  <bruno@clisp.org>
107639         Ensure O(n) worst-case complexity of c_strstr.
107640         * lib/c-strstr.c: Include stdbool.h, string.h.
107641         (knuth_morris_pratt): New function.
107642         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107643         bookkeeping indicates that it's worth it.
107644         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107646         * lib/c-strstr.c: Complete rewrite for maintainability.
107648         * modules/c-strstr-tests: New file.
107649         * tests/test-c-strstr.c: New file.
107651 2007-02-11  Bruno Haible  <bruno@clisp.org>
107653         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107654         5.2.1 and earlier, whereby \055 was treated just like the range
107655         delimiter '-'.
107656         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107658 2007-02-08  Bruno Haible  <bruno@clisp.org>
107660         * modules/regex (Depends-on): Add stdbool.
107661         Reported by Dalibor Topic <robilad@kaffe.org>.
107663 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107665         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107666         Prefer returning from main to exiting from it.
107667         Remove unnecessary parens after sizeof.
107669 2007-02-05  Bruno Haible  <bruno@clisp.org>
107671         New module mbssep.
107672         * modules/mbssep: New file.
107673         * lib/mbssep.c: New file.
107674         * lib/string_.h (strsep): Add a conditional link warning.
107675         (mbssep): New declaration.
107676         * m4/mbssep.m4: New file.
107677         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107678         GNULIB_MBSSEP.
107679         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107680         * MODULES.html.sh (Internationalization functions): Add mbssep.
107682 2007-02-05  Bruno Haible  <bruno@clisp.org>
107684         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107685         Optimize search in case of 1 delimiter.
107687 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107689         * lib/acl.h: Include sys/types.h before sys/acl.h.
107691 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107693         Merge upstream fix for glibc bugzilla #3957:
107695         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107697         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107698         bit for RE_HAT_LISTS_NOT_NEWLINE.
107699         (build_charclass_op): Remove bogus comment.
107701 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107703         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107705 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107707         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107708         * lib/memmem.c [!defined _LIBC]: Include config.h.
107710 2007-02-04  Bruno Haible  <bruno@clisp.org>
107712         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107713         warning message.
107715 2007-02-04  Bruno Haible  <bruno@clisp.org>
107717         New module mbstok_r.
107718         * modules/mbstok_r: New file.
107719         * lib/mbstok_r.c: New file.
107720         * lib/string_.h (strtok_r): Change argument names to match the
107721         comments. Add a conditional link warning.
107722         (mbstok_r): New declaration.
107723         * m4/mbstok_r.m4: New file.
107724         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107725         GNULIB_MBSTOK_R.
107726         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107727         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107729 2007-02-04  Bruno Haible  <bruno@clisp.org>
107731         New module mbsspn.
107732         * modules/mbsspn: New file.
107733         * lib/mbsspn.c: New file.
107734         * lib/string_.h (strspn): Add a conditional link warning.
107735         (mbsspn): New declaration.
107736         * m4/mbsspn.m4: New file.
107737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107738         GNULIB_MBSSPN.
107739         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107740         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107742 2007-02-04  Bruno Haible  <bruno@clisp.org>
107744         New module mbspbrk.
107745         * modules/mbspbrk: New file.
107746         * lib/mbspbrk.c: New file.
107747         * lib/string_.h (strpbrk): Add a conditional link warning.
107748         (mbspbrk): New declaration.
107749         * m4/mbspbrk.m4: New file.
107750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107751         GNULIB_MBSPBRK.
107752         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107753         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107755 2007-02-04  Bruno Haible  <bruno@clisp.org>
107757         New module mbscspn.
107758         * modules/mbscspn: New file.
107759         * lib/mbscspn.c: New file.
107760         * lib/string_.h (strcspn): Add a conditional link warning.
107761         (mbscspn): New declaration.
107762         * m4/mbscspn.m4: New file.
107763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107764         GNULIB_MBSCSPN.
107765         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107766         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107768 2007-02-04  Bruno Haible  <bruno@clisp.org>
107770         New module mbscasestr, reduced goal of strcasestr.
107771         * modules/mbscasestr: New file.
107772         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107773         (mbscasestr): Renamed from strcasestr.
107774         * lib/strcasestr.c: Don't include mbuiter.h.
107775         (strcasestr): Remove support for multibyte locales.
107776         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107777         Change the conditional link warning.
107778         (mbscasestr): New declaration.
107779         * m4/mbscasestr.m4: New file.
107780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107781         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107782         REPLACE_STRCASESTR.
107783         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107785         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107786         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107787         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107788         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107789         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107790         (Depends-on): Remove mbuiter.
107791         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107793 2007-02-04  Bruno Haible  <bruno@clisp.org>
107795         Simplify handling of strncasecmp.
107796         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107797         the conditional link warning.
107798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107799         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107800         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107801         * modules/strcase (configure.ac): Don't invoke
107802         gl_STRING_MODULE_INDICATOR.
107803         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107805 2007-02-04  Bruno Haible  <bruno@clisp.org>
107807         New module mbscasecmp, reduced goal of strcasecmp.
107808         * modules/mbscasecmp: New file.
107809         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107810         (mbscasecmp): Renamed from strcasecmp.
107811         * lib/strcasecmp.c: Don't include mbuiter.h.
107812         (strcasecmp): Remove support for multibyte locales.
107813         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107814         Change the conditional link warning.
107815         (mbscasecmp): New declaration.
107816         * m4/mbscasecmp.m4: New file.
107817         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107818         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107819         REPLACE_STRCASECMP.
107820         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107822         GNULIB_MBSCASECMP.
107823         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107824         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107825         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107826         (Depends-on): Remove mbuiter.
107827         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107829 2007-02-04  Bruno Haible  <bruno@clisp.org>
107831         New module mbsstr. Remove module strstr.
107832         * modules/mbsstr: New file.
107833         * modules/strstr: Remove file.
107834         * lib/mbsstr.c: Renamed from lib/strstr.c.
107835         (mbsstr): Renamed from strstr.
107836         * lib/string_.h (strstr): Remove declaration. Change the conditional
107837         link warning.
107838         (mbsstr): New declaration.
107839         * m4/mbsstr.m4: New file.
107840         * m4/strstr.m4: Remove file.
107841         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107842         REPLACE_STRSTR.
107843         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107844         Don't initialize GNULIB_STRSTR.
107845         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107846         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107847         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107848         (Support for systems lacking ANSI C 89): Remove strstr.
107850 2007-02-04  Bruno Haible  <bruno@clisp.org>
107852         New module mbsrchr.
107853         * modules/mbsrchr: New file.
107854         * lib/mbsrchr.c: New file.
107855         * lib/string_.h (strrchr): Add a conditional link warning.
107856         (mbsrchr): New declaration.
107857         * m4/mbsrchr.m4: New file.
107858         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107859         GNULIB_MBSRCHR.
107860         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107861         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107863 2007-02-04  Bruno Haible  <bruno@clisp.org>
107865         New module mbschr.
107866         * modules/mbschr: New file.
107867         * lib/mbschr.c: New file.
107868         * lib/string_.h (strchr): Add a conditional link warning.
107869         (mbschr): New declaration.
107870         * m4/mbschr.m4: New file.
107871         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107872         GNULIB_MBSCHR.
107873         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107874         * MODULES.html.sh (Internationalization functions): Add mbschr.
107876 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107878         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107880         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107882 2007-02-04  Bruno Haible  <bruno@clisp.org>
107884         New module description section 'configure.ac-early'.
107885         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107886         (func_get_autoconf_early_snippet): New function.
107887         (func_import, func_create_testdir): Use it. Remove special cases for
107888         modules 'extensions' and 'lock'.
107889         * modules/extensions (configure.ac-early): Require
107890         gl_USE_SYSTEM_EXTENSIONS.
107891         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107893 2007-02-04  Bruno Haible  <bruno@clisp.org>
107895         Make use of gcj-4.3's -fsource and -ftarget option.
107896         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107897         and if so try the options -fsource and -ftarget.
107898         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107899         source_version, ftarget_option, target_version arguments.
107900         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107901         (is_envjavac_oldgcj_14_14_usable): Renamed from
107902         is_envjavac_gcj_14_14_usable.
107903         (is_envjavac_oldgcj_14_13_usable): Renamed from
107904         is_envjavac_gcj_14_13_usable.
107905         (is_gcj_present): Update.
107906         (is_gcj_43, is_gcj43_usable): New functions.
107907         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107908         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107909         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107910         try the options -fsource and -ftarget.
107912 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107914         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107915         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107916         larger value.
107918 2007-02-03  Jim Meyering  <jim@meyering.net>
107920         Give tools a better chance to allocate space for very large buffers.
107921         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107923         Make pwd and readlink work also when run with an unreadable parent dir
107924         on systems with openat support.
107925         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107926         provided getcwd function, even when we have openat support.
107927         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107929 2007-02-02  Bruno Haible  <bruno@clisp.org>
107931         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107932         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107933         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107934         portability problems if one of these functions is only used on specific
107935         platforms.
107936         Reported by Paul Eggert.
107938 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107940         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107941         is causing more trouble than it's curing.
107942         * lib/regex_internal.h (__mempcpy): Remove.
107943         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107944         (and make the code a tad smaller to boot).
107945         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107947 2007-02-02  Jim Meyering  <jim@meyering.net>
107949         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107950         section, not in the Makefile.am: one.
107952 2007-02-02  Eric Blake  <ebb9@byu.net>
107954         * lib/strchrnul.c: Always include config.h first.
107956         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107957         gnulib strstr is not necessary here.
107959 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107961         * m4/socklen.m4: Fix typo.
107963 2007-02-02  Eric Blake  <ebb9@byu.net>
107965         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107966         * modules/netinet_in (Makefile.am): Likewise.
107968 2007-02-01  Bruno Haible  <bruno@clisp.org>
107970         * lib/string_.h (GL_LINK_WARNING): New macro.
107971         (strcasecmp, strstr, strcasestr): If provided by the system,
107972         conditionally define as a macro that leads to a warning instead of to
107973         an error.
107974         (strncasecmp): Conditionally define as a macro that leads to a warning.
107976 2007-02-01  Karl Berry  <karl@gnu.org>
107978         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107980 2007-02-01  Bruno Haible  <bruno@clisp.org>
107982         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107983         renamings.
107985 2007-02-01  Eric Blake  <ebb9@byu.net>
107987         * modules/regex (Depends-on): Revert dependence on mempcpy.
107988         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107989         module's definition of mempcpy.
107990         Reported by Paul Eggert.
107992 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107994         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107995         the symbol XYZ before redefining it.  This fixes a problem with
107996         programs that don't use XYZ, when compiled on systems that define
107997         XYZ to something else.
107999 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
108001         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
108002         occurs when "mkdir -m foo" creates a setgid directory that is (1)
108003         writeable to group or other and (2) is intended to have a special
108004         mode bit that is set or cleared.  In such a case, the directory
108005         should be neither group- nor other-writeable until the special
108006         mode bits are right.
108008 2007-01-31  Eric Blake  <ebb9@byu.net>
108010         * modules/mountlist (Depends-on): Add strstr.
108012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
108013         bug.
108014         * modules/string (Makefile.am): Remove redundant replacement.
108015         * modules/regex (Depends-on): Add mempcpy.
108017 2007-01-31  Bruno Haible  <bruno@clisp.org>
108019         New module description field 'Link'.
108020         * gnulib-tool (func_usage): Document --extract-link-directive.
108021         (sed_extract_prog): Recognize 'Link' directive.
108022         (func_get_link_directive): New function.
108023         (func_import): Show summary of link directives.
108024         Handle --extract-link-directive option.
108025         * modules/acl (Link): New section.
108026         * modules/clock-time (Link): New section.
108027         * modules/euidaccess (Link): New section.
108028         * modules/gettext (Link): New section.
108029         * modules/iconv (Link): New section.
108030         * modules/lock (Link): New section.
108031         * modules/nanosleep (Link): New section.
108032         * modules/readline (Link): New section.
108034 2007-01-27  Bruno Haible  <bruno@clisp.org>
108036         Enforce the use of gnulib modules for unportable <string.h> functions.
108037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
108038         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
108039         (gl_HEADER_STRING_H_BODY): Require it.
108040         * lib/string_.h: If the gnulib module XYZ is not present, redefine
108041         the symbol XYZ to one that gives a link error.
108042         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
108043         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
108044         * modules/mempcpy (configure.ac): Likewise.
108045         * modules/memrchr (configure.ac): Likewise.
108046         * modules/stpcpy (configure.ac): Likewise.
108047         * modules/stpncpy (configure.ac): Likewise.
108048         * modules/strcase (configure.ac): Likewise.
108049         * modules/strcasestr (configure.ac): Likewise.
108050         * modules/strchrnul (configure.ac): Likewise.
108051         * modules/strdup (configure.ac): Likewise.
108052         * modules/strndup (configure.ac): Likewise.
108053         * modules/strnlen (configure.ac): Likewise.
108054         * modules/strpbrk (configure.ac): Likewise.
108055         * modules/strsep (configure.ac): Likewise.
108056         * modules/strstr (configure.ac): Likewise.
108057         * modules/strtok_r (configure.ac): Likewise.
108059 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
108061         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
108063 2007-01-30  Jim Meyering  <jim@meyering.net>
108065         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
108067 2007-01-29  Bruno Haible  <bruno@clisp.org>
108069         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
108070         * lib/execute.c: Likewise.
108071         * lib/pipe.c: Likewise.
108072         * lib/printf-args.h: Likewise.
108073         * lib/printf-args.c: Likewise.
108074         * lib/printf-parse.c: Likewise.
108075         * lib/vasnprintf.c: Likewise.
108077 2007-01-29  Eric Blake  <ebb9@byu.net>
108079         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
108080         declaration.
108082 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
108084         * lib/strptime.h (strptime): Use 'restrict' for args where
108085         POSIX requires this.
108086         * lib/strptime.c (strptime): Likewise.
108087         Change license notice from LGPL to GPL, since gnulib-tool will
108088         change this as needed.
108089         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
108090         defined.
108091         Include "strptime.h" first, to check interface.
108092         Do not #undef _LIBC and _NL_CURRENT.
108093         Do not include <stdlib.h>; no longer needed.
108094         Include "time_r.h" and declare ptime_locale_status
108095         only if _LIBC is not defined.
108096         (__P): Remove unused macro.
108097         (match_string): Bring back glibc version, but use it only if _LIBC
108098         is defined.
108099         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
108100         Remove unnecessary assertion and abort() call.
108101         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
108102         * m4/strptime.m4: Fix serial number comment.
108103         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
108104         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
108105         (Depends-on): Add time_r.
108107 2007-01-29  Bruno Haible  <bruno@clisp.org>
108109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108110         strptime.
108111         * modules/strptime (Depends-on): Add stdbool.
108112         * lib/strptime.h: Include <time.h> always. Add comments.
108114 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108116         * modules/strptime: New file.
108117         * lib/strptime.h: New file.
108118         * lib/strptime.c: New file.
108119         * m4/strptime.m4: New file.
108121 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
108123         * MODULES.html.sh: New module mpsort.
108124         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
108126         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
108127         a circularity problem with HP-UX ia64 reported by Bob Proulx in
108128         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
108129         All uses changed.
108130         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
108131         All uses changed.
108132         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
108133         to _Restrict_.
108134         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
108135         the parameter matches the prototype.
108137 2007-01-28  Jim Meyering  <jim@meyering.net>
108139         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
108140         sys/time.h here, reverting that part of the previous patch:
108141         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
108143 2007-01-28  Bruno Haible  <bruno@clisp.org>
108145         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
108146         value of $(SYS_TIME_H).
108147         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
108148         remove it conditionally, too. [added by Jim Meyering]
108149         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
108150         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108151         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
108152         GETTIMEOFDAY_REPLACEMENT to 1.
108154 2007-01-28  Bruno Haible  <bruno@clisp.org>
108156         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
108157         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
108158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
108159         Set UNISTD_H instead of UNISTD_H2.
108160         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
108162 2007-01-28  Bruno Haible  <bruno@clisp.org>
108164         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
108165         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
108167 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108169         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
108170         (func_create_testdir): Ensure C locale for `grep' and `tr'
108171         character ranges.
108172         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
108173         ACLOCAL_AMFLAGS parsing state machine.
108175 2007-01-27  Bruno Haible  <bruno@clisp.org>
108177         * modules/unistr/base: Update.
108179 2007-01-27  Bruno Haible  <bruno@clisp.org>
108181         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
108182         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
108183         * modules/unistr/u32-mbtouc-unsafe: Renamed from
108184         modules/unistr/u32-mbtouc.
108185         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
108186         * lib/unistr.h: Update.
108187         * lib/linebreak.c: Update.
108188         * modules/unistr/u32-mbtouc: Renamed from
108189         modules/unistr/u32-mbtouc-safe.
108190         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
108191         * lib/unistr.h: Update.
108192         * lib/unistr/u32-to-u8.c: Update.
108193         * lib/unistr/u32-to-u16.c: Update.
108195 2007-01-27  Bruno Haible  <bruno@clisp.org>
108197         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
108198         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
108199         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
108200         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
108201         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
108202         * modules/unistr/u16-mbtouc-unsafe: Renamed from
108203         modules/unistr/u16-mbtouc.
108204         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
108205         * lib/unistr.h: Update.
108206         * lib/linebreak.c: Update.
108207         * modules/linebreak: Update.
108208         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
108209         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
108210         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
108211         * modules/unistr/u16-mbtouc: Renamed from
108212         modules/unistr/u16-mbtouc-safe.
108213         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
108214         * lib/unistr.h: Update.
108215         * lib/unistr/u16-to-u8.c: Update.
108216         * modules/unistr/u16-to-u8: Update.
108217         * lib/unistr/u16-to-u32.c: Update.
108218         * modules/unistr/u16-to-u32: Update.
108220 2007-01-27  Bruno Haible  <bruno@clisp.org>
108222         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
108223         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
108224         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
108225         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
108226         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
108227         * modules/unistr/u8-mbtouc-unsafe: Renamed from
108228         modules/unistr/u8-mbtouc.
108229         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
108230         * lib/unistr.h: Update.
108231         * lib/striconveh.c: Update.
108232         * modules/striconveh: Update.
108233         * lib/linebreak.c: Update.
108234         * modules/linebreak: Update.
108235         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
108236         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
108237         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
108238         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
108239         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
108240         * lib/unistr.h: Update.
108241         * lib/striconveh.c: Update.
108242         * modules/striconveh: Update.
108243         * lib/unistr/u8-to-u16.c: Update.
108244         * modules/unistr/u8-to-u16: Update.
108245         * lib/unistr/u8-to-u32.c: Update.
108246         * modules/unistr/u8-to-u32: Update.
108248 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108250         Sync from Libtool.
108251         * lib/argz.c: Do not include strings.h nor memory.h, include
108252         string.h unconditionally.  Patch by Simon Josefsson.
108254 2007-01-27  Bruno Haible  <bruno@clisp.org>
108256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108257         from gl_HEADER_STRING_H_BODY.
108258         (gl_HEADER_STRING_H_BODY): Require it.
108259         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108260         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108261         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108262         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108264         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108266         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108267         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108268         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108269         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108270         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108271         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108272         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108273         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108275 2007-01-27  Bruno Haible  <bruno@clisp.org>
108277         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108278         check_PROGRAMS into noinst_PROGRAMS.
108279         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108280         check_PROGRAMS in this case.
108281         (func_import): Set for_test to false.
108282         (func_create_testdir): Set for_test to true.
108284 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108285             Bruno Haible  <bruno@clisp.org>
108287         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108288         (Depends-on): Add string.
108289         (Includes): Use <string.h> instead of strcasestr.h.
108290         * modules/string (Makefile.am): Also substitute the value of
108291         REPLACE_STRCASESTR.
108292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108293         assume strcasestr is declared in <string.h> not <strings.h>. Also
108294         set REPLACE_STRCASESTR.
108295         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108296         REPLACE_STRCASESTR.
108297         * lib/strcasestr.h: Remove file.
108298         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108299         * lib/string_.h (strcasestr): New declaration.
108301 2007-01-27  Bruno Haible  <bruno@clisp.org>
108303         * lib/string_.h: Use 'extern'.
108305 2007-01-27  Jim Meyering  <jim@meyering.net>
108307         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108308         of set-but-not-used local, "q".
108310         * lib/mempcpy.c: Include <config.h> before <string.h>.
108311         This fixes a compilation error on HP-UX, due to the system's
108312         "restrict"-using mempcpy prototype.
108314 2007-01-26  Bruno Haible  <bruno@clisp.org>
108316         Small optimization.
108317         * lib/javacomp.c: Include c-strstr.h.
108318          (is_envjavac_gcj): Use c_strstr instead of strstr.
108319         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108321 2007-01-26  Bruno Haible  <bruno@clisp.org>
108323         * MODULES.html.sh (Unicode string functions): Add the new modules.
108325         * modules/uniconv/u32-strconv-to-locale: New file.
108326         * lib/uniconv/u32-strconv-to-locale.c: New file.
108328         * modules/uniconv/u16-strconv-to-locale: New file.
108329         * lib/uniconv/u16-strconv-to-locale.c: New file.
108331         * modules/uniconv/u8-strconv-to-locale: New file.
108332         * lib/uniconv/u8-strconv-to-locale.c: New file.
108334         * modules/uniconv/u32-strconv-from-locale: New file.
108335         * lib/uniconv/u32-strconv-from-locale.c: New file.
108337         * modules/uniconv/u16-strconv-from-locale: New file.
108338         * lib/uniconv/u16-strconv-from-locale.c: New file.
108340         * modules/uniconv/u8-strconv-from-locale: New file.
108341         * lib/uniconv/u8-strconv-from-locale.c: New file.
108343         * modules/uniconv/u32-strconv-to-enc: New file.
108344         * lib/uniconv/u32-strconv-to-enc.c: New file.
108345         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108346         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108348         * modules/uniconv/u16-strconv-to-enc: New file.
108349         * lib/uniconv/u16-strconv-to-enc.c: New file.
108350         * lib/uniconv/u-strconv-to-enc.h: New file.
108351         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108352         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108354         * modules/uniconv/u8-strconv-to-enc: New file.
108355         * lib/uniconv/u8-strconv-to-enc.c: New file.
108356         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108357         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108359         * modules/uniconv/u32-strconv-from-enc: New file.
108360         * lib/uniconv/u32-strconv-from-enc.c: New file.
108361         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108362         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108364         * modules/uniconv/u16-strconv-from-enc: New file.
108365         * lib/uniconv/u16-strconv-from-enc.c: New file.
108366         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108367         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108369         * modules/uniconv/u8-strconv-from-enc: New file.
108370         * lib/uniconv/u8-strconv-from-enc.c: New file.
108371         * lib/uniconv/u-strconv-from-enc.h: New file.
108372         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108373         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108375         * modules/uniconv/u32-conv-from-enc: New file.
108376         * lib/uniconv/u32-conv-from-enc.c: New file.
108377         * modules/uniconv/u32-conv-from-enc-tests: New file.
108378         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108380         * modules/uniconv/u16-conv-from-enc: New file.
108381         * lib/uniconv/u16-conv-from-enc.c: New file.
108382         * lib/uniconv/u-conv-from-enc.h: New file.
108383         * modules/uniconv/u16-conv-from-enc-tests: New file.
108384         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108386         * modules/uniconv/u8-conv-from-enc: New file.
108387         * lib/uniconv/u8-conv-from-enc.c: New file.
108388         * modules/uniconv/u8-conv-from-enc-tests: New file.
108389         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108391         * modules/uniconv/base: New file.
108392         * lib/uniconv.h: New file.
108394 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108396         * doc/gnulib-tool.texi (Initial import): Update to match current
108397         behavior with strdup module.
108398         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108399         * lib/memmem.h: Remove; all uses removed.  This is now done
108400         by <string.h>.
108401         * lib/mempcpy.h: Likewise.
108402         * lib/memrchr.h: Likewise.
108403         * lib/stpcpy.h: Likewise.
108404         * lib/stpncpy.h: Likewise.
108405         * lib/strcase.h: Likewise.
108406         * lib/strchrnul.h: Likewise.
108407         * lib/strdup.h: Likewise.
108408         * lib/strndup.h: Likewise.
108409         * lib/strnlen.h: Likewise.
108410         * lib/strpbrk.h: Likewise.
108411         * lib/strsep.h: Likewise.
108412         * lib/strstr.h: Likewise.
108413         * lib/strtok_r.h: Likewise.
108414         * lib/string_.h: New file.
108415         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108416         Rely on <string.h> instead.
108417         * lib/canon-host.c: Likewise.
108418         * lib/chdir-long.c: Likewise.
108419         * lib/concatpath.c: Likewise.
108420         * lib/exclude.c: Likewise.
108421         * lib/fchdir.c: Likewise.
108422         * lib/getaddrinfo.c: Likewise.
108423         * lib/getcwd.c: Likewise.
108424         * lib/getsubopt.c: Likewise.
108425         * lib/glob.c: Likewise.
108426         * lib/hard-locale.c: Likewise.
108427         * lib/iconvme.c: Likewise.
108428         * lib/javacomp.c: Likewise.
108429         * lib/mempcpy.c: Likewise.
108430         * lib/memrchr.c: Likewise.
108431         * lib/regex_internal.h: Likewise.
108432         * lib/stpncpy.c: Likewise.
108433         * lib/strcasecmp.c: Likewise.
108434         * lib/strchrnul.c: Likewise.
108435         * lib/strdup.c: Likewise.
108436         * lib/striconv.c: Likewise.
108437         * lib/striconveh.c: Likewise.
108438         * lib/striconveha.c: Likewise.
108439         * lib/strncasecmp.c: Likewise.
108440         * lib/strndup.c: Likewise.
108441         * lib/strnlen.c: Likewise.
108442         * lib/strsep.c: Likewise.
108443         * lib/strstr.c: Likewise.
108444         * lib/strtok_r.c: Likewise.
108445         * lib/userspec.c: Likewise.
108446         * lib/w32spawn.h: Likewise.
108447         * lib/xstrndup.c: Likewise.
108448         * lib/mountlist.c (strstr): Remove decl.
108449         * m4/string_h.m4: New file.
108450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108451         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108452         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108453         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108454         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108455         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108456         Set REPLACE_STRCASECMP if necessary.
108457         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108458         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108459         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108461         HAVE_DECL_STRDUP if necessary.
108462         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108463         since gl_FUNC_STRNDUP does that now.
108464         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108465         Check for decl here...
108466         (gl_PREREQ_STRNLEN): ... not here.
108467         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108468         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108469         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108471         necessary.
108472         * modules/string: New file.
108473         * modules/memmem (Files): Remove special-purpose include file.
108474         (Depends-on): Add string.
108475         (Include): Include <string.h>, not the removed file.
108476         * modules/mempcpy: Likewise.
108477         * modules/memrchr: Likewise.
108478         * modules/stpcpy: Likewise.
108479         * modules/stpncpy: Likewise.
108480         * modules/strcase: Likewise.
108481         * modules/strchrnul: Likewise.
108482         * modules/strdup: Likewise.
108483         * modules/strndup: Likewise.
108484         * modules/strnlen: Likewise.
108485         * modules/strpbrk: Likewise.
108486         * modules/strsep: Likewise.
108487         * modules/strstr: Likewise.
108488         * modules/strtok_r: Likewise.
108489         * tests/test-dirname.c: Don't include "strdup.h", since
108490         <string.h> now suffices.
108491         * tests/test-memmem.c: Don't include "memmem.h", since
108492         <string.h> now suffices.
108494 2007-01-25  Bruno Haible  <bruno@clisp.org>
108496         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108497         *resultp is 0.
108499         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108500         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108501         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108502         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108504         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108505         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108506         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108507         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108508         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108509         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108511 2007-01-24  Bruno Haible  <bruno@clisp.org>
108513         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108514         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108515         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108516         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108517         gl_FUNC_FTS_CORE.
108518         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108519         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108520         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108521         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108522         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108523         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108524         gl_FUNC_FCHOWNAT.
108525         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108526         gl_FUNC_STRFTIME.
108527         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108528         Reported by Ralf Wildenhues.
108530 2007-01-24  Bruno Haible  <bruno@clisp.org>
108532         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108533         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108534         gl_GETADDRINFO.
108535         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108536         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108537         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108539 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108541         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108542         Don't use 'exit'; just return from 'main'.
108543         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108545         * lib/fnmatch_.h: Readjust white space and comments to match
108546         glibc, to avoid spurious diffs.
108548 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108550         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108551         2004-12-01 change by Jakub Jelinek, since this code won't compile
108552         if !LIBC.  Problem reported by Bob Proulx.
108554 2007-01-23  Bruno Haible  <bruno@clisp.org>
108556         * lib/striconveh.c: Include c-strcaseeq.h.
108557         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108558         * modules/striconveh (Depends-on): Add c-strcaseeq.
108560 2007-01-23  Bruno Haible  <bruno@clisp.org>
108562         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108564         * modules/c-strcaseeq: New file.
108565         * lib/c-strcaseeq.h: New file.
108567         * modules/streq: New file.
108568         * lib/streq.h: New file.
108570 2007-01-23  Bruno Haible  <bruno@clisp.org>
108572         * modules/striconveha-tests: New file.
108573         * tests/test-striconveha.c: New file.
108575         * lib/striconveha.h: Include <stdbool.h>.
108576         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108577         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108578         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108579         (mem_iconveha): New function.
108580         (str_iconveha_notranslit): Renamed from str_iconveha.
108581         (str_iconveha): New function.
108582         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108583         c-strcase.
108585 2007-01-23  Bruno Haible  <bruno@clisp.org>
108587         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108588         encodings without forgiving before trying any encoding with handler.
108589         (str_iconveha): Try all encodings without forgiving before trying any
108590         encoding with handler.
108592 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108594         Import the following changes from libc.
108596         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108598         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108600         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108602         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108603         normal_bracket label.
108605         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108607         [BZ #361]
108608         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108609         to normal_bracket after fetching the next character.
108611 2007-01-22  Bruno Haible  <bruno@clisp.org>
108613         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108614         argument.
108615         * lib/striconveh.c (iconv_carefully_1): New function.
108616         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108617         argument.
108618         (str_cd_iconveh): Update.
108619         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108620         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108621         * tests/test-striconveh.c (MAGIC): New macro.
108622         (new_offsets): New function.
108623         (main): Test call with and without offsets.
108625 2007-01-22  Bruno Haible  <bruno@clisp.org>
108627         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108628         * modules/sys_select (Makefile.am): Likewise.
108629         * modules/sys_socket (Makefile.am): Likewise.
108630         * modules/sys_time (Makefile.am): Likewise.
108632 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108634         * modules/gettimeofday (License): Change from GPL to LGPL, since
108635         gettimeofday is a library function.
108637 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108639         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108641 2007-01-21  Bruno Haible  <bruno@clisp.org>
108643         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108645 2007-01-21  Bruno Haible  <bruno@clisp.org>
108647         * modules/striconveha: New file.
108648         * lib/striconveha.h: New file.
108649         * lib/striconveha.c: New file.
108650         * MODULES.html.sh (Internationalization functions): Add striconveha.
108651         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108652         string.
108653         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108655 2007-01-21  Bruno Haible  <bruno@clisp.org>
108657         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108658         * lib/striconveh.c (str_iconveh): Likewise.
108660 2007-01-21  Bruno Haible  <bruno@clisp.org>
108662         * lib/striconveh.h (mem_iconveh): New declaration.
108663         * lib/striconveh.c (mem_iconveh): New function.
108664         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108666 2007-01-21  Bruno Haible  <bruno@clisp.org>
108668         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108670         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108671         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108672         original result buffer.
108673         (str_cd_iconveh): Update.
108674         * tests/test-striconveh.c (main): Update.
108676         * lib/striconv.h (mem_cd_iconv): Change specification.
108677         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108678         result buffer.
108679         (str_cd_iconv): Update.
108680         * tests/test-striconv.c (main): Update.
108682 2007-01-21  Bruno Haible  <bruno@clisp.org>
108684         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108686 2007-01-20  Jim Meyering  <jim@meyering.net>
108688         * lib/userspec.c (parse_with_separator): If a user or group string
108689         starts with "+", skip the corresponding name-to-ID look-up, since
108690         such a look-up must fail: user and group names may not include "+".
108692 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108694         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108695         since we now assume the sys_time module.
108696         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108697         check for sys/time.h; no longer needed.
108698         * modules/poll (Depends-on): Depend on sys_time.
108700 2007-01-18  Bruno Haible  <bruno@clisp.org>
108702         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108703         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108705         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108706         gettimeofday.
108708         * tests/test-gettimeofday.c: Include <time.h>.
108709         (dummy): Remove variable.
108711         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108712         gl_HEADER_SYS_TIME_H.
108713         (gl_HEADER_SYS_TIME_H): New macro.
108715         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108716         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108717         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108718         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108719         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108720         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108721         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108722         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108723         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108724         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108725         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108727         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108728         last change; it caused a compilation error when cross-compiling to
108729         Cygwin.
108731 2007-01-18  Jim Meyering  <jim@meyering.net>
108733         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108734         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108735         than the race-prone "test -d sys || mkdir sys".
108736         (configure.ac): Use AC_PROG_MKDIR_P.
108737         * modules/sys_select: Likewise.
108738         * modules/sys_socket: Likewise.
108739         * modules/sys_time: Likewise.
108741 2007-01-18  Eric Blake  <ebb9@byu.net>
108743         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108744         replace gettimeofday.
108745         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108746         name, to avoid infinite recursion.
108748 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108750         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108751         module sys_time.
108752         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108753         assume timespec.h defines struct timeval.
108754         * lib/settime.c: Likewise.
108755         * lib/utimens.c: Likewise.
108756         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108757         since we now assume the gettimeofday module.
108758         * lib/tempname.c (__gen_tempname): Likewise.
108759         * lib/gettimeofday.h: Remove.
108760         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108761         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108762         Include <time.h>, for 'time()'.
108763         (localtime_buffer_addr): Also use this workaround if
108764         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108765         to simplify the uses.  All uses changed.
108766         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108767         that #undef is inside {}, and 'const' follows type name consistently.
108768         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108769         (gettimeofday): Do not use the maximum possible value for
108770         tv->tv_usec, since that might break usages other than ls.c.
108771         Instead, we'll leave ls.c alone.  This undoes today's patch
108772         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108773         we've never observed the problem but might as well keep the
108774         canary.
108775         * lib/nanosleep.c: Include timespec.h first, for interface check.
108776         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108777         now assume the sys_time module.
108778         * lib/tempname.c: Likewise.
108779         * lib/timespec.h: Likewise.
108780         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108781         needed.
108782         * lib/strftime.c: Likewise.
108783         * lib/timespec.h: Likewise.
108784         * lib/posixtm.c: Include posixtm.h first, for interface check.
108785         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108786         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108787         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108788         * lib/sys_time_.h: New file.
108789         * lib/timespec.h (struct timespec): Use long int, not long.
108790         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108791         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108792         Remove obsolescent call to AC_HEADER_TIME.
108793         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108795         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108796         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108797         Likewise.
108798         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108799         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108801         into the sys_time module.  Check for gettimeofday just once.
108802         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108803         for gettimeofday signature to just check the signature.  Merely
108804         compile it, since linking doesn't test signature.  Improve test for
108805         whether gettimeofday.o is actually needed.
108806         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108807         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108808         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108809         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108810         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108811         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108812         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108813         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108814         than worrying about sys/time.h.
108815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108816         Don't bother worrying about TIME_WITH_SYS_TIME.
108817         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108818         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108819         * m4/sys_time_h.m4: New file.
108820         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108821         Don't include sys/time.h.  Return from main rather than exiting.
108822         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108823         all uses changed.
108824         * modules/gethrxtime (Depends-on): Add sys_time.
108825         * modules/gettime (Depends-on): Likewise.
108826         * modules/gettimeofday (Depends-on): Likewise.
108827         * modules/nanosleep (Depends-on): Likewise.
108828         * modules/settime (Depends-on): Likewise.
108829         * modules/tempname (Depends-on): Likewise.
108830         * modules/utimens (Depends-on): Likewise.
108831         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108832         (Include): Change back to <sys/time.h>.
108833         (Maintainer): Add self.
108834         * modules/sys_time: New file.
108835         * modules/tempname (Depends-on): Add gettimeofday.
108836         * tests/test-gettimeofday.c: Include <sys/time.h>
108837         rather than gettimeofday.h.
108839 2007-01-17  Bruno Haible  <bruno@clisp.org>
108841         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108842         the license default to GPL.
108843         (func_create_testdir): Don't complain if a module is LGPL and its
108844         tests module depends on GPLed modules.
108846 2007-01-17  Bruno Haible  <bruno@clisp.org>
108848         * lib/gettimeofday.c (gettimeofday): Add code for the case
108849         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108850         maximum possible value for tv->tv_usec, rather than the minimum one.
108852 2005-10-08  Martin Lambers  <marlam@marlam.de>
108853 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108854 2007-01-16  Bruno Haible  <bruno@clisp.org>
108856         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108857         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108858         gl_FUNC_GETTIMEOFDAY.
108859         (Include): Add gettimeofday.h.
108860         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108861         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108862         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108863         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108864         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108865         * lib/gettimeofday.h: New file.
108866         * lib/gettimeofday.c: Include <sys/timeb.h>.
108867         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108868         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108869         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108870         fall back on time().
108872         * tests/test-gettimeofday.c: New file.
108873         * modules/gettimeofday-tests: New file.
108875 2007-01-16  Eric Blake  <ebb9@byu.net>
108877         * modules/fnmatch (Depends-on): Depend on wchar.
108878         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108879         * m4/fnmatch.m4: Likewise.
108880         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108881         * m4/mbchar.m4: Likewise.
108882         * modules/mbswidth (Depends-on): Depend on wchar.
108883         * lib/mbswidth.c: Assume <wchar.h>.
108884         * m4/mbswidth.m4: Likewise.
108885         * modules/quotearg (Depends-on): Depend on wchar.
108886         * lib/quotearg.c: Assume <wchar.h>.
108887         * m4/quotearg.m4: Likewise.
108888         * modules/regex (Depends-on): Depend on wchar.
108889         * lib/regex_internal.h: Assume <wchar.h>.
108890         * m4/regex.m4: Likewise.
108891         * modules/stdint (Depends-on): Depend on wchar.
108892         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108893         * m4/stdint.m4: Likewise.
108894         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108895         * modules/strftime (Depends-on): Depend on wchar.
108896         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108897         * modules/strtol (Depends-on): Depend on wchar.
108898         * lib/strtol.c: Assume <wchar.h>.
108899         * modules/wcwidth (Depends-on): Depend on wchar.
108900         * lib/wcwidth.h: Assume <wchar.h>.
108901         * m4/wcwidth.m4: Likewise.
108903 2007-01-16  Bruno Haible  <bruno@clisp.org>
108905         * modules/csharpexec-script: New, created from...
108906         * modules/csharpexec: ... this.
108908 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108910         * modules/javaexec-script: New, created from...
108911         * modules/javaexec: ... this.
108913 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108915         * modules/poll (Dependencies): Add sys_select.
108917 2007-01-15  Jim Meyering  <jim@meyering.net>
108919         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108920         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108921         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108922         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108924 2007-01-15  Bruno Haible  <bruno@clisp.org>
108926         * modules/striconveh: New file.
108927         * lib/striconveh.h: New file.
108928         * lib/striconveh.c: New file.
108929         * MODULES.html.sh (Internationalization functions): Add striconveh.
108931         * modules/striconveh-tests: New file.
108932         * tests/test-striconveh.c: New file.
108934 2007-01-15  Bruno Haible  <bruno@clisp.org>
108936         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108937         not from GNU libiconv or GNU libc.
108939 2007-01-15  Bruno Haible  <bruno@clisp.org>
108941         * doc/gnulib-intro.texi (Copyright): Explain the different license
108942         terms for module descriptions, autoconf macros, tests, documentation.
108944 2007-01-14  Bruno Haible  <bruno@clisp.org>
108946         * modules/striconv-tests: New file.
108947         * tests/test-striconv.c: New file.
108949 2007-01-14  Bruno Haible  <bruno@clisp.org>
108951         * modules/iconv-tests: New file.
108952         * tests/test-iconv.c: New file.
108954 2007-01-14  Bruno Haible  <bruno@clisp.org>
108956         * gnulib-tool (func_get_license): For test modules, use the license of
108957         the main module.
108959 2007-01-14  Bruno Haible  <bruno@clisp.org>
108961         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108962         if iconv is found to exist.
108964 2007-01-14  Bruno Haible  <bruno@clisp.org>
108966         * modules/c-ctype-tests: New file.
108967         * tests/test-c-ctype.c: New file.
108969 2007-01-14  Bruno Haible  <bruno@clisp.org>
108971         * modules/binary-io-tests: New file.
108972         * tests/test-binary-io.sh: New file.
108973         * tests/test-binary-io.c: New file.
108975 2007-01-14  Bruno Haible  <bruno@clisp.org>
108977         * modules/array-oset-tests: New file.
108978         * tests/test-array_oset.c: New file.
108980 2007-01-14  Bruno Haible  <bruno@clisp.org>
108982         * modules/array-list-tests: New file.
108983         * tests/test-array_list.c: New file.
108985 2007-01-14  Bruno Haible  <bruno@clisp.org>
108987         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108988         and make.
108989         Reported by Simon Josefsson in
108990         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108992 2007-01-14  Bruno Haible  <bruno@clisp.org>
108994         * modules/allocsa-tests: New file.
108995         * tests/test-allocsa.c: New file.
108997 2007-01-14  Bruno Haible  <bruno@clisp.org>
108999         * modules/fchdir (Depends-on): Add absolute-header.
109000         * modules/unistd (Depends-on): Likewise.
109002 2006-12-30  Bruno Haible  <bruno@clisp.org>
109004         * modules/fchdir: New file.
109005         * modules/unistd (Files): Add lib/unistd_.h.
109006         (Makefile.am): Generate unistd.h from unistd_.h.
109007         * lib/fchdir.c: New file.
109008         * lib/dirent_.h: New file.
109009         * lib/unistd_.h: New file.
109010         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
109011         * m4/fchdir.m4: New file.
109012         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
109013         (gl_HEADER_UNISTD): Invoke it.
109014         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
109015         function.
109016         * lib/backupfile.c (opendir, closedir): Undefine.
109017         * lib/chown.c (open, close): Undefine.
109018         * lib/clean-temp.c (open, close): Undefine.
109019         * lib/copy-file.c (open, close): Undefine.
109020         * lib/execute.c (open, close): Undefine.
109021         * lib/fsusage.c (open, close): Undefine.
109022         * lib/gc-gnulib.c (open, close): Undefine.
109023         * lib/getcwd.c (opendir, closedir): Undefine.
109024         * lib/glob.c (opendir, closedir): Undefine.
109025         * lib/javacomp.c (open, close): Undefine.
109026         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
109027         * lib/openat-proc.c (open, close): Undefine.
109028         * lib/pagealign_alloc.c (open, close): Undefine.
109029         * lib/pipe.c (open, close): Undefine.
109030         * lib/progreloc.c (open, close): Undefine.
109031         * lib/savedir.c (opendir, closedir): Undefine.
109032         * lib/utime.c (open, close): Undefine.
109033         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
109035 2007-01-10  Bruno Haible  <bruno@clisp.org>
109037         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
109039 2007-01-12  Eric Blake  <ebb9@byu.net>
109041         Provide a robust <wchar.h>.  Further simplifications are now
109042         possible in other modules, but not included here.
109043         * modules/wchar: New module.
109044         * m4/wchar.m4: New file.
109045         * lib/wchar_.h: Likewise.
109046         * modules/mbchar (Depends-on): Depend on wchar, as the first use
109047         of the new module.
109048         * MODULES.html.sh (Extended multibyte and wide character utilities):
109049         New section.
109051 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
109053         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
109054         to a reasonable default for memory allocation.
109055         (xreadlink): Don't allocate a huge buffer, to work around a buggy
109056         file system that reports garbage st_size values for symlinks.
109057         Problem reported by Liyang Hu.
109059 2007-01-11  Simon Josefsson  <simon@josefsson.org>
109061         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
109062         Emacs .#* auto-save files).
109064 2007-01-11  Bruno Haible  <bruno@clisp.org>
109066         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
109067         directory.
109069 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
109071         Use @...@ consistently in lib/wctype_.h.
109072         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
109073         on it being set to 1 or 0.
109074         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
109075         go back to AC_SUBSTing it.
109076         * modules/wctype (Makefile.am): Undo previous change.
109078 2007-01-10  Eric Blake  <ebb9@byu.net>
109080         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
109081         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
109082         * modules/wctype (Makefile.am): Likewise.
109083         Reported by Chris McGuire.
109085 2007-01-10  Jim Meyering  <jim@meyering.net>
109087         fts.c: a small readability/maintainability improvement
109088         * lib/fts.c (fts_read): Make this code slightly more readable and
109089         maintainable by hoisting the "sp->fts_cur = p" assignments to
109090         immediately follow the statements that set P.  Derived from
109091         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
109093 2007-01-10  Eric Blake  <ebb9@byu.net>
109095         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
109096         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
109097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109098         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
109099         Reported by Chris McGuire.
109101 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109103         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
109104         in sed script.
109106 2007-01-09  Bruno Haible  <bruno@clisp.org>
109108         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
109109         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
109110         variables.
109111         (func_module): Use them.
109113 2007-01-09  Bruno Haible  <bruno@clisp.org>
109115         * modules/unistr/base: New file.
109116         * lib/unistr.h: New file.
109118         * modules/unistr/u8-to-u16: New file.
109119         * lib/unistr/u8-to-u16.c: New file.
109121         * modules/unistr/u8-to-u32: New file.
109122         * lib/unistr/u8-to-u32.c: New file.
109124         * modules/unistr/u16-to-u8: New file.
109125         * lib/unistr/u16-to-u8.c: New file.
109127         * modules/unistr/u16-to-u32: New file.
109128         * lib/unistr/u16-to-u32.c: New file.
109130         * modules/unistr/u32-to-u8: New file.
109131         * lib/unistr/u32-to-u8.c: New file.
109133         * modules/unistr/u32-to-u16: New file.
109134         * lib/unistr/u32-to-u16.c: New file.
109136         * modules/unistr/u8-check: New file.
109137         * modules/unistr/u16-check: New file.
109138         * modules/unistr/u32-check: New file.
109139         * lib/unistr/u8-check.c: New file.
109140         * lib/unistr/u16-check.c: New file.
109141         * lib/unistr/u32-check.c: New file.
109143         * modules/unistr/u8-chr: New file.
109144         * modules/unistr/u16-chr: New file.
109145         * modules/unistr/u32-chr: New file.
109146         * lib/unistr/u8-chr.c: New file.
109147         * lib/unistr/u16-chr.c: New file.
109148         * lib/unistr/u32-chr.c: New file.
109150         * modules/unistr/u8-cmp: New file.
109151         * modules/unistr/u16-cmp: New file.
109152         * modules/unistr/u32-cmp: New file.
109153         * lib/unistr/u8-cmp.c: New file.
109154         * lib/unistr/u16-cmp.c: New file.
109155         * lib/unistr/u32-cmp.c: New file.
109157         * modules/unistr/u8-cpy: New file.
109158         * modules/unistr/u16-cpy: New file.
109159         * modules/unistr/u32-cpy: New file.
109160         * lib/unistr/u8-cpy.c: New file.
109161         * lib/unistr/u16-cpy.c: New file.
109162         * lib/unistr/u32-cpy.c: New file.
109163         * lib/unistr/u-cpy.h: New file.
109165         * modules/unistr/u8-cpy-alloc: New file.
109166         * modules/unistr/u16-cpy-alloc: New file.
109167         * modules/unistr/u32-cpy-alloc: New file.
109168         * lib/unistr/u8-cpy-alloc.c: New file.
109169         * lib/unistr/u16-cpy-alloc.c: New file.
109170         * lib/unistr/u32-cpy-alloc.c: New file.
109171         * lib/unistr/u-cpy-alloc.h: New file.
109173         * modules/unistr/u8-endswith: New file.
109174         * modules/unistr/u16-endswith: New file.
109175         * modules/unistr/u32-endswith: New file.
109176         * lib/unistr/u8-endswith.c: New file.
109177         * lib/unistr/u16-endswith.c: New file.
109178         * lib/unistr/u32-endswith.c: New file.
109179         * lib/unistr/u-endswith.h: New file.
109181         * modules/unistr/u8-mblen: New file.
109182         * modules/unistr/u16-mblen: New file.
109183         * modules/unistr/u32-mblen: New file.
109184         * lib/unistr/u8-mblen.c: New file.
109185         * lib/unistr/u16-mblen.c: New file.
109186         * lib/unistr/u32-mblen.c: New file.
109188         * modules/unistr/u8-mbtouc: New file.
109189         * modules/unistr/u16-mbtouc: New file.
109190         * modules/unistr/u32-mbtouc: New file.
109191         * lib/unistr/u8-mbtouc.c: New file.
109192         * lib/unistr/u16-mbtouc.c: New file.
109193         * lib/unistr/u32-mbtouc.c: New file.
109195         * modules/unistr/u8-mbtouc-safe: New file.
109196         * modules/unistr/u16-mbtouc-safe: New file.
109197         * modules/unistr/u32-mbtouc-safe: New file.
109198         * lib/unistr/u8-mbtouc-safe.c: New file.
109199         * lib/unistr/u16-mbtouc-safe.c: New file.
109200         * lib/unistr/u32-mbtouc-safe.c: New file.
109202         * modules/unistr/u8-move: New file.
109203         * modules/unistr/u16-move: New file.
109204         * modules/unistr/u32-move: New file.
109205         * lib/unistr/u8-move.c: New file.
109206         * lib/unistr/u16-move.c: New file.
109207         * lib/unistr/u32-move.c: New file.
109208         * lib/unistr/u-move.h: New file.
109210         * modules/unistr/u8-next: New file.
109211         * modules/unistr/u16-next: New file.
109212         * modules/unistr/u32-next: New file.
109213         * lib/unistr/u8-next.c: New file.
109214         * lib/unistr/u16-next.c: New file.
109215         * lib/unistr/u32-next.c: New file.
109217         * modules/unistr/u8-prev: New file.
109218         * modules/unistr/u16-prev: New file.
109219         * modules/unistr/u32-prev: New file.
109220         * lib/unistr/u8-prev.c: New file.
109221         * lib/unistr/u16-prev.c: New file.
109222         * lib/unistr/u32-prev.c: New file.
109224         * modules/unistr/u8-set: New file.
109225         * modules/unistr/u16-set: New file.
109226         * modules/unistr/u32-set: New file.
109227         * lib/unistr/u8-set.c: New file.
109228         * lib/unistr/u16-set.c: New file.
109229         * lib/unistr/u32-set.c: New file.
109230         * lib/unistr/u-set.h: New file.
109232         * modules/unistr/u8-startswith: New file.
109233         * modules/unistr/u16-startswith: New file.
109234         * modules/unistr/u32-startswith: New file.
109235         * lib/unistr/u8-startswith.c: New file.
109236         * lib/unistr/u16-startswith.c: New file.
109237         * lib/unistr/u32-startswith.c: New file.
109238         * lib/unistr/u-startswith.h: New file.
109240         * modules/unistr/u8-stpcpy: New file.
109241         * modules/unistr/u16-stpcpy: New file.
109242         * modules/unistr/u32-stpcpy: New file.
109243         * lib/unistr/u8-stpcpy.c: New file.
109244         * lib/unistr/u16-stpcpy.c: New file.
109245         * lib/unistr/u32-stpcpy.c: New file.
109246         * lib/unistr/u-stpcpy.h: New file.
109248         * modules/unistr/u8-stpncpy: New file.
109249         * modules/unistr/u16-stpncpy: New file.
109250         * modules/unistr/u32-stpncpy: New file.
109251         * lib/unistr/u8-stpncpy.c: New file.
109252         * lib/unistr/u16-stpncpy.c: New file.
109253         * lib/unistr/u32-stpncpy.c: New file.
109254         * lib/unistr/u-stpncpy.h: New file.
109256         * modules/unistr/u8-strcat: New file.
109257         * modules/unistr/u16-strcat: New file.
109258         * modules/unistr/u32-strcat: New file.
109259         * lib/unistr/u8-strcat.c: New file.
109260         * lib/unistr/u16-strcat.c: New file.
109261         * lib/unistr/u32-strcat.c: New file.
109262         * lib/unistr/u-strcat.h: New file.
109264         * modules/unistr/u8-strchr: New file.
109265         * modules/unistr/u16-strchr: New file.
109266         * modules/unistr/u32-strchr: New file.
109267         * lib/unistr/u8-strchr.c: New file.
109268         * lib/unistr/u16-strchr.c: New file.
109269         * lib/unistr/u32-strchr.c: New file.
109271         * modules/unistr/u8-strcmp: New file.
109272         * modules/unistr/u16-strcmp: New file.
109273         * modules/unistr/u32-strcmp: New file.
109274         * lib/unistr/u8-strcmp.c: New file.
109275         * lib/unistr/u16-strcmp.c: New file.
109276         * lib/unistr/u32-strcmp.c: New file.
109278         * modules/unistr/u8-strcpy: New file.
109279         * modules/unistr/u16-strcpy: New file.
109280         * modules/unistr/u32-strcpy: New file.
109281         * lib/unistr/u8-strcpy.c: New file.
109282         * lib/unistr/u16-strcpy.c: New file.
109283         * lib/unistr/u32-strcpy.c: New file.
109284         * lib/unistr/u-strcpy.h: New file.
109286         * modules/unistr/u8-strcspn: New file.
109287         * modules/unistr/u16-strcspn: New file.
109288         * modules/unistr/u32-strcspn: New file.
109289         * lib/unistr/u8-strcspn.c: New file.
109290         * lib/unistr/u16-strcspn.c: New file.
109291         * lib/unistr/u32-strcspn.c: New file.
109292         * lib/unistr/u-strcspn.h: New file.
109294         * modules/unistr/u8-strdup: New file.
109295         * modules/unistr/u16-strdup: New file.
109296         * modules/unistr/u32-strdup: New file.
109297         * lib/unistr/u8-strdup.c: New file.
109298         * lib/unistr/u16-strdup.c: New file.
109299         * lib/unistr/u32-strdup.c: New file.
109300         * lib/unistr/u-strdup.h: New file.
109302         * modules/unistr/u8-strlen: New file.
109303         * modules/unistr/u16-strlen: New file.
109304         * modules/unistr/u32-strlen: New file.
109305         * lib/unistr/u8-strlen.c: New file.
109306         * lib/unistr/u16-strlen.c: New file.
109307         * lib/unistr/u32-strlen.c: New file.
109308         * lib/unistr/u-strlen.h: New file.
109310         * modules/unistr/u8-strmblen: New file.
109311         * modules/unistr/u16-strmblen: New file.
109312         * modules/unistr/u32-strmblen: New file.
109313         * lib/unistr/u8-strmblen.c: New file.
109314         * lib/unistr/u16-strmblen.c: New file.
109315         * lib/unistr/u32-strmblen.c: New file.
109317         * modules/unistr/u8-strmbtouc: New file.
109318         * modules/unistr/u16-strmbtouc: New file.
109319         * modules/unistr/u32-strmbtouc: New file.
109320         * lib/unistr/u8-strmbtouc.c: New file.
109321         * lib/unistr/u16-strmbtouc.c: New file.
109322         * lib/unistr/u32-strmbtouc.c: New file.
109324         * modules/unistr/u8-strncat: New file.
109325         * modules/unistr/u16-strncat: New file.
109326         * modules/unistr/u32-strncat: New file.
109327         * lib/unistr/u8-strncat.c: New file.
109328         * lib/unistr/u16-strncat.c: New file.
109329         * lib/unistr/u32-strncat.c: New file.
109330         * lib/unistr/u-strncat.h: New file.
109332         * modules/unistr/u8-strncmp: New file.
109333         * modules/unistr/u16-strncmp: New file.
109334         * modules/unistr/u32-strncmp: New file.
109335         * lib/unistr/u8-strncmp.c: New file.
109336         * lib/unistr/u16-strncmp.c: New file.
109337         * lib/unistr/u32-strncmp.c: New file.
109339         * modules/unistr/u8-strncpy: New file.
109340         * modules/unistr/u16-strncpy: New file.
109341         * modules/unistr/u32-strncpy: New file.
109342         * lib/unistr/u8-strncpy.c: New file.
109343         * lib/unistr/u16-strncpy.c: New file.
109344         * lib/unistr/u32-strncpy.c: New file.
109345         * lib/unistr/u-strncpy.h: New file.
109347         * modules/unistr/u8-strnlen: New file.
109348         * modules/unistr/u16-strnlen: New file.
109349         * modules/unistr/u32-strnlen: New file.
109350         * lib/unistr/u8-strnlen.c: New file.
109351         * lib/unistr/u16-strnlen.c: New file.
109352         * lib/unistr/u32-strnlen.c: New file.
109353         * lib/unistr/u-strnlen.h: New file.
109355         * modules/unistr/u8-strpbrk: New file.
109356         * modules/unistr/u16-strpbrk: New file.
109357         * modules/unistr/u32-strpbrk: New file.
109358         * lib/unistr/u8-strpbrk.c: New file.
109359         * lib/unistr/u16-strpbrk.c: New file.
109360         * lib/unistr/u32-strpbrk.c: New file.
109361         * lib/unistr/u-strpbrk.h: New file.
109363         * modules/unistr/u8-strrchr: New file.
109364         * modules/unistr/u16-strrchr: New file.
109365         * modules/unistr/u32-strrchr: New file.
109366         * lib/unistr/u8-strrchr.c: New file.
109367         * lib/unistr/u16-strrchr.c: New file.
109368         * lib/unistr/u32-strrchr.c: New file.
109370         * modules/unistr/u8-strspn: New file.
109371         * modules/unistr/u16-strspn: New file.
109372         * modules/unistr/u32-strspn: New file.
109373         * lib/unistr/u8-strspn.c: New file.
109374         * lib/unistr/u16-strspn.c: New file.
109375         * lib/unistr/u32-strspn.c: New file.
109376         * lib/unistr/u-strspn.h: New file.
109378         * modules/unistr/u8-strstr: New file.
109379         * modules/unistr/u16-strstr: New file.
109380         * modules/unistr/u32-strstr: New file.
109381         * lib/unistr/u8-strstr.c: New file.
109382         * lib/unistr/u16-strstr.c: New file.
109383         * lib/unistr/u32-strstr.c: New file.
109384         * lib/unistr/u-strstr.h: New file.
109386         * modules/unistr/u8-strtok: New file.
109387         * modules/unistr/u16-strtok: New file.
109388         * modules/unistr/u32-strtok: New file.
109389         * lib/unistr/u8-strtok.c: New file.
109390         * lib/unistr/u16-strtok.c: New file.
109391         * lib/unistr/u32-strtok.c: New file.
109392         * lib/unistr/u-strtok.h: New file.
109394         * modules/unistr/u8-uctomb: New file.
109395         * modules/unistr/u16-uctomb: New file.
109396         * modules/unistr/u32-uctomb: New file.
109397         * lib/unistr/u8-uctomb.c: New file.
109398         * lib/unistr/u16-uctomb.c: New file.
109399         * lib/unistr/u32-uctomb.c: New file.
109401         * MODULES.html.sh (Unicode string functions): Add the new modules.
109403 2007-01-08  Bruno Haible  <bruno@clisp.org>
109405         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109406         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109407         subdirectories.
109409 2007-01-08  Karl Berry  <karl@gnu.org>
109411         * doc/error.texi: mention that main() fns must set program_name
109412         when progname is used.
109414 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109416         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109417         WCTYPE_H is empty, for the benefit of builds from non-distclean
109418         directories.  Problem reported by Eric Blake in
109419         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109421 2007-01-08  Bruno Haible  <bruno@clisp.org>
109423         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109424         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109425         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109426         PROVIDE_CANONICALIZE_FILENAME_MODE.
109427         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109429 2007-01-08  Bruno Haible  <bruno@clisp.org>
109431         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109432         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109433         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109434         * lib/fts.c: Likewise.
109435         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109437 2006-12-25  Bruno Haible  <bruno@clisp.org>
109439         * modules/utf8-ucs4-safe: New file.
109440         * lib/utf8-ucs4-safe.h: New file.
109441         * lib/unistr/utf8-ucs4-safe.c: New file.
109443         * modules/utf16-ucs4-safe: New file.
109444         * lib/utf16-ucs4-safe.h: New file.
109445         * lib/unistr/utf16-ucs4-safe.c: New file.
109447         * MODULES.html.sh (Unicode string functions): Add the new modules.
109449 2007-01-08  Bruno Haible  <bruno@clisp.org>
109451         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109452         (Depends-on): Add unitypes.
109453         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109454         (u8_mbtouc_aux): Move out to separate file.
109455         (u8_mbtouc): Use ucs4_t, uint8_t types.
109456         * lib/unistr/utf8-ucs4.c: New file.
109458         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109459         (Depends-on): Add unitypes.
109460         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109461         (u16_mbtouc_aux): Move out to separate file.
109462         (u16_mbtouc): Use ucs4_t, uint16_t types.
109463         * lib/unistr/utf16-ucs4.c: New file.
109465         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109466         (Depends-on): Add unitypes.
109467         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109468         (u8_uctomb_aux): Move out to separate file.
109469         (u8_uctomb): Use ucs4_t, uint8_t types.
109470         * lib/unistr/ucs4-utf8.c: New file.
109472         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109473         (Depends-on): Add unitypes.
109474         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109475         (u16_uctomb_aux): Move out to separate file.
109476         (u16_uctomb): Use ucs4_t, uint16_t types.
109477         * lib/unistr/ucs4-utf16.c: New file.
109479 2006-12-25  Bruno Haible  <bruno@clisp.org>
109481         * modules/unitypes: New file.
109482         * lib/unitypes.h: New file.
109483         * MODULES.html.sh (func_all_modules): New section "Unicode string
109484         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109485         this section. Add unitypes.
109487 2007-01-08  Bruno Haible  <bruno@clisp.org>
109489         Avoid variable names that conflict with those from libtool.
109490         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109491         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109492         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109493         library_names_spec to acl_library_names_spec, hardcode_* to
109494         acl_hardcode_*.
109495         Reported by Ralf Wildenhues.
109497 2007-01-08  Bruno Haible  <bruno@clisp.org>
109499         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109500         definition.
109501         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109502         definition.
109503         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109504         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109505         definition.
109506         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109507         definition.
109508         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109509         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109510         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109511         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109512         definition.
109513         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109514         definition.
109515         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109516         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109517         GC_USE_<algorithm>.
109518         * lib/gc-libgcrypt.c: Likewise.
109519         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109520         * modules/gc-arctwo (configure.ac): Likewise.
109521         * modules/gc-des (configure.ac): Likewise.
109522         * modules/gc-hmac-md5 (configure.ac): Likewise.
109523         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109524         * modules/gc-md2 (configure.ac): Likewise.
109525         * modules/gc-md4 (configure.ac): Likewise.
109526         * modules/gc-md5 (configure.ac): Likewise.
109527         * modules/gc-random (configure.ac): Likewise.
109528         * modules/gc-rijndael (configure.ac): Likewise.
109529         * modules/gc-sha1 (configure.ac): Likewise.
109531 2007-01-08  Bruno Haible  <bruno@clisp.org>
109533         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109534         macro definition.
109535         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109536         definition.
109537         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109538         definition.
109539         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109540         * modules/fcntl-safer (configure.ac): Likewise.
109541         * modules/fopen-safer (configure.ac): Likewise.
109542         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109543         GNULIB_FWRITEERROR macro definition.
109545 2007-01-08  Bruno Haible  <bruno@clisp.org>
109547         * m4/gnulib-common.m4: New file.
109548         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109549         (func_get_filelist): Add m4/gnulib-common.m4.
109551 2007-01-08  Bruno Haible  <bruno@clisp.org>
109553         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109554         command.
109556 2007-01-08  Jim Meyering  <jim@meyering.net>
109558         Use a more robust test for a "can't happen" condition.
109559         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109560         narrowed the st_size value.  Presuming the "can't happen" condition
109561         is true, that narrowing could conceivably convert an invalid st_size
109562         value into a valid one.  Instead, use a change based on Matthew
109563         Woehlke's original patch.
109565         Slight readability improvement: use an assert-like macro
109566         in place of literal "abort ()" uses.
109567         * lib/fts.c (fts_assert): Define.
109568         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109569         Use this macro instead of a bare 'abort'.
109571 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109573         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109574         simply work around them.
109575         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109576         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109577         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109578         declaring.
109579         Don't bother to define as macros, since the standard doesn't require it.
109580         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109581         longer worry about IRIX 5.3.
109582         (HAVE_WCTYPE_CTMP_BUG): Remove.
109584 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109586         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109587         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109588         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109589         Problems reported by Georg Schwarz for IRIX 5.3.
109591         * gnulib-tool (autoconf_minversion): Take the maximum version number
109592         found, not the minimum.  Problem reported by James Youngman.
109594 2007-01-03  Karl Berry  <karl@gnu.org>
109596         * doc/error.texi: new file, explaining interaction with progname.
109597         * doc/gnulib.texi: include it.  Update copyright.
109599 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109601         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109602         AC_CANONICAL_HOST, to improve autobuild outputs.
109604 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109605             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109607         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109608         sockets, server sockets, and other file descriptors.  Count errors
109609         to compute the return value.  Reorder the code a bit to be easier
109610         to follow.  Don't set event bits that were not requested (except
109611         POLLERR and POLLHUP).
109613 2007-01-01  Bruno Haible  <bruno@clisp.org>
109615         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109617 2007-01-03  Jim Meyering  <jim@meyering.net>
109619         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109621 2007-01-02  Bruno Haible  <bruno@clisp.org>
109623         * modules/settime (Include): Require timespec.h.
109624         * modules/nanosleep (Include): Likewise.
109626 2007-01-01  Bruno Haible  <bruno@clisp.org>
109628         * gnulib-tool (func_emit_copyright_notice): Bump year.
109629         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109631 2007-01-01  Bruno Haible  <bruno@clisp.org>
109633         Improve support for OpenBSD.
109634         * build-aux/config.rpath (libname_spec): Export.
109635         (library_names_spec): New variable. Export.
109636         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109637         library_names_spec from the config.rpath output. Locate shared library
109638         through the name pattern in library_names_spec.
109640 2007-01-01  Eric Blake  <ebb9@byu.net>
109642         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109644 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109646         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109647         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109648         assume the C locale, and avoid an "eval" that could cause trouble.
109649         Problem with SORT reported by Bob Proulx.
109651         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109652         Define.  Trivial patch from Henning Nielsen Lund, originally
109653         sent to bug-grep@gnu.org today.
109655 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109657         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109658         struct stat.  Problem reported by Henning Nielsen Lund.
109659         * lib/acl.c: Include acl.h first, to check interface.  Don't
109660         bother to include sys/types.h and sys/stat.h again.
109662 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109664         Import the following change from libc; problem reported by
109665         Sven Verdoolaege.
109667         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109669         [BZ #1373]
109670         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109672 2006-12-28  Jim Meyering  <jim@meyering.net>
109674         * build-aux/announce-gen: Do not assume that the package
109675         builds any of tar.gz, tar.bz2, and .xdelta files.
109676         Suggestion from Simon Josefsson.
109678 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109680         * modules/announce-gen: New file.
109682 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109684         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109685         handles its gotchas now.
109686         * lib/mbswidth.c: Likewise.
109687         * lib/wcwidth.h: Likewise.
109688         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109689         and iswcntrl; the wctype module does this stuff now.
109690         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109692         * modules/mbchar (Depends-on): Add wctype.
109693         * modules/mbswidth (Depends-on): Likewise.
109694         * modules/wcwidth (Depends-on): Likewise.
109696 2006-12-27  Eric Blake  <ebb9@byu.net>
109698         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109699         module uses more than what <wctype.h> is required to provide.
109701 2006-12-26  Eric Blake  <ebb9@byu.net>
109703         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109705 2006-12-26  Eric Blake  <ebb9@byu.net>
109707         * modules/absolute-header: New module.
109708         * modules/fcntl (Depends-on): Depend on it.
109709         * modules/inttypes (Depends-on): Likewise.
109710         * modules/stdint (Depends-on): Likewise.
109711         * modules/sys_stat (Depends-on): Likewise.
109712         * modules/wctype (Depends-on): Likewise.
109713         * MODULES.html.sh (Support for building libraries and
109714         executables): Document it.
109716 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109718         * gnulib-tool (SED): Remove, undoing previous change.
109719         The problem was that it broke coreutils on Solaris, because
109720         "sed --posix" leaked into a makefile.
109721         (sed): New alias, if 'alias' and GNU sed.
109723 2006-12-24  Jim Meyering  <jim@meyering.net>
109725         Work around an fchownat bug in glibc-2.4:
109726         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109727         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109728         in spite of the -P option.
109729         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109730         New macros.
109731         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109732         * modules/openat (Files): Add lib/fchownat.c.
109733         * lib/openat.c (fchownat): Don't define here.  Move to...
109734         * lib/fchownat.c: ...this new file.
109736 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109738         Fix bug reported by Bruno Haible in
109739         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109740         where quotearg.c didn't compile on Mac OS X 10.2 because it
109741         lacks <wchar.h> and wint_t.
109742         * lib/wctype_.h (__wctype_wint_t): New type.
109743         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109744         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109745         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109746         Arg is now of type __wctype_wint_t, not wint_t.
109747         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109748         substitute HAVE_WINT_T.
109749         * modules/wctype (Files): Add m4/wint_t.m4.
109750         (wctype.h): Substitute HAVE_WINT_T.
109752 2006-12-23  Bruno Haible  <bruno@clisp.org>
109754         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109756 2006-12-23  Bruno Haible  <bruno@clisp.org>
109758         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109759         S_ISLNK.
109760         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109761         mingw.
109763 2006-12-22  Bruno Haible  <bruno@clisp.org>
109765         * lib/copy-file.c: Include acl.h.
109766         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109767         Close the file descriptors only after being done with copy_acl.
109768         * modules/copy-file (Depends-on): Add acl.
109770 2006-12-22  Bruno Haible  <bruno@clisp.org>
109772         * gnulib-tool (SED): New variable.
109773         Use $SED instead of sed everywhere.
109775 2006-12-22  Bruno Haible  <bruno@clisp.org>
109777         * modules/no-c++: New file.
109778         * m4/no-c++.m4: New file.
109779         * MODULES.html.sh (Support for building libraries and executables):
109780         Add no-c++.
109782 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109784         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109785         Include <limits.h>, and use its INT_MAX to rewrite the
109786         j loop so that it does not overflow 'int'.  Problem reported by
109787         Ralf Wildenhues in
109788         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109789         Play it safe by shifting left by 1 rather than multiplying by 2,
109790         as GCC is less likely to optimize this away when the value
109791         is signed (when it assumes overflow leads to undefined behavior).
109792         Also, don't assume time_t uses two's complement.
109794 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109796         * MODULES.html.sh: New module wctype.
109797         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109798         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109799         <wctype.h>, since the new wctype module should fix this.
109800         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109801         the wctype module should arrange for it.
109802         * lib/regex_internal.h: Likewise.
109803         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109804         since the wctype module should handle this now.
109805         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109806         * modules/fnmatch (Depends-on): Add wctype.
109807         * modules/quotearg (Depends-on): Likewise.
109808         * modules/regex (Depends-on): Likewise.
109810 2006-12-19  Bruno Haible  <bruno@clisp.org>
109812         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109813         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109815 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109817         * modules/savewd (Depends-on): Fix dependency on fcntl.
109819 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109821         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109822         conforms to C99, rather than relying on the user's environment
109823         setting of STDINT_H.
109825 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109826         and Eric Blake  <ebb9@byu.net>
109828         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109829         This is more consistent with the other defines here.
109830         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109831         Port to z/OS.  Problem reported by Paul Gilmartin.
109832         Change local vars to use gl_ prefix rather than ac_.
109833         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109834         with other defines.
109835         * modules/double-slash-root: New module.
109836         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109837         (Depends-on): Add double-slash-root.
109838         * MODULES.html.sh (File system functions): Mention new module.
109840 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109842         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109843         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109844         This is for the benefit of gzip, which doesn't do i18n.
109846 2006-12-12  Jim Meyering  <jim@meyering.net>
109848         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109849         Reported by Andreas Schwab <schwab@suse.de>.
109851 2006-12-12  Bruno Haible  <bruno@clisp.org>
109853         Merge these changes.
109854         2006-09-05  Bruno Haible  <bruno@clisp.org>
109855         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109856         iconv_alloc succeeded.
109857         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109858         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109859         test for " && dest " at the end - dest is always != NULL there. Call
109860         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109861         with 2xNULL arguments, also to flush the state storage. Handle the
109862         IRIX iconv behaviour. Realloc the final result, to throw away unused
109863         memory.
109865 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109867         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109868         and fchmodat unconditionally, since glibc 2.4 has them.
109869         Problem reported by Arkadiusz Miskiewicz.
109871 2006-12-10  Bruno Haible  <bruno@clisp.org>
109873         * gnulib-tool (func_import): Show the include files only for those
109874         modules that are copied and specified.
109875         Reported by Karl Berry.
109877 2006-12-08  Jim Meyering  <jim@meyering.net>
109879         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109880         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109882         * build-aux/announce-gen: Add two new options, both optional:
109883         --bootstrap-tools=TOOL_LIST
109884               a comma-separated list of tools, e.g.,
109885               autoconf,automake,bison,gnulib
109886         --gnulib-snapshot-date=DATE
109887               if gnulib is in the bootstrap tool list,
109888               then report this as the snapshot date.
109889               If not specified, use the current date/time.
109890               If you specify a date here, be sure it's UTC.
109892 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109894         * tests/test-argp-2.sh: Fix test to match actual output.
109895         (func_compare): Fix sed script to be portable.
109897 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109899         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109900         workaround for this case.  It is not autoconfigured now; offhand
109901         it's hard to see how to autoconfigure it.
109903 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109905         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109906         a directory that is about to be chowned.  Such a directory's
109907         initial file permissions should permit the owner only and this
109908         should not be changed until after the chown, since the group and
109909         other bits would be incorrect if they granted permission before
109910         the chown.
109912         Fix porting problem for iswctype reported by Georg Schwarz in:
109913         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109914         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109915         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109916         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109917         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109919 2006-12-03  Jim Meyering  <jim@meyering.net>
109921         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109922         p->fts_statp may not yet be defined.
109923         (fts_read): Instead, set it in the caller, once p->fts_statp is
109924         sure to be defined, and corresponds to a top-level directory.
109925         This bug made du -x fail.  Here's the coreutils test case:
109926         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109927         Reported by Mike Frysinger.
109929 2006-12-01  Jim Meyering  <jim@meyering.net>
109931         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109932         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109933         Reported by Simon Josefsson.
109935 2006-11-30  Jim Meyering  <jim@meyering.net>
109937         * m4/warning.m4: Use the all-permissive copyright notice
109938         recommended by RMS (rather than LGPL).
109939         * m4/vararrays.m4: Likewise.
109940         * m4/flexmember.m4: Likewise.
109942 2006-11-29  Bruno Haible  <bruno@clisp.org>
109944         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109945         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109946         using +=.
109947         Reported by Simon Josefsson <simon@josefsson.org>.
109949 2006-11-28  James Youngman  <jay@gnu.org>
109951         * README: Advise users that they might find the bug-gnulib@gnu.org
109952         and autotools-announce@gnu.org mailing lists useful.
109954 2006-11-28  Bruno Haible  <bruno@clisp.org>
109956         * m4/ptrdiff_max.m4: Remove file.
109958 2006-11-21  Bruno Haible  <bruno@clisp.org>
109960         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109961         _AC_COMPUTE_INT.
109962         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109963         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109964         _AC_COMPUTE_INT.
109965         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109966         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109967         _AC_COMPUTE_INT.
109968         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109970 2006-11-28  Jim Meyering  <jim@meyering.net>
109972         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109973         warning from "gcc -Wshadow" about shadowing the builtin.
109975 2006-11-27  Bruno Haible  <bruno@clisp.org>
109977         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109978         _AC_COMPUTE_INT.
109979         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109981 2006-11-27  Bruno Haible  <bruno@clisp.org>
109982             Paul Eggert  <eggert@cs.ucla.edu>
109984         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109986 2006-11-26  Bruno Haible  <bruno@clisp.org>
109988         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109989         noinst_LTLIBRARIES.
109991 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109992             Bruno Haible  <bruno@clisp.org>
109994         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109995         if compiling with "gcc -ansi".
109997 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109999         Fix some incompatibilities with gcc -ansi -pedantic.
110000         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
110001         if compiling pedantically with GCC, unless it's C99 or later.
110002         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
110003         it mishandles gcc -ansi -pedantic as well.
110004         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
110005         if gcc -pedantic.
110006         * lib/regexec.c (check_node_accept_bytes): Don't use auto
110007         initializers for struct if -pedantic, unless it's C99 or later.
110009 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
110011         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
110012         Don't close an fd more than once. Identical atimes indicate
110013         success, not failure.
110015 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
110017         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
110019 2006-11-23  Jim Meyering  <jim@meyering.net>
110021         * build-aux/announce-gen: New file.  From coreutils.
110023 2006-11-22  Jim Meyering  <jim@meyering.net>
110025         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
110026         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
110027         (fts_read): Use a temporary to narrow the overused st_size member
110028         before using it in a switch statement.  Reported by Matthew Woehlke.
110030         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
110031         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
110033 2006-11-20  Bruno Haible  <bruno@clisp.org>
110035         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
110036         changequote instead of pairs of brackets.
110037         Reported by Andreas Schwab <schwab@suse.de>.
110039 2006-11-21  Jim Meyering  <jim@meyering.net>
110041         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
110042         so as to remain compatible with older compilers.
110043         Patch from Michael Deutschmann.
110045 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110047         * MODULES.html.sh (File system functions): Add openat.
110049         * lib/openat.h (rpl_fstatat): New macro, if
110050         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
110051         (fstatat): Define to rpl_fstatat under the same conditions,
110052         unless COMPILING_FSTATAT.
110053         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
110054         seems to have the bug.
110055         * lib/fstatat.c: New file.
110056         * modules/openat (Files): Add it.
110058 2006-11-20  Bruno Haible  <bruno@clisp.org>
110060         * Makefile: New file.
110062 2006-11-20  Jim Meyering  <jim@meyering.net>
110064         The beginnings of syntax-related checks for gnulib.
110065         * lib/Makefile: New file.
110066         * lib/t-idcache: New script.  Ensure that the two halves of
110067         idcache.c stay in sync.
110069         * lib/idcache.c: Adjust comments in user- and group- portions to
110070         be more accurate, and to be consistent with one another.
110072 2006-11-20  Jim Meyering  <jim@meyering.net>
110074         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
110075         continue using the flexible array member (thus, this module performs
110076         half as many malloc calls), with the addition that...
110077         (getgroup, getuser): Consistently record a non-match via an empty
110078         "name" string, and map an empty string match to a NULL return value.
110079         * modules/idcache (Depends-on): Re-add flexmember.
110081         * lib/idcache.c (getuser): Remove all uses of the register keyword.
110082         (getuidbyname, getgroup, getgidbyname): Likewise.
110084         Use cleaner syntax: NULL rather than 0.
110085         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
110087 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
110089         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
110090         It mishandled the case where the group was missing.
110091         Problem reported by Greg Schafer.
110092         * modules/idcache: Likewise.
110094 2006-11-18  Jim Meyering  <jim@meyering.net>
110096         * check-module (%exempt_header): Add exception for some
110097         conditionally-included headers.
110099         * modules/i-ring (Depends-on): Add verify.
110100         (License): Change to LGPL.
110102 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
110104         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
110105         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
110106         and inttostr.h.  Use snprintf rather than uinttostr, so that
110107         LGPLed code doesn't depend on GPLed.
110109 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
110111         * modules/inline (License): Change from GPL to LGPL.
110113 2006-11-17  Jim Meyering  <jim@meyering.net>
110115         * modules/d-type (License): Switch to LGPL.
110117 2006-11-15  Bruno Haible  <bruno@clisp.org>
110119         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
110121 2006-11-15  Eric Blake  <ebb9@byu.net>
110123         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
110124         the module dependency.
110126 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110127             Bruno Haible  <bruno@clisp.org>
110129         * gnulib-tool (func_create_testdir): Add license consistency check.
110131 2006-11-15  Eric Blake  <ebb9@byu.net>
110133         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
110134         random "(cached)" in configure output.
110136 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110138         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
110139         test for conforming inttypes.h is both announced and cached.
110141         * MODULES.html.sh (seen_modules, seen_files): New variables.
110142         (func_module): Rewrite to use a few less gnulib-tool and sed
110143         invocations.  Avoid a couple of quadratic algorithms for ...
110144         (missed_modules, missed_files): ... these, with ...
110145         (func_append, func_tmpdir): ... these new functions, from
110146         gnulib-tool.  Analogously, install traps for cleanup.
110148         * tests/test-gc.c (main): Remove unused variables.
110149         * tests/test-read-file.c: Include stdlib.h, for 'free'.
110151 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
110153         * modules/inttostr (License): Change to LGPL.
110155 2006-11-14  Eric Blake  <ebb9@byu.net>
110157         * modules/tempname (License): Change to LGPL.
110159 2006-11-14  Eric Blake  <ebb9@byu.net>
110161         * doc/functions.texi (Function Portability): *printf functions on
110162         Cygwin now understand all POSIX size specifiers.
110164 2006-11-14  Bruno Haible  <bruno@clisp.org>
110166         * modules/c-ctype (License): Change to LGPL.
110168 2006-11-12  Bruno Haible  <bruno@clisp.org>
110170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
110171         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
110172         for GNOME libraries, for which the include files are installed in
110173         subdirectories of $prefix/include.
110175 2006-11-12  Bruno Haible  <bruno@clisp.org>
110177         * m4/lib-link.m4: Require at least autoconf-2.54.
110178         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
110179         name to underscores for the --with option.
110181 2006-11-13  Bruno Haible  <bruno@clisp.org>
110183         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
110184         the tests directory.
110185         Reported by Ralf Wildenhues.
110187 2006-11-13  Bruno Haible  <bruno@clisp.org>
110189         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
110190         (func_emit_initmacro_end): Undo the override here.
110191         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
110192         Works around the famous automake error in coreutils.
110194 2006-11-13  Eric Blake  <ebb9@byu.net>
110196         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
110197         element, not its node.
110199 2006-11-12  Bruno Haible  <bruno@clisp.org>
110201         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
110202         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
110204 2006-11-12  Bruno Haible  <bruno@clisp.org>
110206         * gnulib-tool: New option --local-symlink.
110207         (func_usage): Document it.
110208         (lsymbolic): New variable.
110209         (func_import, func_create_testdir): If --symlink was not specified,
110210         test whether --local-symlink was specified and the file comes from
110211         the local_gnulib_dir.
110213 2006-11-12  Bruno Haible  <bruno@clisp.org>
110215         * gnulib-tool (func_ln): New function.
110216         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
110218 2006-11-12  Bruno Haible  <bruno@clisp.org>
110220         Finish support for source files in subdirectories.
110221         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
110222         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
110223         AUTOMAKE_OPTIONS.
110224         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
110226 2006-11-12  Bruno Haible  <bruno@clisp.org>
110228         * gnulib-tool (func_get_automake_snippet): Synthesize also an
110229         EXTRA_lib_SOURCES augmentation.
110230         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
110232 2006-11-12  Jim Meyering  <jim@meyering.net>
110234         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
110235         file descriptors.  This also averts a failure on systems with
110236         native openat support when a traversed directory lacks "x" access.
110237         * lib/fts_.h: Include "i-ring.h"
110238         (struct FTS) [fts_fd_ring]: New member.
110239         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
110240         (FCHDIR): Add parentheses.
110241         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
110242         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
110243         When descending, rather than simply closing the previous
110244         fts_cwd_fd value, push that file descriptor onto the ring.
110245         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
110246         (fts_open): Initialize the new fd_ring member.
110247         (fts_close): Clear the ring.
110248         (fts_safe_changedir): When possible, use our new fd_ring to skip
110249         the diropen and fstat and dev/ino comparison that would normally
110250         accompany a virtual `chdir ("..")'.
110252         * modules/fts (Depends-on): Add i-ring.
110253         * modules/i-ring: New module.
110254         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110255         * m4/i-ring.m4: New file.
110257 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110259         * gnulib-tool (func_create_testdir): Fix replacement of
110260         `build-aux' in configure.ac.  Run autotools in gltests
110261         subdirectory.
110262         (func_create_testdir, func_create_megatestdir, test): There is
110263         no need for '--force' in most autotool invocations in a new
110264         tree.  Actually fail the whole test if any of the tools, or the
110265         configure or make stages fail.
110267         Sync from Automake.
110268         * build-aux/gnupload: Revert last change.  Add pointer to upload
110269         instructions of the GNU Maintenance Instructions.
110270         Suggestion by Karl Berry.
110272 2006-11-10  Jim Meyering  <jim@meyering.net>
110274         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110276 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110278         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110279         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110280         (bind_textdomain_codeset) [! ENABLE_NLS]:
110281         Evaluate all the arguments.  That way, callers get compatible behavior
110282         if the arguments have side effects.  Also, it avoids some GCC
110283         diagnostics in some cases; Joel E. Denny reported problems when Bison
110284         was configured with --enable-gcc-warnigs.
110286 2006-11-10  Jim Meyering  <jim@meyering.net>
110288         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110289         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110290         account.
110292 2006-11-10  Jim Meyering  <jim@meyering.net>
110294         * modules/inline: New file/module.
110295         * modules/xalloc (Files): Remove m4/inline.m4.
110296         (Depends-on): Add inline, instead.
110297         * modules/oset: Likewise.
110298         * modules/list: Likewise.
110300 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110302         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110303         Problem reported by Matthew Woehlke.
110305 2006-11-09  Bruno Haible  <bruno@clisp.org>
110307         * lib/tempname.c (gen_tempname): Remove variant that invokes
110308         __gen_tempname.
110309         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110310         __gen_tempname.
110312 2006-11-08  Bruno Haible  <bruno@clisp.org>
110314         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110315         to 'yes' instead of 'cross-compiling'.
110317 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110319         * lib/quotearg.h (quotearg_free): New decl.
110320         * lib/quotearg.c (quotearg_free): New function.
110321         (slot0, nslots, slotvec0, slotvec):
110322         Now file-scope so that quotearg_free can get at them.
110324 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110326         Sync from Automake.
110327         * build-aux/gnupload: Add missing 'gnu' to example URL.
110328         Report by Karl Berry.
110330 2006-11-08  Bruno Haible  <bruno@clisp.org>
110332         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110333         Suggested by Paul Eggert.
110335 2006-11-08  Jim Meyering  <jim@meyering.net>
110337         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110338         It's already included if !_LIBC.
110339         (fts_safe_changedir): Add a comment.
110341 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110343         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110344         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110345         Matthew Woehlke.
110347         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110348         definitions up, to avoid colliding with change below.
110349         (static_inline) [HAVE_INLINE]: New macro.
110350         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110351         Provide extern decls when !HAVE_INLINE.  Do not define unless
110352         static_inline is defined, either by us or by xmalloc.c.  Use
110353         static_inline rather than static inline.
110354         (XCALLOC): Optimize sizeof(T) = 1 case.
110355         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110357 2006-11-07  Bruno Haible  <bruno@clisp.org>
110359         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110360         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110361         AC_C_INLINE.
110362         * modules/xalloc (Files): Add m4/inline.m4.
110364 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110366         * README: Fix typo.
110367         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110368         (Miscellanous Notes): ...from this.
110370 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110372         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110373         Mention that offsetof should be used instead of sizeof.
110374         From Bruno Haible.
110376 2006-11-07  Bruno Haible  <bruno@clisp.org>
110378         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110380 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110382         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110383         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110384         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110385         (gl_tree_add_before, gl_tree_add_after):
110386         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110387         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110388         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110389         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110390         (gl_linked_add_after, gl_linked_add_at): Likewise.
110391         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110392         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110393         (gl_tree_add_before, gl_tree_add_after): Likewise.
110394         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110395         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110396         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110398 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110400         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110402 2006-11-06  Bruno Haible  <bruno@clisp.org>
110404         * m4/inline.m4: New file.
110405         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110406         * modules/list (Files): Add m4/inline.m4.
110407         * modules/oset (Files): Likewise.
110409 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110411         * lib/idcache.c: Include <stddef.h>, for offsetof.
110412         (struct userid.name): Change from char * to a flexible array member.
110413         All uses changed.
110414         * modules/idcache (Depends-on): Add flexmember.
110416         * MODULES.html.sh (Core language properties): New module flexmember.
110417         * modules/flexmember, m4/flexmember.m4: New files.
110419         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110420         inline functions that are identical with the old xnmalloc_inline,
110421         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110422         that we can avoid some unnecessary integer multiplications and
110423         divisions in the common case where the element size is known at
110424         compile time.
110425         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110426         needed.
110427         (xnboundedmalloc): Remove.
110428         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110429         arguments, for consistency with rest of this header.
110430         (xcharalloc): Rewrite using XNMALLOC.
110431         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110432         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110433         versions have been moved to lib/xalloc.h and renamed to be the
110434         non-*_inline versions.
110435         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110436         and xnrealloc functions, since those functions are now inline and
110437         now call us.
110438         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110439         renaming described above.
110440         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110441         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110442         captures the dependency in AC_C_INLINE.
110444         New module canonicalize-lgpl, proposed by Charles Wilson in
110445         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110446         with a few small changes afterwards.
110447         * MODULES.html.sh (File system functions): New module
110448         canonicalize-lgpl.
110449         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110450         and canonicalize_file_name.
110451         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110452         * modules/canonicalize-lgpl: New files.
110454 2006-11-05  Bruno Haible  <bruno@clisp.org>
110456         * gnulib-tool (func_import, func_create_testdir): Create directories
110457         also for files in subdirectories of lib/.
110459 2006-11-05  Bruno Haible  <bruno@clisp.org>
110461         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110462         ANSI C compliant.
110464 2006-11-03  Bruno Haible  <bruno@clisp.org>
110466         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110467         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110468         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110469         (xnboundedmalloc): New inline function.
110470         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110471         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110472         xmalloc.
110473         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110474         xmalloc.
110475         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110476         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110477         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110478         xmalloc.
110479         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110480         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110481         xmalloc.
110482         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110483         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110484         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110485         xmalloc.
110486         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110487         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110488         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110489         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110490         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110491         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110492         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110494 2006-11-03  Bruno Haible  <bruno@clisp.org>
110496         * lib/c-ctype.h [C++]: Define functions without name mangling.
110497         * lib/fwriteerror.h [C++]: Likewise.
110498         * lib/gcd.h [C++]: Likewise.
110499         * lib/linebreak.h [C++]: Likewise.
110501 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110503         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110504         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110505         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110506         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110507         Check for functions and headers just once.
110508         Check for declaration of canonicalize_file_name.
110509         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110511 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110513         * gnulib-tool (func_import): Fix typo in actioncmd.
110515 2006-11-02  Bruno Haible  <bruno@clisp.org>
110517         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110518         newline sequence in the Makefile.am snippet as a space, like "make"
110519         does.
110520         Reported by Roger Persson <perrog@gmail.com>.
110522 2006-11-01  Bruno Haible  <bruno@clisp.org>
110524         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110525         already declared in <string.h>.
110526         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110528 2006-11-01  Bruno Haible  <bruno@clisp.org>
110530         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110531         * lib/strcase.h: Include <string.h>.
110532         (strcasecmp): Define to rpl_strcasecmp here.
110534 2006-11-01  Bruno Haible  <bruno@clisp.org>
110536         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110538 2006-11-01  Eric Blake  <ebb9@byu.net>
110540         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110542         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110544 2006-10-29  Bruno Haible  <bruno@clisp.org>
110546         Make it compile in C++ mode.
110547         * lib/full-write.c (full_rw): Add a cast.
110549 2006-11-01  Bruno Haible  <bruno@clisp.org>
110551         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110552         be POSIX compliant.
110553         Reported by Roger Persson <perrog@gmail.com>.
110555 2006-11-01  Eric Blake  <ebb9@byu.net>
110557         * lib/getopt_.h: Fix comments.
110559 2006-10-31  Eric Blake  <ebb9@byu.net>
110561         * modules/tmpdir (Depends-on): Add sys_stat.
110562         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110563         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110564         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110565         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110566         tempname.
110568 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110570         Avoid some C++ diagnostics reported by Bruno Haible.
110571         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110572         xmalloc.
110573         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110574         (struct slotvec): Move to top level.
110575         (quotearg_n_options): Rewrite to avoid xmalloc.
110576         * lib/xalloc.h (xcharalloc): New function.
110577         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110578         [defined __cplusplus]: Add function template that provides result
110579         type propagation.  This part of the change is from Bruno Haible.
110581 2006-10-29  Bruno Haible  <bruno@clisp.org>
110583         Make it compile in C++ mode.
110584         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110585         * lib/strnlen1.c (strnlen1): Cast memchr result.
110586         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110587         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110588         (create_temp_dir): Rename local variable 'template'.
110589         (compile_csharp_using_sscli): Add cast.
110590         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110591         * lib/findprog.c (find_in_path): Likewise.
110592         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110593         * lib/wait-process.c (register_slave_subprocess): Likewise.
110595 2006-10-22  Bruno Haible  <bruno@clisp.org>
110597         * modules/tsearch: New file.
110598         * lib/tsearch.h: New file.
110599         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110600         * m4/tsearch.m4: New file.
110601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110603 2006-10-29  Eric Blake  <ebb9@byu.net>
110605         * lib/arcfour.c: Assume config.h.
110606         * lib/arctwo.c: Likewise.
110607         * lib/base64.c: Likewise.
110608         * lib/check-version.c: Likewise.
110609         * lib/crc.c: Likewise.
110610         * lib/des.c: Likewise.
110611         * lib/gc-gnulib.c: Likewise.
110612         * lib/gc-libgcrypt.c: Likewise.
110613         * lib/gc-pbkdf2-sha1.c: Likewise.
110614         * lib/getaddrinfo.c: Likewise.
110615         * lib/getdelim.c: Likewise.
110616         * lib/getline.c: Likewise.
110617         * lib/hmac-md5.c: Likewise.
110618         * lib/hmac-sha1.c: Likewise.
110619         * lib/iconvme.c: Likewise.
110620         * lib/md2.c: Likewise.
110621         * lib/md4.c: Likewise.
110622         * lib/memxor.c: Likewise.
110623         * lib/read-file.c: Likewise.
110624         * lib/readline.c: Likewise.
110625         * lib/rijndael-alg-fst.c: Likewise.
110626         * lib/rijndael-api-fst.c: Likewise.
110627         * lib/xgetdomainname.c: Likewise.
110629 2006-10-28  Eric Blake  <ebb9@byu.net>
110631         * lib/xstrndup.c: Assume config.h.
110633 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110635         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110636         stat-macros.h is now for our own macros, whereas stat_h is for
110637         macros in the <sys/stat.h> name space.
110638         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110639         (STAT_MACROS_H): Remove.
110640         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110641         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110642         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110643         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110644         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110645         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110646         Move these macros to ...
110647         * lib/stat_.h: here.  Don't include stat-macros.h.
110648         * lib/canonicalize.c: Don't include stat-macros.h.
110649         * lib/chown.c: Likewise.
110650         * lib/euidaccess.c: Likewise.
110651         * lib/file-type.c: Likewise.
110652         * lib/filemode.c: Likewise.
110653         * lib/glob.c: Likewise.
110654         * lib/isapipe.c: Likewise.
110655         * lib/lchown.c: Likewise.
110656         * lib/lstat.c: Likewise.
110657         * lib/mkdir-p.c: Likewise.
110658         * lib/rmdir.c: Likewise.
110659         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110661         unless mkdir isn't declared, to speed up 'configure'.
110662         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110663         would define all the S_* symbols.
110664         * modules/canonicalize (Depends-on):
110665         Depend on sys_stat, not stat-macros.
110666         * modules/chown: Likewise.
110667         * modules/euidaccess: Likewise.
110668         * modules/filemode: Likewise.
110669         * modules/file-type: Likewise.
110670         * modules/glob: Likewise.
110671         * modules/isapipe: Likewise.
110672         * modules/lchown: Likewise.
110673         * modules/lstat: Likewise.
110674         * modules/mkancesdirs: Likewise.
110675         * modules/rmdir: Likewise.
110676         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110677         * modules/modechange: Likewise.
110678         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110679         (configure.ac): Remove gl_STAT_MACROS.
110680         * modules/sys_stat (Depends-on): Remove stat-macros.
110682 2006-10-27  Bruno Haible  <bruno@clisp.org>
110684         * m4/signed.m4: Remove file.
110685         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110686         invocation.
110687         * modules/vasnprintf (Files): Remove m4/signed.m4.
110689 2006-10-27  Bruno Haible  <bruno@clisp.org>
110691         Update to GNU gettext 0.16.
110692         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110693         m4/inttypes-h.m4, m4/signed.m4.
110694         * m4/gettext.m4: Update to GNU gettext 0.16.
110695         * m4/intl.m4: New file, from GNU gettext.
110696         * m4/intldir.m4: New file, from GNU gettext.
110697         * config/srclist.txt: Update
110699 2006-10-27  Eric Blake  <ebb9@byu.net>
110701         * MODULES.html.sh: Document tempname.
110702         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110703         dependencies.
110704         (Files): Move lib/tempname.c...
110705         * modules/tempname: ...to this new module.
110706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110707         (gl_PREREQ_TEMPNAME): Move...
110708         * m4/tempname.m4: ...to this new file.
110709         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110710         * modules/sys_stat (Depends-on): Add stat-macros.
110711         * lib/stat_.h (includes): Pick up stat macros.
110712         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110713         if stat macros are broken.
110714         * lib/tempname.c (includes): No need to include "stat-macros.h".
110715         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110716         (direxists, __path_search) [!_LIBC]: Don't compile these in
110717         gnulib; the tmpdir module covers that.
110718         * lib/tempname.h: New file.
110720 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110722         * COPYING: Explain how gnulib-tool converts licence headers.
110723         Almost all wording by Eric Blake.
110725 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110727         * lib/mbchar.h (is_basic_table): Make read-only.
110728         * lib/mbchar.c (is_basic_table): Likewise.
110729         Reported by John Darrington.
110731 2006-10-25  Bruno Haible  <bruno@clisp.org>
110733         * lib/progname.h (set_program_name): Undefine before defining.
110735 2006-10-25  Bruno Haible  <bruno@clisp.org>
110737         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110738         false for non-gcc C++ compilers.
110739         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110741 2006-10-24  Bruno Haible  <bruno@clisp.org>
110743         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110744         iconv implementations like Irix iconv.
110746 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110748         * modules/vararrays: New file.
110749         * m4/vararrays.m4: New file, taken from diffutils.
110750         * MODULES.html.sh: New module vararrays.
110752 2006-10-24  Karl Berry  <karl@gnu.org>
110754         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110755         Don't call GNU Unix.
110757 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110759         * users.txt: Add Libtool.
110761         Sync from Libtool:
110763         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110765         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110766         to gnulib's policy of including config.h unconditionally.
110768 2006-10-24  Bruno Haible  <bruno@clisp.org>
110770         * modules/wcwidth (Files): Add m4/wint_t.m4.
110771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110772         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110774 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110776         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110777         to pacify GCC with some -W flags enabled.  Problem reported by
110778         Bruno Haible.
110780 2006-10-24  Jim Meyering  <jim@meyering.net>
110782         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110783         Reported by Karl Berry.
110785 2006-10-23  Bruno Haible  <bruno@clisp.org>
110787         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110789 2006-10-24  Bruno Haible  <bruno@clisp.org>
110791         * lib/gl_list.h: Use C comment style, not C++ comment style.
110793 2006-10-23  Eric Blake  <ebb9@byu.net>
110795         * lib/getaddrinfo.c (includes): Add missing include.
110797 2006-10-23  Bruno Haible  <bruno@clisp.org>
110798             Paul Eggert  <eggert@cs.ucla.edu>
110800         Ability to rename obstack_free.
110801         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110802         obstack_free.
110803         (obstack_free): Invoke the __obstack_free macro.
110804         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110806 2006-10-23  Bruno Haible  <bruno@clisp.org>
110807             Paul Eggert  <eggert@cs.ucla.edu>
110809         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110810         __argc, __argv from the declaration. (They are defined as macros on
110811         mingw.)
110813 2006-10-22  Bruno Haible  <bruno@clisp.org>
110815         * doc/gnulib-intro.texi: New file.
110816         * doc/gnulib.texi: Include it.
110818 2006-10-21  Bruno Haible  <bruno@clisp.org>
110820         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110821         "Introduction", "Miscellanous Notes", "Particular Modules".
110823 2006-10-21  Bruno Haible  <bruno@clisp.org>
110825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110826         Change mostlyclean-local rule to avoid sh syntax error from bash
110827         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110829 2006-10-23  Jim Meyering  <jim@meyering.net>
110831         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110832         in place of snprintf.
110834         * modules/inttostr (Files): Add lib/uinttostr.c.
110835         * lib/uinttostr.c (inttostr): New file/function.
110836         * lib/inttostr.h (uinttostr): Declare.
110837         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110838         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110839         Add uinttostr.
110840         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110842 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110844         * lib/canonicalize.c (ELOOP): Define if not already defined.
110845         Problem reported by Bruno Haible in
110846         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110848 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110850         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110851         Problem reported by Perry Smith and Ville Laurikari.
110853         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110854         uses.
110856 2006-10-19  Bruno Haible  <bruno@clisp.org>
110858         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110859         for mingw.
110861 2006-10-19  Bruno Haible  <bruno@clisp.org>
110863         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110864         Needed for mingw.
110866 2006-10-19  Bruno Haible  <bruno@clisp.org>
110868         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110870 2006-10-19  Bruno Haible  <bruno@clisp.org>
110872         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110873         it.
110875 2006-10-19  Bruno Haible  <bruno@clisp.org>
110877         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110878         invocation.
110880 2006-10-19  Bruno Haible  <bruno@clisp.org>
110882         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110883         mountlist by default.
110885 2006-10-16  Bruno Haible  <bruno@clisp.org>
110887         * lib/c-strstr.c: Include c-strstr.h.
110889 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110891         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110892         in a slash.
110894 2006-10-18  Bruno Haible  <bruno@clisp.org>
110896         * lib/lock.h [C++]: Wrap definitions in extern "C".
110898 2006-10-18  Bruno Haible  <bruno@clisp.org>
110900         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110901         gl_LIBOBJS list.
110903 2006-10-18  Bruno Haible  <bruno@clisp.org>
110905         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110907 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110909         * lib/xstrtol.h: Include gettext.h.
110910         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110911         Problem reported by Eric Blake.
110912         * modules/xstrtol (Depends-on): Add gettext-h.
110914 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110916         * lib/strftime.c (advance): New macro.
110917         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110918         incomplete type, so you can't add 0 to it.  Problem and patch
110919         reported by Eelco Dolstra for dietlibc.
110921 2006-10-18  Jim Meyering  <jim@meyering.net>
110923         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110924         type for a local, and rename it: s/up/user_proc/.
110926 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110928         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110929         READ_UTMP_USER_PROCESS.
110930         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110932 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110934         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110935         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110937 2006-10-17  Eric Blake  <ebb9@byu.net>
110939         * lib/sigprocmask.c (sigprocmask): Fix typo.
110941         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110943         * modules/clean-temp (Makefile.am): Don't add to make output...
110944         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110945         config.h.
110947 2006-10-17  Bruno Haible  <bruno@clisp.org>
110949         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110950         differently if DEFAULT_TEXT_DOMAIN is set.
110952 2006-10-16  Bruno Haible  <bruno@clisp.org>
110954         * lib/clean-temp.c: Include fwriteerror.h.
110956 2006-10-16  Bruno Haible  <bruno@clisp.org>
110958         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110960 2006-10-16  Bruno Haible  <bruno@clisp.org>
110962         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110963         * lib/sigprocmask.h: Include <sys/types.h>.
110964         (sigset_t): Use the system's definition if present.
110966 2006-10-17  Eric Blake  <ebb9@byu.net>
110968         * lib/xvasprintf.c (includes): Assume config.h.
110969         * lib/xasprintf.c (includes): Likewise.
110971 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110973         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110974         at least as wide as intmax_t.
110976 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110978         (Imported from Automake.)
110979         * build-aux/gnupload: Update to version 1.1 of directive file.
110981 2006-10-16  Eric Blake  <ebb9@byu.net>
110983         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110984         match Automake 1.10a.
110986 2006-10-14  Bruno Haible  <bruno@clisp.org>
110988         * modules/sigprocmask: New file.
110989         * lib/sigprocmask.h: New file.
110990         * lib/sigprocmask.c: New file.
110991         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110992         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110993         request sigprocmask.o.
110994         (gl_PREREQ_SIGPROCMASK): New macro.
110995         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110996         (Depends-on): Add sigprocmask.
110997         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110998         gt_SIGNALBLOCKING. Test for 'raise' only once.
110999         * lib/fatal-signal.c: Include sigprocmask.h.
111000         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
111001         unblock_fatal_signals): Define always.
111002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111003         sigprocmask.
111005 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
111007         Sync from Automake.
111008         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
111009         which incorrectly sets the mode of an existing destination
111010         directory.  In some cases the unpatched install-sh could do the
111011         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
111012         system.  We hope this is rare in practice, but it's clearly worth
111013         fixing.  Problem reported by Alex Unleashed in
111014         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
111015         Also, don't bother to check for -m bugs unless we're using -m;
111016         suggested by Stepan Kasal.
111018 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111020         Sync from Automake.
111021         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
111022         `-c' flag, so they appear at the same position as in %FASTDEP%
111023         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
111024         which ignores unknown options only after the first non-option.
111025         Bug report against M4 by Nelson H. F. Beebe.
111027 2006-10-13  Jim Meyering  <jim@meyering.net>
111029         Fix a bug in yesterday's change.
111030         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
111031         p->fts_statp->st_dev would be used uninitialized.
111032         Ensures that we always call fts_stat on the very first entry.
111033         Miklos Szeredi reported that find -xdev stopped working.
111035 2006-10-12  Bruno Haible  <bruno@clisp.org>
111037         * gnulib-tool (func_get_automake_snippet): Append an automatically
111038         computed EXTRA_DIST augmentation.
111039         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
111040         * modules/alloca-opt (Makefile.am): Likewise.
111041         * modules/allocsa (Makefile.am): Likewise.
111042         * modules/arcfour (Makefile.am): Likewise.
111043         * modules/arctwo (Makefile.am): Likewise.
111044         * modules/argmatch (Makefile.am): Likewise.
111045         * modules/argz (Makefile.am): Likewise.
111046         * modules/atexit (Makefile.am): Likewise.
111047         * modules/backupfile (Makefile.am): Likewise.
111048         * modules/byteswap (Makefile.am): Likewise.
111049         * modules/c-strtod (Makefile.am): Likewise.
111050         * modules/c-strtold (Makefile.am): Likewise.
111051         * modules/calloc (Makefile.am): Likewise.
111052         * modules/canon-host (Makefile.am): Likewise.
111053         * modules/canonicalize (Makefile.am): Likewise.
111054         * modules/chdir-long (Makefile.am): Likewise.
111055         * modules/chdir-safer (Makefile.am): Likewise.
111056         * modules/check-version (Makefile.am): Likewise.
111057         * modules/chown (Makefile.am): Likewise.
111058         * modules/cloexec (Makefile.am): Likewise.
111059         * modules/close-stream (Makefile.am): Likewise.
111060         * modules/closeout (Makefile.am): Likewise.
111061         * modules/crc (Makefile.am): Likewise.
111062         * modules/csharpexec (Makefile.am): Likewise.
111063         * modules/cycle-check (Makefile.am): Likewise.
111064         * modules/des (Makefile.am): Likewise.
111065         * modules/dev-ino (Makefile.am): Likewise.
111066         * modules/dirfd (Makefile.am): Likewise.
111067         * modules/dirname (Makefile.am): Likewise.
111068         * modules/dup2 (Makefile.am): Likewise.
111069         * modules/eealloc (Makefile.am): Likewise.
111070         * modules/error (Makefile.am): Likewise.
111071         * modules/euidaccess (Makefile.am): Likewise.
111072         * modules/exclude (Makefile.am): Likewise.
111073         * modules/exitfail (Makefile.am): Likewise.
111074         * modules/fcntl-safer (Makefile.am): Likewise.
111075         * modules/fcntl (Makefile.am): Likewise.
111076         * modules/file-type (Makefile.am): Likewise.
111077         * modules/fileblocks (Makefile.am): Likewise.
111078         * modules/filemode (Makefile.am): Likewise.
111079         * modules/filenamecat (Makefile.am): Likewise.
111080         * modules/fnmatch (Makefile.am): Likewise.
111081         * modules/fopen-safer (Makefile.am): Likewise.
111082         * modules/fpending (Makefile.am): Likewise.
111083         * modules/fprintftime (Makefile.am): Likewise.
111084         * modules/free (Makefile.am): Likewise.
111085         * modules/fsusage (Makefile.am): Likewise.
111086         * modules/ftruncate (Makefile.am): Likewise.
111087         * modules/fts (Makefile.am): Likewise.
111088         * modules/gc-arcfour (Makefile.am): Likewise.
111089         * modules/gc-des (Makefile.am): Likewise.
111090         * modules/gc-hmac-md5 (Makefile.am): Likewise.
111091         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
111092         * modules/gc-md4 (Makefile.am): Likewise.
111093         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111094         * modules/gc-sha1 (Makefile.am): Likewise.
111095         * modules/gc (Makefile.am): Likewise.
111096         * modules/getaddrinfo (Makefile.am): Likewise.
111097         * modules/getcwd (Makefile.am): Likewise.
111098         * modules/getdelim (Makefile.am): Likewise.
111099         * modules/getdomainname (Makefile.am): Likewise.
111100         * modules/getgroups (Makefile.am): Likewise.
111101         * modules/gethostname (Makefile.am): Likewise.
111102         * modules/gethrxtime (Makefile.am): Likewise.
111103         * modules/getline (Makefile.am): Likewise.
111104         * modules/getloadavg (Makefile.am): Likewise.
111105         * modules/getlogin_r (Makefile.am): Likewise.
111106         * modules/getndelim2 (Makefile.am): Likewise.
111107         * modules/getopt (Makefile.am): Likewise.
111108         * modules/getpagesize (Makefile.am): Likewise.
111109         * modules/getpass-gnu (Makefile.am): Likewise.
111110         * modules/getpass (Makefile.am): Likewise.
111111         * modules/getsubopt (Makefile.am): Likewise.
111112         * modules/gettime (Makefile.am): Likewise.
111113         * modules/gettimeofday (Makefile.am): Likewise.
111114         * modules/getugroups (Makefile.am): Likewise.
111115         * modules/getusershell (Makefile.am): Likewise.
111116         * modules/glob (Makefile.am): Likewise.
111117         * modules/group-member (Makefile.am): Likewise.
111118         * modules/hard-locale (Makefile.am): Likewise.
111119         * modules/hash (Makefile.am): Likewise.
111120         * modules/hmac-md5 (Makefile.am): Likewise.
111121         * modules/hmac-sha1 (Makefile.am): Likewise.
111122         * modules/human (Makefile.am): Likewise.
111123         * modules/idcache (Makefile.am): Likewise.
111124         * modules/imaxabs (Makefile.am): Likewise.
111125         * modules/imaxdiv (Makefile.am): Likewise.
111126         * modules/inet_ntop (Makefile.am): Likewise.
111127         * modules/inet_pton (Makefile.am): Likewise.
111128         * modules/intprops (Makefile.am): Likewise.
111129         * modules/inttostr (Makefile.am): Likewise.
111130         * modules/inttypes (Makefile.am): Likewise.
111131         * modules/isapipe (Makefile.am): Likewise.
111132         * modules/javaversion (Makefile.am): Likewise.
111133         * modules/lchmod (Makefile.am): Likewise.
111134         * modules/lchown (Makefile.am): Likewise.
111135         * modules/localcharset (Makefile.am): Likewise.
111136         * modules/long-options (Makefile.am): Likewise.
111137         * modules/lstat (Makefile.am): Likewise.
111138         * modules/malloc (Makefile.am): Likewise.
111139         * modules/mathl (Makefile.am): Likewise.
111140         * modules/mbchar (Makefile.am): Likewise.
111141         * modules/md2 (Makefile.am): Likewise.
111142         * modules/md4 (Makefile.am): Likewise.
111143         * modules/md5 (Makefile.am): Likewise.
111144         * modules/memcasecmp (Makefile.am): Likewise.
111145         * modules/memchr (Makefile.am): Likewise.
111146         * modules/memcmp (Makefile.am): Likewise.
111147         * modules/memcoll (Makefile.am): Likewise.
111148         * modules/memcpy (Makefile.am): Likewise.
111149         * modules/memmem (Makefile.am): Likewise.
111150         * modules/memmove (Makefile.am): Likewise.
111151         * modules/mempcpy (Makefile.am): Likewise.
111152         * modules/memrchr (Makefile.am): Likewise.
111153         * modules/memset (Makefile.am): Likewise.
111154         * modules/memxor (Makefile.am): Likewise.
111155         * modules/mkancesdirs (Makefile.am): Likewise.
111156         * modules/mkdir-p (Makefile.am): Likewise.
111157         * modules/mkdir (Makefile.am): Likewise.
111158         * modules/mkdtemp (Makefile.am): Likewise.
111159         * modules/mkstemp (Makefile.am): Likewise.
111160         * modules/mktime (Makefile.am): Likewise.
111161         * modules/modechange (Makefile.am): Likewise.
111162         * modules/mountlist (Makefile.am): Likewise.
111163         * modules/nanosleep (Makefile.am): Likewise.
111164         * modules/obstack (Makefile.am): Likewise.
111165         * modules/openat (Makefile.am): Likewise.
111166         * modules/pagealign_alloc (Makefile.am): Likewise.
111167         * modules/pathmax (Makefile.am): Likewise.
111168         * modules/physmem (Makefile.am): Likewise.
111169         * modules/poll (Makefile.am): Likewise.
111170         * modules/posixtm (Makefile.am): Likewise.
111171         * modules/posixver (Makefile.am): Likewise.
111172         * modules/putenv (Makefile.am): Likewise.
111173         * modules/quote (Makefile.am): Likewise.
111174         * modules/quotearg (Makefile.am): Likewise.
111175         * modules/raise (Makefile.am): Likewise.
111176         * modules/read-file (Makefile.am): Likewise.
111177         * modules/readline (Makefile.am): Likewise.
111178         * modules/readlink (Makefile.am): Likewise.
111179         * modules/readtokens (Makefile.am): Likewise.
111180         * modules/readutmp (Makefile.am): Likewise.
111181         * modules/realloc (Makefile.am): Likewise.
111182         * modules/regex (Makefile.am): Likewise.
111183         * modules/rename-dest-slash (Makefile.am): Likewise.
111184         * modules/rename (Makefile.am): Likewise.
111185         * modules/rijndael (Makefile.am): Likewise.
111186         * modules/rmdir (Makefile.am): Likewise.
111187         * modules/rpmatch (Makefile.am): Likewise.
111188         * modules/safe-read (Makefile.am): Likewise.
111189         * modules/safe-write (Makefile.am): Likewise.
111190         * modules/same-inode (Makefile.am): Likewise.
111191         * modules/same (Makefile.am): Likewise.
111192         * modules/save-cwd (Makefile.am): Likewise.
111193         * modules/savedir (Makefile.am): Likewise.
111194         * modules/setenv (Makefile.am): Likewise.
111195         * modules/settime (Makefile.am): Likewise.
111196         * modules/sha1 (Makefile.am): Likewise.
111197         * modules/sig2str (Makefile.am): Likewise.
111198         * modules/snprintf (Makefile.am): Likewise.
111199         * modules/stat-macros (Makefile.am): Likewise.
111200         * modules/stat-time (Makefile.am): Likewise.
111201         * modules/stdbool (Makefile.am): Likewise.
111202         * modules/stdint (Makefile.am): Likewise.
111203         * modules/stdlib-safer (Makefile.am): Likewise.
111204         * modules/stpcpy (Makefile.am): Likewise.
111205         * modules/stpncpy (Makefile.am): Likewise.
111206         * modules/strcase (Makefile.am): Likewise.
111207         * modules/strcasestr (Makefile.am): Likewise.
111208         * modules/strchrnul (Makefile.am): Likewise.
111209         * modules/strcspn (Makefile.am): Likewise.
111210         * modules/strdup (Makefile.am): Likewise.
111211         * modules/strerror (Makefile.am): Likewise.
111212         * modules/strftime (Makefile.am): Likewise.
111213         * modules/strndup (Makefile.am): Likewise.
111214         * modules/strnlen (Makefile.am): Likewise.
111215         * modules/strpbrk (Makefile.am): Likewise.
111216         * modules/strsep (Makefile.am): Likewise.
111217         * modules/strstr (Makefile.am): Likewise.
111218         * modules/strtod (Makefile.am): Likewise.
111219         * modules/strtoimax (Makefile.am): Likewise.
111220         * modules/strtok_r (Makefile.am): Likewise.
111221         * modules/strtol (Makefile.am): Likewise.
111222         * modules/strtoll (Makefile.am): Likewise.
111223         * modules/strtoul (Makefile.am): Likewise.
111224         * modules/strtoull (Makefile.am): Likewise.
111225         * modules/strtoumax (Makefile.am): Likewise.
111226         * modules/strverscmp (Makefile.am): Likewise.
111227         * modules/sys_socket (Makefile.am): Likewise.
111228         * modules/sys_stat (Makefile.am): Likewise.
111229         * modules/sysexits (Makefile.am): Likewise.
111230         * modules/time_r (Makefile.am): Likewise.
111231         * modules/timegm (Makefile.am): Likewise.
111232         * modules/timespec (Makefile.am): Likewise.
111233         * modules/tmpfile-safer (Makefile.am): Likewise.
111234         * modules/trim (Makefile.am): Likewise.
111235         * modules/unistd-safer (Makefile.am): Likewise.
111236         * modules/unlinkdir (Makefile.am): Likewise.
111237         * modules/unlocked-io (Makefile.am): Likewise.
111238         * modules/userspec (Makefile.am): Likewise.
111239         * modules/utime (Makefile.am): Likewise.
111240         * modules/utimecmp (Makefile.am): Likewise.
111241         * modules/utimens (Makefile.am): Likewise.
111242         * modules/vasnprintf (Makefile.am): Likewise.
111243         * modules/vasprintf (Makefile.am): Likewise.
111244         * modules/vsnprintf (Makefile.am): Likewise.
111245         * modules/xalloc (Makefile.am): Likewise.
111246         * modules/xgetcwd (Makefile.am): Likewise.
111247         * modules/xnanosleep (Makefile.am): Likewise.
111248         * modules/xreadlink (Makefile.am): Likewise.
111249         * modules/xstrtod (Makefile.am): Likewise.
111250         * modules/xstrtol (Makefile.am): Likewise.
111251         * modules/xstrtold (Makefile.am): Likewise.
111252         * modules/yesno (Makefile.am): Likewise.
111253         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111255 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111257         * modules/error (Makefile.am): Distribute files through
111258         EXTRA_DIST, not lib_SOURCES.
111260 2006-10-12  Eric Blake  <ebb9@byu.net>
111262         * modules/error (Makefile.am): Distribute files in /lib.
111263         * modules/obstack (Makefile.am): Likewise.
111265 2006-10-12  Bruno Haible  <bruno@clisp.org>
111267         * modules/acl (Makefile.am): Distribute all files in lib/ through
111268         EXTRA_DIST.
111269         * modules/arcfour (Makefile.am): Likewise.
111270         * modules/arctwo (Makefile.am): Likewise.
111271         * modules/argmatch (Makefile.am): Likewise.
111272         * modules/argz (Makefile.am): Likewise.
111273         * modules/atexit (Makefile.am): Likewise.
111274         * modules/backupfile (Makefile.am): Likewise.
111275         * modules/c-strtod (Makefile.am): Likewise.
111276         * modules/c-strtold (Makefile.am): Likewise.
111277         * modules/calloc (Makefile.am): Likewise.
111278         * modules/canon-host (Makefile.am): Likewise.
111279         * modules/canonicalize (Makefile.am): Likewise.
111280         * modules/chdir-long (Makefile.am): Likewise.
111281         * modules/chdir-safer (Makefile.am): Likewise.
111282         * modules/check-version (Makefile.am): Likewise.
111283         * modules/chown (Makefile.am): Likewise.
111284         * modules/cloexec (Makefile.am): Likewise.
111285         * modules/close-stream (Makefile.am): Likewise.
111286         * modules/closeout (Makefile.am): Likewise.
111287         * modules/crc (Makefile.am): Likewise.
111288         * modules/cycle-check (Makefile.am): Likewise.
111289         * modules/des (Makefile.am): Likewise.
111290         * modules/dirfd (Makefile.am): Likewise.
111291         * modules/dirname (Makefile.am): Likewise.
111292         * modules/dup2 (Makefile.am): Likewise.
111293         * modules/euidaccess (Makefile.am): Likewise.
111294         * modules/exclude (Makefile.am): Likewise.
111295         * modules/exitfail (Makefile.am): Likewise.
111296         * modules/fcntl-safer (Makefile.am): Likewise.
111297         * modules/file-type (Makefile.am): Likewise.
111298         * modules/fileblocks (Makefile.am): Likewise.
111299         * modules/filemode (Makefile.am): Likewise.
111300         * modules/filenamecat (Makefile.am): Likewise.
111301         * modules/fnmatch (Makefile.am): Likewise.
111302         * modules/fopen-safer (Makefile.am): Likewise.
111303         * modules/fpending (Makefile.am): Likewise.
111304         * modules/fprintftime (Makefile.am): Likewise.
111305         * modules/free (Makefile.am): Likewise.
111306         * modules/fsusage (Makefile.am): Likewise.
111307         * modules/ftruncate (Makefile.am): Likewise.
111308         * modules/fts (Makefile.am): Likewise.
111309         * modules/gc (Makefile.am): Likewise.
111310         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111311         * modules/getaddrinfo (Makefile.am): Likewise.
111312         * modules/getcwd (Makefile.am): Likewise.
111313         * modules/getdelim (Makefile.am): Likewise.
111314         * modules/getdomainname (Makefile.am): Likewise.
111315         * modules/getgroups (Makefile.am): Likewise.
111316         * modules/gethostname (Makefile.am): Likewise.
111317         * modules/gethrxtime (Makefile.am): Likewise.
111318         * modules/getline (Makefile.am): Likewise.
111319         * modules/getloadavg (Makefile.am): Likewise.
111320         * modules/getlogin_r (Makefile.am): Likewise.
111321         * modules/getopt (Makefile.am): Likewise.
111322         * modules/getpass (Makefile.am): Likewise.
111323         * modules/getpass-gnu (Makefile.am): Likewise.
111324         * modules/getsubopt (Makefile.am): Likewise.
111325         * modules/gettime (Makefile.am): Likewise.
111326         * modules/gettimeofday (Makefile.am): Likewise.
111327         * modules/getugroups (Makefile.am): Likewise.
111328         * modules/getusershell (Makefile.am): Likewise.
111329         * modules/glob (Makefile.am): Likewise.
111330         * modules/group-member (Makefile.am): Likewise.
111331         * modules/hard-locale (Makefile.am): Likewise.
111332         * modules/hash (Makefile.am): Likewise.
111333         * modules/hmac-md5 (Makefile.am): Likewise.
111334         * modules/hmac-sha1 (Makefile.am): Likewise.
111335         * modules/human (Makefile.am): Likewise.
111336         * modules/idcache (Makefile.am): Likewise.
111337         * modules/imaxabs (Makefile.am): Likewise.
111338         * modules/imaxdiv (Makefile.am): Likewise.
111339         * modules/inet_ntop (Makefile.am): Likewise.
111340         * modules/inet_pton (Makefile.am): Likewise.
111341         * modules/inttostr (Makefile.am): Likewise.
111342         * modules/isapipe (Makefile.am): Likewise.
111343         * modules/lchown (Makefile.am): Likewise.
111344         * modules/long-options (Makefile.am): Likewise.
111345         * modules/lstat (Makefile.am): Likewise.
111346         * modules/malloc (Makefile.am): Likewise.
111347         * modules/mathl (Makefile.am): Likewise.
111348         * modules/mbchar (Makefile.am): Likewise.
111349         * modules/md2 (Makefile.am): Likewise.
111350         * modules/md4 (Makefile.am): Likewise.
111351         * modules/md5 (Makefile.am): Likewise.
111352         * modules/memcasecmp (Makefile.am): Likewise.
111353         * modules/memchr (Makefile.am): Likewise.
111354         * modules/memcmp (Makefile.am): Likewise.
111355         * modules/memcoll (Makefile.am): Likewise.
111356         * modules/memcpy (Makefile.am): Likewise.
111357         * modules/memmem (Makefile.am): Likewise.
111358         * modules/memmove (Makefile.am): Likewise.
111359         * modules/mempcpy (Makefile.am): Likewise.
111360         * modules/memrchr (Makefile.am): Likewise.
111361         * modules/memset (Makefile.am): Likewise.
111362         * modules/memxor (Makefile.am): Likewise.
111363         * modules/mkancesdirs (Makefile.am): Likewise.
111364         * modules/mkdir (Makefile.am): Likewise.
111365         * modules/mkdir-p (Makefile.am): Likewise.
111366         * modules/mkdtemp (Makefile.am): Likewise.
111367         * modules/mkstemp (Makefile.am): Likewise.
111368         * modules/mktime (Makefile.am): Likewise.
111369         * modules/modechange (Makefile.am): Likewise.
111370         * modules/mountlist (Makefile.am): Likewise.
111371         * modules/nanosleep (Makefile.am): Likewise.
111372         * modules/openat (Makefile.am): Likewise.
111373         * modules/pagealign_alloc (Makefile.am): Likewise.
111374         * modules/physmem (Makefile.am): Likewise.
111375         * modules/poll (Makefile.am): Likewise.
111376         * modules/posixtm (Makefile.am): Likewise.
111377         * modules/posixver (Makefile.am): Likewise.
111378         * modules/putenv (Makefile.am): Likewise.
111379         * modules/quote (Makefile.am): Likewise.
111380         * modules/quotearg (Makefile.am): Likewise.
111381         * modules/raise (Makefile.am): Likewise.
111382         * modules/read-file (Makefile.am): Likewise.
111383         * modules/readline (Makefile.am): Likewise.
111384         * modules/readlink (Makefile.am): Likewise.
111385         * modules/readtokens (Makefile.am): Likewise.
111386         * modules/readutmp (Makefile.am): Likewise.
111387         * modules/realloc (Makefile.am): Likewise.
111388         * modules/regex (Makefile.am): Likewise.
111389         * modules/rename (Makefile.am): Likewise.
111390         * modules/rename-dest-slash (Makefile.am): Likewise.
111391         * modules/rijndael (Makefile.am): Likewise.
111392         * modules/rmdir (Makefile.am): Likewise.
111393         * modules/rpmatch (Makefile.am): Likewise.
111394         * modules/safe-read (Makefile.am): Likewise.
111395         * modules/safe-write (Makefile.am): Likewise.
111396         * modules/same (Makefile.am): Likewise.
111397         * modules/save-cwd (Makefile.am): Likewise.
111398         * modules/savedir (Makefile.am): Likewise.
111399         * modules/setenv (Makefile.am): Likewise.
111400         * modules/settime (Makefile.am): Likewise.
111401         * modules/sha1 (Makefile.am): Likewise.
111402         * modules/sig2str (Makefile.am): Likewise.
111403         * modules/snprintf (Makefile.am): Likewise.
111404         * modules/stdlib-safer (Makefile.am): Likewise.
111405         * modules/stpcpy (Makefile.am): Likewise.
111406         * modules/stpncpy (Makefile.am): Likewise.
111407         * modules/strcase (Makefile.am): Likewise.
111408         * modules/strcasestr (Makefile.am): Likewise.
111409         * modules/strchrnul (Makefile.am): Likewise.
111410         * modules/strcspn (Makefile.am): Likewise.
111411         * modules/strdup (Makefile.am): Likewise.
111412         * modules/strerror (Makefile.am): Likewise.
111413         * modules/strftime (Makefile.am): Likewise.
111414         * modules/strndup (Makefile.am): Likewise.
111415         * modules/strnlen (Makefile.am): Likewise.
111416         * modules/strpbrk (Makefile.am): Likewise.
111417         * modules/strsep (Makefile.am): Likewise.
111418         * modules/strstr (Makefile.am): Likewise.
111419         * modules/strtod (Makefile.am): Likewise.
111420         * modules/strtoimax (Makefile.am): Likewise.
111421         * modules/strtok_r (Makefile.am): Likewise.
111422         * modules/strtol (Makefile.am): Likewise.
111423         * modules/strtoll (Makefile.am): Likewise.
111424         * modules/strtoul (Makefile.am): Likewise.
111425         * modules/strtoull (Makefile.am): Likewise.
111426         * modules/strtoumax (Makefile.am): Likewise.
111427         * modules/strverscmp (Makefile.am): Likewise.
111428         * modules/time_r (Makefile.am): Likewise.
111429         * modules/timegm (Makefile.am): Likewise.
111430         * modules/tmpfile-safer (Makefile.am): Likewise.
111431         * modules/unistd-safer (Makefile.am): Likewise.
111432         * modules/unlinkdir (Makefile.am): Likewise.
111433         * modules/userspec (Makefile.am): Likewise.
111434         * modules/utime (Makefile.am): Likewise.
111435         * modules/utimecmp (Makefile.am): Likewise.
111436         * modules/utimens (Makefile.am): Likewise.
111437         * modules/vasnprintf (Makefile.am): Likewise.
111438         * modules/vasprintf (Makefile.am): Likewise.
111439         * modules/vsnprintf (Makefile.am): Likewise.
111440         * modules/xalloc (Makefile.am): Likewise.
111441         * modules/xgetcwd (Makefile.am): Likewise.
111442         * modules/xnanosleep (Makefile.am): Likewise.
111443         * modules/xreadlink (Makefile.am): Likewise.
111444         * modules/xstrtod (Makefile.am): Likewise.
111445         * modules/xstrtol (Makefile.am): Likewise.
111446         * modules/xstrtold (Makefile.am): Likewise.
111447         * modules/yesno (Makefile.am): Likewise.
111449 2006-10-12  Jim Meyering  <jim@meyering.net>
111451         * m4/getloadavg.m4: Revert the change below.
111453         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111454         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111455         fail with a symlink, which is what coreutils' ./bootstrap now
111456         creates by default.
111458 2006-10-12  Bruno Haible  <bruno@clisp.org>
111460         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111461         mingw.
111462         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111463         MSVC and mingw explicitly.
111465 2006-10-11  Simon Josefsson  <jas@extundo.com>
111466             Bruno Haible  <bruno@clisp.org>
111468         Add support for multiple gnulib-tool invocations in the scope of a
111469         single configure.ac file.
111470         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111471         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111472         with the same contents as the _LIBADD variable.
111473         (func_emit_initmacro_start, func_emit_initmacro_end,
111474         func_emit_initmacro_done): New functions.
111475         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111476         gl_LIBOBJS and gl_LTLIBOBJS.
111478 2006-10-11  Bruno Haible  <bruno@clisp.org>
111480         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111481         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111482         autoreconf. Instead, invoke autopoint explicitly but move back the
111483         *.m4 files from gnulib.
111485 2006-10-11  Bruno Haible  <bruno@clisp.org>
111487         * gnulib-tool (func_usage): Make module names after --create-testdir
111488         optional.
111489         (func_create_testdir): If no module was specified, use nearly all
111490         modules.
111492 2006-10-12  Jim Meyering  <jim@meyering.net>
111494         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111495         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111496         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111497         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111498         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111499         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111500         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111501         (fts_set_stat_required): New function.
111502         (fts_open): Defer the calls to fts_stat, if possible or requested.
111503         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111504         into fts_stat itself.
111505         (fts_read): Perform any required (deferred) fts_stat call.
111506         (fts_build): Likewise, for the directory we're about to open and read.
111507         In the readdir loop, carefully decide whether each entry will require
111508         an eventual call to fts_stat, using dirent.d_type info if available.
111509         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111510         a command line argument into this function.  Update all callers.
111511         Map a return value of FTS_DOT to FTS_D for a command line argument.
111512         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111513         Thanks to Miklos Szeredi for his tenacity and for the initial
111514         bug report about "find" failing on a FUSE-based file system.
111516         * lib/fts.c (fts_open): Use consistent indentation.
111518 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111520         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111521         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111522         reported by Jim Meyering.  All uses of cache variables renamed
111523         to match Autoconf's.
111524         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111525         the other one.
111527         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111528         Fix misspelling in diagnostic.
111530 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111532         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111533         defined.  Problem reported by Matthew Woehlke.
111535         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111536         Add support for Tandem NonStop R series.
111537         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111538         Use new macro.
111540         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111541         (has_trailing_slash): Omit size arg; all callers changed.
111542         Omit 'inline', since it doesn't help performance and we'd
111543         need to configure it.
111544         Don't count //, ///, etc. as having a trailing slash.
111545         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111546         (rpl_rename_dest_slash): On failure, use rename's errno rather
111547         than (in some cases) an incorrect or junk errno.
111548         Simplify code by removing need to compute length; this does
111549         cause it to make two passes instead of one over the file name,
111550         but it's worth it.
111552         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111553         change, since Autoconf's version may no longer be appropriate now
111554         that we are using CVS Autoconf's version.  Add support for Tandem.
111556 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111557             Bruno Haible  <bruno@clisp.org>
111559         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111560         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111561         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111562         gl_AC_TYPE_LONG_LONG.
111564         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111565         instead of HAVE_LONG_LONG.
111566         * lib/printf-args.c (printf_fetchargs): Likewise.
111567         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111568         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111569         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111570         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111571         gl_AC_TYPE_LONG_LONG.
111573 2006-10-11  Bruno Haible  <bruno@clisp.org>
111575         * m4/longlong.m4: Add comments.
111576         * m4/ulonglong.m4: Likewise.
111578 2006-10-10  Bruno Haible  <bruno@clisp.org>
111580         Make it possible to #define stpcpy, strdup to aliases.
111581         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111582         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111584 2006-10-10  Bruno Haible  <bruno@clisp.org>
111586         Make it possible to #define gcd to an alias.
111587         * lib/gcd.c: Include config.h.
111589 2006-10-10  Bruno Haible  <bruno@clisp.org>
111591         Make it possible to #define c_isascii to an alias.
111592         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111593         defined. Undefine the macros before defining them, to avoid gcc
111594         warnings.
111595         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111596         define NO_C_CTYPE_MACROS early.
111598 2006-10-10  Bruno Haible  <bruno@clisp.org>
111600         Make it possible to #define set_program_name to an alias.
111601         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111602         ENABLE_RELOCATABLE early.
111604 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111606         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111607         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111608         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111609         More generally, don't assume that 64-bit signed int is available
111610         if unsigned int is, and vice versa.
111611         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111612         unsigned symbols, not on their signed counterparts.
111613         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111614         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111615         (UINT64_C, UINTMAX_C):
111616         Likewise.
111617         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111618         unsigned counterparts.
111619         (Have_long_long, Unsigned): New macros.
111620         (Int): Renamed from INT.
111621         (strtoimax): Use the new macros.
111622         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111623         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111624         * modules/inttypes (inttypes.h): Substitute
111625         HAVE_UNSIGNED_LONG_LONG_INT.
111626         * modules/stdint (stdint.h): Likewise.
111627         (Files): Add m4/ulonglong.m4.
111629 2006-10-10  Bruno Haible  <bruno@clisp.org>
111631         Fix a gcc -Wshadow warning.
111632         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111633         to 'bucket'.
111634         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111635         gl_linked_indexof_from_to): Likewise.
111636         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111637         Likewise.
111638         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111639         Likewise.
111640         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111641         Reported by Eric Blake.
111643 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111645         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111646         for NetBSD.  Problem reported by Bruno Haible.
111648 2006-10-09  Jim Meyering  <jim@meyering.net>
111650         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111651         Patch from Bruno Haible.
111653 2006-10-09  Jim Meyering  <jim@meyering.net>
111655         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111656         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111657         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111659 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111661         Don't include <config.h> twice; this doesn't work in some cases,
111662         e.g., when config.h has "#define intmax_t long long int" and
111663         we include <config.h>, <inttypes.h>, <config.h> in that order.
111664         Problem reported by Matthew Woehlke in:
111665         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111666         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111667         * lib/fts-cycle.c: Don't include config.h.
111668         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111669         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111670         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111671         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111672         inttypes.h.
111673         * lib/xstrtoumax.c: Likewise.
111674         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111675         __strtol and the like, so that this module is more like its siblings.
111676         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111677         Remove; no longer needed now that we assume gnulib inttypes.h.
111679 2006-10-08  Bruno Haible  <bruno@clisp.org>
111681         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111682         option.
111684 2006-10-07  Jim Meyering  <jim@meyering.net>
111686         * modules/inttypes (inttypes.h): Revert what seems to have been
111687         an inadvertent part of today's change: use "|", not "/" in the
111688         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111690 2006-10-07  Bruno Haible  <bruno@clisp.org>
111692         * modules/sublist: New file.
111694 2006-10-07  Bruno Haible  <bruno@clisp.org>
111696         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111697         * modules/argz (argz.h): Likewise.
111698         * modules/arpa_inet (arpa/inet.h): Likewise.
111699         * modules/byteswap (byteswap.h): Likewise.
111700         * modules/configmake (configmake.h): Likewise.
111701         * modules/fcntl (fcntl.h): Likewise.
111702         * modules/fnmatch (fnmatch.h): Likewise.
111703         * modules/getopt (getopt.h): Likewise.
111704         * modules/glob (glob.h): Likewise.
111705         * modules/inttypes (inttypes.h): Likewise.
111706         * modules/netinet_in (netinet/in.h): Likewise.
111707         * modules/poll (poll.h): Likewise.
111708         * modules/stdbool (stdbool.h): Likewise.
111709         * modules/stdint (stdint.h): Likewise.
111710         * modules/sys_select (sys/select.h): Likewise.
111711         * modules/sys_socket (sys/socket.h): Likewise.
111712         * modules/sys_stat (sys/stat.h): Likewise.
111713         * modules/sysexits (sysexits.h): Likewise.
111714         * modules/unistd (unistd.h): Likewise.
111715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111716         Add a "DO NOT EDIT" comment to the generated file.
111717         (func_import): Likewise for gnulib-comp.m4.
111719 2006-10-07  Bruno Haible  <bruno@clisp.org>
111721         * lib/gl_sublist.h: New file.
111722         * lib/gl_sublist.c: New file.
111724 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111726         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111727         name (relative to the original working directory) and the file
111728         name component (relative to the temporary working directory).  All
111729         callers changed.
111730         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111731         * lib/mkdir-p.c (make_dir_parents): Likewise.
111732         * lib/mkdir-p.h (make_dir_parents): Likewise.
111734 2006-10-06  Eric Blake  <ebb9@byu.net>
111736         Define several macros for use by the clean-temp module.
111737         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111738         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111739         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111741         * lib/clean-temp.h (close_stream_temp): New declaration.
111742         * lib/clean-temp.c (includes): Pull in headers according to what
111743         other modules are in use.
111744         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111746 2006-10-06  Bruno Haible  <bruno@clisp.org>
111748         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111749         instead of fopen, fwriteerror.
111751 2006-10-06  Bruno Haible  <bruno@clisp.org>
111753         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111754         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111755         int.
111756         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111757         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111758         Return an error indicator.
111759         Suggested by Eric Blake.
111761 2006-10-06  Bruno Haible  <bruno@clisp.org>
111763         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111764         Reported by Eric Blake.
111766 2006-10-06  Bruno Haible  <bruno@clisp.org>
111768         * modules/closeout (Description): Mention stderr too.
111770 2006-10-06  Bruno Haible  <bruno@clisp.org>
111771         and Paul Eggert  <eggert@cs.ucla.edu>
111773         * lib/closeout.c (close_stdout): Also close stderr.
111774         * lib/closeout.h: Update comment.
111776 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111778         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111779         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111780         * lib/dirchownmod.c: Include lchown.h.
111781         * lib/lchown.c: Don't include files that lchown.h now includes.
111782         Don't declare chown, since lchown.h now does that.
111783         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111784         (lchown): Define to rpl_chown if lchown is declared but
111785         does not exist.  Declare using a prototype if lchown is not
111786         declared.  Add a copyright notice.
111787         * lib/mkstemp.h: Include <unistd.h>.
111788         * lib/openat.c: Include lchown.h.
111790         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111791         we now test for that separately.
111792         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111793         rather than O_NOFOLLOW, when testing whether it's possible to
111794         avoid a race condition reliably.
111795         * lib/savewd.c (savewd_chdir): Likewise.
111797         Remove macros that are no longer needed now that stdint.h is
111798         reliable.
111799         * lib/fsusage.c (UINTMAX_MAX): Remove.
111800         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111801         * lib/utimecmp.c (SIZE_MAX): Remove.
111803         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111805         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111806         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111807         O_NOATIME works.
111809 2006-10-05  Bruno Haible  <bruno@clisp.org>
111811         * lib/gl_list.h (gl_sortedlist_search_from_to,
111812         gl_sortedlist_indexof_from_to): New declarations.
111813         (gl_list_implementation): New fields sortedlist_search_from_to,
111814         sortedlist_indexof_from_to.
111815         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111816         inline functions.
111817         * lib/gl_list.c (gl_sortedlist_search_from_to,
111818         gl_sortedlist_indexof_from_to): New functions.
111819         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111820         function.
111821         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111822         (gl_array_sortedlist_search_from_to): New function.
111823         (gl_array_list_implementation): Update.
111824         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111825         function.
111826         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111827         (gl_carray_sortedlist_search_from_to): New function.
111828         (gl_carray_list_implementation): Update.
111829         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111830         gl_linked_sortedlist_indexof_from_to): New functions.
111831         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111832         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111833         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111834         gl_tree_sortedlist_indexof_from_to): New functions.
111835         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111836         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111837         Update.
111838         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111839         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111840         Update.
111842 2006-10-05  Bruno Haible  <bruno@clisp.org>
111844         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111845         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111846         (struct gl_list_implementation): Add fields search_from_to,
111847         indexof_from_to. Remove fields search, indexof.
111848         (gl_list_search): Use the search_from_to method.
111849         (gl_list_search_from, gl_list_search_from_to): New functions.
111850         (gl_list_indexof): Use the indexof_from_to method.
111851         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111852         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111853         (gl_list_search_from, gl_list_search_from_to): New functions.
111854         (gl_list_indexof): Use the indexof_from_to method.
111855         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111856         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111857         gl_array_indexof. Add start_index, end_index arguments.
111858         (gl_array_search_from_to): Renamed from gl_array_search. Add
111859         start_index, end_index arguments.
111860         (gl_array_remove, gl_array_list_implementation): Update.
111861         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111862         gl_carray_indexof. Add start_index, end_index arguments.
111863         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111864         start_index, end_index arguments.
111865         (gl_carray_remove, gl_carray_list_implementation): Update.
111866         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111867         gl_linked_search. Add start_index, end_index arguments.
111868         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111869         start_index, end_index arguments.
111870         (gl_linked_remove): Update.
111871         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111872         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111873         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111874         field to 'size_t'.
111875         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111876         gl_tree_search. Add start_index, end_index arguments.
111877         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111878         start_index, end_index arguments.
111879         (gl_tree_remove): Update.
111880         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111881         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111882         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111883         function.
111884         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111885         gl_tree_search. Add start_index, end_index arguments.
111886         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111887         start_index, end_index arguments.
111888         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111889         Update.
111890         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111892 2006-10-05  Bruno Haible  <bruno@clisp.org>
111894         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111896         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111897         fwriteerror_temp): New declarations.
111898         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111899         (descriptors): New variable.
111900         (cleanup): First, close the descriptors.
111901         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111902         fclose_temp, fwriteerror_temp): New functions.
111904 2006-10-04  Jim Meyering  <jim@meyering.net>
111906         * lib/fts.c (fts_open): Tiny comment change.
111908 2006-10-04  Bruno Haible  <bruno@clisp.org>
111910         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111911         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111912         gl_LOCK_BODY.
111913         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111914         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111915         gl_LOCK_EARLY_BODY.
111916         (gl_LOCK): Require gl_LOCK_BODY.
111918 2006-10-04  Bruno Haible  <bruno@clisp.org>
111920         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111921         (gl_oset_search_atleast): New declaration.
111922         (struct gl_oset_implementation): Add field 'search_atleast'.
111923         (gl_oset_search_atleast): New inline function.
111924         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111925         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111926         (gl_array_oset_implementation): Update.
111927         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111928         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111929         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111931 2006-10-04  Bruno Haible  <bruno@clisp.org>
111933         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111935 2006-10-03  Bruno Haible  <bruno@clisp.org>
111937         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111938         from gl_avltreehash_list_implementation.
111940 2006-10-03  Bruno Haible  <bruno@clisp.org>
111942         * lib/gl_oset.c (gl_oset_add): Fix return type.
111944 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111946         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111948 2006-10-02  Eric Blake  <ebb9@byu.net>
111950         * modules/strnlen (Depends-on): Add extensions.
111952 2006-10-02  Eric Blake  <ebb9@byu.net>
111954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111955         definition in 2.60+.
111957 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111959         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111960         checks.
111962 2006-10-02  Bruno Haible  <bruno@clisp.org>
111964         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111965         to the AUTOMAKE_OPTIONS.
111966         Reported by Jim Meyering.
111968 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111970         Work around bug in Solaris 10 /proc file system:
111971         /proc/self/fd/NNN/.. isn't the parent directory of
111972         the directory whose file descriptor is NNN.  This needs to
111973         be worked around at run time, not compile time, since a
111974         program might be built on Solaris 8, where things work, and
111975         run on Solaris 10.
111976         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111977         to use the following interface instead:
111978         (OPENAT_BUFFER_SIZE): New macro.
111979         (openat_proc_name): New function.
111980         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111981         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111982         Likewise.
111983         * lib/openat-proc.c: New file.
111984         * modules/openat (Files): Add lib/openat-proc.c.
111985         (Depends-on): Add same-inode, stdbool.
111986         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111988 2006-09-29  Bruno Haible  <bruno@clisp.org>
111990         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111991         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111992         argument. Set stdout_closed before testing for ferror, not after.
111993         (fwriteerror, fwriteerror_no_ebadf): New functions.
111995 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111997         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111999 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
112001         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
112002         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
112004 2006-09-28  Jim Meyering  <jim@meyering.net>
112006         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
112007         Include <unistd.h>.
112009 2006-09-28  Bruno Haible  <bruno@clisp.org>
112011         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
112012         * modules/linkedhash-list (Depends-on): Likewise.
112013         * modules/rbtreehash-list (Depends-on): Likewise.
112015 2006-09-28  Bruno Haible  <bruno@clisp.org>
112017         * lib/strndup.h: Simplify the redefinition of strndup.
112018         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
112019         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
112021 2006-09-28  Bruno Haible  <bruno@clisp.org>
112023         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
112024         * lib/gl_linkedhash_list.c: Likewise.
112025         * lib/gl_rbtreehash_list.c: Likewise.
112027 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
112029         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
112030         getaddrinfo.
112032         * lib/__fpending.h: Don't include <stdio_ext.h> unless
112033         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
112034         it causes <stdio_ext.h> to cause a compile-time error.
112035         Problem reported by Nelson H. F. Beebe.
112036         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
112037         of HAVE_DECL___PENDING.
112039         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
112040         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
112041         declaration.
112043 2006-09-27  Jim Meyering  <jim@meyering.net>
112045         This file could end up with a definition for a function
112046         named __strndup, rather than rpl_strndup on a system with
112047         incomplete weak_alias support.
112048         * lib/strndup.c (strndup): Rename from __strndup.
112049         Remove #defines that used to map __strndup to strndup.
112050         Don't use K&R prototypes.
112051         Remove LIBC-related code, since this file is not sync'd with glibc.
112052         * lib/strndup.h: Revamp, accordingly.
112053         * m4/strndup.m4: Modernize.
112055 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
112057         * modules/savewd (Depends-on): Add 'raise'.
112058         * lib/savewd.c: Include <signal.h>, for 'raise'.
112060 2006-09-26  Jim Meyering  <jim@meyering.net>
112062         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
112063         when we detect Darwin 8.7.0's acl_get_file bug.
112064         Rearrange to perform the new (below) run-test while $LIBS
112065         contains any acl-related library.  Set USE_ACL at the end.
112066         (gl_ACL_GET_FILE): New function.
112068 2006-09-26  Eric Blake  <ebb9@byu.net>
112070         * lib/verror.c: Include <config.h> unconditionally.
112072 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
112074         * modules/clock-time (Maintainer): Add self.
112075         * modules/getlogin_r (Depends-on): Add extensions.
112077 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112079         * modules/clock-time: New module.
112080         * modules/nanosleep (Depends-on): Add clock-time.
112081         * modules/gethrxtime (Depends-on): Likewise.
112082         * modules/gettime (Depends-on): Likewise.
112083         * modules/settime (Depends-on): Likewise.
112085         * modules/fts-lgpl: Depend on openat.
112086         * modules/mkancesdirs: Depend on savewd.
112087         * modules/mkdir-p: Likewise.
112089 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112091         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
112093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
112094         `gl_have_arbitrary_file_name_length_limit' to
112095         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
112096         actually works between configure runs.
112098 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112099             Bruno Haible  <bruno@clisp.org>
112101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
112103 2006-09-25  Jim Meyering  <jim@meyering.net>
112105         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
112106         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
112108 2006-09-25  Eric Blake  <ebb9@byu.net>
112110         * gnulib-tool (func_import, func_create_testdir): Fix typos in
112111         exec's in 2006-09-18 patch when shuffling fds.
112113 2006-09-25  Bruno Haible  <bruno@clisp.org>
112115         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
112116         Reported by Jim Meyering.
112118 2006-09-24  Jim Meyering  <jim@meyering.net>
112120         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
112121         compare a pointer against a literal "0".  That caused failures with
112122         at least HP-UX's hpcc.
112124 2006-09-22  Simon Josefsson  <jas@extundo.com>
112126         * modules/gc-sha1:
112127         * modules/gc-md4:
112128         * modules/gc-hmac-sha1:
112129         * modules/gc-hmac-md5:
112130         * modules/gc-des:
112131         * modules/gc-arcfour: Distribute more files.
112133 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112135         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
112136         (gl_linked_iterator_from_to): Initialize struct completely.
112137         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
112138         (gl_tree_iterator_from_to): Likewise
112139         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
112140         * lib/gl_array_list.c [lint] (gl_array_iterator)
112141         (gl_array_iterator_from_to): Likewise.
112142         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
112143         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
112144         (gl_carray_iterator_from_to): Likewise.
112146         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
112147         * lib/md4.c (md4_process_block): Remove unused variable.
112148         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
112149         parentheses for clarity.
112151 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112153         * modules/bison-i18n (Depends-on): Add gettext.
112155 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112157         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
112158         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
112159         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
112160         also add missing comma that caused broken test.
112161         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
112162         stdlib.h, for `abort'.
112163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
112164         variables.
112165         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
112166         include unistd.h if present, for `rmdir'.
112167         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
112168         variables.
112169         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
112170         in the process include standard headers for prototypes.
112171         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
112172         gets declared on GNU/Linux.
112173         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
112174         unistd.h, for `rmdir'.
112175         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
112177         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
112178         always true.
112179         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
112181         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
112183 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112185         * gnulib-tool (func_version): Create output all at once.  This
112186         may help avoid triggering unnecessary SIGPIPEs, and at any
112187         rate it doesn't hurt.
112189 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112190             Bruno Haible  <bruno@clisp.org>
112192         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
112193         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
112194         * m4/signed.m4 (bh_C_SIGNED): Likewise.
112196         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
112197         (gl_FUNC_VASPRINTF): Invoke it.
112199 2006-09-22  Bruno Haible  <bruno@clisp.org>
112201         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
112202         getloadavg.c as first argument.
112204 2006-09-22  Bruno Haible  <bruno@clisp.org>
112206         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
112207         at the beginning of the gl_INIT macro.
112208         * modules/getloadavg (configure.ac): Pass $gl_source_base to
112209         gl_GETLOADAVG.
112211 2006-09-22  Bruno Haible  <bruno@clisp.org>
112213         * gnulib-tool (func_create_megatestdir): Don't include the config-h
112214         module.
112215         Suggested by Ralf Wildenhues.
112217 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
112219         Import this patch from libc:
112221         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
112223         * lib/regex_internal.c (re_string_reconstruct): Handle
112224         offset < pstr->valid_raw_len && pstr->offsets_needed case.
112225         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
112226         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
112227         re_string_context_at.
112229         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
112230         now requires it.
112231         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
112232         gl_REGEX now does it for us.
112233         (gl_REGEX): Add test taken from
112234         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
112236         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
112237         Check that large offsets work.  Modernize Autoconf usages.
112238         Prefer "yes" to mean a good thing rather than a bad.
112239         Don't put "#define mkstemp" in config.h, as this might interfere
112240         with standard system headers that "#define mkstemp mkstemp64".
112242         * modules/mkstemp (Depends-on): Add extensions, so that
112243         mkstemp is visible on some platforms.
112244         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
112245         (Include): Change to "mkstemp.h" from <stdlib.h>.
112246         (Files): Add mkstemp.h.
112248         * lib/mkstemp.h: New file, since some standard headers
112249         #define mkstemp.
112250         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
112251         Include "mkstemp.h".
112252         Make the _LIBC code resemble glibc original more,
112253         e.g., use K&R style.
112254         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112255         (mkstemp): Remove, since mkstemp.h does this for us.
112256         * lib/stdlib--.h: Include mkstemp.h.
112258         Import this patch from libc:
112260         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112262         * lib/tempname.c (__gen_tempname): Change attempts_min
112263         into a macro.  Use preprocessor to decide how to initialize
112264         attempts [Coverity CID 67].
112266 2006-09-20  Bruno Haible  <bruno@clisp.org>
112268         * lib/mkdtemp.c: Import from libc.
112269         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112270                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112271                 attempts_min into a macro.  Use preprocessor to decide how to
112272                 initialize attempts [Coverity CID 67].
112273         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112274                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112275                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112277 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112279         * gnulib-tool (func_exit): New function, to allow to pass the
112280         exit status portably through the trap.  Use everywhere.
112281         (--help, --version): Signal a write error.
112282         (trap): catch SIGPIPE, for write errors.
112283         Exit at the end of the trap, with the correct exit status.
112285 2006-09-19  Karl Berry  <karl@gnu.org>
112287         * doc/gnulib.texi: note about the license texinfo files.
112289 2006-09-19  Eric Blake  <ebb9@byu.net>
112291         * gnulib-tool: Avoid space-tab.
112293 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112295         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112296         that prevented coreutils 6.1 from building.  Problem reported
112297         by Petter Reinholdtsen.
112299 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112301         * gnulib-tool (avoidlist): Fix typo that broke options like
112302         --avoid=lock that are used by coreutils bootstrap.
112304 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112306         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112307         more systematically.
112309 2006-09-18  Jim Meyering  <jim@meyering.net>
112311         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112313 2006-09-18  Bruno Haible  <bruno@clisp.org>
112315         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112317 2006-09-18  Bruno Haible  <bruno@clisp.org>
112319         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112320         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112321         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112322         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112323         * m4/gettext.m4: Require autoconf >= 2.52.
112324         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112325         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112326         of gl_cv_header_inttypes_h.
112328 2006-09-18  Bruno Haible  <bruno@clisp.org>
112330         * lib/javaversion.c: Include configmake.h.
112332 2006-09-18  Bruno Haible  <bruno@clisp.org>
112334         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112335         avoid that the while loops be executed in a subshell.
112337 2006-09-18  Bruno Haible  <bruno@clisp.org>
112339         * MODULES.html.sh (func_module): Break long lines.
112340         Suggested by Bruce Korb <bkorb@gnu.org>.
112342 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112344         Speed up by a factor of 1.12.
112345         * gnulib-tool (nl): New variable.
112346         (func_import): Rewrite include directive extraction to only read each
112347         directive once.
112349 2006-09-17  Bruno Haible  <bruno@clisp.org>
112351         * modules/javaversion (Makefile.am): Remove DEFS setting.
112352         (Depends-on): Add configmake, for PKGDATADIR definition.
112354 2006-09-17  Bruno Haible  <bruno@clisp.org>
112356         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112358 2006-09-17  Bruno Haible  <bruno@clisp.org>
112360         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112361         (func_modules_transitive_closure, func_modules_add_dummy,
112362         func_modules_to_filelist, func_import, func_create_testdir,
112363         func_create_megatestdir, ...): Use it wherever possible.
112364         Suggested by Ralf Wildenhues.
112366 2006-09-16  Karl Berry  <karl@gnu.org>
112368         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112369         to avoid sectioning errors.
112370         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112371         [ifinfo]: blank line after @center-ed titles.
112372         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112373         Spell FSF address consistently with others.
112374         (These changes approved by rms.)
112376 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112378         Speed up by a factor of 1.61.
112379         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112380         already checked module names again.
112382 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112384         Speed up by a factor of 1.13.
112385         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112386         for new_files, and the input to func_add_or_update.
112388 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112390         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112391         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112393 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112395         * modules/mkancesdirs (Depends-on): Add fcntl.
112396         * modules/savewd: New file.
112397         * MODULES.html.sh (File system functions): Add savewd.
112399         * modules/configmake (Makefile.am): Add support for the
112400         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112402 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112404         * m4/savewd.m4: New file.
112406 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112408         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112409         (dirchownmod): New arg FD.  All callers changed.
112410         Use FD rather than opening the directory ourself, as opening is
112411         now the caller's responsibility.
112412         * lib/dirchownmod.h: Likewise.
112413         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112414         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112415         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112416         (test_dir): Remove.
112417         (mkancesdirs): Return length of prefix of FILE that has already
112418         been made, or -2 if there is a child doing the work.  Redo
112419         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112420         ".", and treat ".." specially since it might stray back into
112421         already-created areas.  Use a subprocess if necessary.  New arg
112422         WD; all users changed.  MAKE_DIR function should now return 1
112423         if it creates a directory that is not readable.  Return -2 if
112424         a child process is spun off.
112425         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112426         Adjust signature to match code.
112427         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112428         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112429         all users changed.
112430         * lib/savewd.c, lib/savewd.h: New files.
112432 2006-09-15  Jim Meyering  <jim@meyering.net>
112434         * modules/rename-dest-slash: New module.
112435         * MODULES.html.sh (posix_compat): Add it here.
112437         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112439 2006-09-15  Jim Meyering  <jim@meyering.net>
112441         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112442         file.
112444         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112446 2006-09-15  Jim Meyering  <jim@meyering.net>
112448         * lib/rename-dest-slash.c (has_trailing_slash): Use
112449         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112450         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112451         test before testing whether SRC is a directory.
112452         Suggestions from Bruno Haible.
112454         Avoid a warning about an unused variable.
112455         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112456         into the #ifdef block where it's used.
112458         * lib/rename-dest-slash.c: New file.
112460 2006-09-14  Bruno Haible  <bruno@clisp.org>
112462         * lib/allocsa.c: Include <config.h> unconditionally.
112463         * lib/asnprintf.c: Likewise.
112464         * lib/asprintf.c: Likewise.
112465         * lib/c-strcasecmp.c: Likewise.
112466         * lib/c-strcasestr.c: Likewise.
112467         * lib/c-strncasecmp.c: Likewise.
112468         * lib/c-strstr.c: Likewise.
112469         * lib/classpath.c: Likewise.
112470         * lib/clean-temp.c: Likewise.
112471         * lib/concatpath.c: Likewise.
112472         * lib/copy-file.c: Likewise.
112473         * lib/csharpcomp.c: Likewise.
112474         * lib/csharpexec.c: Likewise.
112475         * lib/execute.c: Likewise.
112476         * lib/fatal-signal.c: Likewise.
112477         * lib/findprog.c: Likewise.
112478         * lib/fwriteerror.c: Likewise.
112479         * lib/gl_array_list.c: Likewise.
112480         * lib/gl_array_oset.c: Likewise.
112481         * lib/gl_avltree_list.c: Likewise.
112482         * lib/gl_avltree_oset.c: Likewise.
112483         * lib/gl_avltreehash_list.c: Likewise.
112484         * lib/gl_carray_list.c: Likewise.
112485         * lib/gl_linked_list.c: Likewise.
112486         * lib/gl_linkedhash_list.c: Likewise.
112487         * lib/gl_list.c: Likewise.
112488         * lib/gl_oset.c: Likewise.
112489         * lib/gl_rbtree_list.c: Likewise.
112490         * lib/gl_rbtree_oset.c: Likewise.
112491         * lib/gl_rbtreehash_list.c: Likewise.
112492         * lib/imaxabs.c: Likewise.
112493         * lib/imaxdiv.c: Likewise.
112494         * lib/javacomp.c: Likewise.
112495         * lib/javaexec.c: Likewise.
112496         * lib/javaversion.c: Likewise.
112497         * lib/linebreak.c: Likewise.
112498         * lib/localcharset.c: Likewise.
112499         * lib/lock.c: Likewise.
112500         * lib/mbchar.c: Likewise.
112501         * lib/mbswidth.c: Likewise.
112502         * lib/mkdtemp.c: Likewise.
112503         * lib/pipe.c: Likewise.
112504         * lib/printf-args.c: Likewise.
112505         * lib/printf-parse.c: Likewise.
112506         * lib/progname.c: Likewise.
112507         * lib/progreloc.c: Likewise.
112508         * lib/readlink.c: Likewise.
112509         * lib/sh-quote.c: Likewise.
112510         * lib/stpcpy.c: Likewise.
112511         * lib/stpncpy.c: Likewise.
112512         * lib/strcasecmp.c: Likewise.
112513         * lib/strcasestr.c: Likewise.
112514         * lib/strcspn.c: Likewise.
112515         * lib/striconv.c: Likewise.
112516         * lib/strncasecmp.c: Likewise.
112517         * lib/strnlen1.c: Likewise.
112518         * lib/strstr.c: Likewise.
112519         * lib/strtok_r.c: Likewise.
112520         * lib/tls.c: Likewise.
112521         * lib/tmpdir.c: Likewise.
112522         * lib/unicodeio.c: Likewise.
112523         * lib/unsetenv.c: Likewise.
112524         * lib/vasnprintf.c: Likewise.
112525         * lib/vasprintf.c: Likewise.
112526         * lib/wait-process.c: Likewise.
112527         * lib/xallocsa.c: Likewise.
112528         * lib/xsetenv.c: Likewise.
112529         * lib/xstriconv.c: Likewise.
112531 2006-09-13  Simon Josefsson  <jas@extundo.com>
112533         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112534         that internally, suggested by Ralf Wildenhues
112535         <Ralf.Wildenhues@gmx.de>.
112537 2006-09-13  Simon Josefsson  <jas@extundo.com>
112539         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112540         @LIBOBJS@.
112541         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112543 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112545         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112546         longer worry about uses that don't define HAVE_CONFIG_H.
112547         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112548         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112549         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112550         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112551         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112552         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112553         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112554         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112555         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112556         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112557         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112558         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112559         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112560         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112561         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112562         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112563         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112564         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112565         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112566         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112567         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112568         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112569         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112570         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112571         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112572         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112573         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112574         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112575         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112576         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112577         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112578         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112579         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112580         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112581         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112582         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112583         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112584         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112585         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112586         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112587         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112588         Likewise.
112590 2006-09-13  Eric Blake  <ebb9@byu.net>
112592         * lib/getopt.c: Fix typo in last commit.
112594 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112596         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112597         dgettext.
112599 2006-09-12  Jim Meyering  <jim@meyering.net>
112601         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112602         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112603         Reported by Nelson H. F. Beebe.
112605 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112607         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112608         program_invocation_name and program_invocation_short_name are
112609         initialized.
112610         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112611         and program_invocation_short_name to argp.h, so they are visible
112612         to user programs.
112613         * lib/argp.h: Likewise
112615 2006-09-10  Bruno Haible  <bruno@clisp.org>
112617         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112618         m4/inttypes_h.m4, m4/uintmax_t.m4.
112620 2006-09-10  Bruno Haible  <bruno@clisp.org>
112622         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112623         gl_AC_TYPE_UINTMAX_T.
112625 2006-09-10  Bruno Haible  <bruno@clisp.org>
112627         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112629 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112631         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112632         convention.  Text proposed by Bruno Haible.
112633         (struct argp_option): Document the use of N_() wrappers.
112635         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112636         '\v', and translate the two parts separately, instead of feeding
112637         the whole string to gettext.  This allows to exclude
112638         '\v' from the strings visible to the translator by writing doc
112639         strings as N_("..") "\v" N_("..").
112641 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112643         * config/srclist.txt: Undo latest change; the bug was fixed.
112645 2006-09-09  Bruno Haible  <bruno@clisp.org>
112647         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112648         assignments if building a library without libtool.
112649         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112650         in func_emit_lib_Makefile_am.
112651         (func_import): When building a static library libfoo.a, arrange to
112652         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112653         (func_create_testdir): Likewise.
112654         * modules/gc (configure.ac, Makefile.am): If building statically,
112655         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112656         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112657         * modules/striconv (configure.ac, Makefile.am): Likewise.
112658         Based on a suggestion by Ralf Wildenhues.
112660 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112662         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112663         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112664         Also:
112666         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112667         Add year_2050_test to catch glibc bug 2821
112668         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112670         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112671         Prefer #ifdef to #if.
112673         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112674         Return from 'main' instead of calling 'exit'.
112676 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112678         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112679         returned the maximum time_t value rather than (time_t) -1.
112680         Problem originally reported by William Bardwell
112681         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112683         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112684         Moved to here ...
112685         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112686         ... from here.
112688 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112690         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112691         2821 is fixed.
112693 2006-09-08  Jim Meyering  <jim@meyering.net>
112695         Don't make generated files read-only.  That would bother too many
112696         people.  However, do retain the ability to work when targets are
112697         read-only: remove the destination and temporary files before writing
112698         them (when generated via sed or echo), or by using the -f option for
112699         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112700         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112701         * modules/byteswap, modules/configmake, modules/fcntl:
112702         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112703         * modules/localcharset, modules/netinet_in, modules/poll:
112704         * modules/stdbool, modules/stdint, modules/sys_select:
112705         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112707 2006-09-08  Jim Meyering  <jim@meyering.net>
112709         Avoid new build failure on FreeBSD 6.0.
112710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112711         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112712         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112714 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112718 2006-09-07  Jim Meyering  <jim@meyering.net>
112720         Fix global typo in last change: use chmod u-w, not chmod u-x.
112721         Spotted by Paul Eggert and Bruce Korb.
112722         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112723         * modules/byteswap, modules/configmake, modules/fcntl:
112724         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112725         * modules/localcharset, modules/netinet_in, modules/poll:
112726         * modules/stdbool, modules/stdint, modules/sys_select:
112727         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112729 2006-09-06  Jim Meyering  <jim@meyering.net>
112731         Make generated files be read-only.
112732         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112733         Ensure that each generated file is now read-only.
112734         * modules/argz: Likewise.
112735         * modules/arpa_inet: Likewise.
112736         * modules/byteswap: Likewise.
112737         * modules/configmake: Likewise.
112738         * modules/fcntl: Likewise.
112739         * modules/fnmatch: Likewise.
112740         * modules/getopt: Likewise.
112741         * modules/glob: Likewise.
112742         * modules/inttypes: Likewise.
112743         * modules/netinet_in: Likewise.
112744         * modules/poll: Likewise.
112745         * modules/stdbool: Likewise.
112746         * modules/stdint: Likewise.
112747         * modules/sys_select: Likewise.
112748         * modules/sys_socket: Likewise.
112749         * modules/sys_stat: Likewise.
112750         * modules/sysexits: Likewise.
112751         * modules/localcharset: Same as above, but continue using temporary
112752         file named "t-$@" (why different?) rather than the "$@-t" used
112753         everywhere else.
112755         * modules/sysexits (Makefile.am): Replace literal occurrences
112756         of "sysexit.h" more readable, and more consistent, "$@".
112758 2006-09-06  Bruno Haible  <bruno@clisp.org>
112760         * modules/striconv: New file.
112761         * modules/xstriconv: New file.
112762         * MODULES.html.sh (Internationalization functions): Add striconv,
112763         xstriconv.
112765 2006-09-06  Bruno Haible  <bruno@clisp.org>
112767         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112768         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112769         not using libtool correctly.
112771 2006-09-06  Bruno Haible  <bruno@clisp.org>
112773         * lib/striconv.h: New file.
112774         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112775         iconvstring.c.
112776         * lib/xstriconv.h: New file.
112777         * lib/xstriconv.c: New file.
112779 2006-09-06  Bruno Haible  <bruno@clisp.org>
112781         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112782         lib_..._LDFLAGS.
112784 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112786         * lib/argz_.h: Sync from Libtool.
112788         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112789                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112791         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112793 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112795         * modules/trim: New file.
112797 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112799         * lib/trim.h: New file.
112800         * lib/trim.c: New file.
112802 2006-09-05  Bruno Haible  <bruno@clisp.org>
112804         * MODULES.html.sh (String handling): Add trim.
112806 2006-09-04  Karl Berry  <karl@gnu.org>
112808         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112809         until next release.
112811 2006-09-03  Bruno Haible  <bruno@clisp.org>
112813         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112814         correctly.
112816 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112818         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112819         not gl_GETLOADAVG.  Omit unneeded semicolons.
112820         Problems reported by Ralf Wildenhues in
112821         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112822         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112823         at the end, which is the usual gnulib style.
112825         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112826         of doing all the work ourselves.
112827         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112828         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112830 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112832         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112833         Problem reported by Ralf Wildenhues in
112834         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112836         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112837         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112839 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112841         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112842         yesterday's patch by changing test -n to test -z.
112844 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112846         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112847         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112848         the former is now obsolescent.
112850         * modules/chdir-long (Depends-on): Add fcntl.
112852 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112854         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112855         obsolescent, and programs should use gnulib instead.
112856         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112857         but with prefixes changed.
112859 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112861         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112862         or stdbool.h, because they might not exist while configuring.
112864         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112865         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112866         does that for us.
112867         (O_DIRECTORY): Remove.
112869 2006-08-31  Eric Blake  <ebb9@byu.net>
112871         * gnulib-tool: Don't let emacs change spaces to TAB.
112873 2006-08-31  Bruno Haible  <bruno@clisp.org>
112875         * gnulib-tool: When calling func_import more than once, do it in a
112876         subshell.
112877         Reported by Eric Blake <ebb9@byu.net>.
112879 2006-08-31  Bruno Haible  <bruno@clisp.org>
112881         * gnulib-tool (nl): Remove variable.
112882         (sed_transform_lib_file): Use more robust test for config-h module.
112883         (func_import): Fix typo in 2006-08-25 patch.
112885 2006-08-31  Bruno Haible  <bruno@clisp.org>
112887         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112888         specified, augment Makefile.am variables instead of assigning them.
112890 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112892         Work around a bug in both the Linux and SunOS 64-bit kernels:
112893         nanosleep mishandles sleeps for longer than 2**31 seconds.
112894         Problem reported by Frank v Waveren in
112895         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112897         Check for nanosleep bug.
112898         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112900 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112902         Work around a bug in both the Linux and SunOS 64-bit kernels:
112903         nanosleep mishandles sleeps for longer than 2**31 seconds.
112904         Problem reported by Frank v Waveren in
112905         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112906         * lib/nanosleep.c (BILLION): New constant.
112907         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112908         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112909         implementation.
112911 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112913         * modules/nanosleep (Depends-on): Add gettime.
112915 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112916         and Simon Josefsson  <jas@extundo.com>
112917         and Oskar Liljeblad  <oskar@osk.mine.nu>
112919         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112920         * gnulib-tool (func_import): New license type 'unmodifiable license
112921         text'.
112922         * modules/fdl: Use it.  Longer description.
112923         * module/gpl, module/lgpl: New files.
112925 2006-08-30  Jim Meyering  <jim@meyering.net>
112927         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112928         shadowing the parameter.
112930 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112932         Sync from Libtool:
112934         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112936         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112937         sharing with gnulib.  Report by Eric Blake.
112939 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112941         * modules/isapipe: New file.
112942         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112944 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112946         * modules/configmake (Makefile.am): Add a comment, and omit
112947         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112948         by Bruno Haible.
112950 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112952         * m4/isapipe.m4: New file.
112954 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112956         * lib/isapipe.c, lib/isapipe.h: New files.
112958 2006-08-29  Jim Meyering  <jim@meyering.net>
112960         * modules/configmake (Makefile.am): Make configmake.h depend on
112961         Makefile.  Otherwise, a stale configmake.h could hang around.
112963 2006-08-29  Eric Blake  <ebb9@byu.net>
112965         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112966         resolution of upstream bug 3044.
112968 2006-08-29  Bruno Haible  <bruno@clisp.org>
112970         * modules/localcharset (Depends-on): Add configmake.
112971         (Makefile.am): Remove setting of LIBDIR through DEFS.
112973 2006-08-29  Bruno Haible  <bruno@clisp.org>
112975         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112976         defined.
112978 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112980         * modules/fcntl: New file.
112981         * modules/chdir-safer (Depends-on): Add fcntl.
112982         * modules/fts: Likewise.
112983         * modules/mkdir-p: Likewise.
112985         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112986         This undoes the most recent change, since we're now addressing the
112987         problem in a different way.
112989         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112990         into output, since the output might be called Makefile.am even
112991         if $makefile_name is something different.
112992         (func_import): Use $makefile_am rather than
112993         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112994         empty.
112996         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112998 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113000         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
113001         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
113002         recent change to stdint.m4, since we're now addressing the problem in a
113003         different way.
113005 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113007         * m4/fcntl_h.m4: New file.
113009 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113011         * lib/fcntl_.h: New file.
113012         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
113013         the fcntl module.
113014         * lib/dirchownmod.c: Likewise.
113015         * lib/fts.c: Likewise.
113017         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
113018         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
113019         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
113020         just before including <inttypes.h>, to avoid circular inclusion.
113022 2006-08-28  Jim Meyering  <jim@meyering.net>
113024         * doc/visibility.texi: Actually read and correct the grammar of the
113025         sentence affected by yesterday's change.
113027 2006-08-28  Eric Blake  <ebb9@byu.net>
113029         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
113030         needs wrapper.
113032 2006-08-28  Eric Blake  <ebb9@byu.net>
113034         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
113036 2006-08-28  Eric Blake  <ebb9@byu.net>
113038         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
113040 2006-08-28  Bruno Haible  <bruno@clisp.org>
113042         * modules/c-strstr: New file, from GNU gettext.
113043         * MODULES.html.sh (String handling): Add c-strstr.
113045 2006-08-28  Bruno Haible  <bruno@clisp.org>
113047         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
113048         macros.
113049         Reported by Eric Blake.
113051 2006-08-28  Bruno Haible  <bruno@clisp.org>
113053         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
113054         (VASNPRINTF): Return a string of length > INT_MAX without failing.
113055         * lib/vasprintf.c: Include errno.h, limits.h.
113056         (EOVERFLOW): New fallback definition.
113057         (vasprintf): Test here whether the string length is > INT_MAX.
113058         * lib/vsnprintf.c: Include errno.h, limits.h.
113059         (EOVERFLOW): New fallback definition.
113060         (vsnprintf): Fix bug when generated string was too long for the buffer.
113061         Test here whether the string length is > INT_MAX.
113063 2006-08-28  Bruno Haible  <bruno@clisp.org>
113065         * lib/inttypes_.h (SCNX*): Remove definitions.
113066         Reported by Eric Blake.
113068 2006-08-28  Bruno Haible  <bruno@clisp.org>
113070         * lib/c-strstr.h: New file, from GNU gettext.
113071         * lib/c-strstr.c: New file, from GNU gettext.
113073 2006-08-28  Bruno Haible  <bruno@clisp.org>
113075         * gnulib-tool: Reorder some statements.
113077 2006-08-28  Bruno Haible  <bruno@clisp.org>
113079         * gnulib-tool: New option --makefile-name.
113080         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
113081         $makefile_name.
113082         (func_import): Write $makefile_name to the cache file, and read it from
113083         there unless explicitly specified. Use $makefile_name as file name
113084         instead of Makefile.am. Adjust the recommendations accordingly.
113086 2006-08-28  Bruno Haible  <bruno@clisp.org>
113088         * gnulib-tool (func_verify_module): Check against misapplying patch.
113090 2006-08-28  Bruno Haible  <bruno@clisp.org>
113092         * gnulib-tool (func_relativize, func_relconcat): New functions.
113093         Give an error if --local-dir is given with --update.
113094         Remove trailing slashes from $local_gnulib_dir.
113095         (func_import): Store the relativized $local_gnulib_dir in
113096         gnulib-cache.m4, and read it from there if not specified explicitly.
113098 2006-08-28  Bruno Haible  <bruno@clisp.org>
113100         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
113101         is the current directory. Respect also $local_gnulib_dir.
113103 2006-08-28  Bruno Haible  <bruno@clisp.org>
113104             Simon Josefsson  <jas@extundo.com>
113106         BeOS portability.
113107         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
113109 2006-08-27  Jim Meyering  <jim@meyering.net>
113111         * doc/visibility.texi: Remove duplicate word: "pointer".
113113 2006-08-26  Bruno Haible  <bruno@clisp.org>
113115         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
113116         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
113117         (Makefile.am): Create inttypes.h from inttypes_.h.
113118         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
113120         * modules/imaxabs: New file.
113122         * modules/imaxdiv: New file.
113124 2006-08-26  Bruno Haible  <bruno@clisp.org>
113126         * m4/inttypes.m4: New file.
113127         * m4/_inttypes_h.m4: Remove file.
113128         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
113129         PRI_MACROS_BROKEN.
113130         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
113132         * m4/imaxabs.m4: New file.
113134         * m4/imaxdiv.m4: New file.
113136 2006-08-26  Bruno Haible  <bruno@clisp.org>
113138         * lib/inttypes_.h: New file.
113139         * lib/inttypes.h: Remove file.
113140         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
113142         * lib/imaxabs.c: New file.
113144         * lib/imaxdiv.c: New file.
113146 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113148         New config-h module, so that "make" output needn't be cluttered
113149         by -DHAVE_CONFIG_H.
113150         * MODULES.html.sh (Support for building libraries and executables):
113151         Add config-h.
113152         * modules/config-h: New file.
113153         * gnulib-tool (nl, sed_transform_lib_file): New vars.
113154         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
113155         the config-h module is used.
113157         New configmake module, so that "make" output needn't be cluttered
113158         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
113159         * MODULES.html.sh (Support for building libraries and executables):
113160         Add configmake.
113161         * modules/configmake: New file.
113163 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
113165         * m4/config-h.m4: New file.
113167 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113169         * config/srclist.txt: Add elisp-comp.
113171 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
113173         * MODULES.html.sh (Support for building libraries and executables):
113174         Add elisp-comp.
113175         * build-aux/elisp-comp: New file.
113176         * modules/elisp-comp: New file.
113178 2006-08-24  Bruno Haible  <bruno@clisp.org>
113180         * gnulib-tool (func_create_testdir): Use non-default values of
113181         sourcebase and m4base.
113183 2006-08-24  Bruno Haible  <bruno@clisp.org>
113185         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
113186         HTML structure.
113188 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
113190         * modules/openat (Depends-on): Add lchown.
113192 2006-08-23  Bruno Haible  <bruno@clisp.org>
113194         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
113195         of gl_LOCK_EARLY instead of gl_LOCK.
113197 2006-08-23  Bruno Haible  <bruno@clisp.org>
113199         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
113200         on OSF/1 to no.
113201         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
113203 2006-08-23  Bruno Haible  <bruno@clisp.org>
113205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
113206         as unusable.
113208         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
113209         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
113210         (gl_LOCK): New macro.
113212 2006-08-22  Simon Josefsson  <jas@extundo.com>
113214         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
113215         to md5 module.
113217 2006-08-22  Simon Josefsson  <jas@extundo.com>
113219         * MODULES.html.sh: Add "Support for maintaining and release
113220         projects".
113222         * build-aux/gnupload: New file, from coreutils.
113224 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113226         Avoid the need for AC_LIBSOURCES in m4 macros.
113227         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
113228         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
113229         * modules/check-version (EXTRA_DIST): Add check-version.h.
113230         * modules/crc (EXTRA_DIST): Add crc.h.
113231         * modules/des (EXTRA_DIST): Add des.h.
113232         * modules/gc (EXTRA_DIST): Add gc.h.
113233         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
113234         * modules/getline (EXTRA_DIST): Add getline.h.
113235         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
113236         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
113237         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
113238         * modules/md2 (EXTRA_DIST): Add md2.h.
113239         * modules/md4 (EXTRA_DIST): Add md4.h.
113240         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
113241         * modules/read-file (EXTRA_DIST): Add read-file.h.
113242         * modules/readline (EXTRA_DIST): Add readline.h.
113243         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
113244         rijndael-api-fst.h.
113246 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113248         * m4/rijndael.m4 (gl_ARCFOUR):
113249         * m4/arctwo.m4 (gl_ARCTWO):
113250         * m4/check-version.m4 (gl_CHECK_VERSION):
113251         * m4/crc.m4 (gl_CRC):
113252         * m4/des.m4 (gl_DES):
113253         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113254         * m4/gc.m4 (gl_GC):
113255         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113256         * m4/getline.m4 (gl_FUNC_GETLINE):
113257         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113258         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113259         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113260         * m4/md2.m4 (gl_MD2):
113261         * m4/md4.m4 (gl_MD4):
113262         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113263         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113264         * m4/readline.m4 (gl_FUNC_READLINE):
113265         * m4/rijndael.m4 (gl_RIJNDAEL):
113266         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113267         to get the necessary .h files and whatnot.
113269 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113271         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113272         gnulib rather than the other way around.
113273         * config/srclistvars.sh (COREUTILS): Remove.
113275 2006-08-22  Jim Meyering  <jim@meyering.net>
113277         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113279         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113281 2006-08-22  Eric Blake  <ebb9@byu.net>
113283         * modules/regexprops-generic: New file.
113284         * MODULES.html.sh (Support for building documentation): List it.
113286 2006-08-22  Eric Blake  <ebb9@byu.net>
113288         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113289         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113290         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113291         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113293 2006-08-22  Bruno Haible  <bruno@clisp.org>
113295         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113296         and lib_LTLIBRARIES like the other lib_* variables.
113298 2006-08-22  Bruno Haible  <bruno@clisp.org>
113300         * build-aux/x-to-1.in: New file, from GNU gettext.
113302 2006-08-22  Bruno Haible  <bruno@clisp.org>
113304         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113305         <utmpx.h> exists.
113307 2006-08-22  Bruno Haible  <bruno@clisp.org>
113309         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113310         <utmpx.h> exists.
113312 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113314         BeOS portability.
113315         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113316         exist.
113317         Problem reported by Bruno Haible.
113319 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113321         Avoid the need for AC_LIBSOURCES in m4 macros.
113322         * modules/acl (EXTRA_DIST): Add acl.h.
113323         * modules/argmatch (Files): Add m4/argmatch.m4.
113324         (configure.ac): Add gl_ARGMATCH.
113325         (EXTRA_DIST): Renamed from lib_SOURCES, for
113326         consistency with the other modules.  Remove argmatch.c.
113327         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113328         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113329         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113330         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113331         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113332         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113333         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113334         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113335         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113336         * modules/closeout (EXTRA_DIST): Add closeout.h.
113337         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113338         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113339         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113340         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113341         dirname.h; remove basename.c and stripslash.c.
113342         * modules/exclude (EXTRA_DIST): Add exclude.h.
113343         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113344         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113345         * modules/file-type (EXTRA_DIST): Add file-type.h.
113346         * modules/filemode (EXTRA_DIST): Add filemode.h.
113347         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113348         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113349         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113350         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113351         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113352         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113353         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113354         * modules/getdate (EXTRA_DIST): Add getdate.c.
113355         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113356         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113357         * modules/getpass (EXTRA_DIST): Add getpass.h.
113358         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113359         * modules/group-member (EXTRA_DIST): Add group-member.h.
113360         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113361         * modules/hash (EXTRA_DIST): Add hash.h.
113362         * modules/human (EXTRA_DIST): Add human.h.
113363         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113364         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113365         * modules/lchown (EXTRA_DIST): Add lchown.h.
113366         * modules/long-options (EXTRA_DIST): Add long-options.h.
113367         * modules/lstat (EXTRA_DIST): Add lstat.h.
113368         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113369         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113370         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113371         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113372         * modules/memxor (EXTRA_DIST): Add memxor.h.
113373         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113374         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113375         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113376         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113377         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113378         * modules/physmem (EXTRA_DIST): Add physmem.h.
113379         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113380         * modules/posixver (EXTRA_DIST): Add posixver.h.
113381         * modules/quote (EXTRA_DIST): Add quote.h.
113382         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113383         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113384         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113385         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113386         regex_internal.h regexec.c.
113387         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113388         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113389         * modules/same (EXTRA_DIST): Add same.h.
113390         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113391         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113392         * modules/savedir (EXTRA_DIST): Add savedir.h.
113393         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113394         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113395         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113396         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113397         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113398         * modules/strdup (EXTRA_DIST): Add strdup.h.
113399         * modules/strftime (EXTRA_DIST): Add strftime.h.
113400         * modules/strndup (EXTRA_DIST): Add strndup.h.
113401         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113402         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113403         * modules/time_r (EXTRA_DIST): Add time_r.h.
113404         * modules/timespec (EXTRA_DIST): Add timespec.h.
113405         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113406         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113407         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113408         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113409         * modules/userspec (EXTRA_DIST): Add userspec.h.
113410         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113411         * modules/utimens (EXTRA_DIST): Add utimens.h.
113412         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113413         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113414         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113415         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113416         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113417         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113418         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113419         * modules/yesno (EXTRA_DIST): Add yesno.h.
113421 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113423         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113425         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113426         * m4/dev-ino.m4, same-inode.m4: Remove.
113428         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113429         * m4/acl.m4 (AC_FUNC_ACL):
113430         * m4/backupfile.m4 (gl_BACKUPFILE):
113431         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113432         * m4/canon-host.m4 (gl_CANON_HOST):
113433         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113434         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113435         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113436         * m4/cloexec.m4 (gl_CLOEXEC):
113437         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113438         * m4/closeout.m4 (gl_CLOSEOUT):
113439         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113440         * m4/dirname.m4 (gl_DIRNAME):
113441         * m4/exclude.m4 (gl_EXCLUDE):
113442         * m4/exitfail.m4 (gl_EXITFAIL):
113443         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113444         * m4/file-type.m4 (gl_FILE_TYPE):
113445         * m4/filemode.m4 (gl_FILEMODE):
113446         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113447         * m4/fpending.m4 (gl_FUNC_FPENDING):
113448         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113449         * m4/fts.m4 (gl_FUNC_FTS):
113450         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113451         * m4/getdate.m4 (gl_GETDATE):
113452         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113453         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113454         * m4/getpass.m4 (gl_FUNC_GETPASS):
113455         * m4/gettime.m4 (gl_GETTIME):
113456         * m4/getugroups.m4 (gl_GETUGROUPS):
113457         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113458         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113459         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113460         * m4/hash.m4 (gl_HASH):
113461         * m4/idcache.m4 (gl_IDCACHE):
113462         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113463         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113464         * m4/long-options.m4 (gl_LONG_OPTIONS):
113465         * m4/lstat.m4 (gl_FUNC_LSTAT):
113466         * m4/md5.m4 (gl_MD5):
113467         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113468         * m4/memcoll.m4 (gl_MEMCOLL):
113469         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113470         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113471         * m4/memxor.m4 (gl_MEMXOR):
113472         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113473         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113474         * m4/modechange.m4 (gl_MODECHANGE):
113475         * m4/mountlist.m4 (gl_MOUNTLIST):
113476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113477         * m4/openat.m4 (gl_FUNC_OPENAT):
113478         * m4/pathmax.m4 (gl_PATHMAX):
113479         * m4/physmem.m4 (gl_PHYSMEM):
113480         * m4/posixtm.m4 (gl_POSIXTM):
113481         * m4/posixver.m4 (gl_POSIXVER):
113482         * m4/quote.m4 (gl_QUOTE):
113483         * m4/quotearg.m4 (gl_QUOTEARG):
113484         * m4/readtokens.m4 (gl_READTOKENS):
113485         * m4/readutmp.m4 (gl_READUTMP):
113486         * m4/regex.m4 (gl_REGEX):
113487         * m4/safe-read.m4 (gl_SAFE_READ):
113488         * m4/safe-write.m4 (gl_SAFE_WRITE):
113489         * m4/same.m4 (gl_SAME):
113490         * m4/save-cwd.m4 (gl_SAVE_CWD):
113491         * m4/savedir.m4 (gl_SAVEDIR):
113492         * m4/settime.m4 (gl_SETTIME):
113493         * m4/sha1.m4 (gl_SHA1):
113494         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113495         * m4/stat-macros.m4 (gl_STAT_MACROS):
113496         * m4/stat-time.m4 (gl_STAT_TIME):
113497         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113498         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113499         * m4/strdup.m4 (gl_FUNC_STRDUP):
113500         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113501         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113502         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113503         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113504         * m4/time_r.m4 (gl_TIME_R):
113505         * m4/timespec.m4 (gl_TIMESPEC):
113506         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113507         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113508         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113509         * m4/userspec.m4 (gl_USERSPEC):
113510         * m4/utimecmp.m4 (gl_UTIMECMP):
113511         * m4/utimens.m4 (gl_UTIMENS):
113512         * m4/xalloc.m4 (gl_XALLOC):
113513         * m4/xgetcwd.m4 (gl_XGETCWD):
113514         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113515         * m4/xreadlink.m4 (gl_XREADLINK):
113516         * m4/xstrtod.m4 (gl_XSTRTOD):
113517         * m4/yesno.m4 (gl_YESNO):
113518         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113519         to get the necessary .h files and whatnot.
113521 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113522             Bruno Haible  <bruno@clisp.org>
113524         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113525         /bin/sh understanding of '!' conditional negation.
113527 2006-08-21  Jim Meyering  <jim@meyering.net>
113529         * modules/openat (Depends-on): Really alphabetize.
113531         * modules/acl (Depends-on): Add error and quote.
113533         * check-module (find_included_lib_files): Add at-func.c to the
113534         ok-to-include-more-than-once white list.
113536         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113538 2006-08-21  Bruno Haible  <bruno@clisp.org>
113540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113541         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113542         Reported by Martin Lambers <marlam@marlam.de>.
113544 2006-08-21  Bruno Haible  <bruno@clisp.org>
113546         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113547         specify an installation location, don't emit a noinst_LIBRARIES or
113548         noinst_LTLIBRARIES assignment.
113550 2006-08-21  Bruno Haible  <bruno@clisp.org>
113552         BeOS portability.
113553         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113554         BeOS has mbrtowc() but no <wctype.h>.
113556 2006-08-21  Bruno Haible  <bruno@clisp.org>
113558         BeOS portability.
113559         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113560         exist.
113562 2006-08-21  Bruno Haible  <bruno@clisp.org>
113564         BeOS portability.
113565         * lib/mbchar.h: Include <wctype.h> only if it exists.
113567 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113569         Remove files that are no longer needed by their respective modules.
113570         * m4/obstack.m4: Remove.
113571         * m4/strerror_r.m4: Remove.
113572         * m4/uint32_t.m4: Remove.
113573         * m4/uintptr_t.m4: Remove.
113574         * m4/ullong_max.m4: Remove.
113575         * m4/xstrtoimax.m4: Remove.
113576         * m4/xstrtoumax.m4: Remove.
113578         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113579         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113580         dependencies now capture this.
113582         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113583         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113584         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113585         * m4/human.m4 (gl_HUMAN): Likewise.
113586         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113587         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113589         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113591         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113592         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113593         stdint.
113594         * m4/human.m4 (gl_HUMAN): Likewise.
113595         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113596         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113597         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113598         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113599         * m4/xstrtol (gl_XSTRTOL): Likewise.
113601         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113602         AC_TYPE_LONG_LONG_INT.
113603         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113604         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113605         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113606         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113608         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113609         on stdbool.
113611         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113612         (gl_PREREQ_XSTRTOUL): Remove.
113614         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113616         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113617         mode.
113619 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113621         Add and change modules to make it easier for coreutils to use
113622         gnulib-tool.
113623         * modules/backupfile (Files): Remove m4/d-ino.m4.
113624         (Depends-on): Add d-ino.
113625         * modules/cycle-check (Depends-on): Add stdint.
113626         (lib_SOURCES): Add cycle-check.h.
113627         * modules/d-ino: New module.
113628         * modules/d-type: New module.
113629         * modules/error (Files): Remove m4/strerror_r.m4.
113630         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113631         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113632         m4/inttypes_h.m4, m4/uintmax_t.m4.
113633         (Depends-on): Add stdint.
113634         (lib_SOURCES): Add fsusage.h.
113635         * modules/getcwd (Files): Remove d-ino.m4.
113636         (Depends-on): Add d-ino.
113637         * modules/getndelim2 (Depends-on): Add stdint.
113638         * modules/glob (Files): Remove m4/d-type.m4.
113639         (Depends-on): Add d-type.
113640         * modules/host-os: New module.
113641         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113642         m4/inttypes_h.m4, m4/uintmax_t.m4.
113643         * Depends-on: Add stdint.
113644         (lib_SOURCES): Add human.h.
113645         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113646         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113647         m4/uintmax_t.m4, m4/ulonglong.m4.
113648         (Depends-on): Add stdint.
113649         (EXTRA_DIST): Add inttostr.h.
113650         * modules/lchmod: New module.
113651         * modules/link-follow: New module.
113652         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113653         (Depends-on): Add lchmod.
113654         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113655         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113656         (Depends-on): Add stdint.
113657         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113658         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113659         (Depends-on): Add stdint.
113660         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113661         * modules/perl: New module.
113662         * modules/regex (Depends-on): Add stdint.
113663         * modules/rmdir-errno: New module.
113664         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113665         m4/intmax_t.m4.
113666         (Depends-on): Add stdint.
113667         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113668         m4/uintmax_t.m4.
113669         (Depends-on): Add stdint.
113670         * modules/unlink-busy: New module.
113671         * modules/utimecmp (Depends-on): Add stdint.
113672         * modules/uptime: New module.
113673         * modules/winsz-ioctl: New module.
113674         * modules/winsz-termios: New module.
113675         * modules/xnanosleep (Depends-on): Add nanosleep.
113676         * modules/ullong_max: Remove.
113677         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113678         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113679         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113680         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113681         (Depends-on): Add inttypes.
113682         (lib_SOURCES): Add xstrtol.h.
113683         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113684         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113685         * MODULES.html.sh: Move 'assert' into the assert section.
113686         Move 'dummy' into the linking section.
113687         Remove ullong_max.
113688         Add section for compatibility checks for POSIX:2001 functions,
113689         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113690         winsz-ioctl, and winsz-termios into it.
113691         Add lchmod.
113692         Add top-level Misc section and put host-os, perl, and uptime
113693         into it.
113695 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113697         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113698         now assume the stdint module.  Do not include inttypes.h.
113699         * lib/fsusage.h: Likewise.
113700         * lib/getndelim2.c: Likewise.
113701         * lib/human.h: Likewise.
113702         * lib/inttostr.h: Likewise.
113703         * lib/obstack.c: Likewise.
113704         * lib/regex_internal.h: Likewise.
113705         * lib/tempname.c: Likewise.
113706         * lib/utimecmp.c: Likewise.
113707         * lib/xstrtol.h: Likewise.
113709         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113711         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113712         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113713         * lib/xtime.h: Likewise.
113715 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113717         * modules/openat (Files): Add lib/fchmodat.c.
113718         Fixes problem reported by Jay Youngman.
113720 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113722         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113723         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113725 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113726             Bruno Haible  <bruno@clisp.org>
113728         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113729         and is a script that invokes bison. Tighten the code. Add comments.
113731 2006-08-18  Jim Meyering  <jim@meyering.net>
113733         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113734         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113735         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113736         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113738 2006-08-18  Bruno Haible  <bruno@clisp.org>
113740         * modules/bison-i18n: New file.
113741         * MODULES.html.sh (Internationalization functions): Add it.
113743 2006-08-18  Bruno Haible  <bruno@clisp.org>
113745         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113746         sys/statvfs.h. When getmntinfo was found, check its declaration and
113747         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113749 2006-08-18  Bruno Haible  <bruno@clisp.org>
113751         * m4/bison-i18n.m4: New file, from bison.
113753 2006-08-18  Bruno Haible  <bruno@clisp.org>
113755         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113756         (ME_DUMMY): Treat "kernfs" as a dummy.
113757         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113759 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113761         Update from coreutils.
113763         2006-08-15  Jim Meyering  <jim@meyering.net>
113765         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113767         2006-01-17  Jim Meyering  <jim@meyering.net>
113769         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113771         2006-01-11  Jim Meyering  <jim@meyering.net>
113773         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113774         Check for the lchmod function.
113776 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113778         Update from coreutils.
113780         * lib/__fpending.h: Add copyright notice.
113781         * lib/fprintftime.h: Likewise.
113782         * lib/savedir.c: Use (C) in copyright notice.
113783         * lib/savedir.h: Likewise.
113785         2006-08-15  Jim Meyering  <jim@meyering.net>
113787         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113788         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113789         in support of the EXPECTED_ERRNO macro.
113790         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113791         definitions.  Instead, define the appropriate symbols and include
113792         "at-func.c".
113793         * lib/mkdirat.c (mkdirat): Likewise.
113794         * lib/fchmodat.c (fchmodat): Likewise.
113795         (ENOSYS): Remove definition.
113796         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113797         it.  Don't include "unistd--.h" -- it wasn't ever used.
113799         2006-01-17  Jim Meyering  <jim@meyering.net>
113801         Rewrite fts.c not to change the current working directory,
113802         by using openat, fstatat, fdopendir, etc..
113804         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113805         (HAVE_OPENAT_SUPPORT): Define.
113806         [_LIBC] (fchdir): Don't undef or define; no longer used.
113807         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113808         Now, this `function' always succeeds, and consumes its file descriptor
113809         parameter -- so callers must not close such FDs.  Update callers.
113810         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113811         (diropen): Add parameter, SP.  Adjust all callers.
113812         Implement using diropen_fd, rather than open.
113813         (fts_open): Initialize new member, fts_cwd_fd.
113814         Remove fts_rft-setting code.
113815         (fts_close): Close fts_cwd_fd, if necessary.
113816         (__opendir2): Define in terms of opendir or opendirat,
113817         depending on whether the FST_NOCHDIR flag is set.
113818         (fts_build): Since fts_safe_changedir consumes its FD, and since
113819         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113820         and close the dup'd file descriptor upon failure.
113821         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113822         (fts_safe_changedir): Tweak semantics to reflect that this function
113823         now calls cwd_advance_fd and hence consumes its FD argument.
113824         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113825         [struct FTS] (fts_rft): Remove now-unused member.
113826         [struct FTS] (fts_cycle.state): Improve comment.
113828         * lib/openat.c (openat_needs_fchdir): New function.
113829         * lib/openat.h (openat_needs_fchdir): Declare it.
113831 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113833         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113834         Problem and fix reported by Pádraig Brady in
113835         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113837 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113839         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113841 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113843         * lib/memcoll.c (memcoll): Optimize for the common case where the
113844         arguments are bytewise equal.
113846 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113848         * doc/regexprops-generic.texi: Add a copyright notice.
113850 2006-08-15  Bruno Haible  <bruno@clisp.org>
113852         * modules/tmpdir (License): Change to LGPL.
113854 2006-08-15  Bruno Haible  <bruno@clisp.org>
113856         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113857         module.
113859 2006-08-14  Simon Josefsson  <jas@extundo.com>
113861         * config/srclist.txt: Add gnupload.
113863 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113865         Change copyright notice from LGPL 2 to GPL 2, since that's the
113866         standard form used in the gnulib repository.
113867         * tests/test-lock.c: Likewise.
113868         * tests/test-stdint.c: Likewise.
113869         * tests/test-tls.c: Likewise.
113871         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113872         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113873         Add copyright notice.
113875         * check-module: Add copyright notice.  Output a copyright
113876         notice if "--version" is specified.
113877         * modules/COPYING: New file.
113878         * tests/test-getaddrinfo.c: Add copyright notice.
113879         * tests/test-verify.c: Likewise.
113881 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113883         Change copyright notice from LGPL 2 to GPL 2, since that's the
113884         standard form used in the gnulib repository.
113885         * lib/lock.c: LGPL -> GPL.
113886         * lib/lock.h: Likewise.
113887         * lib/strnlen1.c: Likewise.
113888         * lib/strnlen1.h: Likewise.
113889         * lib/tls.c: Likewise.
113890         * lib/tls.h: Likewise.
113891         * lib/tmpdir.c: Likewise.
113893         * lib/TODO: Remove; this belongs only in coreutils.
113895 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113897         Add copyright notices to long-enough files that lack them, since
113898         otherwise the files aren't clearly free.  Use the same notice that
113899         getdate.texi already uses.
113900         * doc/alloca-opt.texi: Add copyright notice.
113901         * doc/alloca.texi: Likewise.
113902         * doc/ctime.texi: Likewise.
113903         * doc/functions.texi: Likewise.
113904         * doc/gcd.texi: Likewise.
113905         * doc/gnulib-tool.texi: Likewise.
113906         * doc/inet_ntoa.texi: Likewise.
113907         * doc/visibility.texi: Likewise.
113909         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113910         * doc/quote.texi: Add copyright notice.
113912         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113913         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113914         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113915         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113916         is now obsolete, and give a pointer to the Sun list.
113917         Add copyright notice.
113919 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113921         * config/srclistvars.sh: Add copyright notice.
113923 2006-08-14  Eric Blake  <ebb9@byu.net>
113925         Import the following change from libc:
113927         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113929         Upstream bug 2997.
113930         * lib/misc/error.c: Add space between program name and message if file
113931         name is missing.
113933 2006-08-12  Karl Berry  <karl@gnu.org>
113935         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113936         remove, these originate in gnulib now.
113938 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113940         * doc/Makefile (standards.info standards.html standards.dvi):
113941         Also depend on make-stds.texi.
113943 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113945         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113946         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113948         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113949         in wchar_t.  Problem reported by Eric Blake.
113951         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113952         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113953         Also, help the compiler to keep LEN in a register.
113955 2006-08-11  Eric Blake  <ebb9@byu.net>
113957         * users.txt: Sort.  Add tar.
113959 2006-08-11  Bruno Haible  <bruno@clisp.org>
113961         * users.txt: New file.
113963 2006-08-11  Bruno Haible  <bruno@clisp.org>
113965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113966         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113968 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113970         * modules/snprintf (Depends-on): Remove minmax.
113971         (Maintainer): Add self and Bruno.
113973 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113975         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113976         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113977         (EOVERFLOW): Define if the system does not.
113978         Do not include "minmax.h"; it wasn't used.
113979         (snprintf): Don't assume size_t promotes to an unsigned type.
113980         Fix bug when generated string was too long for the buffer: the
113981         buffer's contents are supposed to be the initial prefix of the
113982         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113983         exceeds INT_MAX; do the check ourselves.
113985         Import the following changes from libc:
113987         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113989         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113990         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113991         set wc to the byte which couldn't be converted.
113992         (re_string_reconstruct): Don't clear valid_raw_len before calling
113993         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113994         tip_context using re_string_context_at.
113996         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113998         * lib/posix/regex.h: g++ still cannot handled [restrict].
114000         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
114002         * lib/posix/regex.h: Remove special handling for VMS.
114004 2006-08-10  Jim Meyering  <jim@meyering.net>
114006         * modules/same-inode: New module.
114007         * modules/dev-ino: New module.
114008         * modules/cycle-check: Depend on these modules, rather than simply
114009         including their .h files.
114010         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
114011         required via m4/cycle-check.m4.
114012         * modules/same: Depend on new same-inode module, rather than
114013         including same-inode.h.
114014         * modules/chdir-safer: New file.
114016         * modules/chown (Depends-on): Add stat-macros.
114018 2006-08-10  Jim Meyering  <jim@meyering.net>
114020         * m4/cycle-check.m4: New file.
114021         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
114022         * m4/dev-ino.m4, m4/same-inode.m4: New files.
114024 2006-08-10  Eric Blake  <ebb9@byu.net>
114026         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
114027         in from original proposal.
114029 2006-08-10  Eric Blake  <ebb9@byu.net>
114030         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
114032         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
114033         namespace.
114035 2006-08-10  Bruno Haible  <bruno@clisp.org>
114037         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
114038         as well.
114040 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114042         Sync from coreutils.
114044         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
114046         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
114047         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
114049 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114051         * modules/restrict: Remove; no longer needed now that we assume
114052         Autoconf 2.59 or later.
114053         * MODULES.html.sh: Remove 'restrict'.
114054         * modules/argp (Depends-on): Remove 'restrict'.
114055         * modules/base64 (Depends-on): Likewise.
114056         * modules/gc (Depends-on): Likewise.
114057         * modules/getaddrinfo (Depends-on): Likewise.
114058         * modules/glob (Depends-on): Likewise.
114059         * modules/inet_ntop (Depends-on): Likewise.
114060         * modules/inet_pton (Depends-on): Likewise.
114061         * modules/memxor (Depends-on): Likewise.
114062         * modules/regex (Depends-on): Likewise.
114063         * modules/strtok_r (Depends-on): Likewise.
114064         * modules/time_r (Depends-on): Likewise.
114066 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114068         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
114069         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
114070         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114071         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
114072         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
114073         * m4/memxor.m4 (gl_MEMXOR): Likewise.
114074         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
114075         gl_C_RESTRICT replaced by AC_C_RESTRICT.
114077         Merge from coreutils.
114078         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
114079         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
114080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
114081         * m4/time_r.m4 (gl_TIME_R): Likewise.
114083 2006-08-09  Karl Berry  <karl@gnu.org>
114085         * config/srclist.txt: no more gettext-tools, per Bruno.
114087 2006-08-08  Eric Blake  <ebb9@byu.net>
114089         * modules/verror: New module.
114090         * MODULES.html.sh: Document it.
114092 2006-08-08  Eric Blake  <ebb9@byu.net>
114094         * lib/verror.h, lib/verror.c: New files.
114096 2006-08-08  Eric Blake  <ebb9@byu.net>
114098         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
114099         verror_at_line output complies with GNU Coding Standards even when
114100         file is NULL.
114102 2006-08-07  Bruno Haible  <bruno@clisp.org>
114104         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
114105         versions of AIX.
114106         Reported by Ralf Wildenhues.
114108 2006-08-07  Bruno Haible  <bruno@clisp.org>
114110         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
114111         in an AC_DEFUN. Needed so that the autoconf snippets can use
114112         AC_REQUIRE.
114114 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114116         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114117         Initialize pkgdata_DATA.
114118         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
114119         overriding it.
114121 2006-08-06  Eric Blake  <ebb9@byu.net>
114123         * lib/error.h: Fold in some upstream changes from glibc.
114124         * lib/error.c: Likewise.
114126 2006-08-04  Bruno Haible  <bruno@clisp.org>
114128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114129         Make the mostlyclean-local rule depend on mostlyclean-generic.
114130         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
114132 2006-07-31  Bruno Haible  <bruno@clisp.org>
114134         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
114135         <stdlib.h>, <string.h>.
114137 2006-07-30  Bruno Haible  <bruno@clisp.org>
114139         * modules/readlink (License): Change to LGPL.
114141 2006-07-30  Bruno Haible  <bruno@clisp.org>
114143         * modules/javaversion (Makefile.am): Distribute javaversion.java and
114144         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
114145         set PKGDATADIR to point to it.
114147 2006-07-30  Bruno Haible  <bruno@clisp.org>
114149         * modules/csharpexec (configure.ac): Comment out macro invocation.
114150         * modules/javaexec (configure.ac): Likewise.
114151         * modules/javacomp-script (configure.ac): Likewise.
114153         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
114155 2006-07-30  Bruno Haible  <bruno@clisp.org>
114157         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
114158         linked-list.
114160 2006-07-30  Bruno Haible  <bruno@clisp.org>
114162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
114164 2006-07-30  Bruno Haible  <bruno@clisp.org>
114166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114167         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
114168         get removed.
114170 2006-07-29  Bruno Haible  <bruno@clisp.org>
114172         Make it possible for gnulib-tool to work with locally modified or
114173         augmented gnulib repositories.
114174         * gnulib-tool (func_usage): Document --local-dir option.
114175         (local_gnulib_dir): New variable.
114176         Handle --local-dir option.
114177         (func_lookup_file): New function.
114178         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
114179         (func_get_description, func_get_filelist, func_get_description,
114180         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
114181         func_get_automake_snippet, func_get_include_directive,
114182         func_get_license, func_get_maintainer): Use func_lookup_file.
114183         (func_import, func_create_testdir): Use func_lookup_file.
114185 2006-07-29  Bruno Haible  <bruno@clisp.org>
114187         * modules/setenv (Depends-on): Add unistd.
114189 2006-07-29  Bruno Haible  <bruno@clisp.org>
114191         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
114193 2006-07-29  Bruno Haible  <bruno@clisp.org>
114195         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
114197 2006-07-29  Bruno Haible  <bruno@clisp.org>
114199         * gnulib-tool (import, update): If there is no Makefile.am, look at
114200         aclocal.m4, instead of bailing out.
114202 2006-07-29  Bruno Haible  <bruno@clisp.org>
114204         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
114205         Categorize the options by when they are useful.
114207 2006-07-29  Bruno Haible  <bruno@clisp.org>
114209         * gnulib-tool (func_usage): Document option --no-libtool.
114210         Handle option --no-libtool.
114211         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
114212         for changed semantics of $libtool variable.
114213         (func_import): Likewise. If libtool is not used, show this through
114214         an option --no-libtool.
114215         (func_create_testdir): Update.
114217 2006-07-29  Bruno Haible  <bruno@clisp.org>
114219         * gnulib-tool (func_import): Extend error message about missing
114220         --doc-base.
114222 2006-07-29  Bruno Haible  <bruno@clisp.org>
114224         * gnulib-tool (func_import): Don't create the $docbase directory if
114225         there is no file to store there.
114227 2006-07-29  Bruno Haible  <bruno@clisp.org>
114229         * gnulib-tool (autoconf_minversion): If a --dir option is given and
114230         relevant, look for configure.ac there, not in the current directory.
114231         Also use a simple search for AC_PREREQ, not "autoconf --trace".
114233 2006-07-29  Bruno Haible  <bruno@clisp.org>
114235         * gnulib-tool (SORT): New variable.
114236         (func_usage): Undocument --assume-autoconf option.
114237         Remove --assume-autoconf option handling.
114238         (autoconf_minversion): Determine from the contents of configure.ac.
114239         (func_import): Remove autoconf_minversion handling.
114240         Suggested by Eric Blake.
114242 2006-07-29  Bruno Haible  <bruno@clisp.org>
114244         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
114246 2006-07-29  Bruno Haible  <bruno@clisp.org>
114248         * config/srclist.txt (*setenv.[ch]): Remove rules.
114250 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114252         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114254 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114256         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114257         arpa/inet.h.
114259 2006-07-28  Simon Josefsson  <jas@extundo.com>
114261         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114262         * modules/inet_pton (Depends-on): Likewise.
114264 2006-07-28  Simon Josefsson  <jas@extundo.com>
114266         * m4/netinet_in_h.m4: New file.
114268 2006-07-28  Simon Josefsson  <jas@extundo.com>
114270         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114271         #include's.
114273 2006-07-28  Simon Josefsson  <jas@extundo.com>
114275         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114276         #include's.
114278 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114280         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114281         setgid on directories only if they set these bits.
114282         * lib/modechange.h: Remove obsolete comment about masks.
114284 2006-07-28  Eric Blake  <ebb9@byu.net>
114286         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114287         macro expansion.
114289 2006-07-28  Bruno Haible  <bruno@clisp.org>
114291         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114293 2006-07-28  Bruno Haible  <bruno@clisp.org>
114295         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114297 2006-07-28  Bruno Haible  <bruno@clisp.org>
114299         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114300         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114301         Define fallbacks.
114302         Avoids link error on FreeBSD 4.x.
114303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114305         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114306         encoding.
114307         * lib/mbswidth.c (iswcntrl): Likewise.
114309 2006-07-27  Bruno Haible  <bruno@clisp.org>
114311         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114312         test.
114314 2006-07-27  Bruno Haible  <bruno@clisp.org>
114316         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114317         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114318         defined.
114320 2006-07-26  Eric Blake  <ebb9@byu.net>
114322         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114324 2006-07-26  Eric Blake  <ebb9@byu.net>
114326         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114327         like mingw that lack mkstemp.
114328         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114329         avoid compilation warning on mingw.
114331 2006-07-26  Bruno Haible  <bruno@clisp.org>
114333         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114334         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114335         INT_FAST*_MIN, INTPTR_MIN.
114337 2006-07-25  Bruno Haible  <bruno@clisp.org>
114339         * modules/version-etc (Depends-on): Add stdarg.
114341 2006-07-25  Bruno Haible  <bruno@clisp.org>
114343         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114344         complex commands.
114346 2006-07-25  Bruno Haible  <bruno@clisp.org>
114348         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114349         defined in <stdarg.h> or config.h.
114351 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114353         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114354         (gl_STDIO_SAFER): Remove.
114356 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114358         * MODULES.html.sh (File stream based Input/Output):
114359         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114360         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114361         * modules/fopen-safer, modules/tmpfile-safer: New files.
114362         * modules/stdio-safer: Remove.
114364 2006-07-24  Bruno Haible  <bruno@clisp.org>
114366         * modules/tmpdir: New file.
114367         * MODULES.html.sh (File system functions): Add it.
114369 2006-07-24  Bruno Haible  <bruno@clisp.org>
114371         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114372         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114374 2006-07-24  Bruno Haible  <bruno@clisp.org>
114376         * modules/clean-temp: New file.
114378 2006-07-24  Bruno Haible  <bruno@clisp.org>
114380         * m4/tmpdir.m4: New file, from GNU gettext.
114382 2006-07-24  Bruno Haible  <bruno@clisp.org>
114384         * lib/tmpdir.h: New file, from GNU gettext.
114385         * lib/tmpdir.c: New file, from GNU gettext.
114387 2006-07-24  Bruno Haible  <bruno@clisp.org>
114389         * lib/clean-temp.h: New file, from GNU gettext.
114390         * lib/clean-temp.c: New file, from GNU gettext.
114392 2006-07-23  Eric Blake  <ebb9@byu.net>
114394         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114395         (Depends-on): Add binary-io.
114397 2006-07-23  Eric Blake  <ebb9@byu.net>
114399         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114401 2006-07-23  Eric Blake  <ebb9@byu.net>
114403         * lib/tmpfile-safer.c: New file.
114404         * lib/stdio-safer.h (fopen_safer): Add prototype.
114405         * lib/stdio--.h (tmpfile): Make safer.
114407 2006-07-23  Bruno Haible  <bruno@clisp.org>
114409         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114410         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114411         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114412         gl_linked_remove_at): Use it.
114414 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114415         and Simon Josefsson <jas@extundo.com>
114417         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114419         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114421 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114423         * modules/close-stream: New file.
114424         * modules/closeout (Description): Make it clear that it exits
114425         with a diagnostic on error.
114426         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114427         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114429 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114431         * m4/close-stream.m4: New file.
114433 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114435         * lib/close-stream.c, lib/close-stream.h: New files.
114437 2006-07-22  Bruno Haible  <bruno@clisp.org>
114439         Merge from GNU gettext 0.15.
114441         2006-05-01  Bruno Haible  <bruno@clisp.org>
114443                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114445         2006-07-22  Bruno Haible  <bruno@clisp.org>
114447                 * modules/javaversion: New file.
114448                 * MODULES.html.sh (Java): Add javaversion.
114450         2006-03-12  Bruno Haible  <bruno@clisp.org>
114452                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114454         2005-12-04  Bruno Haible  <bruno@clisp.org>
114456                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114457                 (untested).
114459         2006-06-21  Bruno Haible  <bruno@clisp.org>
114461                 Avoid warnings from recent versions of mcs.
114462                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114463                 -o, -L, -r any more. Use options documented since mcs-1.0
114464                 instead. Similarly for -g.
114466         2005-12-04  Bruno Haible  <bruno@clisp.org>
114468                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114469                 .resources, not .resource.
114471         2005-07-09  Bruno Haible  <bruno@clisp.org>
114473                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114474                 add a .dll suffix.
114475                 Reported by Mark Junker <mjscod@gmx.de>.
114477         2006-07-22  Bruno Haible  <bruno@clisp.org>
114479                 * modules/gettext: Upgrade to gettext-0.15.
114480                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114481                 m4/visibility.m4.
114482                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114484 2006-07-22  Bruno Haible  <bruno@clisp.org>
114486         Merge from GNU gettext 0.15.
114488         2006-03-25  Bruno Haible  <bruno@clisp.org>
114490                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114492         2006-07-21  Bruno Haible  <bruno@clisp.org>
114494                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114495                 "1.1".
114497         2006-05-09  Bruno Haible  <bruno@clisp.org>
114499                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114500                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114501                 for the conftestver execution.
114503         2006-05-01  Bruno Haible  <bruno@clisp.org>
114505                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114506                 optional target-version argument. Verify that the compiler
114507                 groks source of the specified source-version, or add -source
114508                 option as necessary. Verify that the compiler produces
114509                 bytecode in the specified target-version, or add -target and
114510                 -source options as necessary. Make the result of the test
114511                 available as variable CONF_JAVAC. Also log error output in
114512                 config.log.
114514         2006-03-11  Bruno Haible  <bruno@clisp.org>
114516                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114518         2006-05-09  Bruno Haible  <bruno@clisp.org>
114520                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114521                 CLASSPATH_SEPARATOR to a semicolon.
114523         2006-03-12  Bruno Haible  <bruno@clisp.org>
114525                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114526                 available as variable CONF_JAVA, for subsequent autoconf
114527                 tests. Also log error output in config.log.
114529         2006-07-19  Bruno Haible  <bruno@clisp.org>
114531                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114532                 that getline works on glibc2 systems. Needed to avoid trouble
114533                 in relocatable.c.
114534                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114536         2005-12-04  Bruno Haible  <bruno@clisp.org>
114538                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114539                 launcher (untested).
114541         2005-12-04  Bruno Haible  <bruno@clisp.org>
114543                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114545         2006-07-22  Bruno Haible  <bruno@clisp.org>
114547                 * gettext.m4: Update from GNU gettext-0.15.
114548                 * nls.m4: Likewise.
114549                 * po.m4: Likewise.
114550                 * inttypes-pri.m4: Likewise.
114551                 * inttypes-h.m4: Renamed from inttypes.m4.
114552                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114554 2006-07-22  Bruno Haible  <bruno@clisp.org>
114556         Merge from GNU gettext 0.15.
114558         2005-07-05  Bruno Haible  <bruno@clisp.org>
114560                 * printf-args.c (printf_fetchargs): Work around broken
114561                 definition of wint_t on mingw.
114563         2005-02-12  Bruno Haible  <bruno@clisp.org>
114565                 * xallocsa.h: Add extern "C" for C++.
114567         2006-05-17  Bruno Haible  <bruno@clisp.org>
114569                 Cygwin portability.
114570                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114572         2006-04-30  Bruno Haible  <bruno@clisp.org>
114574                 * progreloc.c: Include <mach-o/dyld.h> if available.
114575                 (find_executable): Use _NSGetExecutablePath when possible.
114577         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114579                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114580                 function.
114582         2005-12-29  Bruno Haible  <bruno@clisp.org>
114584                 * progreloc.c (set_program_name_and_installdir): Fix
114585                 compilation error.
114587         2005-12-04  Bruno Haible  <bruno@clisp.org>
114589                 Cygwin portability.
114590                 * progreloc.c: Include <windows.h> also on Cygwin.
114591                 (find_executable): Add support for Cygwin.
114592                 (set_program_name_and_installdir): Handle also platforms with
114593                 nonempty EXEEXT.
114595         2006-07-11  Bruno Haible  <bruno@clisp.org>
114597                 * javacomp.c: Fix a comment.
114598                 Reported by Jim Meyering.
114600         2006-04-30  Bruno Haible  <bruno@clisp.org>
114602                 * javacomp.h (compile_java_class): Add source_version,
114603                 target_version arguments.
114604                 * javacomp.c: Rewritten to choose only a compiler that
114605                 respects the specified source_version and target_version.
114607         2006-06-27  Bruno Haible  <bruno@clisp.org>
114609                 Assume correct S_ISDIR macro.
114610                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114612         2006-07-22  Bruno Haible  <bruno@clisp.org>
114614                 * javaversion.h: New file, from GNU gettext.
114615                 * javaversion.c: New file, from GNU gettext.
114616                 * javaversion.java: New file, from GNU gettext.
114617                 * javaversion.class: New file, from GNU gettext.
114619         2006-05-17  Bruno Haible  <bruno@clisp.org>
114621                 Cygwin portability.
114622                 * javaexec.c (execute_java_class): Test for jview program
114623                 also on Cygwin.
114625         2006-04-09  Bruno Haible  <bruno@clisp.org>
114627                 * fatal-signal.c: Don't include string.h.
114628                 (at_fatal_signal): Use a copying loop instead of memcpy.
114630         2005-12-04  Bruno Haible  <bruno@clisp.org>
114632                 * csharpexec.c: Add support for 'clix' launcher (untested).
114633                 (execute_csharp_using_sscli): New function.
114634                 (execute_csharp_program): Call it.
114636         2006-06-21  Bruno Haible  <bruno@clisp.org>
114638                 Avoid warnings from recent versions of mcs.
114639                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114640                 -o, -L, -r any more. Use options documented since mcs-1.0
114641                 instead. Similarly for -g.
114643         2005-07-09  Bruno Haible  <bruno@clisp.org>
114645                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114646                 add a .dll suffix.
114647                 Reported by Mark Junker <mjscod@gmx.de>.
114649         2006-06-17  Bruno Haible  <bruno@clisp.org>
114651                 * config.charset: Update for NetBSD 3.0.
114653         2006-05-17  Bruno Haible  <bruno@clisp.org>
114655                 Cygwin portability.
114656                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114658         2006-05-16  Bruno Haible  <bruno@clisp.org>
114660                 * localcharset.c [CYGWIN]: Include <windows.h>.
114661                 (get_charset_aliases): For Cygwin, return the same CPxxx
114662                 aliases list as under WIN32.
114663                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114664                 the environment variables. Fall back to GetACP().
114666         2006-04-05  Bruno Haible  <bruno@clisp.org>
114668                 * config.charset: Update Juan Manuel Guerrero's address.
114670         2005-02-12  Bruno Haible  <bruno@clisp.org>
114672                 * allocsa.h: Add extern "C" for C++.
114674         2005-02-10  Bruno Haible  <bruno@clisp.org>
114676                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114677                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114679         2006-07-22  Bruno Haible  <bruno@clisp.org>
114681                 * gettext.h: Update to GNU gettext-0.15.
114683 2006-07-22  Bruno Haible  <bruno@clisp.org>
114685         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114686         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114687         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114689 2006-07-21  Eric Blake  <ebb9@byu.net>
114691         * modules/stdlib-safer: New file.
114692         * MODULES.html.sh (File stream based Input/Output): Add
114693         stdlib-safer.
114695 2006-07-21  Eric Blake  <ebb9@byu.net>
114697         * lib/stdlib-safer.h: New file from coreutils, required by
114698         stdlib--.h.
114700 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114702         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114704 2006-07-20  Bruno Haible  <bruno@clisp.org>
114706         * gnulib-tool: Recognize new option --assume-autoconf.
114707         (autoconf_minversion): New variable.
114708         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114710 2006-07-20  Bruno Haible  <bruno@clisp.org>
114712         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114714 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114716         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114717         Reindent and repaginate.
114719 2006-07-19  Derek Price  <derek@ximbiot.com>
114721         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114722         Correct grammar.
114724 2006-07-17  Bruno Haible  <bruno@clisp.org>
114726         * modules/list: New file.
114727         * modules/array-list: New file.
114728         * modules/carray-list, modules/carray-list-tests: New files.
114729         * modules/linked-list, modules/linked-list-tests: New files.
114730         * modules/avltree-list, modules/avltree-list-tests: New files.
114731         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114732         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114733         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114734         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114735         * modules/oset: New file.
114736         * modules/array-oset: New file.
114737         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114738         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114739         * tests/test-carray_list.c: New file.
114740         * tests/test-linked_list.c: New file.
114741         * tests/test-avltree_list.c: New file.
114742         * tests/test-rbtree_list.c: New file.
114743         * tests/test-linkedhash_list.c: New file.
114744         * tests/test-avltreehash_list.c: New file.
114745         * tests/test-rbtreehash_list.c: New file.
114746         * tests/test-avltree_oset.c: New file.
114747         * tests/test-rbtree_oset.c: New file.
114748         * MODULES.html.sh (Container data structures): New section.
114750 2006-07-17  Bruno Haible  <bruno@clisp.org>
114752         * m4/gl_list.m4: New file.
114754 2006-07-17  Bruno Haible  <bruno@clisp.org>
114756         * lib/gl_list.h: New file.
114757         * lib/gl_list.c: New file.
114758         * lib/gl_array_list.h: New file.
114759         * lib/gl_array_list.c: New file.
114760         * lib/gl_carray_list.h: New file.
114761         * lib/gl_carray_list.c: New file.
114762         * lib/gl_linked_list.h: New file.
114763         * lib/gl_linked_list.c: New file.
114764         * lib/gl_anylinked_list1.h: New file.
114765         * lib/gl_anylinked_list2.h: New file.
114766         * lib/gl_avltree_list.h: New file.
114767         * lib/gl_avltree_list.c: New file.
114768         * lib/gl_anyavltree_list1.h: New file.
114769         * lib/gl_anyavltree_list2.h: New file.
114770         * lib/gl_rbtree_list.h: New file.
114771         * lib/gl_rbtree_list.c: New file.
114772         * lib/gl_anyrbtree_list1.h: New file.
114773         * lib/gl_anyrbtree_list2.h: New file.
114774         * lib/gl_anytree_list1.h: New file.
114775         * lib/gl_anytree_list2.h: New file.
114776         * lib/gl_linkedhash_list.h: New file.
114777         * lib/gl_linkedhash_list.c: New file.
114778         * lib/gl_anyhash_list1.h: New file.
114779         * lib/gl_anyhash_list2.h: New file.
114780         * lib/gl_avltreehash_list.h: New file.
114781         * lib/gl_avltreehash_list.c: New file.
114782         * lib/gl_rbtreehash_list.h: New file.
114783         * lib/gl_rbtreehash_list.c: New file.
114784         * lib/gl_anytreehash_list1.h: New file.
114785         * lib/gl_anytreehash_list2.h: New file.
114787         * lib/gl_oset.h: New file.
114788         * lib/gl_oset.c: New file.
114789         * lib/gl_array_oset.h: New file.
114790         * lib/gl_array_oset.c: New file.
114791         * lib/gl_avltree_oset.h: New file.
114792         * lib/gl_avltree_oset.c: New file.
114793         * lib/gl_rbtree_oset.h: New file.
114794         * lib/gl_rbtree_oset.c: New file.
114795         * lib/gl_anytree_oset.h: New file.
114797 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114799         * m4/mkancesdirs.m4: New file.
114800         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114801         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114802         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114803         it.
114805 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114807         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114808         * lib/mkancesdirs.h: New files.
114809         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114810         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114811         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114812         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114813         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114814         callers changed.  Revamp internals significantly, by not
114815         attempting to create directories that are temporarily more
114816         permissive than the final results.  Do not attempt to use
114817         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114818         This removes some race conditions, fixes some bugs, and simplifies
114819         things.  Use new dirchownmod function to do owner and mode changes.
114820         * lib/mkdir-p.h: Likewise.
114821         * lib/modechange.c (octal_to_mode): New function.
114822         (struct mode_change): New member mentioned.
114823         (make_node_op_equals): New arg mentioned.  All callers changed.
114824         (mode_compile): Keep track of which mode bits the user has explicitly
114825         mentioned.
114826         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114827         New arg PMODE_BITS, to keep track of which mode bits the user
114828         mentioned; it treats S_ISUID and S_ISGID speciall.
114829         All callers changed.
114830         * lib/modechange.h: Likewise.
114832 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114834         * MODULES.html.sh: Add mkancestors.
114835         * modules/mkancesdirs: New module.
114836         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114837         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114838         The chdir-safer and afs files are now orphans; I'll remove them
114839         unless someone speaks up.
114840         Add lib/dirchownmod.c, lib/dirchownmod.h.
114841         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114842         Add lchown, mkancesdirs.
114843         (Maintainer): Add self.
114845 2006-07-15  Karl Berry  <karl@gnu.org>
114847         * gnulib-tool: help message wording/arrangement.
114849 2006-07-14  Simon Josefsson  <jas@extundo.com>
114851         * doc/gnulib.texi (Libtool and Windows): New section.
114853 2006-07-12  Simon Josefsson  <jas@extundo.com>
114855         * modules/gendocs (License): Fix license, approved by Karl.
114857 2006-07-12  Eric Blake  <ebb9@byu.net>
114859         * MODULES.html.sh: Add gendocs.
114861 2006-07-11  Eric Blake  <ebb9@byu.net>
114863         * modules/fdl: New module, to install doc/fdl.texi.
114864         * MODULES.html.sh: Add new section for documentation modules.
114865         * gnulib-tool: Avoid space-tab.
114866         (--doc-base): New option, to manage files from doc.
114868 2006-07-11  Eric Blake  <ebb9@byu.net>
114870         * m4/absolute-header.m4: Fix comments to match recent change.
114872 2006-07-11  Eric Blake  <ebb9@byu.net>
114874         * gnulib-tool: List --doc-base before --tests-base.
114876 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114878         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114880 2006-07-11  Bruno Haible  <bruno@clisp.org>
114882         * README: Mention where to put documentation.
114884 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114886         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114888 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114890         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114891         to stdint.m4.
114893 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114895         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114896         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114897         "no/such/file/stdint.h" when there is no such file, so that
114898         the resulting C code can be parsed by dodgy compilers.
114899         Problems reported by Bob Proulx.
114901 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114903         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114904         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114905         macros into the GNU _D_EXACT_NAMLEN.
114906         * lib/savedir.c:  Likewise.
114907         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114909 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114910         and Paul Eggert  <eggert@cs.ucla.edu>
114912         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114913         * m4/savedir.m4:
114914         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114915         macros into the GNU _D_EXACT_NAMLEN.
114917 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114919         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114920         around the absolute name, to work around a problem with the HP-UX
114921         11.23 native C compiler, reported by Bob Proulx.
114923 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114925         * doc/maintain.texi, make-stds.texi: Sync from
114926         <http://savannah.gnu.org/projects/gnustandards>.
114928 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114930         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114932 2006-07-09  Jim Meyering  <jim@meyering.net>
114934         * m4/glob.m4: Remove a doubled word in a comment.
114936 2006-07-09  Jim Meyering  <jim@meyering.net>
114938         * lib/argp-pv.c: Remove a doubled word in a comment.
114939         * lib/check-version.c (check_version): Likewise.
114940         * lib/javacomp.c (compile_java_class): Likewise.
114942 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114944         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114945         for the benefit of people using Autoconf 2.60.  If you want to
114946         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114947         (or m4/onceonly.m4, if pre-2.57) manually.
114949 2006-07-08  Jim Meyering  <jim@meyering.net>
114951         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114952         comment.
114953         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114954         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114955         comment.
114957 2006-07-08  Jim Meyering  <jim@meyering.net>
114959         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114961 2006-07-07  Simon Josefsson  <jas@extundo.com>
114963         * tests/test-crc.c: Change expected crc value, the test vector
114964         were probably computed using the old broken crc.c?
114966 2006-07-06  Simon Josefsson  <jas@extundo.com>
114968         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114969         now the canonical place for the M4 file).
114971         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114972         from the sys_socket dependency now.
114974         * modules/inet_pton (Files): Ditto.
114976         * modules/inet_ntop (Files): Ditto.
114978 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114980         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114981         not gl_PREREQ_GETUSERSHELL.
114983 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114985         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114986         with only one argument, for Autoconf 2.60.
114987         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114988         expand to nothing, so add a shell command to avoid syntax error.
114989         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114991 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114993         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114995 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114997         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114998         no longer needed.  Check for isblank decl.
114999         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
115000         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
115001         of existence.
115003 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115005         * lib/getloadavg.c: Use __VMS, not VMS.
115006         * lib/getopt.c: Likewise.
115007         * lib/getpagesize.h: Likewise.
115008         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
115009         and probably does not work.
115011 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
115013         * lib/.cppi-disable: Add wcwidth.
115014         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
115015         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
115016         (ISGRAPH): Remove.  All uses changed to isgraph.
115017         (FOLD) [!defined _LIBC]: Remove special case.
115018         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
115019         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
115020         HAVE_ISBLANK.
115021         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
115022         case.
115024 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115026         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
115027         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
115028         brackets.  Other minor changes to suppress some compiler
115029         warnings.
115031 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115032         and Paul Eggert  <eggert@cs.ucla.edu>
115034         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
115035         of invoking obsolescent AC_HEADER_DIRENT macro.
115036         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
115037         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
115038         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
115039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
115040         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
115041         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115042         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
115043         * m4/readdir.m4: Remove; no longer needed.
115045 2006-07-06  Derek R. Price  <derek@ximbiot.com>
115046         and Paul Eggert  <eggert@cs.ucla.edu>
115048         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
115049         Don't worry about this obsolete case any more.
115050         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
115051         directories.
115052         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
115053         worry about this obsolete case any more.
115054         * lib/fts.c: Likewise.
115055         * lib/getcwd.c: Likewise.
115056         * lib/glob.h: Likewise.
115057         * lib/savedir.c: Likewise.
115059 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115061         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
115062         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
115063         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
115064         needed.
115065         All uses removed.
115066         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115067         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115068         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
115069         needed.
115070         * m4/getdate.m4 (gl_GETDATE): Likewise.
115071         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115072         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115073         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115074         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115075         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
115076         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115077         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
115078         needed.
115080 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
115082         * lib/memcasecmp.c: Include <limits.h>.
115083         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
115084         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
115085         Don't assume isdigit succeeds only on '0' through '9'.
115087 2006-07-05  Eric Blake  <ebb9@byu.net>
115089         * modules/getaddrinfo (Depends-on): Add snprintf.
115091 2006-07-05  Eric Blake  <ebb9@byu.net>
115093         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
115094         to avoid 'header present but could not be compiled' on cygwin.
115096 2006-07-05  Eric Blake  <ebb9@byu.net>
115098         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
115099         missing from netdb.h.
115100         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
115102 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115104         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
115105         no longer needed.
115106         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
115107         * m4/getdate.m4 (gl_GETDATE): Likewise.
115108         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
115109         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
115110         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
115111         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
115112         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
115114 2006-07-05  Derek R. Price  <derek@ximbiot.com>
115116         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
115117         All uses of is_space replaced by isspace.
115118         * lib/exit.h: Don't talk about STDC_HEADERS.
115119         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
115120         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
115121         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
115122         replaced by isprint etc.
115123         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
115124         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115125         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
115126         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
115127         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
115128         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
115130 2006-07-05  Bruno Haible  <bruno@clisp.org>
115132         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
115133         the function exists, before testing against AIX.
115134         Reported by Martin Lambers <marlam@marlam.de>.
115136 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115138         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
115139         From Mark D. Baushke.
115141 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
115143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
115144         to the absolute name, not just one, to bypass Sun C 5.8's
115145         "warning: #include of /usr/include/... may be non-portable".
115147 2006-07-04  Eric Blake  <ebb9@byu.net>
115149         * modules/dirname-tests: New test module.
115150         * tests/test-dirname.c: New file, replacing dirname.c
115151         TEST_DIRNAME section that was recently deleted.
115153 2006-07-04  Bruno Haible  <bruno@clisp.org>
115155         Assume ANSI C header files and <ctype.h> functions.
115156         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
115157         (mbsnwidth): Use isprint, iscntrl instead.
115159 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115161         Merge from coreutils.
115162         * MODULES.html.sh: Add xstrtold.
115163         * modules/xstrtold: New file.
115164         * modules/cycle-check (Files): Add lib/same-inode.h.
115165         * modules/dirname (Files): Add m4/double-slash-root.m4.
115166         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
115167         * modules/mkdir-p (Files): Add lib/same-inode.h.
115168         * modules/same (Files): Add lib/same-inode.h.
115170 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115172         * m4/absolute-header.m4: Renamed from full-header-path.m4.
115173         This is to keep the terminology clean; POSIX talks about
115174         "absolute pathnames", not "full pathnames", but the GNU
115175         Coding Standards say to use "path" for something else;
115176         so use "absolute" to keep both sides happy.
115177         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
115178         Set gl_absolute_header, not gl_full_header_path.
115179         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
115180         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
115181         All uses changed.
115183         Merge from coreutils.
115185         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115187         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
115188         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
115189         want to require the building of c-strtod.o.
115190         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
115191         needs -lm directly.
115192         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
115194         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115196         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
115197         --as-needed option if available.  Problem reported by Albert Chin in
115198         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
115199         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
115200         cc merely issues a bunch of annoying warnings for --as-needed
115201         (this problem was reported by Bob Proulx).  Also, try linking with
115202         -lm to detect a bug in binutils 2.16 (this problem was reported
115203         by Ralf Wildenhues).
115205         2006-06-18  Jim Meyering  <jim@meyering.net>
115207         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
115208         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
115209         macro.
115210         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
115211         also check for glibc-2.4's abort-inducing bug.
115213         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
115214         Low-probability clean-up should be to use rmdir to get rid of
115215         the just-created directory, not unlink.
115217         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
115218         configure fail, and request a bug report to inform us about it.
115219         Add a comment that, barring reports to the contrary, in 2007 we'll
115220         assume ftruncate is universally available.
115222         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115224         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
115226         2006-03-12  Jim Meyering  <jim@meyering.net>
115228         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
115229         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
115230         * m4/same.m4 (gl_SAME): Likewise.
115231         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
115233         2006-03-11  Eric Blake  <ebb9@byu.net>
115235         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
115236         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
115237         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
115238         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
115240 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
115242         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
115243         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
115244         reported by Mark D. Baushke, one in
115245         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
115247         Merge from coreutils.
115249         * lib/.cppi-disable: Add stdint_.h.
115250         * lib/.cvsignore: Add stdint.h.
115252         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115254         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115255         both double and long double versions.
115256         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115257         * lib/xstrtold.c: New file.
115258         * lib/xstrtod.h (xstrtold): New decl.
115260         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115262         * lib/filemode.c (setst): Remove.
115263         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115264         (arguably) clearer, and the generated code is a bit smaller on my
115265         Debian GNU/Linux stable x86 host.
115267         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115269         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115270         Assume that filemode.h includes sys/types.h and sys/stat.h.
115271         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115272         (ftypelet): Reorder to put common cases first, for efficiency.
115273         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115274         to do 'M'.
115275         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115276         of 10, for compatibility with FreeBSD.  All callers changed.
115277         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115278         types that can't be deduced solely from st_mode.  First arg is now a
115279         const pointer.
115280         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115281         (strmode): Renamed from mode_string.
115282         (filemodestring): New decl.
115283         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115284         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115285         needed.
115286         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115288         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115290         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115291         fsusage.h now does that.  Include fsusage.h first, to test interface.
115292         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115293         at most one method (the old code could have generated decls that
115294         didn't conform to C89, not that this was ever exercised).
115295         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115297         2006-03-19  Jim Meyering  <jim@meyering.net>
115299         Work even in a chroot where d_ino values for entries in "/"
115300         don't match the stat.st_ino values for the same names.
115301         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115302         number, iterate through all entries again, using lstat instead.
115303         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115304         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115306         * lib/getcwd.c (__getcwd): Clarify a comment.
115307         Use memcpy in place of a call to strcpy.
115309         2006-03-12  Jim Meyering  <jim@meyering.net>
115311         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115312         matches that of the current directory (which we're about to chdir ".."
115313         out of), then save the dev-ino of the parent, instead.
115315         * lib/same-inode.h (SAME_INODE): New file/macro.
115316         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115317         Include "same-inode.h", instead.
115318         * lib/same.c: Likewise.
115319         * lib/cycle-check.h: Include "same-inode.h".
115320         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115321         * lib/cycle-check.c (SAME_INODE): Remove definition.
115322         * lib/root-dev-ino.h: Include "same-inode.h".
115324         2006-03-11  Eric Blake  <ebb9@byu.net>
115326         * lib/same.c (same_name): s/base_name/last_component/
115327         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115328         * lib/filenamecat.c (file_name_concat): Likewise.
115330         2006-03-11  Eric Blake  <ebb9@byu.net>,
115331                     Paul Eggert  <eggert@cs.ucla.edu>
115333         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115334         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115335         drive prefix.
115336         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115337         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115338         (last_component): New method.
115339         * lib/dirname.c (dir_len): Determine when drive letters need a
115340         subsequent slash.  Preserve // when it is special.
115341         (dir_name): Don't append dot when drive letter is absolute.
115342         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115343         * lib/basename.c (base_name): New semantics - malloc the result.
115344         Preserve // when it is special.  Preserve relative files that look
115345         like drive letters.
115346         (base_len): Preserve // when it is special.
115347         (last_component): New method, similar to old base_name semantics.
115348         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115349         base_name.  Strip redundant slashes from ///.
115351 2006-07-03  Jim Meyering  <jim@meyering.net>
115353         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115354         macro is used before the first cycle_check call.
115356 2006-07-03  Eric Blake  <ebb9@byu.net>
115358         * modules/dirname (Depends-on): Add xstrndup.
115360 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115362         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115363         test cases, so that config.log is a bit easier to follow.
115365 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115367         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115368         both are 64 bits, since this seems to be the tradition, and this
115369         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115370         we ever run into a host that prefers long long to long in this
115371         case, we'll need another configure-time test.  Problem reported by
115372         Jim Meyering.
115374 2006-07-02  Eric Blake  <ebb9@byu.net>
115376         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115378 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115380         * modules/inttypes (Depends-on): No longer depends on stdint.
115381         * modules/stdint (Description): Say more about assumptions.
115382         Say that the fast types might differ.  Say macros are used.
115383         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115384         (Makefile.am): Revise list of substituted symbols to match
115385         new stdint.m4.
115386         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115387         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115388         * tests/test-stdint.c (verify_same_types)
115389         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115390         the code conforms to C99/C89.
115391         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115392         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115394 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115396         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115397         but fix a bug, by requiring at least 64 bits.
115398         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115399         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115400         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115401         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115403         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115404         changes.  Make 2.59 a prerequisite.  Check and substitute for
115405         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115406         inttypes.h.  Do not use special include files; just use the
115407         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115408         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115409         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115410         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115411         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115412         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115413         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115414         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115415         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115416         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115417         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115418         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115419         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115420         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115421         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115422         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115423         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115424         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115425         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115426         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115427         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115428         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115429         not check for things that C99 does not require, e.g., int8_t.  If
115430         a test isn't needed unless <stdint.h> isn't working, and is
115431         unlikely to be needed for any other reason, then don't do it
115432         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115433         size_t, since we assume C89 freestanding at least.  Do not check
115434         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115435         the right thing even if the types are not defined.  Instead use:
115436         (gl_STDINT_TYPE_PROPERTIES): New macro.
115437         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115438         testing whether <sys/types.h> clashes, as Autoconf does this for
115439         us now.  All uses removed.
115440         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115441         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115442         (gl_CHECK_TYPE_SAME):
115443         Remove; no longer needed.
115444         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115445         exists, since we'll return 0 anyway in that case.
115446         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115448 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115450         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115451         possible collision with system files.
115452         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115453         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115454         WCHAR_MIN and WCHAR_MAX in this case.
115455         (<stddef.h>): Do not include; no longer needed.
115456         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115457         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115458         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115459         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115460         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115461         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115462         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115463         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115464         !defined(__c99))]: Include in this case too, since it's harmless
115465         now.
115466         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115467         dangerous to do so.
115468         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115469         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115470         (_STDINT_MIN, _STDINT_MAX): New macros.
115471         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115472         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115473         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115474         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115475         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115476         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115477         macros, not typedefs; this simplifies things quite a bit.
115478         Use long int for all types narrower than int64_t.
115479         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115480         Define in terms of long long int or int64_t or long int,
115481         not int64_t or int32_t.  This saves some compile-time testing.
115482         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115483         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115484         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115485         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115486         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115487         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115488         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115489         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115490         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115491         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115492         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115493         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115494         undef any previous version and define our own version, for
115495         simplicity and consistency with the new macros for types.
115496         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115497         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115498         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115499         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115500         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115501         @WINT_T_SUFFIX@ to keep things simple here.
115502         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115503         Simplify by assuming typical 8/16/32/64 host, since we're
115504         already doing that elsewhere anyway.
115505         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115506         and assume long long int is 64 bits if available.  This
115507         speeds up 'configure'.
115509 2006-07-01  Eric Blake  <ebb9@byu.net>
115511         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115512         Reported by Andreas Buening.
115514 2006-07-01  Eric Blake  <ebb9@byu.net>
115516         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115518 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115520         * lib/getaddrinfo.c: fixed typo
115522 2006-06-29  Jim Meyering  <jim@meyering.net>
115524         * modules/strftime (Maintainer): Add my name, since with the
115525         FPRINTFTIME changes strftime.c has forked from glibc.
115527 2006-06-29  Eric Blake  <ebb9@byu.net>
115529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115531 2006-06-29  Eric Blake  <ebb9@byu.net>
115533         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115535 2006-06-29  Eric Blake  <ebb9@byu.net>
115537         * lib/stat_.h: New file.
115539 2006-06-29  Eric Blake  <ebb9@byu.net>
115541         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115542         unused static function.
115544 2006-06-29  Eric Blake  <ebb9@byu.net>
115546         * doc/functions.texi (Function Portability): Document missing lstat
115547         on mingw.
115549 2006-06-29  Eric Blake  <ebb9@byu.net>
115551         * MODULES.html.sh: Add sys_stat.
115552         * modules/sys_stat: New module.
115553         * modules/mkstemp (Depends-on): Add sys_stat.
115555 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115557         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115559 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115561         * m4/c-bs-a.m4: Removed.
115563 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115565         * lib/strftime.c: Assume strftime() exists.
115567 2006-06-29  Derek Price  <derek@ximbiot.com>
115569         * modules/c-bs-a: Removed - \a is C89.
115570         * MODULES.html.sh: Remove c-bs-a.
115572 2006-06-29  Bruno Haible  <bruno@clisp.org>
115574         * modules/wcwidth (License): Change to LGPL.
115576 2006-06-28  Simon Josefsson  <jas@extundo.com>
115578         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115579         on _WIN32.
115581         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115582         getnameinfo.
115584 2006-06-28  Simon Josefsson  <jas@extundo.com>
115586         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115588 2006-06-28  Simon Josefsson  <jas@extundo.com>
115590         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115591         functions there.  It will succeed on Windows XP, but on Windows
115592         2000 and (presumably) earlier, it will fail, and use the internal
115593         re-implementation.
115594         (use_win32_p): New function.
115595         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115596         Support AI_NUMERICSERV to disable getservbyname.
115597         (getnameinfo): New function, only supports
115598         NI_NUMERICHOST|NI_NUMERICSERV for now.
115600         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115601         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115602         getnameinfo.
115604 2006-06-28  Eric Blake  <ebb9@byu.net>
115606         * modules/wcwidth: New file.
115607         * modules/mbchar (Depends-on): Add wcwidth.
115608         * modules/mbswidth (Depends-on): Add wcwidth.
115609         * MODULES.html.sh: Add wcwidth.
115611 2006-06-28  Eric Blake  <ebb9@byu.net>
115613         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115614         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115616 2006-06-28  Eric Blake  <ebb9@byu.net>
115618         * lib/xvasprintf.h: Fix comments.
115620 2006-06-28  Eric Blake  <ebb9@byu.net>
115622         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115623         * lib/mbswidth.c (wcwidth): Move from here...
115624         * lib/wcwidth.h: ...to this new file.
115626 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115628         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115630         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115631         it's obsolete.
115632         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115634 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115636         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115637         Autoconf 2.60 says this stuff was obsolete.
115639 2006-06-28  Bruno Haible  <bruno@clisp.org>
115641         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115643 2006-06-28  Bruno Haible  <bruno@clisp.org>
115645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115646         gt_TYPE_WCHAR_T.
115648 2006-06-28  Bruno Haible  <bruno@clisp.org>
115650         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115651         declaration for wcwidth.
115652         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115654 2006-06-28  Bruno Haible  <bruno@clisp.org>
115656         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115657         (mkdir): Define using _mkdir.
115659 2006-06-28  Bruno Haible  <bruno@clisp.org>
115661         * lib/getaddrinfo.h: Fix POSIX URL.
115662         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115663         _WIN32.
115664         (use_win32_p): Make static.
115665         (getaddrinfo): Reject service name if it is empty or does not consist
115666         solely of decimal digits, or if its value is > 65535.
115667         (getnameinfo): Remove useless casts.
115669 2006-06-27  Simon Josefsson  <jas@extundo.com>
115671         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115672         Eggert and Martin Lambers.
115674 2006-06-27  Simon Josefsson  <jas@extundo.com>
115676         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115677         Eggert and Martin Lambers.
115679 2006-06-27  Bruno Haible  <bruno@clisp.org>
115681         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115682         result to 0, not to empty.
115683         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115685 2006-06-27  Bruno Haible  <bruno@clisp.org>
115687         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115689 2006-06-26  Simon Josefsson  <jas@extundo.com>
115691         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115692         present.
115694 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115696         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115697         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115698         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115700 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115702         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115704 2006-06-26  Bruno Haible  <bruno@clisp.org>
115706         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115708 2006-06-26  Bruno Haible  <bruno@clisp.org>
115710         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115712 2006-06-26  Bruno Haible  <bruno@clisp.org>
115714         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115715         SGI C compiler in pre-C99 mode.
115716         Suggested by Mark D. Baushke and Larry Jones.
115718 2006-06-26  Bruno Haible  <bruno@clisp.org>
115720         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115721         WCHAR_MAX.
115722         Reported by Mark D. Baushke and Larry Jones.
115724 2006-06-26  Bruno Haible  <bruno@clisp.org>
115726         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115727         in pre-C99 mode.
115728         Suggested by Mark D. Baushke and Larry Jones.
115730 2006-06-23  Simon Josefsson  <jas@extundo.com>
115731             Bruno Haible  <bruno@clisp.org>
115733         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115734         Emit mostlyclean-local rule.
115735         (func_emit_tests_Makefile_am): Likewise.
115736         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115738 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115740         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115742 2006-06-23  Bruno Haible  <bruno@clisp.org>
115744         * tests/test-stdint.c: Update to match ISO C 99 Technical
115745         Corrigendum 1.
115747 2006-06-23  Bruno Haible  <bruno@clisp.org>
115749         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115751 2006-06-23  Bruno Haible  <bruno@clisp.org>
115753         * lib/stdint_.h: Treat IRIX like OpenBSD.
115755 2006-06-23  Bruno Haible  <bruno@clisp.org>
115757         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115758         ISO C 99 Technical Corrigendum 1.
115760 2006-06-22  Simon Josefsson  <jas@extundo.com>
115762         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115763         MinGW.
115765 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115767         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115768         needed.  Some compiler complained about some of them.  Problem reported
115769         by Larry Jones in
115770         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115772 2006-06-21  Simon Josefsson  <jas@extundo.com>
115774         * tests/test-getaddrinfo.c: New file.
115776         * modules/getaddrinfo-tests: New file.
115778         * MODULES.html.sh: Add inet_pton.
115780         * modules/inet_pton: New file.
115782 2006-06-21  Simon Josefsson  <jas@extundo.com>
115784         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115785         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115786         of using the (limited) gnulib implementation on Windows XP.
115788         * m4/inet_pton.m4: New file.
115790 2006-06-21  Simon Josefsson  <jas@extundo.com>
115792         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115793         variable.
115795         * lib/socket_.h: Don't define WINVER.
115797         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115798         slightly modified to work in gnulib.
115800 2006-06-21  Simon Josefsson  <jas@extundo.com>
115802         * doc/gnulib.texi (Windows sockets): Add.
115804 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115806         * lib/read-file.c (fread_file): Start with buffer allocation of
115807         0 bytes rather than 1 byte; this simplifies the code.
115808         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115809         code to free buffer and save/restore errno.
115810         (internal_read_file): Remove unused local.
115812 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115814         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115815         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115816         Problem reported by Denis Excoffier in
115817         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115819 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115821         * modules/sys_socket, modules/socklen: Include sys/types since
115822         FreeBSD 4.x's sys/socket.h needs it.
115824 2006-06-19  Simon Josefsson  <jas@extundo.com>
115826         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115828 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115830         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115832 2006-06-19  Bruno Haible  <bruno@clisp.org>
115834         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115835         and FULL_PATH_INTTYPES_H in angle brackets.
115836         Reported by Mark D. Baushke <mdb@gnu.org>.
115838 2006-06-17  Eric Blake  <ebb9@byu.net>
115840         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115841         errno.
115843 2006-06-17  Bruno Haible  <bruno@clisp.org>
115845         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115846         <sys/inttypes.h>.
115848 2006-06-17  Bruno Haible  <bruno@clisp.org>
115850         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115851         whether errno is declared. Assume <errno.h> declares errno.
115853 2006-06-17  Bruno Haible  <bruno@clisp.org>
115855         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115857 2006-06-17  Bruno Haible  <bruno@clisp.org>
115859         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115860         problem on Solaris 2.5.1.
115862 2006-06-16  Eric Blake  <ebb9@byu.net>
115864         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115865         * lib/unicodeio.c [!defined errno]: Likewise.
115866         * lib/strtol.c [!defined errno]: Likewise.
115867         * lib/strtod.c [!defined errno]: Likewise.
115869 2006-06-15  Eric Blake  <ebb9@byu.net>
115871         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115873 2006-06-15  Eric Blake  <ebb9@byu.net>
115875         * config/srclist.txt (ssize_t.m4): Lose sync.
115877 2006-06-15  Bruno Haible  <bruno@clisp.org>
115879         * modules/stdint (Files): Include m4/full-header-path.m4,
115880         m4/size_max.m4, m4/wchar_t.m4.
115881         (Makefile.am): Many more substitutions.
115882         * modules/stdint-tests: New file.
115883         * tests/test-stdint.c: New file.
115885 2006-06-15  Bruno Haible  <bruno@clisp.org>
115887         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115888         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115889         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115890         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115891         gl_CHECK_TYPE_SAME): New macros.
115893 2006-06-15  Bruno Haible  <bruno@clisp.org>
115895         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115897 2006-06-15  Bruno Haible  <bruno@clisp.org>
115899         * lib/stdint_.h: Rewritten to be fully auto-configured.
115900         Fixes bug on HP-UX/IA64.
115902 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115904         * lib/getdate.y (__attribute__): Don't define if already defined.
115905         Problem reported by Larry Jones.
115906         * lib/utimens.c (__attribute__): Likewise.
115908 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115910         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115911         reported by Andreas Schwab.
115913 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115914             Bruno Haible  <bruno@clisp.org>
115916         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115917         check for the declaration of strnlen and a run test that exposes the
115918         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115919         rpl_strndup.
115921 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115922             Bruno Haible  <bruno@clisp.org>
115924         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115926 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115928         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115929         compile test, for Tru64 4.0D.
115931 2006-05-28  Karl Berry  <karl@gnu.org>
115933         * config/srclist.txt (printf-args.c): lose sync.
115935 2006-05-26  Martin Lambers  <marlam@marlam.de>
115937         * lib/getpass.c: Updates the test for the native W32 API, and adds
115938         missing includes, thus fixing compilation warnings.
115940 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115942         * lib/exclude.c (exclude_fnmatch): New function.
115943         (excluded_file_name): Call exclude_fnmatch.
115944         * lib/exclude.h (excluded_file_name): New prototype
115946 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115948         * lib/tempname.c (small_open, large_open): New macros.
115949         (__open, __open64) [!_LIBC]: Remove.
115950         (__gen_tempname): Use small_open and large_open instead of __open
115951         and __open64.  This fixes a portability bug on HP-UX 11.11i
115952         reported by Simon Wing-Tang in
115953         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115955 2006-05-24  Bruno Haible  <bruno@clisp.org>
115957         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115958         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115959         Reported by Thorsten Maerz <torte@netztorte.de> via
115960         Aaron Stone <aaron@serendipity.cx>.
115962 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115964         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115965         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115966         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115967         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115968         not really conditional on the cache.
115969         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115971 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115973         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115974         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115975         (my_usleep): Don't mishandle maximum value.
115977 2006-05-19  Jim Meyering  <jim@meyering.net>
115979         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115981 2006-05-17  Bruno Haible  <bruno@clisp.org>
115983         Cygwin portability.
115984         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115986 2006-05-17  Bruno Haible  <bruno@clisp.org>
115988         * lib/stdint_.h: Fix recognition of Cygwin.
115990 2006-05-15  Bruno Haible  <bruno@clisp.org>
115992         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115993         on libtool patch by Ralf Wildenhues.
115995 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115997         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115998         test for C99 conformance; (bool) 0.5 is an integer constant
115999         expression, but (bool) -0.5 is not.  Problem reported by Fedor
116000         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
116002 2006-05-11  Simon Josefsson  <jas@extundo.com>
116004         * m4/xvasprintf.m4: Fix obvious typo.
116006 2006-05-11  Jim Meyering  <jim@meyering.net>
116008         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
116009         James Lemley.
116011 2006-05-10  Simon Josefsson  <jas@extundo.com>
116013         * lib/md4.c: Typo fix, update copyright years.
116014         (K1, K2): Don't use L because it turn computations into 64-bit on
116015         64-bit platforms.
116017 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
116019         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
116020         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
116021         unwanted sign propagation, e.g., on hosts with 64-bit int.
116022         There still are some problems with reeelly weird theoretical hosts
116023         (e.g., 33-bit int) but it's not worth worrying about now.
116024         * lib/sha1.c (rol): Likewise.
116025         (K1, K2, K3, K4): Remove unnecessary L suffix.
116027 2006-05-10  Bruno Haible  <bruno@clisp.org>
116029         * lib/des.c: Cast to avoid warnings.
116031 2006-05-09  Bruno Haible  <bruno@clisp.org>
116033         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
116034         (Depends-on): Depend also on xsize, stdarg.
116035         (configure.ac): Add gl_XVASPRINTF.
116037 2006-05-09  Bruno Haible  <bruno@clisp.org>
116039         * m4/xvasprintf.m4: New file.
116041 2006-05-09  Bruno Haible  <bruno@clisp.org>
116043         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
116044         (EOVERFLOW): Define fallback value.
116045         (xstrcat): New function.
116046         (xvasprintf): Recognize the special case of a string concatenation.
116048 2006-05-08  Eric Blake  <ebb9@byu.net>
116050         * gnulib-tool (func_version): Base copyright year on CVS date.
116051         (func_emit_copyright_notice): New function.
116052         (func_emit_lib_Makefile_am): Use it.
116053         (func_emit_tests_Makefile_am): Likewise.
116054         (func_import): Likewise.
116056 2006-05-08  Bruno Haible  <bruno@clisp.org>
116058         * modules/stdarg: New file.
116059         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
116061 2006-05-08  Bruno Haible  <bruno@clisp.org>
116063         * m4/stdarg.m4: New file, from GNU gettext.
116065 2006-05-08  Bruno Haible  <bruno@clisp.org>
116067         * config/srclist.txt (build-aux/config.rpath): different from latest
116068         release.
116070 2006-05-08  Bruno Haible  <bruno@clisp.org>
116072         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
116074 2006-05-05  Jim Meyering  <jim@meyering.net>
116076         * m4/warning.m4: New file, derived from bison's file by the same name.
116078 2006-05-03  Bruno Haible  <bruno@clisp.org>
116080         * lib/stdint_.h: Shorter URL.
116081         * lib/inttypes.h: Likewise.
116083 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116085         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
116087 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116089         * lib/verify.h: Document the internals better.  Most of this change
116090         was written by Bruno Haible.
116092 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
116094         * doc/verify.texi: New file, partly based on a proposal by
116095         Bruno Haible.
116097 2006-05-02  Bruno Haible  <bruno@clisp.org>
116099         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
116100         test from here...
116101         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
116103 2006-04-29  Bruno Haible  <bruno@clisp.org>
116105         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
116106         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
116108 2006-04-29  Bruno Haible  <bruno@clisp.org>
116110         * gnulib-tool: Make --update option actually work.
116112 2006-04-29  Bruno Haible  <bruno@clisp.org>
116114         * doc/gcd.texi: New file.
116115         * doc/gnulib.texi: Include it.
116117 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
116119         * lib/getdate.y (get_date): When adding relative date, start with the
116120         initial time, not with the result of the first mktime call.
116122 2006-04-25  Bruno Haible  <bruno@clisp.org>
116124         * gnulib-tool (func_import): Output the include directives in three
116125         blocks, sorted separately.
116126         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116128 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116130         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
116131         to define main with arguments, for C++.  Reported by Eric Blake.
116132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
116133         Prefer 'int main ()' to 'int main (void)', for C++.
116134         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
116135         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
116136         for 'main', for C99 and C++.
116138 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
116140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
116141         Don't assume that exit status -1 is valid.
116142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116143         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
116144         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
116145         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
116146         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
116147         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
116148         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
116149         functions can be used without declaring them, or that you can
116150         exit with status -1.
116151         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
116153 2006-04-24  Karl Berry  <karl@gnu.org>
116155         * config/srclist.txt (longdouble.m4): sync lost.
116157 2006-04-24  Eric Blake  <ebb9@byu.net>
116159         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
116161 2006-04-24  Bruno Haible  <bruno@clisp.org>
116163         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
116164         poll() implementation in AIX.
116165         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116167 2006-04-24  Bruno Haible  <bruno@clisp.org>
116169         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
116170         assigned exactly once.
116172 2006-04-23  Claudio Fontana  <claudio@gnu.org>
116173             Bruno Haible  <bruno@clisp.org>
116175         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
116176         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
116177         for AM_CPPFLAGS.
116179 2006-04-23  Bruno Haible  <bruno@clisp.org>
116181         * modules/copy-file: Depend on unistd.
116182         * modules/execute: Likewise.
116183         * modules/fatal-signal: Likewise.
116184         * modules/findprog: Likewise.
116185         * modules/mkdtemp : Likewise.
116186         * modules/pipe: Likewise.
116187         * modules/wait-process: Likewise.
116189 2006-04-23  Bruno Haible  <bruno@clisp.org>
116191         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
116192         condition was already detected.
116193         Reported by Ben Pfaff <blp@cs.stanford.edu>.
116195 2006-04-23  Bruno Haible  <bruno@clisp.org>
116197         * lib/copy-file.c: Include <unistd.h> unconditionally.
116198         * lib/execute.c: Likewise.
116199         * lib/fatal-signal.c: Likewise.
116200         * lib/findprog.c: Likewise.
116201         * lib/mkdtemp.c: Likewise.
116202         * lib/pipe.h: Likewise.
116203         * lib/pipe.c: Likewise.
116204         * lib/wait-process.h: Likewise.
116206 2006-04-23  Bruno Haible  <bruno@clisp.org>
116208         * gnulib-tool (func_usage): Fix --import description. Document
116209         --update.
116210         (func_import): Create temporary file in a temporary directory, if
116211         --dry-run is specified. Silence errors from 'grep' when there are no
116212         m4 files in $m4dir.
116213         (func_create_testdir): Silence errors from 'grep' when there are no
116214         m4 files in $m4dir.
116215         Reported by Karl Berry <karl@freefriends.org>.
116217 2006-04-20  Bruno Haible  <bruno@clisp.org>
116219         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
116220         one argument, so that the code will be portable to Autoconf 2.60.
116221         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
116222         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116223         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
116225 2006-04-19  Derek Price  <derek@ximbiot.com>
116226             Eric Blake  <ebb9@byu.net>
116228         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
116229         rather than "/full/path.h".  Update comment to match.  Shorten &
116230         generalize m4_translit call via AS_TR_CPP.
116232 2006-04-19  Derek Price  <derek@ximbiot.com>
116233             Eric Blake  <ebb9@byu.net>
116235         * lib/inttypes.h: Correct grammar in comment.
116237 2006-04-18  Derek Price  <derek@ximbiot.com>
116238             Paul Eggert  <eggert@cs.ucla.edu>
116240         * modules/inttypes: New file.
116241         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
116243 2006-04-18  Derek Price  <derek@ximbiot.com>
116244             Paul Eggert  <eggert@cs.ucla.edu>
116246         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
116247         New files.
116249 2006-04-18  Derek Price  <derek@ximbiot.com>
116250             Paul Eggert  <eggert@cs.ucla.edu>
116252         * lib/inttypes.h: New file.
116253         * lib/strtoimax.c: Assume <inttypes.h>.
116255 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116257         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116258         isn't mounted.  Problem reported by Kir Kolyshkin.
116260 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116262         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116263         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116264         Derek R. Price.
116265         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116266         implementation.
116268 2006-04-12  Eric Blake  <ebb9@byu.net>
116270         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116271         is now done automatically by the corresponding Autoconf macro.
116273 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116275         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116276         time_r.h.
116278 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116280         Merge regex changes from libc, removing some of our
116281         POSIX-conformance changes that were rejected and redoing them in a
116282         less-intrusive way.
116284         * lib/regcomp.c (re_compile_internal, init_dfa):
116285         Length arg is now size_t, not Idx.  All uses changed.
116286         (peek_token): Forward decl now says internal_function.
116287         (__re_error_msgid, __re_error_msgid_idx):
116288         Now static rather than extern with attribute_hidden.
116289         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116290         For some reason libc prefers K&R style defns for external functions.
116291         (regerror) [!defined _LIBC]: Likewise.
116292         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116293         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116294         (build_range_exp, build_collating_symbol):
116295         Use K&R-style defn.
116296         (re_compile_fastmap): Use '\0' to memset, not 0.
116297         (utf8_sb_map): Make the calculations more obvious.
116298         (init_dfa, parse_bracket_exp, build_charclass_op):
116299         Call calloc and cast result, as glibc does.
116300         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116301         (build_range_exp, build_collating_symbol):
116302         Now internal functions.
116304         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116306         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116307         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116308         Don't depend on VMS; depend on __VMS instead, for POSIX
116309         namespace cleanness.
116310         (regoff_t): Define to ssize_t, not long int.
116312         Remove the REG_ macros named below.  Instead, make the old names
116313         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116314         __USE_GNU_REGEX.
116315         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116316         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116317         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116318         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116319         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116320         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116321         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116322         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116323         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116324         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116325         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116326         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116327         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116328         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116329         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116330         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116331         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116332         (REG_NREGS):
116333         Remove.  All uses replaced by the old RE_* names.
116334         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116335         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116336         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116337         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116338         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116339         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116340         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116341         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116342         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116343         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116344         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116345         Don't bother having these macros be independent of each others'
116346         values, since they no longer exist in the POSIX name space.
116348         Rename the following member names back to their old names,
116349         unless !__USE_GNU_REGEX.  All uses changed back.
116350         (buffer): Renamed from re_buffer.
116351         (allocated): Renamed from re_allocated.
116352         (used): Renamed from re_used.
116353         (syntax): Renamed from re_syntax.
116354         (fastmap): Renamed from re_fastmap.
116355         (translate): Renamed from re_translate.
116356         (can_be_null): Renamed from re_can_be_null.
116357         (regs_allocated): Renamed from re_regs_allocated.
116358         (fastmap_accurate): Renamed from re_fastmap_accurate.
116359         (no_sub): Renamed from re_no_sub.
116360         (not_bol): Renamed from re_not_bol.
116361         (not_eol): Renamed from re_not_eol.
116362         (newline_anchor): Renamed from re_newline_anchor.
116363         (num_regs): Renamed from rm_num_regs.
116364         (start): Renamed from rm_start.
116365         (end): Renamed from rm_end.
116367         (free_state): Move up a bit.
116369         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116370         #define to be empty.
116371         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116372         when that is what is intended.
116373         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116374         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116375         (MAX): New macro.
116376         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116377         All uses changed back to re_malloc, etc.  It's now the caller's
116378         responsibility to check for overflow; all callers changed.
116379         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116380         (re_x2nrealloc): Remove.
116381         (free_state): Remove decl.
116383         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116384         (re_set_registers, re_exec):
116385         Use K&R-style defn.
116387         2006-01-31  Roland McGrath  <roland@redhat.com>
116389         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116390         Reported by Mike Frysinger <vapier@gentoo.org>.
116392         2006-01-15  Andreas Jaeger  <aj@suse.de>
116394         [BZ #1950]
116395         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116396         build_wcs_upper_buffer change.
116397         (build_wcs_upper_buffer): Change return type.
116399         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116401         * lib/regex_internal.h: Include <stdint.h> if available.
116403         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116405         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116407         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116409         * lib/regcomp.c: Adjust for changed secondary hash function.
116411         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116413         * lib/regex.h: Pretty printing.
116414         Clean up namespace a bit.
116416         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116418         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116419         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116421         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116422                     Ulrich Drepper  <drepper@redhat.com>
116424         [BZ #1302]
116425         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116426         changed.
116427         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116429         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116431         [BZ #281]
116432         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116433         * lib/regcomp.c: Remove unnecessary uses of
116434         unsigned RE_TRANSLATE_TYPE.
116435         * lib/regex_internal.h: Likewise.
116436         * lib/regex_internal.c: Likewise.
116437         * lib/regexec.c: Likewise.
116438         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116440         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116442         * lib/regexec.c (find_recover_state): Remove unnecessary
116443         initialization.
116444         (transit_state_bkref): Make DFA a const pointer.
116445         (get_subexp): Likewise.
116446         (check_arrival): Likewise.
116447         (update_cur_sifted_state): Likewise.
116448         (re_search_internal): Likewise.
116449         (prune_impossible_nodes): Likewise.
116450         (acquire_init_state_context): Likewise.
116451         (proceed_next_node): Likewise.
116452         (set_regs): Likewise.
116453         (free_fail_stack_return): Likewise.
116454         (check_arrival_expand_ecl): Mark DFA parameter as const.
116455         (check_arrival_expand_ecl_sub): Likewise.
116456         (check_subexp_limits): Likewise.
116457         (sub_epsilon_src_nodes):  Likewise.
116458         (add_epsilon_src_nodes):  Likewise.
116459         (merge_state_array): Likewise.
116460         (update_regs): Likewise.
116461         (build_trtable): Likewise.
116462         (sift_states_backward): Mark MCTX parameter as const.
116463         (build_sifted_states): Likewise.
116464         (update_cur_sifted_state): Likewise.
116465         (sift_states_mkref): Likewise.
116466         (check_arrival_expand_ecl): Mark eclosure as const.
116467         (check_dst_limits_calc_pos_1): Likewise.
116468         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116469         pointer.
116471         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116473         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116474         (transit_state_sb): Likewise.
116475         (transit_state_mb): Likewise.
116476         (sift_states_iter_mb): Likewise.
116477         (check_arrival_add_next_nodes): Likewise.
116478         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116479         [_LIBC] (re_search_2_stub): Use mempcpy.
116481         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116482         mbrtowc for very simple UTF-8 case.
116484         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116485         a pointer-to-const.
116486         (re_acquire_state_context): Likewise.
116487         * lib/regex_internal.h: Adjust prototypes.
116489         * lib/regex.c: Prevent using C++ compilers.
116491         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116492         (re_acquire_state_context): Likewise.
116494 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116496         * modules/regex (Depends-on): Add ssize_t.
116498 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116500         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116501         translation table.
116503 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116505         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116507 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116508             Bruno Haible  <bruno@clisp.org>
116510         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116511         <sys/types.h> and <inttypes.h>.
116513 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116515         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116516         `__error_t_defined', so argp.h will not typedef the former.
116518 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116520         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116521         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116522         glibc names.  Even if glibc is changed to conform to POSIX, the
116523         traditional names will be available anyway, since regex depends on
116524         the extensions module.  Also, fix a longstanding typo in the
116525         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116526         reported by Emanuele Giaquinta.  Also, change sense of cached
116527         variable, so that the message makes sense.
116529 2006-03-24  Simon Josefsson  <jas@extundo.com>
116531         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116532         including some doc fixes.
116533         (base64_encode_alloc): Fix +1 bug on allocation failures.
116535 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116537         * lib/base64.c (base64_encode): Do not read past end of array with
116538         unsanitized input on systems with CHAR_BIT > 8.
116540 2006-03-24  Eric Blake  <ebb9@byu.net>
116542         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116544 2006-03-22  Karl Berry  <karl@gnu.org>
116546         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116547         * config/srclistvars.sh (COREUTILS): new var.
116549 2006-03-17  Jim Meyering  <jim@meyering.net>
116551         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116552         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116554 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116556         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116557         no longer needs it.  Instead, check that regoff_t is as least
116558         as wide as ptrdiff_t.
116560         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116561         so that our regex.h stays compatible with the installed regex.
116562         This is helpful for installers who configure --without-included-regex.
116563         Problem reported by Emanuele Giaquinta.
116565 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116567         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116568         Typedef to long int, not to off_, as POSIX will likely change
116569         in that direction.
116571 2006-03-15  Eric Blake  <ebb9@byu.net>
116573         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116575 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116577         * lib/argp-help.c (validate_uparams): Fix typo
116578         * lib/argp-parse.c (argp_default_options): Consistently begin help
116579         messages with a lowercase letter.
116581 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116583         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116584         overrun buffers and shouldn't be used (much as gets shouldn't be
116585         used).
116586         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116588 2006-03-08  Simon Josefsson  <jas@extundo.com>
116590         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116591         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116593 2006-03-08  Simon Josefsson  <jas@extundo.com>
116595         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116596         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116598 2006-03-08  Simon Josefsson  <jas@extundo.com>
116600         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116601         signal that configure disabled the device.
116603 2006-03-08  Simon Josefsson  <jas@extundo.com>
116605         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116606         languages.
116608 2006-03-07  Simon Josefsson  <jas@extundo.com>
116610         * modules/getopt (Depends-on): Add unistd.
116612         * modules/unistd: New file.
116614 2006-03-07  Simon Josefsson  <jas@extundo.com>
116616         * modules/gc-random: New file.
116618 2006-03-07  Simon Josefsson  <jas@extundo.com>
116620         * m4/unistd_h.m4: New file.
116622 2006-03-07  Simon Josefsson  <jas@extundo.com>
116624         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116625         test to be side-effect free by storing the result in the cache
116626         variable gl_cv_lib_readline, and moving the assignment of
116627         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116628         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116630 2006-03-07  Simon Josefsson  <jas@extundo.com>
116632         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116633         error on missing devices (the functions will return an error).
116635         * m4/gc.m4: Move random stuff to gc-random.m4
116637 2006-03-07  Simon Josefsson  <jas@extundo.com>
116639         * lib/unistd_.h: New file.
116641 2006-03-07  Simon Josefsson  <jas@extundo.com>
116643         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116645 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116647         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116648         Problem reported by Juan Manuel Guerrero.
116650 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116652         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116653         the unistd module.
116654         * lib/getlogin_r.c: Likewise.
116655         * lib/getlogin_r.h: Likewise.
116656         * lib/glob.c: Likewise.
116657         * lib/pagealign_alloc.c: Likewise.
116658         * lib/unistd_.h: Remove; no longer needed.
116660 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116662         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116663         Add unistd.
116664         * modules/c-stack (Depends-on): Add unistd.
116665         * modules/getlogin_r: Likewise.
116666         * modules/glob: Likewise.
116667         * modules/pagealign_alloc: Likewise.
116668         * modules/unistd (Files): Remove lib/unistd_.h.
116669         (EXTRA_DIST): Remove.
116670         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116671         need unistd_.h.
116672         (MOSTLYCLEANFILES): Remove unistd.h-t.
116674 2006-03-03  Simon Josefsson  <jas@extundo.com>
116676         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116678 2006-03-03  Simon Josefsson  <jas@extundo.com>
116680         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116681         libidn and bison.
116683 2006-03-03  Simon Josefsson  <jas@extundo.com>
116685         * build-aux/maint.mk: Add indent target.
116687 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116689         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116690         our replacement poll.h in any case, to avoid a differing
116691         declaration from a system header.  Seen on AIX.
116693 2006-03-01  Simon Josefsson  <jas@extundo.com>
116695         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116696         <kasal@ucw.cz>.
116698 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116700         * modules/gettime (Depends-on): Add extensions module.
116701         * modules/nanosleep (Depends-on): Likewise.
116702         * modules/settime (Depends-on): Likewise.
116704 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116706         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116707         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116708         pedantically.
116709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116710         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116712         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116713         not "==".  Reported by Ralf Wildenhues.
116715 2006-03-01  Karl Berry  <karl@gnu.org>
116717         * doc/Copyright/request-*: new files, synced from gnuorg.
116719 2006-03-01  Karl Berry  <karl@gnu.org>
116721         * config/srclist.txt (Copyright/*): new entries.
116723 2006-02-28  Simon Josefsson  <jas@extundo.com>
116725         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116727 2006-02-27  Simon Josefsson  <jas@extundo.com>
116729         * lib/base64.h: Indent #define's.  From Jim Meyering
116730         <jim@meyering.net>.
116732 2006-02-27  Jim Meyering  <jim@meyering.net>
116734         Revert the change of 2006-02-24, so these files can continue
116735         to be sync'd from gettext.
116736         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116737         of `config.h'.
116739 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116741         * modules/intprops: New file.
116742         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116743         Add intprops.
116744         * modules/getloadavg (Files): Remove lib/intprops.h.
116745         (Depends-on): Add intprops.
116746         * modules/human: Likewise.
116747         * modules/inttostr: Likewise.
116748         * modules/openat: Likewise.
116749         * modules/sig2str: Likewise.
116750         * modules/userspec: Likewise.
116751         * modules/utimecmp: Likewise.
116752         * modules/xnanosleep: Likewise.
116753         * modules/xstrtol: Likewise.
116755 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116757         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116758         * modules/lock-tests (TESTS): Use $(EXEEXT).
116759         * modules/tls-tests: Likewise.
116760         * modules/argp-tests: Likewise.
116761         (check_PROGRAMS): New var, replacing...
116762         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116764 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116766         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116767         `config.h'.
116769 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116771         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116773 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116775         Sync from coreutils.
116776         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116777         gl_CHDIR_SAFER.
116779 2006-02-22  Jim Meyering  <jim@meyering.net>
116781         Sync from coreutils.
116782         * m4/chdir-safer.m4: New file.
116784 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116786         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116787         AT_FDCWD exceeds INT_MAX.
116788         * lib/openat.h (AT_FDCWD): Likewise.
116790 2006-02-17  Eric Blake  <address@hidden>
116792         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116794 2006-02-16  Simon Josefsson  <jas@extundo.com>
116796         * modules/getaddrinfo (Depends-on): Add sys_socket.
116798 2006-02-15  Simon Josefsson  <jas@extundo.com>
116800         * build-aux/maint.mk: Add dsyntax-check rule.
116802 2006-02-15  Eric Blake  <ebb9@byu.net>
116804         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116805         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116806         'present but cannot compile' warnings on cygwin.
116807         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116808         use ws2tcpip.h if sys/socket.h works.
116809         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116810         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116812 2006-02-14  Simon Josefsson  <jas@extundo.com>
116814         * modules/maintainer-makefile (Files): Rename.
116816         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116817         and (the local) Makefile.cfg to maint-cfg.mk.
116819         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116820         to the latter.
116822         * modules/maintainer-makefile: New module.
116824         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116825         severaly stripped to make it possible to build it up from scratch
116826         with reliable tests.
116828         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116829         fixes to permit overriding the default actions when configure and
116830         makefile are not available.
116832 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116834         Sync from coreutils.
116835         * modules/lstat (Depends-on): Don't depend on xalloc.
116836         (License): Change from GPL to LGPL, since this is now simply a
116837         replacement for a libc function.
116839 2006-02-14  Jim Meyering  <jim@meyering.net>
116841         Sync from coreutils.
116843         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116844         failure on deficient systems, and simplify gnulib lgpl dependencies.
116845         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116846         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116848         * lib/xalloc-die.c: Remove unused definition of N_.
116850 2006-02-14  Jim Meyering  <jim@meyering.net>
116852         Sync from coreutils.
116853         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116854         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116855         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116856         double-quote uses of that variable, to accommodate the rare case in
116857         which getmntent is available in none of the libraries checked.  This
116858         happens at least on FreeBSD 5.0.
116860 2006-02-13  Simon Josefsson  <jas@extundo.com>
116862         * gnulib-tool (Usage): Fix --import, from
116863         karl@freefriends.org (Karl Berry).
116865 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116867         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116869 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116871         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116872         "autoupdate" on 2005-12-12.
116874 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116876         * modules/closeout (Depends-on): Remove atexit.
116878 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116880         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116881         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116883 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116885         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116886         __EXTENSIONS__ if this causes compilation to fail.  Problem
116887         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116888         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116890 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116892         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116893         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116894         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116895         All uses changed.
116897 2006-01-26  Simon Josefsson  <jas@extundo.com>
116899         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116900         prototype is visible on mingw32.
116902         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116903         for mingw32.
116905         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116906         mingw32).
116908 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116910         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116911         attempt to open for write; this always fails, at least on POSIX
116912         hosts.  This reinstates the 2006-01-09 change, which was
116913         inadvertently removed.
116915 2006-01-26  Bruno Haible  <bruno@clisp.org>
116917         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116918         Reported by Paul Eggert.
116920 2006-01-26  Bruno Haible  <bruno@clisp.org>
116921             Paul Eggert  <eggert@cs.ucla.edu>
116923         * lib/stdbool_.h (_Bool)
116924         [(! (defined __cplusplus || defined __BEOS__)
116925           && !defined __GNUC__
116926           && !(defined __HP_cc || defined __xlc__
116927                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116928                || defined __sgi))]:
116929         #define to signed char in these cases too; this simplifies
116930         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116931         etc., separately) and makes it more conservative.
116933 2006-01-25  Simon Josefsson  <jas@extundo.com>
116935         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116936         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116937         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116939 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116941         * lib/argp-namefrob.h: Bugfix. Remove stray #
116943 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116946         so that we test the test.
116947         Check for yet another HP-UX cc bug involving *bool |= bool.
116949 2006-01-25  Karl Berry  <karl@gnu.org>
116951         * config/srclist.txt (vasnprintf.c): sync lost.
116953 2006-01-25  Jim Meyering  <jim@meyering.net>
116955         Sync from the stable (b5) branch of coreutils:
116957         * lib/fts.c (fts_children): Don't let close() clobber errno from
116958         failed fchdir().
116960         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116961         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116962         a dangling symlink.  That can also happen at least for ELOOP.
116963         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116964         FYI, this bug predates the inclusion of fts.c in coreutils.
116966         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116967         in their own block, so pre-c99 compilers don't object.
116969         Avoid the double-free (first in fts_read, second in fts_close) that
116970         would occur when an `active' directory is made inaccessible (e.g.,
116971         via chmod a-x) during a traversal.
116972         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116973         before returning.  Reproduce this failure by
116974         mkdir -p a/b; cd a; chmod a-x . b
116975         Reported by Stavros Passas.
116977 2006-01-25  Jim Meyering  <jim@meyering.net>
116979         * lib/fileblocks.c: Remove more useless parentheses.
116980         * lib/readutmp.h: Likewise.
116982 2006-01-25  Bruno Haible  <bruno@clisp.org>
116984         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116985         warnings.
116986         Reported by Paul Eggert.
116988 2006-01-25  Bruno Haible  <bruno@clisp.org>
116990         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116991         rid of a trap command. For Solaris sh.
116992         Reported by Mark D. Baushke <mdb@gnu.org>.
116994 2006-01-24  Simon Josefsson  <jas@extundo.com>
116996         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116997         Bruno.
116999 2006-01-24  Karl Berry  <karl@gnu.org>
117001         * config/srclist.txt (argp-namefrob.h): sync lost.
117003 2006-01-24  Jim Meyering  <jim@meyering.net>
117005         * modules/openat (Files): Add lib/intprops.h.
117006         From Mark D. Baushke.
117008 2006-01-24  Jim Meyering  <jim@meyering.net>
117010         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
117011         Reported by Mark D. Baushke.
117013 2006-01-24  Jim Meyering  <jim@meyering.net>
117015         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
117017 2006-01-24  Bruno Haible  <bruno@clisp.org>
117019         * modules/strnlen (Maintainer): Change from glibc to all.
117021 2006-01-24  Bruno Haible  <bruno@clisp.org>
117023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
117024         Patch by Paul Eggert.
117026 2006-01-24  Bruno Haible  <bruno@clisp.org>
117028         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
117029         already has it.
117030         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
117031         2005-11-26.
117033         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
117034         'signed char' to avoid problems with the built-in _Bool type.
117035         Reported by Paul Eggert on 2005-11-26.
117037 2006-01-24  Bruno Haible  <bruno@clisp.org>
117039         * gnulib-tool (func_import): Avoid constructing complicated sed
117040         expressions inside backquote.
117041         Report and solution by Mark D. Baushke <mdb@gnu.org>.
117043 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
117045         These changes imported from libc.
117046         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
117047         test and two separate function calls.
117048         * lib/strndup.c (__strndup): Add libc_hidden_def.
117050 2006-01-23  Simon Josefsson  <jas@extundo.com>
117052         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
117053         Remove the test_*_SOURCES variable: automake infers it by default.
117054         * modules/tls-tests: Likewise.
117056 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117058         Work around porting bugs reported by Dieter in
117059         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
117060         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
117061         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
117062         Include "getopt.h" first, to check interface.
117063         (getenv): Declare only if defined HAVE_DECL_GETENV &&
117064         !HAVE_DECL_GETENV.
117065         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
117066         (__strndup): Revert to K&R-style function dfns, the glibc style.
117067         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
117068         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
117069         Include strnlen.h first, to get prototype properly.
117070         (strnlen): Renamed from __strnlen.
117071         Remove weak alias.
117073 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117075         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
117077 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
117079         * config/srclist.txt: Adjust to reflect glibc reorganization.
117080         This affects only comments.
117082 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117084          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
117085          Reported by Bruce Korb <bkorb@gnu.org>.
117087 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
117089         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
117090         to pacify gcc -Wswitch-default.
117092 2006-01-22  Bruno Haible  <bruno@clisp.org>
117094         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
117095         temporary buffer for sprintf, take into account the precision also
117096         for 'd', 'i', 'u', 'o', 'x', 'X'.
117098 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117100         * modules/argp-tests: New module
117101         * tests/test-argp.c: New file
117102         * tests/test-argp-2.sh: New file
117104 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
117106         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
117107         (__argp_base_name): Removed
117108         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
117109         typo.
117110         (__argp_base_name): Provide macro definition or extern declaration
117111         depending on the configuration
117113 2006-01-20  Simon Josefsson  <jas@extundo.com>
117115         * modules/inet_ntop (Depends-on): Depend on sys_socket.
117117 2006-01-20  Simon Josefsson  <jas@extundo.com>
117119         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
117121 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
117123         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
117124         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
117125         Suggested by Bruno Haible.
117127 2006-01-20  Karl Berry  <karl@gnu.org>
117129         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
117130         until changes propagate, I guess.
117132 2006-01-19  Simon Josefsson  <jas@extundo.com>
117134         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
117136 2006-01-19  Simon Josefsson  <jas@extundo.com>
117138         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
117140 2006-01-19  Simon Josefsson  <jas@extundo.com>
117142         * gnulib-tool: Set check_PROGRAMS.
117144         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117145         modules/des-tests, modules/gc-arcfour-tests,
117146         modules/gc-arctwo-tests, modules/gc-des-tests,
117147         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117148         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117149         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117150         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117151         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117152         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
117153         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
117154         test_*_SOURCES.
117156 2006-01-18  Simon Josefsson  <jas@extundo.com>
117158         * modules/socklen (Depends-on): Depend on sys_socket.
117160 2006-01-18  Simon Josefsson  <jas@extundo.com>
117162         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
117163         modules/des-tests, modules/gc-arcfour-tests,
117164         modules/gc-arctwo-tests, modules/gc-des-tests,
117165         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
117166         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
117167         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
117168         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
117169         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
117170         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
117171         $(EXEEXT) to automake TESTS variable, for mingw32.
117173 2006-01-17  Simon Josefsson  <jas@extundo.com>
117175         * modules/socklen (Include): Need sys/socket.h.
117177 2006-01-17  Bruno Haible  <bruno@clisp.org>
117179         * modules/ssize_t (Include): Add <sys/types.h>.
117181 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
117183         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
117184         it's not portable and it doesn't work with cross-compiles.
117185         Problem reported by Bruno Haible.  Fix missing-$ typo in
117186         'test "gl_cv_ignore_unused_libraries" ...' that prevented
117187         -zignore from being used with Sun's C compiler.
117189 2006-01-12  Simon Josefsson  <jas@extundo.com>
117191         * lib/base64.c: Fix warning, reported by Bruno Haible
117192         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
117194 2006-01-12  Bruno Haible  <bruno@clisp.org>
117196         * modules/ldd: New file.
117197         * build-aux/ldd.sh.in: New file.
117198         * MODULES.html.sh (Support for building libraries and executables): Add
117199         ldd.
117201 2006-01-12  Bruno Haible  <bruno@clisp.org>
117203         * m4/ldd.m4: New file.
117205 2006-01-12  Bruno Haible  <bruno@clisp.org>
117207         * gnulib-tool (func_import, func_create_testdir): Don't go into an
117208         endless loop while replacing $auxdir with build-aux.
117210 2006-01-11  Simon Josefsson  <jas@extundo.com>
117212         * lib/stdint_.h (SIZE_MAX): Add missing (.
117214 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
117216         Sync from coreutils.
117217         * lib/md5.c: Fix commentary typos.
117218         (alignof, UNALIGNED_P): No need for a GCC-specific version.
117219         * lib/md5.h (__attribute__): Remove; unused.
117220         * lib/sha1.c: Fix commentary to match md5 better.
117221         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
117222         so that we don't need to worry about alignment.  All uses changed.
117223         This merges the 2005-10-28 md5 change into sha1.
117225 2006-01-11  Jim Meyering  <jim@meyering.net>
117227         Sync from coreutils.
117228         * lib/md5.c (OP): Fix spacing.
117230 2006-01-11  Bruno Haible  <bruno@clisp.org>
117232         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117233         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
117234         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
117236 2006-01-11  Bruno Haible  <bruno@clisp.org>
117238         Ensure automatic ordering between gl_LOCK and gl_ARGP.
117239         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
117240         the "early" section as well.
117242 2006-01-11  Bruno Haible  <bruno@clisp.org>
117244         Avoid "ar: no archive members specified" error on MacOS X.
117245         * gnulib-tool (func_modules_add_dummy): New function.
117246         (func_import, func_create_testdir): Invoke it.
117248 2006-01-11  Bruno Haible  <bruno@clisp.org>
117250         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
117251         with $auxdir in AC_CONFIG_FILES statements.
117253 2006-01-11  Bruno Haible  <bruno@clisp.org>
117255         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117256         Initialize also noinst_HEADERS to empty.
117258 2006-01-11  Bruno Haible  <bruno@clisp.org>
117260         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117261         variables.
117262         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117263         autoreconf.
117265 2006-01-11  Bruno Haible  <bruno@clisp.org>
117267         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117268         overridable by the user.
117269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117271 2006-01-10  Simon Josefsson  <jas@extundo.com>
117273         * modules/sys_socket: New file.
117275 2006-01-10  Simon Josefsson  <jas@extundo.com>
117277         * m4/sys_socket_h.m4: New file.
117279 2006-01-10  Simon Josefsson  <jas@extundo.com>
117281         * lib/socket_.h: New file.
117283 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117285         * modules/readutmp (Maintainer): Add myself.
117287 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117289         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117290         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117291         People who are still concerned with buggy memcmp implementations
117292         can invoke gl_FUNC_MEMCMP themselves.
117294 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117296         * lib/regex_internal.h (BITSET_WORD_BITS):
117297         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117298         preprocessor mishandles large unsigned values as if they were signed.
117299         Problem reported by Claudio Fontana in
117300         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117302 2006-01-10  Jim Meyering  <jim@meyering.net>
117304         Avoid the double-free (first in fts_read, second in fts_close) that
117305         would occur when an `active' directory is made inaccessible (e.g.,
117306         via chmod a-x) during a traversal.
117307         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117308         before returning.  Reproduce this failure by
117309         mkdir -p a/b; cd a; chmod a-x . b
117310         Reported by Stavros Passas.
117312         Sync from coreutils.
117313         * lib/sha1.c: Tweak grammar in a comment.
117315 2006-01-10  Jim Meyering  <jim@meyering.net>
117317         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117318         Patch by Joerg Sonnenberger.
117320 2006-01-10  Bruno Haible  <bruno@clisp.org>
117322         * modules/readutmp: Depend on module free.
117323         * modules/strtok_r: Depend on module restrict.
117325 2006-01-10  Bruno Haible  <bruno@clisp.org>
117327         * modules/gettext (configure.ac): Add an invocation of
117328         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117330 2006-01-10  Bruno Haible  <bruno@clisp.org>
117332         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117333         Reported by Werner Lemberg <wl@gnu.org>.
117335 2006-01-10  Bruno Haible  <bruno@clisp.org>
117337         * lib/localcharset.c: Update from GNU gettext.
117339 2006-01-10  Bruno Haible  <bruno@clisp.org>
117341         * lib/argp.h (__const): Remove macro. Use const instead.
117342         * lib/argp-fmtstream.h (__const): Likewise.
117343         * lib/glob_.h (__const): Remove macro.
117344         * lib/glob-libc.h: Use const instead of __const.
117346 2006-01-10  Bruno Haible  <bruno@clisp.org>
117348         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117349         variable.
117350         Needed to avoid an automake error regarding the 'gettext' module.
117352 2006-01-09  Simon Josefsson  <jas@extundo.com>
117354         * modules/inet_ntop (Depends-on): Add restrict.
117356 2006-01-09  Simon Josefsson  <jas@extundo.com>
117358         * modules/gc-rijndael-tests (License): Put under LGPL.
117360         * modules/gc-des-tests (License): Likewise.
117362         * modules/gc-arcfour-tests (License): Likewise.
117364         * modules/gc-arctwo-tests (License): Likewise.
117366         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117368         * modules/gc-hmac-sha1-tests (Files): Likewise.
117370         * modules/gc-hmac-md5-tests (License): Likewise.
117372         * modules/gc-sha1-tests (License): Likewise.
117374         * modules/gc-md5-tests (License): Likewise.
117376         * modules/gc-md4-tests (License): Likewise.
117378         * modules/gc-md2-tests (License): Likewise.
117380         * modules/gc-tests (License): Likewise.
117382         * modules/des-tests (License): Likewise.
117384         * modules/md4-tests (License): Likewise.
117386         * modules/md2-tests (License): Likewise.
117388 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117390         Sync from coreutils:
117392         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117393         * modules/lib-ignore: New file.
117394         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117395         chdir-safer.m4, lchmod.m4.
117396         * modules/openat: Add mkdirat.c, openat-priv.h.
117398 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117400         Sync from coreutils.
117401         * m4/lib-ignore.m4: New file.
117402         * m4/lchmod.m4: New file.
117404 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117406         Sync from coreutils.
117407         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117408         for write access: POSIX says that must fail.
117409         * lib/fts.c (diropen): Likewise.
117410         * lib/save-cwd.c (save_cwd): Likewise.
117411         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117412         well, for minor improvements on hosts that lack O_DIRECTORY.
117413         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117414         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117415         Fall back on chown if open failed with EACCES.
117417         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117418         Report an error at compile-time if only a 1-second nominal clock
117419         resolution is found.
117421         * lib/lchmod.h: New file.
117422         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117423         (make_dir_parents): Use lchown rather than chown, and
117424         lchmod rather than chmod.
117426         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117427         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117428         "proc" reported by n0dalus.
117430         * lib/mountlist.c: Include <limits.h>.
117431         (dev_from_mount_options)
117432         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117433         New function.  It no longer assumes "dev=" has the System V meaning
117434         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117435         (read_file_system_list)
117436         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117437         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117438         dev= in that case.
117440         * lib/posixtm.h (PDS_PRE_2000): New macro.
117441         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117442         allow_century.  All usages changed.  Reject dates outside the range
117443         1969-1999 if PDS_PRE_2000 is used.
117445 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117447         Sync from coreutils.
117448         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117449         (Time of day items): Mention the possibility of leap seconds.
117450         Problem reported by Dr. David Alan Gilbert.
117452 2006-01-09  Jim Meyering  <jim@meyering.net>
117454         Sync from coreutils.
117456         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117458         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117460         * lib/modechange.c (mode_compile): Reject an invalid mode string
117461         that starts with an octal digit.  From Andreas Gruenbacher.
117463         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117464         and dup to open_safer and dup_safer, respectively.
117465         (openat_permissive): Fix typo in comment.
117467         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117468         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117469         (_): Remove; no longer needed.
117470         (openat): Renamed from rpl_openat; no need for rpl_openat
117471         since openat.h renames openat for us.
117472         Replace most of the body with a call to openat_permissive,
117473         to avoid duplicate code.
117474         Port to (probably hypothetical) environments were mode_t is
117475         wider than int.
117476         (openat_permissive): Require mode arg, so that we can check
117477         types better.  Put it just after flags.  Change cwd failure
117478         indicator from pointer-to-bool to pointer-to-errno-value.
117479         All callers changed.
117480         Invoke openat_save_fail and/or openat_restore_fail if
117481         cwd_errno is null, so that openat can call us.
117482         (openat_permissive, fdopendir, fstatat, unlinkat):
117483         Simplify errno handling to avoid some duplicate code,
117484         as it's OK to set errno on success.
117485         * lib/openat.h: Revamp code so that function macros depend on
117486         __OPENAT_PREFIX only, not also on AT_FDCWD.
117487         (openat_ro): Remove.  Caller changed to use openat_permissive.
117488         (openat_permissive): Now a macro, if not a function.
117489         (openat_restore_fail, openat_save_fail): Now always functions,
117490         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117492         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117493         and openat.c.
117494         * lib/mkdirat.c: Include openat-priv.h.
117495         Remove definitions of macros defined therein.
117496         * lib/openat.c: Likewise.
117498         * lib/mkdirat.c (mkdirat): New file and function.
117499         * lib/openat.h (mkdirat): Declare.
117501         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117503         * lib/openat.h (openat_permissive): Declare.
117504         (openat_ro): Define.
117506         * lib/openat.c (EXPECTED_ERRNO): New macro.
117507         (openat_permissive): New function -- used in remove.c rewrite.
117508         (all functions): Set errno just before returning, only if there
117509         was an actual failure.
117510         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117512         Emulate openat-family functions using Linux's procfs, if possible.
117513         Idea and some code based on Ulrich Drepper's glibc changes.
117515         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117516         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117517         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117518         before falling back on save_cwd and restore_cwd.
117519         (fdopendir, fstatat, unlinkat): Likewise.
117521         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117522         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117524         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117525         as second argument to va_arg.  Otherwise, some versions of gcc
117526         warn that `if this code is reached, the program will abort'.
117528 2006-01-09  Jim Meyering  <jim@meyering.net>
117530         Sync from coreutils.
117531         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117532         Require openat-priv.h.
117534 2006-01-09  Bruno Haible  <bruno@clisp.org>
117536         * modules/strnlen (Include): Use strnlen.h.
117538 2006-01-09  Bruno Haible  <bruno@clisp.org>
117540         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117542 2006-01-09  Bruno Haible  <bruno@clisp.org>
117544         * lib/sysexit_.h (EX_OK): New macro.
117545         Suggested by Martin Lambers <marlam@marlam.de>.
117547 2006-01-09  Bruno Haible  <bruno@clisp.org>
117549         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117550         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117552 2006-01-09  Bruno Haible  <bruno@clisp.org>
117554         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117555         numbers.
117557 2006-01-09  Bruno Haible  <bruno@clisp.org>
117559         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117560         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117561         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117562         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117564 2006-01-09  Bruno Haible  <bruno@clisp.org>
117566         * build-aux/javacomp.sh.in: New file, moved from lib/.
117567         * modules/javacomp-script (Files): Update.
117568         (configure.ac): Add AC_CONFIG_FILES invocation.
117569         (EXTRA_DIST): Remove variable.
117571         * build-aux/javaexec.sh.in: New file, moved from lib/.
117572         * modules/javaexec (Files): Update.
117573         (configure.ac): Add AC_CONFIG_FILES invocation.
117574         (EXTRA_DIST): Remove javaexec.sh.in.
117576         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117577         * modules/csharpcomp-script (Files): Update.
117578         (configure.ac): Add AC_CONFIG_FILES invocation.
117579         (EXTRA_DIST): Remove variable.
117581         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117582         * modules/csharpexec (Files): Update.
117583         (configure.ac): Add AC_CONFIG_FILES invocation.
117584         (EXTRA_DIST): Remove csharpexec.sh.in.
117586 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117588         Sync from coreutils.
117590         Add POSIX ACL support
117591         * lib/acl.h (copy_acl, set_acl): Add declarations.
117592         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117593         systems other than Linux.
117594         (chmod_or_fchmod): New function: use fchmod when possible,
117595         and chmod otherwise.
117596         (file_has_acl): Add a POSIX ACL implementation, with a
117597         Linux-specific subcase.
117598         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117599         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117600         acls are unsupported.
117601         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117602         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117603         are unsupported.
117605 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117607         Sync from coreutils.
117608         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117610 2006-01-07  Bruno Haible  <bruno@clisp.org>
117612         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117613         gl_EARLY.
117615 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117617         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117618         Problem reported for Mingw by Mark Junker.
117620 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117622         * README: Gnulib normally doesn't generate a tarball.
117624 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117626         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117627         long int, not int, for nanosecond counts, so that people who are
117628         used to POSIX struct timespec won't be surprised.  Reported by Jim
117629         Meyering.
117631 2005-12-28  Bruno Haible  <bruno@clisp.org>
117633         * build-aux/config.rpath: Update from GNU gettext.
117635 2005-12-16  Jim Meyering  <jim@meyering.net>
117637         * modules/fprintftime: New module.
117638         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117640 2005-12-16  Jim Meyering  <jim@meyering.net>
117642         * m4/fprintftime.m4: New file.
117644 2005-12-16  Jim Meyering  <jim@meyering.net>
117646         * lib/fprintftime.c, lib/fprintftime.h: New files.
117648 2005-12-15  Simon Josefsson  <jas@extundo.com>
117650         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117651         new m4/socklen.m4.
117653 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117655         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117656         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117658 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117660         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117661         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117662         struct uparams is valid. Fall back to the default values if it is
117663         not.
117665 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117667         * modules/argp (Files): Add argp-pin.c
117668         (Depends-on): dirname
117669         (lib_SOURCES): Add argp-pin.c
117671 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117673         * m4/argp.m4:  Check if program_invocation_name and
117674         program_invocation_short_name are declared and define appropriate
117675         macros if they are not.
117677 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117679         * lib/argp-help.c (__argp_base_name): New function
117680         (__argp_short_program_name): Rewrite using __argp_base_name
117681         * lib/argp-namefrob.h: Define program_invocation_name and
117682         program_invocation_short_name if requested
117683         (__argp_base_name): Add prototype
117684         * lib/argp-parse.c (argp_def): Use gettext wrappers
117685         (argp_default_parser): Use __argp_base_name
117686         * lib/argp-pin.c: New file. Defines program_invocation_name and
117687         program_invocation_short_name on systems that lack them.
117689 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117691         * m4/stat-time.m4 (gl_STAT_TIME): 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-07  Paul Eggert  <eggert@cs.ucla.edu>
117698         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117699         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117700         porting problem reported by Georg Schwarz in
117701         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117703 2005-12-05  Bruno Haible  <bruno@clisp.org>
117705         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117706         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117707         Reported by Mark Junker <mjscod@gmx.de>.
117709 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117711         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117712         Use implementation from Albert Chin, with some
117713         comments/corrections by Stepan Kasal and myself.
117715 2005-12-02  Bruno Haible  <bruno@clisp.org>
117717         * gnulib-tool (func_import): Accept GPLed build tool modules when
117718         --lgpl is given.
117719         * modules/csharpcomp-script: New file.
117720         * modules/csharpcomp: Depend on it.
117721         * modules/javacomp-script: New file.
117722         * modules/javacomp: Depend on it.
117723         Suggested by Simon Josefsson.
117725 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117727         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117728         statement, to work around an HP-UX 10.20 compiler bug reported by
117729         Peter O'Gorman.
117731 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117733         * modules/savedir (Depends-on): Add openat.
117735 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117737         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117738         (uintmax_t) [defined uintmax_t]: Do not declare.
117739         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117740         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117741         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117742         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117743         sake of portability to weird hosts that C allows (though we don't
117744         know of any practical examples).
117746         * lib/savedir.h (fdsavedir): New decl.
117747         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117748         contains most of the former guts of savedir.
117749         (savedir): Use savedirstream.
117750         Include "openat.h".
117752 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117754         * modules/obstack (Files): Add m4/ulonglong.m4.
117755         Problem reported by Davide Angelocola.
117757 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117759         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117760         coreutils no longer futzes with rounding modes.
117762 2005-11-14  Jim Meyering  <jim@meyering.net>
117764         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117765         replacement of mkstemp.
117767 2005-11-10  Simon Josefsson  <jas@extundo.com>
117769         * lib/readline.c: Remove EOL.
117771 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117773         * modules/gethrxtime (Depends-on): Add gettime.
117775 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117777         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117778         or gettimeofday; no longer needed.
117780 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117782         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117783         time business.
117784         (gethrxtime) [! (HAVE_NANOUPTIME
117785         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117786         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117787         our own approximation.
117789 2005-11-08  Eric Blake  <ebb9@byu.net>
117791         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117793 2005-11-08  Eric Blake  <ebb9@byu.net>
117795         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117797 2005-11-04  Bruno Haible  <bruno@clisp.org>
117799         * gnulib-tool: Implement --update mode.
117801 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117803         Fix porting problem reported by Theodoros V. Kalamatianos.
117804         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117805         Don't assume that futimes failing means we must fail.
117807 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117809         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117810         variables to suggest the intended function of the PATH_MAX check.
117812 2005-10-30  Kean Johnston  <jkj@sco.com>
117814         Trivial changes to support SCO systems.
117815         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117816         as PATH_MAX.
117817         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117818         where __ptr is null when no I/O is pending.
117820 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117822         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117823         leave errno alone.  Problem reported by Dmitry V. Levin.
117825 2005-10-28  Simon Josefsson  <jas@extundo.com>
117827         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117828         Test more.
117830         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117832         * modules/md2, modules/md2-tests: New files.
117834 2005-10-28  Simon Josefsson  <jas@extundo.com>
117836         * m4/inet_ntop.m4: More tests.
117838         * m4/gc-md2.m4, md2.m4: New file.
117840 2005-10-28  Simon Josefsson  <jas@extundo.com>
117842         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117843         "restrict" keywords, as per POSIX.  Protect the function
117844         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117845         Don't use K&R prototypes.  Check the sprintf return values.
117846         Re-define EAFNOSUPPORT if not present.  Indent.
117848         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117849         suggested by Bruno Haible <bruno@clisp.org>.
117851         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117853         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117855         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117856         libgcrypt).
117858         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117860         * lib/md2.h, lib/md2.c: New files.
117862 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117864         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117865         errno alone.  Problem reported by Frederic Jolliton.
117867 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117869         * modules/verify (License): Change from GPL to LGPL.  This is a
117870         tiny module and there are apparently near-equivalents that are
117871         under the BSD license.
117873 2005-10-24  Simon Josefsson  <jas@extundo.com>
117875         * modules/sha1: Relicense to LGPL.
117877 2005-10-24  Simon Josefsson  <jas@extundo.com>
117879         * lib/md4.h: Shrink buffer size, now that we changed the type.
117881 2005-10-23  Simon Josefsson  <jas@extundo.com>
117883         * gnulib-tool (func_import): Fix --tests-base.
117885 2005-10-22  Simon Josefsson  <jas@extundo.com>
117887         * modules/arcfour (Depends-on): Need stdint.
117889 2005-10-22  Simon Josefsson  <jas@extundo.com>
117891         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117892         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117894 2005-10-22  Simon Josefsson  <jas@extundo.com>
117896         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117897         suggested by Bruno Haible <bruno@clisp.org>.
117899 2005-10-22  Simon Josefsson  <jas@extundo.com>
117901         * lib/crc.h: Include stddef.h, for size_t.
117903 2005-10-22  Simon Josefsson  <jas@extundo.com>
117905         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117906         arcfour_context struct (simplify test vector testing in GNU
117907         Shishi).
117909 2005-10-21  Simon Josefsson  <jas@extundo.com>
117911         * modules/des, modules/des-tests: New files.
117913         * modules/gc-des, modules/gc-des-tests: New files.
117915         * tests/test-des.c, tests/test-gc-des.c: New file.
117917 2005-10-21  Simon Josefsson  <jas@extundo.com>
117919         * modules/arctwo, modules/arctwo-tests: New files.
117921         * tests/test-arctwo.c: New file.
117923         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117925         * tests/test-gc-arctwo.c: New file.
117927 2005-10-21  Simon Josefsson  <jas@extundo.com>
117929         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117930         Bruno Haible <bruno@clisp.org>.
117932         * m4/gc-des.m4: New file.
117934 2005-10-21  Simon Josefsson  <jas@extundo.com>
117936         * m4/arctwo.m4: New file.
117938         * m4/gc-arctwo.m4: New file.
117940 2005-10-21  Simon Josefsson  <jas@extundo.com>
117942         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117943         block.
117945 2005-10-21  Simon Josefsson  <jas@extundo.com>
117947         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117948         <bruno@clisp.org>.
117950         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117952         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117953         Bruno Haible <bruno@clisp.org>.
117955         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117956         <bruno@clisp.org>.
117958 2005-10-21  Simon Josefsson  <jas@extundo.com>
117960         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117962 2005-10-21  Simon Josefsson  <jas@extundo.com>
117964         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117966 2005-10-21  Simon Josefsson  <jas@extundo.com>
117968         * lib/des.h, lib/des.c: New files.
117970         * lib/gc-gnulib.c: Support DES.c
117972 2005-10-21  Simon Josefsson  <jas@extundo.com>
117974         * lib/arctwo.h, lib/arctwo.c: New files.
117976         * lib/gc-gnulib.c: Support ARCTWO.
117978 2005-10-21  Simon Josefsson  <jas@extundo.com>
117980         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117981         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117983 2005-10-21  Simon Josefsson  <jas@extundo.com>
117985         * gnulib-tool (func_import, func_create_testdir): Define automake
117986         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117987         Makefile.am snippet),
117988         suggested by Bruno Haible <bruno@clisp.org>.
117990         * modules/gc (Makefile.am): Use it.
117992 2005-10-21  Bruno Haible  <bruno@clisp.org>
117994         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117995         patch.
117997 2005-10-19  Simon Josefsson  <jas@extundo.com>
117999         * tests/test-gc-rijndael.c: New file.
118001         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
118003 2005-10-19  Simon Josefsson  <jas@extundo.com>
118005         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
118006         interface too.
118008 2005-10-19  Simon Josefsson  <jas@extundo.com>
118010         * tests/test-gc-arcfour.c: New file.
118012         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
118014 2005-10-19  Simon Josefsson  <jas@extundo.com>
118016         * modules/gc-md4, modules/gc-md4-tests: New file.
118018         * tests/test-gc-md4.c: New file.
118020 2005-10-19  Simon Josefsson  <jas@extundo.com>
118022         * m4/gc-md4.m4: New file.
118024 2005-10-19  Simon Josefsson  <jas@extundo.com>
118026         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
118027         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
118028         <kasal@ucw.cz>.
118030 2005-10-19  Simon Josefsson  <jas@extundo.com>
118032         * m4/gc-arcfour.m4: New file.
118034         * m4/gc-rijndael.m4: New file.
118036 2005-10-19  Simon Josefsson  <jas@extundo.com>
118038         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
118040 2005-10-19  Simon Josefsson  <jas@extundo.com>
118042         * lib/gc-gnulib.c: Support ARCFOUR.
118044 2005-10-19  Simon Josefsson  <jas@extundo.com>
118046         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
118047         support.
118049         * lib/gc.h: Add ECB enum type.
118051         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
118053 2005-10-18  Simon Josefsson  <jas@extundo.com>
118055         * tests/test-md5.c: New file.
118057         * modules/md5-tests: New file.
118059 2005-10-18  Simon Josefsson  <jas@extundo.com>
118061         * tests/test-md4.c: New file.
118063         * modules/md4, modules/md4-tests: New files.
118065 2005-10-18  Simon Josefsson  <jas@extundo.com>
118067         * m4/md4.m4: New file.
118069 2005-10-18  Simon Josefsson  <jas@extundo.com>
118071         * lib/md4.h, lib/md4.c: New files, based on md5.?.
118073 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
118075         * gnulib-tool (func_create_testdir): Omit the second check whether
118076         BUILT_SOURCES in nonempty.
118078 2005-10-17  Simon Josefsson  <jas@extundo.com>
118080         * tests/test-rijndael.c: New file.
118082 2005-10-17  Simon Josefsson  <jas@extundo.com>
118084         * modules/sha1: Depend on stdint instead of md5.
118086         * modules/md5: Depend on stdint, remove uint32_t.
118088 2005-10-17  Simon Josefsson  <jas@extundo.com>
118090         * modules/gc-sha1-tests: New file.
118092         * tests/test-gc-sha1.c: New file.
118094 2005-10-17  Simon Josefsson  <jas@extundo.com>
118096         * m4/md5.m4: Remove call to uint32_t.m4.
118098 2005-10-17  Simon Josefsson  <jas@extundo.com>
118100         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
118102         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
118103         md5.h.
118105         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
118107         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
118109 2005-10-17  Simon Josefsson  <jas@extundo.com>
118111         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
118113 2005-10-17  Simon Josefsson  <jas@extundo.com>
118115         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
118117 2005-10-17  Simon Josefsson  <jas@extundo.com>
118119         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
118121         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
118123 2005-10-17  Bruno Haible  <bruno@clisp.org>
118125         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
118126         that it can also be used in a test.
118128 2005-10-16  Bruno Haible  <bruno@clisp.org>
118130         * gnulib-tool (func_emit_tests_Makefile_am): Also define
118131         TESTS_ENVIRONMENT, so that individual tests can augment it.
118133         * gnulib-tool (func_create_testdir): Use an intermediate target for
118134         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
118135         macros, like $(ALLOCA_H), which cannot be passed through the command
118136         line.
118138 2005-10-15  Simon Josefsson  <jas@extundo.com>
118140         * modules/rijndael-tests: New file.
118142         * modules/rijndael: New file.
118144 2005-10-15  Simon Josefsson  <jas@extundo.com>
118146         * m4/rijndael.m4: New file.
118148 2005-10-15  Simon Josefsson  <jas@extundo.com>
118150         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
118152         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
118154 2005-10-14  Simon Josefsson  <jas@extundo.com>
118156         * tests/test-arcfour.c: New file.
118158         * modules/arcfour, modules/arcfour-tests: New files.
118160 2005-10-14  Simon Josefsson  <jas@extundo.com>
118162         * m4/arcfour.m4: New file.
118164 2005-10-14  Simon Josefsson  <jas@extundo.com>
118166         * lib/arcfour.h, lib/arcfour.c: New files.
118168 2005-10-14  Roland McGrath  <roland@redhat.com>
118170         Import from libc.  [BZ #1331]
118171         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
118172         macro argument.
118173         Reported by Matej Vela <vela@debian.org>.
118175 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118177         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
118178         include <wchar.h>; no longer needed.
118180 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
118182         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
118184 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
118185         and  Ulrich Drepper  <drepper@redhat.com>
118187         Import from libc.
118188         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
118189         instead of inline stream orientation test and two separate
118190         function calls.  Pay no attention to USE_IN_LIBIO.
118192 2005-10-13  Simon Josefsson  <jas@extundo.com>
118194         * modules/gc-hmac-md5-tests: New file.
118196         * tests/test-gc-hmac-sha1.c: New file.
118198         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
118200         * modules/gc-hmac-md5-tests: New file.
118202         * tests/test-gc-md5.c: New file.
118204         * modules/gc-md5-tests: New file.
118206 2005-10-13  Simon Josefsson  <jas@extundo.com>
118208         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
118209         Move memory allocation outside of loop.
118211 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
118213         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
118214         intermediate directory is in a read-only file system.  Problem
118215         reported by Eric Blake.
118217 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
118219         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
118221 2005-10-12  Simon Josefsson  <jas@extundo.com>
118223         * tests/test-hmac-sha1.c: New file.
118225         * modules/hmac-sha1-tests: New file.
118227         * modules/hmac-sha1: New file.
118229 2005-10-12  Simon Josefsson  <jas@extundo.com>
118231         * modules/gc-sha1: New file.
118233 2005-10-12  Simon Josefsson  <jas@extundo.com>
118235         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
118237         * tests/test-gc-pbkdf2-sha1.c: New file.
118239 2005-10-12  Simon Josefsson  <jas@extundo.com>
118241         * modules/gc-md5, modules/gc-hmac-md5: New files.
118243         * modules/gc (Files): Remove md5, memxor and hmac files.
118245 2005-10-12  Simon Josefsson  <jas@extundo.com>
118247         * m4/gc-pbkdf2-sha1.m4: New file.
118249         * m4/gc-hmac-sha1.m4: New file.
118251         * m4/gc-sha1: New file.
118253         * m4/hmac-sha1.m4: New file.
118255 2005-10-12  Simon Josefsson  <jas@extundo.com>
118257         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118259         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118261 2005-10-12  Simon Josefsson  <jas@extundo.com>
118263         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118264         suggested by Bruno Haible <bruno@clisp.org>.
118266 2005-10-12  Simon Josefsson  <jas@extundo.com>
118268         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118270 2005-10-12  Simon Josefsson  <jas@extundo.com>
118272         * lib/gc-pbkdf2-sha1.c: New file.
118274         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118276 2005-10-12  Simon Josefsson  <jas@extundo.com>
118278         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118280         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118282 2005-10-12  Simon Josefsson  <jas@extundo.com>
118284         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118285         GC_USE_HMAC_MD5, respectively.
118287         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118288         (gc_md5): Fix typo.
118290         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118292         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118294         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118296 2005-10-12  Bruno Haible  <bruno@clisp.org>
118298         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118299         Reported by Stepan Kasal <kasal@ucw.cz>.
118301 2005-10-11  Simon Josefsson  <jas@extundo.com>
118303         * tests/test-crc.c: New file.
118305         * modules/crc, modules/crc-tests: New files.
118307 2005-10-11  Simon Josefsson  <jas@extundo.com>
118309         * m4/crc.m4: New file.
118311 2005-10-11  Simon Josefsson  <jas@extundo.com>
118313         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118315         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118317         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118319 2005-10-11  Simon Josefsson  <jas@extundo.com>
118321         * lib/crc.h, lib/crc.c: New files.
118323         * lib/gc.h (gc_hash_buffer): Add doc.
118325 2005-10-11  Bruno Haible  <bruno@clisp.org>
118327         * modules/c-strcasestr: New file.
118328         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118330 2005-10-11  Bruno Haible  <bruno@clisp.org>
118332         * modules/c-strcase: New file.
118333         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118335 2005-10-11  Bruno Haible  <bruno@clisp.org>
118337         * lib/strcasecmp.c: Include limits.h.
118338         (strcasecmp): Avoid integer overflow on exotic platforms.
118339         * lib/strncasecmp.c: Include limits.h.
118340         (strncasecmp): Avoid integer overflow on exotic platforms.
118341         Reported by Paul Eggert.
118343 2005-10-11  Bruno Haible  <bruno@clisp.org>
118345         * lib/c-strcasestr.h: New file, from GNU gettext.
118346         * lib/c-strcasestr.c: New file, from GNU gettext.
118348 2005-10-11  Bruno Haible  <bruno@clisp.org>
118350         * lib/c-strcase.h: New file, from GNU gettext.
118351         * lib/c-strcasecmp.c: New file, from GNU gettext.
118352         * lib/c-strncasecmp.c: New file, from GNU gettext.
118354 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118356         * modules/mempcpy (License): GPL -> LGPL.
118357         * modules/strchrnul (License): Likewise.
118358         * modules/sysexits (License): Likewise.
118360 2005-10-08  Simon Josefsson  <jas@extundo.com>
118362         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118364 2005-10-07  Simon Josefsson  <jas@extundo.com>
118366         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118368 2005-10-06  Simon Josefsson  <jas@extundo.com>
118370         * tests/test-hmac-md5.c: New file.
118372         * modules/hmac-md5-tests: New file.
118374         * modules/hmac-md5: New file.
118376 2005-10-06  Simon Josefsson  <jas@extundo.com>
118378         * m4/hmac-md5.m4: New file.
118380         * m4/memxor.m4: Require gl_C_RESTRICT.
118382 2005-10-06  Simon Josefsson  <jas@extundo.com>
118384         * lib/memxor.c (memxor): Avoid casts and warnings.
118386 2005-10-06  Simon Josefsson  <jas@extundo.com>
118388         * lib/hmac-md5.c: New file.
118390         * lib/hmac.h: New file.
118392 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118394         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118395         promotes to int, not unsigned int, to catch the AIX 5.3
118396         compiler bug.
118398 2005-10-05  Simon Josefsson  <jas@extundo.com>
118400         * modules/memxor: New file.
118402         * modules/iconv (Files): Move config.rpath to havelib, it is used
118403         there.
118405         * modules/havelib (Files): Add config.rpath.
118407 2005-10-05  Simon Josefsson  <jas@extundo.com>
118409         * m4/memxor.m4: New file.
118411 2005-10-05  Simon Josefsson  <jas@extundo.com>
118413         * lib/memxor.c (memxor): Fix compiler error.
118415         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118416         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118418         * lib/memxor.h, lib/memxor.c: New files.
118420         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118421         we assume all systems have it, suggested by Jim Meyering
118422         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118423         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118424         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118425         same reasons.
118427 2005-10-05  Simon Josefsson  <jas@extundo.com>
118429         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118431 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118433         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118434         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118435         needed, since the source code now assumes these .h files.
118437 2005-10-05  Derek Price  <derek@ximbiot.com>
118439         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118441 2005-10-05  Bruno Haible  <bruno@clisp.org>
118443         * modules/stdint (License): Change to LGPL.
118445 2005-10-04  Simon Josefsson  <jas@extundo.com>
118447         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118448         D. Baushke" <mdb@gnu.org>.
118450 2005-10-04  Bruno Haible  <bruno@clisp.org>
118452         * lib/verify.h (verify_true): Provide alternative definition for C++.
118454 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118456         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118457         (SSIZE_MAX): New macro, if not already defined.
118458         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118459         than 2 GiB.
118461 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118463         Sync from coreutils.
118464         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118465         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118466         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118467         ULLONG_MAX doesn't work with 2.7.2.1.
118469 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118471         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118472         From Ben Pfaff.
118474         * modules/exclude (Depends-on): Depend on verify.
118475         * modules/strtoimax (Depends-on): Likewise.
118476         * modules/utimecmp (Depends-on): Likewise.
118478 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118480         * lib/exclude.c: Include verify.h.
118481         (verify): Remove.  All callers changed to use verify.h's version.
118482         * lib/strtoimax.c: Likewise.
118483         * lib/utimecmp.c: Likewis.e
118485         Sync from coreutils.
118486         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118487         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118488         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118489         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118490         bother returning ENOSYS if settimeofday or stime fails; just let
118491         them return whatever errno they want to return.
118492         * lib/utimens.c: Include unistd.h, for dup2.
118493         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118494         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118496 2005-10-02  Jim Meyering  <jim@meyering.net>
118498         Sync from coreutils.
118499         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118500         from glibc-2.2.5 that fails for read-only files.
118502 2005-10-02  Jim Meyering  <jim@meyering.net>
118504         Sync from coreutils.
118505         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118506         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118507         `#if HAVE_CONFIG_H'.
118508         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118509         Remove AT_FDCWD test.
118510         Do not consume the fd unless successful.
118511         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118512         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118513         block, so that we don't even try to compile it if settimeofday is
118514         available.  This works around a compilation failure on OSF1 V5.1,
118515         due to stime requiring a `long int*' while tv_sec is `int'.
118517 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118519         Sync from coreutils.
118520         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118521         against `yes', rather than just testing for nonempty.
118523 2005-10-01  Simon Josefsson  <jas@extundo.com>
118525         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118526         and Darwin.
118528         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118529         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118530         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118531         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118532         Check if struct addrinfo is declared.
118534 2005-10-01  Simon Josefsson  <jas@extundo.com>
118536         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118537         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118538         AI_* and EAI_* definitions.  Protect function declarations.
118540 2005-10-01  Jim Meyering  <jim@meyering.net>
118542         Sync from coreutils.
118544         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118545         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118546         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118548         in the inet and nsl libraries.  Required on Solaris 5.7.
118550 2005-10-01  Jim Meyering  <jim@meyering.net>
118552         Sync from coreutils.
118553         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118554         in the inet and nsl libraries.  Required on Solaris 5.7.
118556 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118558         * lib/getdelim.c (getdelim): Remove unused variables.
118560 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118562         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118563         so that the code works even with ancient cpp.  Portability problem
118564         with GCC 2.7.2.1 reported by Thomas M.Ott.
118566 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118568         * modules/regex (Depends-on): Add strcase.
118570         * modules/gethostname (Licence): Change from GPL to LGPL, since
118571         gethostname.c is a trivial implementation of a standard library
118572         function.
118573         * modules/poll (License): Change from GPL to LGPL, since it's
118574         derived from LGPL code.
118576 2005-09-27  Jim Meyering  <jim@meyering.net>
118578         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118579         HAVE_CONFIG_H.
118581         * lib/intprops.h (signed_type_or_expr__): Define.
118582         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118583         for unsigned types.
118585 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118587         * lib/verify.h (verify_expr): Remove, replacing with:
118588         (verify_true): New macro that returns true instead of void.
118589         (verify_type__): Remove.
118590         (verify): Use verify_true rather than verify_type__.
118592 2005-09-26  Bruno Haible  <bruno@clisp.org>
118594         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118595         is necessary.
118596         (lib_SOURCES): Remove mbchar.c.
118597         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118598         (Files): Add m4/mbrtowc.m4.
118599         * modules/mbiter: Likewise.
118600         * modules/mbuiter: Likewise.
118602 2005-09-26  Bruno Haible  <bruno@clisp.org>
118604         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118605         compile mbchar.c if they are not both present.
118606         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118607         * m4/mbiter.m4 (gl_MBITER): Likewise.
118608         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118609         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118610         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118612 2005-09-25  Jim Meyering  <jim@meyering.net>
118614         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118615         also uses socklen_t.
118617 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118619         * lib/utimens.c (ENOSYS): Define if not already defined.
118620         (futimens): Support having a null PATH if the file descriptor
118621         is nonnegative.
118623         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118624         Remove.
118625         (__attribute): Define to empty unless GCC 3.1 or later.
118626         This works around a core dump on OpenBSD 3.4, which has GCC
118627         2.95.3, which dumps core when given __attribute__(()).  It also
118628         simplifies other tests, since we really don't want to bother with
118629         worrying about which ancient version of GCC supported what.
118630         Original problem reported by Yoann Vandoorselaere, with part of
118631         the fix suggested by Derek Price.
118633 2005-09-24  Jim Meyering  <jim@meyering.net>
118635         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118636         so we can once again use a positive bitfield width of 1 -- now we
118637         don't have to explain why we were using a bitfield width of 2.
118639 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118641         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118642         and similarly for the other external symbols.  Problem reported
118643         by James Gallager.
118645         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118646         bug reported by Jim Meyering.
118648         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118649         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118650         not needed, since socklen is a prerequisite module.
118652 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118654         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118655         Problem reported by Eric Blake.
118656         (getaddrinfo): Initialize se so that it's not garbage.
118657         Redo internal storage allocation so that it doesn't make unportable
118658         assumptions about alignment.
118659         Fix a memory leak.
118661         * lib/utimens.c (futimens): Use futimesat if available.
118662         Prefer it to futimes since it doesn't have the futimes bug.
118664         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118665         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118666         Instead, declare a function that returns a pointer to an array,
118667         and use verify_type__ to declare the size of the array.
118668         Problem and germ of a solution reported by Bruno Haible.
118669         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118670         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118672 2005-09-23  Jim Meyering  <jim@meyering.net>
118674         Sync from coreutils.
118675         Correct build failure (socklen_t not defined) on at least
118676         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118679 2005-09-23  Jim Meyering  <jim@meyering.net>
118681         * modules/getaddrinfo (Depends-on): Add socklen.
118683 2005-09-23  Bruno Haible  <bruno@clisp.org>
118685         * tests/test-verify.c: New file.
118687 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118689         Sync from coreutils.
118691         * modules/argmatch (Depends-on): Add verify.
118692         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118693         unistd-safer.
118694         * modules/save-cwd (Depends-on): Likewise.
118696         * modules/openat (Files): Add lib/openat-die.c.
118697         (Depends-on): Remove error, exitfail.
118698         Add dirname.
118700         * modules/verify: New file.
118701         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118702         with "verify" module.
118704 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118706         Sync from coreutils.
118708         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118709         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118710         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118711         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118712         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118713         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118714         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118715         Don't bother checking for string.h, stdlib.h, unistd.h.
118716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118717         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118718         module's job.
118719         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118720         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118722         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118723         (gl_GETDATE): Use it.
118725         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118727 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118729         Sync from coreutils.
118731         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118732         stat-time.h.
118733         * lib/argmatch.h: Include verify.h
118734         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118735         (ARGMATCH_ASSERT): Remove; unused.
118736         * lib/canonicalize.c: Assume STDC_HEADERS.
118737         * lib/exclude.c: Include "strcase.h".
118738         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118739         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118740         and stdio-safer.h.
118741         (getusershell): Call fopen, not fopen_safer.
118742         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118743         Do not include unistd-safer.h.
118744         (save_cwd): Don't call fd_safer; no longer needed
118745         now that we include fcntl--.h.
118747         * lib/getdate.y (relative_time): New type.
118748         (RELATIVE_TIME_0): New constant.
118749         (parser_control): Use relative_time instead of doing it ourselves.
118750         (%union): Add new relative_time rel member.
118751         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118752         Now typeless.
118753         (relunit, relunit_snumber): Now of type rel.
118754         (zone, rel, relunit, get_date): Adjust to above changes.
118756         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118757         Do not include unistd-safer.h.
118758         (getloadavg): Don't call fd_safer; no longer needed
118759         now that we include fcntl--.h.
118761         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118762         (make_dir_parents): Treat ENOSYS like EEXIST.
118764         Improve quality of diagnostics on restore_cwd failure.
118765         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118766         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118767         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118768         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118769         each time through the loop.  Do not diagnose restore_cwd failure;
118770         that is the caller's job (and perhaps the caller does not care).
118772         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118773         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118774         If the file already exists but is not a directory, don't bother
118775         to try to make its parents.
118776         Close potential file descriptor leak if we can't chdir("/") (!).
118777         Don't always return true if chdir($PWD) fails; return true only
118778         if the requested action was done successfully (except for the
118779         chdir($PWD)).
118780         Don't log final directory unless we actually made it.
118781         Refactor to avoid duplicate code to fix up permissions.
118782         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118784         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118785         to make it a bit faster and (I hope) clearer.
118786         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118787         Fix bug in formats like %2N.
118789         * lib/verify.h: New file.
118791 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118793         Sync from coreutils.
118794         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118796 2005-09-22  Jim Meyering  <jim@meyering.net>
118798         Sync from coreutils.
118800         * m4/lstat.m4 (gl_FUNC_LSTAT):
118801         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118802         Remove obsolete comment.
118803         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118804         * m4/xstrtod.m4: Likewise.
118806         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118808 2005-09-22  Jim Meyering  <jim@meyering.net>
118810         Sync from coreutils.
118812         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118814         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118815         the .tm_year member, since otherwise gcc-4.0 would now warn about
118816         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118818         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118819         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118821         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118822         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118823         when run in a time zone for which daylight savings time is in effect
118824         for the starting date.
118826         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118827         stop us from restricting permissions of just-created absolute-named
118828         directories.
118829         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118830         to restore initial working directory.
118831         * lib/mkdir-p.c (make_dir_parents): New parameter:
118832         different_working_dir, to tell caller if/when we change the working
118833         directory and are unable to return to the initial one.
118834         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118835         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118836         `return false'.  This fixes a bug introduced on 2004-07-30.
118838         * lib/openat.c (fdopendir): Be sure to close the supplied
118839         file descriptor before returning.  This makes our replacement
118840         implementation a little closer to Solaris's, where fdopendir
118841         ties the file descriptor to the returned DIR* pointer.
118842         * lib/openat.c (unlinkat): New function.
118843         * lib/openat.h (unlinkat): Add prototype.
118844         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118845         (openat_restore_fail): Rename from openat_restore_die.
118846         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118848         Provide an alternative to exiting immediately upon save_cwd or
118849         restore_cwd failure.  Now, an application can arrange e.g.,
118850         to perform a longjump in that case.
118851         * lib/openat.c: Include dirname.h.
118852         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118853         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118854         and openat_restore_die rather than calling error directly.
118855         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118857         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118858         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118859         define.
118861         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118862         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118863                             int utc, int nanoseconds);
118864         Background:
118865         date should not have to allocate a megabyte of virtual memory to
118866         handle a format argument like +%1048575T.  When implemented with
118867         strftime, it must allocate such a buffer, use strftime to fill it
118868         in, print it, then free it.
118869         With fprintftime, it simply prints everything and exits.
118870         With no need for memory allocation, that's one fewer way to fail.
118871         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118872         optional field width, not before, so we accept %9:z, not %:9z.
118873         (my_strftime): Be sure to use L_('x') for literals.
118875         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118876         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118877         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118878         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118879         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118880         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118881         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118882         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118883         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118884         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118885         * lib/xgethostname.c, lib/xreadlink.c:
118886         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118888         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118889         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118890         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118891         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118892         and don't include <sys/file.h>).
118894 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118896         Sync from coreutils.
118898         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118899         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118900         [!LDAV_DONE]: Avoid unused variable warning.
118902 2005-09-21  Bruno Haible  <bruno@clisp.org>
118904         * lib/unicodeio.h (unicode_to_mb): New declaration.
118906 2005-09-20  Derek Price  <derek@ximbiot.com>
118908         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118909         getaddrinfo.h.
118911 2005-09-20  Bruno Haible  <bruno@clisp.org>
118913         * gnulib-tool: Remove trailing slashes from the values specified for
118914         --source-base, --m4-base, --tests-base, --aux-dir.
118915         Suggested by Simon Josefsson <jas@extundo.com>.
118917 2005-09-20  Bruno Haible  <bruno@clisp.org>
118919         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118920         func_modules_to_filelist, func_import, func_create_testdir): Make all
118921         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118922         change when gnulib-tool is invoked in a different locale.
118924 2005-09-19  Simon Josefsson  <jas@extundo.com>
118926         * m4/socklen.m4: Fix typo.
118928 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118930         Use a consistent style for including <config.h>.
118931         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118932         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118933         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118934         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118935         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118936         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118937         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118938         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118939         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118940         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118941         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118942         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118943         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118944         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118945         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118946         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118947         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118948         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118949         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118950         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118951         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118952         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118953         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118954         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118955         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118956         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118957         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118958         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118959         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118960         lib/xstrtoumax.c, lib/yesno.c:
118961         Standardize inclusion of config.h.
118962         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118963         lib/inttostr.h:  Removed inclusion of config.h from header files.
118964         * lib/inttostr.c:  Adjusted in-tree users.
118965         * lib/timespec.h: Remove superfluous warning to include config.h.
118966         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118967         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118968         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118969         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118970         config.h with HAVE_CONFIG_H.
118972 2005-09-19  Jim Meyering  <jim@meyering.net>
118974         * modules/pathmax (License): Change to LGPL.
118976 2005-09-19  Derek Price  <derek@ximbiot.com>
118978         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118980 2005-09-19  Bruno Haible  <bruno@clisp.org>
118982         * gnulib-tool (import): Provide default for --tests-base.
118984 2005-09-19  Bruno Haible  <bruno@clisp.org>
118986         * doc/quote.texi: New file, extracted from gnulib.texi.
118987         * doc/ctime.texi: New file, extracted from gnulib.texi.
118988         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118989         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118990         * doc/gnulib.texi: Include them.
118992 2005-09-18  Bruno Haible  <bruno@clisp.org>
118994         Portability fix.
118995         * gnulib-tool (func_readlink): New function.
118996         (func_ln_if_changed): Use it.
118998 2005-09-18  Bruno Haible  <bruno@clisp.org>
119000         * gnulib-tool: Support --with-tests also with --import.
119001         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
119002         (func_import): Use variables $testsbase and $inctests. Emit a
119003         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
119004         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
119005         SUBDIRS += $testsdir.
119006         (func_create_testdir): Update.
119008 2005-09-18  Bruno Haible  <bruno@clisp.org>
119010         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
119011         instead of $dry_run.
119012         (func_cp_if_changed, func_mv_if_changed): Remove functions.
119013         (func_ln_if_changed): Don't handle dry-run here.
119014         (func_import): In dry-run mode, detect more precisely which actions
119015         would be performed, and don't use "...ing" verbs.
119017 2005-09-18  Bruno Haible  <bruno@clisp.org>
119019         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
119020         (func_import): Use join on two temporary files instead of three nested
119021         loops, in order to determine which files are new or old.
119023 2005-09-18  Bruno Haible  <bruno@clisp.org>
119025         * gnulib-tool (func_import): Comment out code that spits out the
119026         new files with --dry-run.
119028 2005-09-18  Bruno Haible  <bruno@clisp.org>
119030         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
119032 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119034         * lib/stat-time.h: New file.
119035         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
119036         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
119037         in a different way.
119038         (timespec_cmp): New function.
119039         * lib/utimecmp.c: Include stat-time.h.
119040         (SYSCALL_RESOLUTION): Depend on whether various struct stat
119041         members exist, not on the obsolescent ST_MTIM_NSEC.
119042         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
119044 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119046         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
119048 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
119050         * MODULES.html.sh (File system functions): Add stat-time.
119051         * modules/stat-time: New file.
119052         * modules/timespec (Files): Remove m4/st_mtim.m4; this
119053         is now done in a different way, by the stat-time module.
119054         * modules/utimecmp (Depends-on): Add stat-time.
119056 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
119058         * m4/st_mtim.m4: Remove.  Superseded by...
119059         * m4/stat-time.m4: New file.
119060         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
119061         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
119063 2005-09-15  Derek Price  <derek@ximbiot.com>
119065         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
119067 2005-09-15  Derek Price  <derek@ximbiot.com>
119069         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
119070         * lib/regex_internal.c: Ditto, using this...
119071         (__GNUC_PREREQ): ...new macro.
119072         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
119073         using...
119074         (__GNUC_PREREQ): ...this new macro.
119076         * lib/strstr.h: Include string.h. Define strstr as a macro here.
119078 2005-09-15  Derek Price  <derek@ximbiot.com>
119079             Paul Eggert  <eggert@cs.ucla.edu>
119081         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
119082         changes, consolidating in...
119083         * lib/regex_internal.h: ...this file.
119085 2005-09-13  Jim Meyering  <jim@meyering.net>
119087         * lib/canon-host.c: Filter through gnu indent and reword comments
119088         slightly.
119089         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
119091 2005-09-13  Derek Price  <derek@ximbiot.com>
119093         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
119094         failure.
119095         Reported by Jim Meyering  <jim@meyering.net>.
119097 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
119099         * lib/base64.c: Typo.
119100         (base64_encode): Put b64str in initialized data section.
119102 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
119104         Merge glibc and coreutils changes into gnulib, plus a few
119105         extra fixes.
119106         * lib/md5.c: Use #error rather than a string.
119107         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
119108         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
119109         (__attribute__): Define to empty for non recent-GCC.
119110         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
119111         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
119112         Renamed from their non-__ counterparts, with new macros replacing
119113         them if not _LIBC.  Add __THROW attribute.
119114         (rol): Remove.
119115         (struct md5_ctx): Align buffer if using GCC.
119116         * lib/sha1.h (struct sha1_ctx): Likewise.
119117         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
119118         The old name was backwards.
119119         (NOTSWAP): Remove; not used.
119120         (rol): New macro, moved here from md5.h.
119121         (sha1_process_block): Remove a FIXME that doesn't make sense.
119123 2005-09-12  Derek Price  <derek@ximbiot.com>
119125         Return usable errors from canon-host.
119126         * lib/canon-host.h: New file.
119127         * lib/canon-host.c (canon_host): Wrap...
119128         (canon_host_r): ...this new function, which now relies exclusively on
119129         getaddrinfo.
119130         (ch_strerror): New function.
119131         (last_cherror): New global.
119132         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
119133         interface.
119134         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
119135         void *.
119136         (freeaddrinfo): Free ai->ai_canonname when set.
119138 2005-09-12  Derek Price  <derek@ximbiot.com>
119140         Make canon-host require getaddrinfo.
119141         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
119142         AC_LIBSOURCE canon-host.h.  Call...
119143         (gl_PREREQ_CANON_HOST): ...this new function, which requires
119144         gl_GETADDRINFO.
119145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
119147 2005-09-12  Derek Price  <derek@ximbiot.com>
119149         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
119150         LGPL.
119151         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
119153 2005-09-12  Derek Price  <derek@ximbiot.com>
119155         * lib/gai_strerror.c: Include config.h when available.  Include
119156         getaddrinfo.h before other headers to test interface.
119157         Reported by Larry Jones <lawrence.jones@ugs.com>.
119159 2005-09-12  Derek Price  <derek@ximbiot.com>
119160             Paul Eggert  <eggert@cs.ucla.edu>
119162         * modules/glob (Files): Add glob-libc.h.
119164 2005-09-12  Derek Price  <derek@ximbiot.com>
119165             Paul Eggert  <eggert@cs.ucla.edu>
119167         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
119168         glob_.h, glob-libc.h.
119169         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
119171 2005-09-12  Derek Price  <derek@ximbiot.com>
119172             Paul Eggert  <eggert@cs.ucla.edu>
119174         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
119175         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
119176         protecting things that should be done only in gnulib contexts.
119177         * lib/glob_.h: New file, containing only the glob things needed for
119178         gnulib.
119179         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
119180         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
119181         (glob, globfree, glob_pattern_p): Now defined simply in terms of
119182         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
119183         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
119184         and to respect the namespace rules better.
119186 2005-09-08  Simon Josefsson  <jas@extundo.com>
119188         * modules/socklen: New file.
119190 2005-09-08  Simon Josefsson  <jas@extundo.com>
119192         * m4/socklen.m4: New file.
119194 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119196         * modules/utimens (Files): Add m4/utimbuf.m4, since
119197         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
119198         Reported by Sergey Poznyakoff.
119200 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119202         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
119203         definitions, since that's the preferred style in glibc.
119204         Fix a minor spacing issue, and update copyright notice to match
119205         glibc's.
119207 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
119209         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
119211 2005-09-06  Simon Josefsson  <jas@extundo.com>
119213         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
119214         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
119216 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119218         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
119219         warning.
119221 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
119223         * config/srclist.txt: Add glibc bug 1302.
119225 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
119227         Change bitset word type from unsigned int to unsigned long int,
119228         as this has better performance on typical 64-bit hosts.
119229         Port bitset code to hosts with unusual word sizes.
119230         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
119231         (build_collating_symbol):
119232         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
119233         argument is a bitset.  This is merely a style issue, but it makes
119234         it clearer that an entire array is expected.
119235         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
119236         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
119237         Port to the case where bitset_word is not the same as unsigned int.
119238         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119239         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
119240         Likewise.
119241         * lib/regexec.c (check_dst_limits_calc_pos_1,
119242         check_subexp_matching_top):
119243         (build_trtable, group_nodes_into_DFAstates):
119244         Likewise.
119245         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
119246         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
119247         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
119248         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
119249         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
119250         * lib/regcomp.c (optimize_subexps, lower_subexp):
119251         Work even if bitset_word has holes in its bitwise representation.
119252         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
119253         * lib/regexec.c (check_dst_limits_calc_pos_1,
119254         check_subexp_matching_top):
119255         Likewise.
119256         * lib/regex_internal.c (re_string_reconstruct):
119257         Don't assume UCHAR_MAX == 255.
119258         * lib/regex_internal.h (bitset_set_all): Likewise.
119259         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119260         All uses changed.
119261         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119262         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119263         All uses changed.
119264         (BITSET_WORD_MAX): New macro.
119265         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119266         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119267         (bitset_empty, bitset_copy):
119268         Prefer sizeof (bitset) to multiplying it out ourselves.
119269         (bitset_not_merge): Remove; unused.
119270         (bitset_contain): Return bool, not unsigned int with one bit on.
119271         All callers changed.
119272         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119273         alignment than re_node_set; do this by defining a new internal
119274         type struct dests_alloc and using it to allocate memory.
119276 2005-09-05  Bruno Haible  <bruno@clisp.org>
119278         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119279         links.
119281 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119283         * modules/size_max (Makefile.am): Add size_max.h
119285 2005-09-04  Derek Price  <derek@ximbiot.com>
119287         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119289 2005-09-03  Simon Josefsson  <jas@extundo.com>
119291         * gnulib-tool: Fix typo.
119293 2005-09-03  Simon Josefsson  <jas@extundo.com>
119295         * config/srclist.txt: Add glibc bug 1293.
119297 2005-09-03  Derek Price  <derek@ximbiot.com>
119299         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119300         From Larry Jones <lawrence.jones@ugs.com>.
119302 2005-09-02  Simon Josefsson  <jas@extundo.com>
119304         * modules/socklen: New file.
119306 2005-09-02  Simon Josefsson  <jas@extundo.com>
119308         * modules/havelib: New module.
119310         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119311         Use havelib.
119313 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119315         Check for arithmetic overflow when calculating sizes, to prevent
119316         some buffer-overflow issues.  These patches are conservative, in the
119317         sense that when I couldn't determine whether an overflow was possible,
119318         I inserted a run-time check.
119319         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119320         macros.
119321         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119322         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119323         (re_xnrealloc, re_x2nrealloc): New inline functions.
119324         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119325         parse_bracket_exp):
119326         (build_equiv_class, build_charclass): Check for arithmetic overflow
119327         in size expression calculations.
119328         * lib/regex_internal.c (re_string_realloc_buffers):
119329         (build_wcs_upper_buffer, re_node_set_add_intersect):
119330         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119331         (re_dfa_add_node, register_state): Likewise.
119332         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119333         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119334         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119335         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119337 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119339         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119340         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119342 2005-09-02  Bruno Haible  <bruno@clisp.org>
119344         Support for lib vs. lib64 distinction on biarch platforms.
119345         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119346         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119347         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119349 2005-09-02  Bruno Haible  <bruno@clisp.org>
119351         * gnulib-tool (import): In the other first-use case, provide defaults
119352         as well.
119354 2005-09-02  Bruno Haible  <bruno@clisp.org>
119356         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119357         patches not yet found in the latest gettext release.
119359 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119361         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119362         to avoid a collision with bits/local_lim.h in glibc.
119363         All uses changed.  Problem reported by Dmitry V. Levin in
119364         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119366         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119367         bugs in int versus size_t comparisons.
119368         (re_string_context_at): Fix bug where the code assumed that
119369         Idx is signed.
119371         Use bool where appropriate.
119372         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119373         All callers changed.
119374         (calc_eclosure_iter): Likewise, for ROOT arg.
119375         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119376         (build_charclass_op): Likewise, for NON_MATCH arg.
119377         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119378         (re_string_construct_common): Likewise, for ICASE arg.
119379         * lib/regexec.c (re_search_2_stub, re_search_stub):
119380         Likewise, for RET_LEN arg.
119381         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119382         (set_regs): Likewise, for FL_BACKTRACK arg.
119383         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119384         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119385         (calc_eclosure_iter, parse_bracket_exp):
119386         Use bool for internal variables that are booleans.
119387         * lib/regexec.c (re_search_internal, check_matching,
119388         proceed_next_node):
119389         (set_regs, build_sifted_states, sift_states_bkref):
119390         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119391         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119392         (find_collation_sequence_value):
119393         Likewise.
119394         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119395         (re_node_set_compare):
119396         Return bool, not int. All callers changed.
119397         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119398         (build_trtable, check_node_accept): Likewise.
119399         * lib/regex_internal.h: Include stdbool.h.
119401         Fix bugs uncovered when converting to bool.
119402         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119403         failure instead of charging ahead blindly.
119404         * lib/regex_internal.c (register_state): Likewise.
119405         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119406         for freeing internal storage.
119407         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119408         bitset pieces used as boolean, to avoid undefined behavior
119409         on hosts that do int overflow checking.
119411 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119413         * config/srclist.txt: Add glibc bugs 1285-1287.
119415 2005-09-01  Jim Meyering  <jim@meyering.net>
119417         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119418         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119419         Require gl_STAT_MACROS, too.
119421 2005-09-01  Bruno Haible  <bruno@clisp.org>
119423         * gnulib-tool (import): In the first-use case, provide defaults.
119425 2005-09-01  Bruno Haible  <bruno@clisp.org>
119427         * gnulib-tool (func_import): Remove the .tmp files.
119429 2005-09-01  Bruno Haible  <bruno@clisp.org>
119431         * gnulib-tool (func_import): Fix handling of symbolic links.
119433 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119435         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119436         old glibc regex code mishandles strings longer than 2**31 bytes.
119437         This patch fixes this when the regex code is used in gnulib
119438         (i.e., outside glibc).
119440         This patch should not affect the use of the regex code inside
119441         glibc.  No doubt this problem also needs to be handled for glibc
119442         as well, but the result will be an incompatible change to the
119443         glibc ABI, and the old ABI will have to be supported too.  That
119444         can be the subject for another patch.
119446         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119447         governing whether the rest of this patch is active.  By default,
119448         the macro is disabled and the patch has no effect.
119449         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119450         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119451         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119452         (re_match_2, re_set_registers): Use the new types.
119453         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119454         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119455         New macros.
119456         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119457         (re_string_context_at, bin_tree_t, re_dfastate_t):
119458         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119459         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119460         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119461         (re_string_char_size_at, re_string_wchar_at):
119462         (re_string_elem_size_at):
119463         Use the new types and macros to port to 64-bit hosts.
119464         Use unsigned types for internal values, so that the code
119465         mostly works even for arrays larger than SSIZE_MAX.
119466         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119467         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119468         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119469         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119470         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119471         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119472         (calc_inveclosure, parse_dup_op, build_range_exp):
119473         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119474         (fetch_number, create_token_tree, mark_opt_subexp):
119475         Likewise.
119476         * lib/regex_internal.c (re_string_construct_common,
119477         create_ci_newstate):
119478         (create_cd_newstate, re_string_allocate, re_string_construct):
119479         (re_string_realloc_buffers, build_wcs_upper_buffer):
119480         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119481         (re_string_reconstruct, re_string_peek_byte_case):
119482         (re_string_fetch_byte_case, re_string_context_at):
119483         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119484         (re_node_set_init_copy, re_node_set_add_intersect):
119485         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119486         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119487         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119488         (re_acquire_state, re_acquire_state_context, register_state):
119489         Likewise.
119490         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119491         search_cur_bkref_entry):
119492         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119493         (re_search_internal, re_search_2_stub, re_search_stub)
119494         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119495         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119496         (update_cur_sifted_state, check_dst_limits):
119497         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119498         (check_subexp_limits, sift_states_bkref, merge_state_array):
119499         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119500         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119501         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119502         (expand_bkref_cache, check_node_accept_bytes):
119503         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119504         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119505         (acquire_init_state_context, check_halt_node_context):
119506         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119507         (sift_states_backward, clean_state_log_if_needed):
119508         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119509         (find_recover_state, transit_state_sb, transit_state_mb):
119510         (transit_state_bkref, build_trtable, match_ctx_clean):
119511         Likewise.
119512         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119513         to work around an assumption that REG_MISSING is negative.
119515         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119516         (seek_collating_symbol_entry) [defined _LIBC]:
119517         (lookup_collation_sequence_value) [defined _LIBC]:
119518         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119519         Use prototypes rather than old-style function definitions.
119520         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119521         (transit_state_sb) [0]:
119522         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119524         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119525         rm_eo.
119527         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119528         (optimize_subexps, lower_subexp):
119529         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119530         since the signed shift might overflow.  Use 1u<<31 instead.
119531         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119532         Likewise.
119533         * lib/regexec.c (check_dst_limits_calc_pos_1,
119534         check_subexp_matching_top): Likewise.
119536         * lib/regcomp.c (optimize_subexps, lower_subexp):
119537         Use CHAR_BIT rather than 8, for clarity.
119538         * lib/regexec.c (check_dst_limits_calc_pos_1):
119539         (check_subexp_matching_top): Likewise.
119540         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119541         have to worry about portability issues when shifting it left.
119542         Remove no-longer-needed test for table_size > 0.
119543         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119544         in a word, as the resulting behavior is undefined.
119545         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119546         in one case, a <= should have been an <, and in another case the
119547         whole test was missing.
119548         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119549         the standard name CHAR_BIT.
119550         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119551         this is not true on one's complement and signed-magnitude hosts.
119553         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119554         next_last_offset.
119555         (struct re_dfa_t): Remove unused member states_alloc.
119556         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119558 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119560         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119561         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119562         and large-file glibc and in 32-bit large-file Solaris.
119564 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119566         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119567         lengths fit in regoff_t; this isn't true if regoff_t is the same
119568         width as size_t.
119569         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119570         (= START + RANGE) instead of RANGE.  This avoids overflow
119571         problems when regoff_t is the same width as size_t.
119572         All callers changed.
119573         (re_search_2_stub): Check for overflow when adding the
119574         sizes of the two strings.
119575         (re_search_stub): Check for overflow when adding START
119576         to RANGE; if it occurs, substitute the extreme value.
119578 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119580         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119582 2005-08-31  Jim Meyering  <jim@meyering.net>
119584         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119585         a pointer-to-const.
119586         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119587         (register_state): Likewise.
119588         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119589         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119590         (group_nodes_into_DFAstates): Likewise.
119592 2005-08-31  Jim Meyering  <jim@meyering.net>
119594         * check-module: Add a FIXME comment.
119596 2005-08-31  Eric Blake  <ebb9@byu.net>
119598         * modules/unistd-safer (Files): Add unistd--.h.
119599         * modules/stdio-safer (Files): Add stdio--.h.
119601 2005-08-31  Derek Price  <derek@ximbiot.com>
119603         * lib/getdelim.c (getdelim): Return EOF on EOF.
119604         Reported by Larry Jones <lawrence.jones@ugs.com>.
119606 2005-08-31  Bruno Haible  <bruno@clisp.org>
119608         Avoid unnecessary diffs in the generated lib/Makefile.am.
119609         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119610         the generated files.
119611         (func_import): Don't set cmd.
119613 2005-08-31  Bruno Haible  <bruno@clisp.org>
119615         * lib/strstr.c: Include <stddef.h>, for NULL.
119616         * lib/strcasestr.c: Likewise.
119617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119619 2005-08-31  Bruno Haible  <bruno@clisp.org>
119621         * gnulib-tool: New option --macro-prefix.
119622         (func_import): Use macro_prefix.
119623         (import): Handle option --macro-prefix.
119625 2005-08-31  Bruno Haible  <bruno@clisp.org>
119627         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119628         Also use new variables cached_lgpl, cached_libtool.
119630 2005-08-31  Bruno Haible  <bruno@clisp.org>
119632         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119633         always instantiating them.
119635 2005-08-31  Bruno Haible  <bruno@clisp.org>
119637         * gnulib-tool (func_import): Read the previous cached settings
119638         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119639         earlier added by gnulib but are now dropped. Warn when a gnulib file
119640         overwrites a non-gnulib file.
119642 2005-08-31  Bruno Haible  <bruno@clisp.org>
119644         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119645         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119646         projects that don't keep autogenerated files in CVS. Put into
119647         actioncmd only the specified modules, not the transitive closure.
119649 2005-08-31  Bruno Haible  <bruno@clisp.org>
119651         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119652         Create directories that shall be filled.
119653         (import): Don't look for gl_* macros in configure.ac. Recurse across
119654         all directories containing a gnulib-cache.m4 files, if meaningful.
119656 2005-08-31  Bruno Haible  <bruno@clisp.org>
119658         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119659         (import): Set seen_libtool when we see gl_LIBTOOL.
119661 2005-08-31  Bruno Haible  <bruno@clisp.org>
119663         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119664         declaration macro definitions from generated gnulib.m4.
119666 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119668         * lib/iconvme.h: Add prototype for iconv_alloc.
119670 2005-08-29  Simon Josefsson  <jas@extundo.com>
119672         * lib/iconvme.c: Fix errno.
119674 2005-08-29  Bruno Haible  <bruno@clisp.org>
119676         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119677         that it works when the directory contains spaces.
119679 2005-08-29  Bruno Haible  <bruno@clisp.org>
119681         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119683 2005-08-29  Bruno Haible  <bruno@clisp.org>
119685         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119686         Emit more advice.
119688 2005-08-29  Bruno Haible  <bruno@clisp.org>
119689         and Stepan Kasal  <kasal@ucw.cz>
119691         * check-module: If more parameters are given, check each of them
119692         separately; add more exceptions, as noted by Jim Meyering.
119693         (check_module): New procedure.
119694         (%exempt_header): Now contains all exceptions.
119696 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119698         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119700 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119702         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119704 2005-08-28  Bruno Haible  <bruno@clisp.org>
119706         * m4/gnulib-tool.m4: New file.
119708 2005-08-27  Jim Meyering  <jim@meyering.net>
119710         * modules/unistd-safer (Files): Add pipe-safer.c.
119711         * modules/fcntl-safer (Files): Add creat-safer.c.
119713 2005-08-27  Jim Meyering  <jim@meyering.net>
119715         * m4/stdlib-safer.m4: New file.  From coreutils.
119716         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119717         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119718         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119719         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119720         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119722 2005-08-27  Jim Meyering  <jim@meyering.net>
119724         * lib/fopen-safer.c: Merge minor changes from coreutils.
119725         * lib/dup-safer.c: Likewise.
119726         * lib/fd-safer.c: Likewise.
119728         Merge from coreutils.
119729         * lib/stdio--.h: New file.
119730         * lib/stdlib--.h: New file.
119731         * lib/mkstemp-safer.c: New file.
119733         GNU tar needs these.
119734         * lib/pipe-safer.c: New file.
119735         * lib/creat-safer.c: New file.
119736         * lib/fcntl--.h (creat): Define to creat_safer.
119737         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119738         * lib/unistd--.h (pipe): Define to pipe_safer.
119739         * lib/unistd-safer.h: Declare pipe_safer.
119741 2005-08-26  Simon Josefsson  <jas@extundo.com>
119743         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119744         Haible <bruno@clisp.org>.
119746 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119748         * lib/regex_internal.h: Remove all references to
119749         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119750         or better.
119751         (bitset_not, bitset_merge, bitset_not_merge):
119752         (bitset_mask, re_string_allocate, re_string_construct):
119753         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119754         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119755         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119756         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119757         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119758         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119759         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119760         (re_acquire_state_context):
119761         Remove unnecessary forward decls.
119762         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119763         Put __attribute at function definition,
119764         now that the function decl has been removed.
119765         * lib/regex_internal.c (re_string_peek_byte_case):
119766         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119767         Likewise.
119769 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119771         * m4/regex.m4: Add AC_PREREQ(2.50).
119772         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119774 2005-08-25  Simon Josefsson  <jas@extundo.com>
119776         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119777         __fsetlocking.
119779 2005-08-25  Simon Josefsson  <jas@extundo.com>
119781         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119782         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119783         GLIBC specific code.
119785 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119787         Make regex safe for g++.  This fixes one real bug (an "err"
119788         that should have been "*err").  g++ problem reported by
119789         Sam Steingold.
119790         * lib/regex_internal.h (re_calloc): New macro, consistent with
119791         re_malloc etc.  All callers of calloc changed to use re_calloc.
119792         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119793         not int.  All callers changed.
119794         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119795         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119796         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119797         (find_recover_state): Change "err" to "*err"; this fixes what
119798         appears to be a real bug.
119799         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119800         versus int.
119802 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119804         * modules/regex (Depends-on): Add malloc, since the code
119805         assumes that !malloc(0) means failure.
119807 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119809         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119811         alloca modernization/simplification for regex.
119812         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119813         needs to be at the start of the file, and can be moved into
119814         regex_internal.h and simplified.
119815         * lib/regex_internal.h: Include <alloca.h>.
119816         (__libc_use_alloca) [!defined _LIBC]: New macro.
119817         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119818         now works outside glibc.
119820 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119822         * config/srclist.txt: Add glibc bugs 1241, 1245.
119824 2005-08-25  Jim Meyering  <jim@meyering.net>
119826         * lib/open-safer.c: Include <config.h>.
119827         Otherwise, we'd lose LARGEFILE support in any file using
119828         e.g. "fcntl--.h"
119830 2005-08-25  Bruno Haible  <bruno@clisp.org>
119832         * m4/minmax.m4: Require autoconf 2.52.
119833         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119834         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119835         alternatives of translit over the alphabet.
119836         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119838 2005-08-24  Simon Josefsson  <jas@extundo.com>
119840         * tests/test-getpass.c: New file.
119842 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119844         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119845         for GNU regex features.
119847 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119849         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119850         * lib/regex.h (regerror): Likewise.
119852         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119853         requires this.  (The code never needed it.)
119855         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119856         All uses of recently-renamed identifiers changed to use the new,
119857         POSIX-compliant names.  The code will build and run just fine
119858         without these changes, but it's better to eat our own dog food
119859         and use the standard-conforming names.
119861         * lib/regex.h: Fix a multitude of POSIX name space violations.
119862         These changes have an effect only for programs that define
119863         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119864         do not change anything for programs compiled in the normal way.
119865         Also, there is no effect on the ABI.
119867         (_REGEX_SOURCE): New macro.
119868         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119869         defined and _GNU_SOURCE is not; this fixes a name space violation.
119871         Rename the following macros to obey POSIX requirements.
119872         The old names are still visible as macros if _REGEX_SOURCE is defined.
119873         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119874         RE_BACKSLASH_ESCAPE_IN_LISTS.
119875         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119876         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119877         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119878         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119879         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119880         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119881         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119882         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119883         (REG_INTERVALS): renamed from RE_INTERVALS.
119884         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119885         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119886         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119887         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119888         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119889         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119890         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119891         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119892         RE_UNMATCHED_RIGHT_PAREN_ORD.
119893         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119894         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119895         (REG_DEBUG): renamed from RE_DEBUG.
119896         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119897         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119898         unusual, since we can't clash with the POSIX REG_ICASE.
119899         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119900         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119901         (REG_NO_SUB): renamed from RE_NO_SUB.
119902         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119903         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119904         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119905         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119906         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119907         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119908         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119909         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119910         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119911         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119912         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119913         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119914         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119915         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119916         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119917         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119918         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119919         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119920         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119921         (REG_FIXED): Renamed from REGS_FIXED.
119922         (REG_NREGS): Renamed from RE_NREGS.
119924         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119925         of other REG_* macros, since POSIX says the user is allowed to
119926         #undef these macros selectively.
119928         (reg_errcode_t): Update comment stating what other tables need
119929         to be consistent.
119931         Rename the following enum values to obey POSIX requirements.
119932         The old names are still visible as macros.
119933         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119934         is not defined, since GNU is supposed to be a superset of POSIX as
119935         much as possible, and since we want reg_errcode_t to be a signed
119936         type for implementation consistency.
119937         (_REG_NOERROR): Renamed from REG_NOERROR.
119938         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119939         (_REG_BADPAT): Renamed from REG_BADPAT.
119940         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119941         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119942         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119943         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119944         (_REG_EBRACK): Renamed from REG_EBRACK.
119945         (_REG_EPAREN): Renamed from REG_EPAREN.
119946         (_REG_EBRACE): Renamed from REG_EBRACE.
119947         (_REG_BADBR): Renamed from REG_BADBR.
119948         (_REG_ERANGE): Renamed from REG_ERANGE.
119949         (_REG_ESPACE): Renamed from REG_ESPACE.
119950         (_REG_BADRPT): Renamed from REG_BADRPT.
119951         (_REG_EEND): Renamed from REG_EEND.
119952         (_REG_ESIZE): Renamed from REG_ESIZE.
119953         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119954         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119955         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119956         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119957         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119959         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119960         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119961         changed.  But support the old name if the new one is not defined
119962         and if _REGEX_SOURCE.
119964         Change the following member names in struct re_pattern_buffer.
119965         The old names are still supported if !_REGEX_SOURCE.
119966         The new names are always supported, regardless of _REGEX_SOURCE.
119967         (re_buffer): Renamed from buffer.
119968         (re_allocated): Renamed from allocated.
119969         (re_used): Renamed from used.
119970         (re_syntax): Renamed from syntax.
119971         (re_fastmap): Renamed from fastmap.
119972         (re_translate): Renamed from translate.
119973         (re_can_be_null): Renamed from can_be_null.
119974         (re_regs_allocated): Renamed from regs_allocated.
119975         (re_fastmap_accurate): Renamed from fastmap_accurate.
119976         (re_no_sub): Renamed from no_sub.
119977         (re_not_bol): Renamed from not_bol.
119978         (re_not_eol): Renamed from not_eol.
119979         (re_newline_anchor): Renamed from newline_anchor.
119981         Change the following member names in struct re_registers.
119982         The old names are still supported if !_REGEX_SOURCE.
119983         The new names are always supported, regardless of _REGEX_SOURCE.
119984         (rm_num_regs): Renamed from num_regs.
119985         (rm_start): Renamed from start.
119986         (rm_end): Renamed from end.
119988         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119989         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119990         Prepend __ to parameter names.
119992         Undo yesterday's changes.
119994 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119996         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119997         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119998         lib/regex.c.
120000 2005-08-24  Jim Meyering  <jim@meyering.net>
120002         Sync from coreutils.
120003         * m4/fcntl-safer.m4: New file.
120005         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
120006         and object files for this module.
120008 2005-08-24  Jim Meyering  <jim@meyering.net>
120010         Sync from coreutils.
120011         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
120013 2005-08-24  Jim Meyering  <jim@meyering.net>
120015         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
120016         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
120018 2005-08-24  Jim Meyering  <jim@meyering.net>
120020         * modules/fcntl-safer: New module.
120021         * modules/fts (Depends-on): Add fcntl-safer.
120022         * MODULES.html.sh (File descriptor based Input/Output):
120023         Add fcntl-safer.
120025 2005-08-24  Bruno Haible  <bruno@clisp.org>
120027         Support for unit test modules.
120028         * modules/README: Mention tests modules.
120029         * modules/TEMPLATE-TESTS: New file.
120030         * gnulib-tool: New options --extract-tests-module, --with-tests and
120031         --tests-base (unused for the moment).
120032         (testsbase, inctests): New variables.
120033         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
120034         (func_verify_module): Exclude TEMPLATE-TESTS.
120035         (func_verify_nontests_module, func_verify_tests_module): New functions.
120036         (func_get_dependencies): Add implicit dependency for tests modules.
120037         (func_get_tests_module): New function.
120038         (func_modules_transitive_closure): When --with-tests was specified,
120039         include the unit tests as well, unless explicitly avoided.
120040         (func_emit_lib_Makefile_am): Ignore the tests modules here.
120041         (func_emit_tests_Makefile_am): New function.
120042         (func_create_testdir): When --with-tests was specified, emit a
120043         tests/ directory.
120044         * MODULES.html.sh (Future developments): Update.
120046 2005-08-24  Bruno Haible  <bruno@clisp.org>
120048         * modules/tls-tests: New file.
120049         * tests/test-tls.c: New file, from GNU gettext.
120051 2005-08-24  Bruno Haible  <bruno@clisp.org>
120053         * modules/lock-tests: New file.
120054         * tests/test-lock.c: New file, from GNU gettext.
120056 2005-08-24  Bruno Haible  <bruno@clisp.org>
120058         * lib/lock.h: Add multiple inclusion guard.
120059         * lib/tls.h: Add multiple inclusion guard.
120061 2005-08-24  Bruno Haible  <bruno@clisp.org>
120063         * gnulib-tool: Add support for the --aux-dir option to
120064         --create-testdir, --create-megatestdir, --test, --megatest.
120065         (func_create_testdir, func_create_megatestdir): Optionally emit a
120066         AC_CONFIG_AUX_DIR directive.
120067         (create-testdir, create-megatestdir, test, megatest): Provide a
120068         default value for $auxdir.
120070 2005-08-24  Bruno Haible  <bruno@clisp.org>
120072         * gnulib-tool (import): Use compound statement instead of subshell
120073         where possible.
120075 2005-08-24  Bruno Haible  <bruno@clisp.org>
120077         * gnulib-tool (import): Change --aux-dir default to "build-aux".
120079 2005-08-24  Bruno Haible  <bruno@clisp.org>
120081         * gnulib-tool (func_version): Update.
120083 2005-08-24  Bruno Haible  <bruno@clisp.org>
120085         * gnulib-tool (func_import, func_create_testdir,
120086         func_create_megatestdir): Quote all autoconf macro arguments.
120088 2005-08-24  Bruno Haible  <bruno@clisp.org>
120090         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
120091         option --force, because --force causes the aclocal.m4 of each
120092         subdirectory to be newer than the corresponding config.h.in.
120094 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120096         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
120097         All contents moved to gl_REGEX.
120098         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
120099         assume that it does.
120101 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120103         * lib/regex.h (REG_NOSYS)
120104         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
120105         Define, since POSIX requires it as of 2001.
120106         (_REG_ENOSYS)
120107         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
120108         New private symbol, used to keep the enum signed in all cases.
120109         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
120110         Youngman in
120111         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
120113         * lib/regex_internal.c (re_string_skip_chars, register_state):
120114         (calc_state_hash):
120115         Remove forward decls; no longer needed now that we use prototypes.
120116         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
120117         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
120118         (clean_state_log_if_needed): Likewise.
120120 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
120122         * config/srclist.txt: Add glibc bugs 1231-1233.
120124 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120126         Fix problems reported by Sam Steingold in
120127         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
120128         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
120129         assumed that reg_errcode_t is a signed type, which is not
120130         necessarily true if _XOPEN_SOURCE is not defined.
120131         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
120132         since some compilers warn about it otherwise.
120134 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120136         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
120137         (init_word_char, create_initial_state, duplicate_node_closure):
120138         (fetch_token, peek_token_bracket, build_range_exp):
120139         (build_collating_symbol): Remove forward decls; no longer needed
120140         now that we use prototypes.
120142         * lib/regcomp.c:
120143         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
120144         (re_compile_fastmap_iter, regcomp, regerror, regfree):
120145         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
120146         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
120147         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
120148         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
120149         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
120150         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
120151         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
120152         (build_range_exp, build_collating_symbol, parse_bracket_exp):
120153         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
120154         (build_charclass, build_charclass_op, fetch_number, create_tree):
120155         (create_token_tree, mark_opt_subexp, duplicate_tree):
120156         Use prototypes rather than old-style definitions.
120158         * lib/regex_internal.c:
120159         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
120160         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
120161         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120162         (re_string_reconstruct, re_string_peek_byte_case):
120163         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
120164         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120165         (re_node_set_init_copy, re_node_set_add_intersect):
120166         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120167         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120168         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120169         (re_acquire_state, re_acquire_state_context, register_state):
120170         (create_ci_newstate, create_cd_newstate, free_state):
120171         Likewise.
120172         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
120173         re_search_2):
120174         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
120175         (re_search_internal, prune_impossible_nodes):
120176         (acquire_init_state_context, check_matching, static):
120177         (check_halt_node_context, check_halt_state_context, proceed_next_node):
120178         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
120179         (update_regs, sift_states_backward, build_sifted_states):
120180         (clean_state_log_if_needed, merge_state_array):
120181         (update_cur_sifted_state, add_epsilon_src_nodes):
120182         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
120183         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
120184         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
120185         (find_recover_state, check_subexp_matching_top, transit_state_mb):
120186         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
120187         (check_arrival, check_arrival_add_next_nodes):
120188         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120189         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120190         (check_node_accept_bytes, check_node_accept, extend_buffers):
120191         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
120192         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
120193         (sift_ctx_init):
120194         Likewise.
120196         * lib/regex_internal.h:
120197         (re_string_allocate, re_string_construct, re_string_reconstruct):
120198         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
120199         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
120200         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
120201         (re_string_context_at, re_string_peek_byte_case):
120202         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
120203         is defined, since we now use prototypes always.
120205         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
120206         C89 or better.  All uses removed.
120208 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
120210         * config/srclist.txt: Add glibc bugs 1220-1227.
120212 2005-08-20  Jim Meyering  <jim@meyering.net>
120214         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
120215         of unused local, dfa.
120217 2005-08-20  Bruno Haible  <bruno@clisp.org>
120219         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
120221 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120223         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
120224         (re_node_set_insert_last, re_dfa_add_node):
120225         Rename local variables to avoid GCC shadowing warnings.
120227 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120229         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
120230         [defined lint]: Suppress bogus uninitialized-variable warnings.
120232         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
120233         and let the caller return REG_ESPACE if out of space.  This
120234         removes an uninitialied-variable warning with GCC 4.0.1, and also
120235         avoids taking the address of a local variable.  All callers
120236         changed.
120238 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120240         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
120241         $LIBCSRC/posix/regexec.c.
120242         Add glibc bug 1217 for regcomp.c.
120244 2005-08-19  Jim Meyering  <jim@meyering.net>
120246         * lib/regexec.c (proceed_next_node): Redo local variables to
120247         avoid GCC shadowing warnings.
120249 2005-08-18  Bruno Haible  <bruno@clisp.org>
120251         * lib/strstr.c (strstr): Fix return value in multibyte case.
120252         * lib/strcasestr.c (strcasestr): Likewise.
120254 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120256         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120258 2005-08-17  Jim Meyering  <jim@meyering.net>
120260         Make the %s format (seconds since the epoch) work for a negative
120261         number and when used with a zero-padded field width, e.g. %015s.
120263         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120264         label so that it precedes the code to set `digits'.  Otherwise,
120265         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120266         print `00-22'.  Now, it prints `-0022', as it should.
120268 2005-08-17  Bruno Haible  <bruno@clisp.org>
120270         * modules/strstr (Files): Add m4/mbrtowc.m4.
120271         (Depends-on): Add mbuiter.
120273 2005-08-17  Bruno Haible  <bruno@clisp.org>
120275         * modules/strcasestr: New file.
120276         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120277         strcasestr.
120279 2005-08-17  Bruno Haible  <bruno@clisp.org>
120281         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120283 2005-08-17  Bruno Haible  <bruno@clisp.org>
120285         * modules/mbuiter: New file.
120286         * MODULES.html.sh (Extended multibyte and wide character utilities):
120287         Add mbuiter.
120289 2005-08-17  Bruno Haible  <bruno@clisp.org>
120291         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120292         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120294 2005-08-17  Bruno Haible  <bruno@clisp.org>
120296         * m4/strcasestr.m4: New file.
120298 2005-08-17  Bruno Haible  <bruno@clisp.org>
120300         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120301         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120303 2005-08-17  Bruno Haible  <bruno@clisp.org>
120305         * lib/strcasestr.h: New file.
120306         * lib/strcasestr.c: New file.
120308 2005-08-17  Bruno Haible  <bruno@clisp.org>
120310         * lib/strcasecmp.c: Use mbuiter.h.
120312 2005-08-17  Bruno Haible  <bruno@clisp.org>
120314         * lib/mbuiter.h: New file.
120316 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120318         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120319         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120320         and gl_GETOPT are both invoked via different paths (as happens
120321         with GNU tar CVS because it uses both argp and getopt), the former
120322         wins.
120324 2005-08-16  Bruno Haible  <bruno@clisp.org>
120326         * modules/tls: New file.
120327         * MODULES.html.sh (Multithreading): Add tls.
120329 2005-08-16  Bruno Haible  <bruno@clisp.org>
120331         * modules/strnlen1: New file.
120332         * MODULES.html.sh (String handling): Add strnlen1.
120334 2005-08-16  Bruno Haible  <bruno@clisp.org>
120336         * modules/strcase (Files): Add m4/mbrtowc.m4.
120337         (Depends-on): Add strnlen1, mbchar.
120339 2005-08-16  Bruno Haible  <bruno@clisp.org>
120341         * modules/mbiter: New file.
120342         * MODULES.html.sh (Extended multibyte and wide character utilities):
120343         Add mbiter.
120345 2005-08-16  Bruno Haible  <bruno@clisp.org>
120347         * modules/mbfile: New file.
120348         * MODULES.html.sh (Extended multibyte and wide character utilities):
120349         Add mbfile.
120351 2005-08-16  Bruno Haible  <bruno@clisp.org>
120353         * modules/mbchar: New file.
120354         * MODULES.html.sh (Extended multibyte and wide character utilities):
120355         New section.
120357 2005-08-16  Bruno Haible  <bruno@clisp.org>
120359         * m4/tls.m4: New file, from GNU gettext.
120361 2005-08-16  Bruno Haible  <bruno@clisp.org>
120363         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120364         always.
120365         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120367 2005-08-16  Bruno Haible  <bruno@clisp.org>
120369         * m4/mbiter.m4: New file.
120371 2005-08-16  Bruno Haible  <bruno@clisp.org>
120373         * m4/mbfile.m4: New file.
120375 2005-08-16  Bruno Haible  <bruno@clisp.org>
120377         * m4/mbchar.m4: New file.
120379 2005-08-16  Bruno Haible  <bruno@clisp.org>
120381         * lib/tls.h: New file, from GNU gettext.
120382         * lib/tls.c: New file, from GNU gettext.
120384 2005-08-16  Bruno Haible  <bruno@clisp.org>
120386         * lib/strnlen1.h: New file.
120387         * lib/strnlen1.c: New file.
120389 2005-08-16  Bruno Haible  <bruno@clisp.org>
120391         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120392         (mbi_init): Update.
120393         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120394         NUL byte, not after it.
120396 2005-08-16  Bruno Haible  <bruno@clisp.org>
120398         * lib/strcase.h (strcasecmp): Add note in comments.
120399         * lib/strncasecmp.c: Use code from strcasecmp.c.
120400         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120401         (strcasecmp): Work correctly in multibyte locales.
120403 2005-08-16  Bruno Haible  <bruno@clisp.org>
120405         * lib/mbiter.h: New file.
120407 2005-08-16  Bruno Haible  <bruno@clisp.org>
120409         * lib/mbfile.h: New file.
120411 2005-08-16  Bruno Haible  <bruno@clisp.org>
120413         * lib/mbchar.h: New file.
120414         * lib/mbchar.c: New file.
120416 2005-08-16  Bruno Haible  <bruno@clisp.org>
120418         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120419         the valid ones. Makes the comparison operations transitive:
120420         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120421         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120423 2005-08-15  Simon Josefsson  <jas@extundo.com>
120425         * modules/ssize_t (License): Change to 'unlimited'.
120427         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120429 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120431         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120432         Add comments for each pending glibc patch.
120434 2005-08-15  Bruno Haible  <bruno@clisp.org>
120436         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120437         __cplusplus is defined.
120439 2005-08-14  Jim Meyering  <jim@meyering.net>
120441         Sync from coreutils.
120443         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120444         Use the hash-table-based cycle-detection code not just when
120445         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120446         Reported by James Youngman in
120447         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120448         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120449         FTS_TIGHT_CYCLE_CHECK.
120450         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120451         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120452         once again.
120453         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120454         * lib/fts.c (fd_safer): Remove decl.
120455         Include fcntl--.h rather than unistd-safer.h
120456         (fts_safe_changedir): Don't call fd_safer; no longer needed
120457         now that we include fcntl--.h.
120459 2005-08-12  Simon Josefsson  <jas@extundo.com>
120461         * modules/getndelim2: Use ssize_t module.
120462         * modules/getnline: Likewise.
120463         * modules/safe-read: Likewise.
120464         * modules/xreadlink: Likewise.
120466         * modules/ssize_t: New file.
120468 2005-08-12  Simon Josefsson  <jas@extundo.com>
120470         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120472 2005-08-12  Simon Josefsson  <jas@extundo.com>
120474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120475         ssize_t.
120477 2005-08-12  Simon Josefsson  <jas@extundo.com>
120479         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120480         readline, getdelim and check_version.
120481         (Support for systems lacking ISO C 99: Sizes of integer types):
120482         Add size_max.
120484 2005-08-12  Bruno Haible  <bruno@clisp.org>
120486         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120488 2005-08-11  Simon Josefsson  <jas@extundo.com>
120490         * modules/readline: New file.
120492         * modules/strnlen (Files): Add strnlen.h.
120494 2005-08-11  Simon Josefsson  <jas@extundo.com>
120496         * m4/readline.m4: New file.
120498 2005-08-11  Simon Josefsson  <jas@extundo.com>
120500         * lib/readline.h, readline.c: New file.
120502 2005-08-11  Simon Josefsson  <jas@extundo.com>
120504         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120505         gl_AVOID.
120507 2005-08-11  Bruno Haible  <bruno@clisp.org>
120509         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120511 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120513         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120515 2005-08-10  Simon Josefsson  <jas@extundo.com>
120517         * tests/test-iconvme.c: New file.
120519 2005-08-10  Simon Josefsson  <jas@extundo.com>
120521         * m4/strnlen.m4: New file.
120523         * m4/strndup.m4: Don't check for strnlen declaration, done in
120524         strnlen.m4.
120526 2005-08-10  Simon Josefsson  <jas@extundo.com>
120528         * lib/strndup.c: Use strnlen.h.
120530         * lib/strnlen.h: New file.
120532 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120534         * README: Typos.
120536 2005-08-02  Simon Josefsson  <jas@extundo.com>
120538         * modules/readline: New file.
120540 2005-08-02  Simon Josefsson  <jas@extundo.com>
120542         * modules/getdelim: New file.
120544         * modules/getline: Rewrite, don't use getndelim2.
120546 2005-08-02  Simon Josefsson  <jas@extundo.com>
120548         * m4/getline.m4: Separate out getdelim stuff into separate module.
120550         * m4/getdelim.m4: New file.
120552 2005-08-02  Simon Josefsson  <jas@extundo.com>
120554         * lib/getline.h, getline.c: Rewrite.
120556         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120558 2005-07-31  Bruno Haible  <bruno@clisp.org>
120560         * lib/lock.h (gl_lock_initializer): New macro.
120561         (gl_lock_define_initialized): Use it.
120562         (gl_rwlock_initializer): New macro.
120563         (gl_rwlock_define_initialized): Use it.
120564         (gl_recursive_lock_initializer): New macro.
120565         (gl_recursive_lock_define_initialized): Use it.
120567 2005-07-30  Karl Berry  <karl@gnu.org>
120569         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120570         Report from Ben Pfaff, regarding getopt.
120572 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120574         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120575         normal way.
120576         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120577         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120578         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120579         (gl_GETOPT): Use the new macros.  Most of the implementation
120580         is moved to the new macros.  This is for programs like Emacs
120581         that don't want all the functionality of gl_GETOPT.
120583 2005-07-26  Bruno Haible  <bruno@clisp.org>
120585         * m4/lock.m4: Update from GNU gettext.
120587 2005-07-26  Bruno Haible  <bruno@clisp.org>
120589         * lib/lock.h: Update from GNU gettext.
120590         * lib/lock.c: Update from GNU gettext.
120592 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120594         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120595         obsolescent AC_TRY_RUN.  Include the default includes files, for
120596         'exit'.
120598 2005-07-24  Bruno Haible  <bruno@clisp.org>
120600         * modules/visibility: New file.
120601         * MODULES.html.sh (Misc): Add visibility.
120603 2005-07-24  Bruno Haible  <bruno@clisp.org>
120605         * m4/visibility.m4: New file.
120607 2005-07-24  Bruno Haible  <bruno@clisp.org>
120609         * doc/visibility.texi: New file.
120611 2005-07-22  Bruno Haible  <bruno@clisp.org>
120613         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120614         $(ALLOCA_H), redundant through BUILT_SOURCES.
120615         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120616         redundant through BUILT_SOURCES.
120617         * modules/byteswap (Makefile.am): Remove explicit dependency on
120618         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120619         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120620         $(FNMATCH_H), redundant through BUILT_SOURCES.
120621         * modules/getopt (Makefile.am): Remove explicit dependency on
120622         $(GETOPT_H), redundant through BUILT_SOURCES.
120623         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120624         redundant through BUILT_SOURCES.
120625         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120626         redundant through BUILT_SOURCES.
120627         * modules/stdbool (Makefile.am): Remove explicit dependency on
120628         $(STDBOOL_H), redundant through BUILT_SOURCES.
120629         * modules/stdint (Makefile.am): Remove explicit dependency on
120630         $(STDINT_H), redundant through BUILT_SOURCES.
120631         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120632         Remove explicit dependency on $(SYSEXITS_H).
120633         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120635 2005-07-18  Simon Josefsson  <jas@extundo.com>
120637         * lib/check-version.c (check_version): Accept identical versions too.
120639 2005-07-18  Bruno Haible  <bruno@clisp.org>
120641         * modules/lock: New file.
120642         * MODULES.html.sh (Multithreading): New section.
120644 2005-07-18  Bruno Haible  <bruno@clisp.org>
120646         * m4/lock.m4: New file, from GNU gettext.
120648 2005-07-18  Bruno Haible  <bruno@clisp.org>
120650         * lib/lock.h: New file, from GNU gettext.
120651         * lib/lock.c: New file, from GNU gettext.
120653 2005-07-18  Bruno Haible  <bruno@clisp.org>
120655         * lib/lock.h (gl_once_t): New type.
120656         (gl_once_define, gl_once): New macros.
120657         * lib/lock.c (fresh_once): New variable.
120658         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120659         functions.
120661 2005-07-16  Simon Josefsson  <jas@extundo.com>
120663         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120664         workaround, suggested by Bruno.
120666 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120668         * modules/xalloc (Depends-on): Add xalloc-die.
120669         * modules/xvasprintf (Depends-on): Add xalloc-die.
120671 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120673         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120674         with a minor change.
120676 2005-07-15  Bruno Haible  <bruno@clisp.org>
120678         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120679         When using lib/poll.c, define poll as rpl_poll.
120681 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120683         * modules/argp (Depends-on): Remove unlocked-io.
120685 2005-07-14  Derek Price  <derek@ximbiot.com>
120687         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120688         for glob symlink bug.
120690 2005-07-14  Bruno Haible  <bruno@clisp.org>
120692         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120693         Instead, test for *_unlocked function declarations directly.
120695 2005-07-11  Simon Josefsson  <jas@extundo.com>
120697         * modules/size_max: New file.
120699         * modules/xsize: Depend on size_max module for size_max.m4.
120701 2005-07-11  Simon Josefsson  <jas@extundo.com>
120703         * lib/size_max.h: New file.
120705 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120707         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120708         copyright symbol and the year.
120709         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120710         (version_etc_va): Use parameterized copyright notice.
120711         Reword to conform to the current GNU coding standards.
120713 2005-07-11  Karl Berry  <karl@gnu.org>
120715         * doc/gnulib.texi (Quoting): new node.
120716         (Initial import): more info, from Patrice.
120718 2005-07-11  Bruno Haible  <bruno@clisp.org>
120720         * gnulib-tool (func_usage): Document option --avoid.
120721         (Command line options): Handle --avoid.
120722         (func_acceptable): New function.
120723         (func_modules_transitive_closure): Use it.
120725 2005-07-11  Bruno Haible  <bruno@clisp.org>
120727         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120728         Reported by Jim Meyering.
120730 2005-07-10  Bruno Haible  <bruno@clisp.org>
120732         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120733         Needed when size_t is smaller than 'unsigned int'.
120734         Reported by Paul Eggert.
120736 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120738         * modules/argp (Depends-on): Add unlocked-io
120740 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120742         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120743         block of defines.
120745 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120747         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120748         fix now.
120750 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120751         and Paul Eggert  <eggert@cs.ucla.edu>
120753         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120754         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120756 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120758         * modules/regex (Files): Add lib/regex_internal.c,
120759         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120760         (Depends-on): Add extensions.
120761         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120763 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120765         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120766         pathconf.
120767         * m4/same.m4 (gl_SAME): Likewise.
120768         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120770         * m4/regex.m4: Adjust to new libc regex implementation.
120771         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120772         all the .c and .h parts of (the new) regex.
120773         Quote the m4 stuff better.
120774         Check for RE_ICASE bug of old gnulib.
120775         Check for REG_STARTEND of recent libc.
120776         Rename local variables from jm_* to gl_*.
120777         Quote operand of "test -f".
120778         Say "recent enough" version of libc, not "version 2".
120779         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120780         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120781         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120782         Remove check for btowc, isascii.
120783         Require AM_LANGINFO_CODESET.
120785 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120787         * lib/regex.c, regex.h: Sync from libc.
120788         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120789         * lib/regexec.c:
120790         New files, synced from libc, except that regex_internal.h
120791         currently has a small porting fix.
120793 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120795         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120796         regex_internal.c, regexec.c.
120797         Add regex_internal.h too, but as a comment, since the libc version
120798         is currently broken in gnulib mode.
120800 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120802         Support programs like Emacs that use gnulib but not gettext.
120803         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120804         * modules/gettext-h: New file.
120805         * modules/gettext (Files): Remove lib/gettext.h.
120806         (Depends-on): Add gettext-h.
120807         (Makefile.am): Remove lib_SOURCES.
120808         * modules/argmatch, modules/c-stack, modules/closeout:
120809         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120810         * modules/execute, modules/file-type, modules/getaddrinfo:
120811         * modules/getopt, modules/human, modules/javacomp:
120812         * modules/javaexec, modules/mkdir-p, modules/obstack:
120813         * modules/openat, modules/pagealign_alloc, modules/pipe:
120814         * modules/quotearg, modules/regex, modules/rpmatch:
120815         * modules/unicodeio, modules/userspec, modules/version-etc:
120816         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120817         * modules/xsetenv:
120818         Depend on gettext-h, not gettext.
120820 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120822         * gnulib-tool (func_import): Add support for 'public domain' license.
120823         * modules/alloca, modules/atexit, modules/memmove:
120824         Now public domain, not GPL.
120825         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120826         * modules/realloc, modules/strerror, modules/strtod:
120827         Now LGPL, not GPL.
120829 2005-07-05  Bruno Haible  <bruno@clisp.org>
120831         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120832         autoconf CVS. Needed for mingw.
120834 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120836         Remove the dependency of the strftime module on the tzset module.
120837         * modules/strftime (Depends-on): Remove dependency on tzset.
120839 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120841         Remove the dependency of the strftime module on the tzset module.
120842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120843         gl_FUNC_TZSET_CLOBBER.
120845 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120847         Remove the dependency of the strftime module on the tzset module.
120848         * lib/strftime.c (my_strftime)
120849         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120850         Copy the input structure, to work around some of the bug with
120851         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120852         Solaris releases, you should also use the tzset module, but we won't
120853         require it as a dependency any more since we don't want LGPLed code
120854         to depend on GPLed code.
120856 2005-07-02  Jim Meyering  <jim@meyering.net>
120858         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120859         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120860         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120861         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120863 2005-07-02  Jim Meyering  <jim@meyering.net>
120865         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120867 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120869         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120870         declares only 'struct timespec;' (!).
120872 2005-07-01  Jim Meyering  <jim@meyering.net>
120874         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120875         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120876         * lib/save-cwd.c, tempname.c:
120877         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120878         and don't include <sys/file.h>).
120880 2005-06-29  Jim Meyering  <jim@meyering.net>
120882         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120883         type name.  Use the variable name instead.
120884         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120885         Likewise.
120887 2005-06-28  Simon Josefsson  <jas@extundo.com>
120889         * modules/check-version (Files): Add check-version.m4.
120891 2005-06-28  Simon Josefsson  <jas@extundo.com>
120893         * m4/check-version.m4: New file, suggested by Jim Meyering
120894         <jim@meyering.net>.
120896 2005-06-28  Simon Josefsson  <jas@extundo.com>
120898         * lib/check-version.h, lib/check-version.c: New files.
120900 2005-06-28  Simon Josefsson  <jas@extundo.com>
120902         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120903         collision with global variable.  Better indentation.  Don't
120904         increment buffer pointer beyond buffer end.  Based on comments
120905         from Paul Eggert <eggert@cs.ucla.edu>.
120907         * lib/base64.h: Indent.
120909 2005-06-28  Simon Josefsson  <jas@extundo.com>
120911         * doc/gnulib.texi (Library version handling): New section.
120913 2005-06-28  Jim Meyering  <jim@meyering.net>
120915         * check-module (find_included_lib_files): Hard-code another
120916         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120917         but modules/fts-lgpl (correctly) does not list those files.
120919         * modules/canonicalize (Files): Add lib/pathmax.h.
120921 2005-06-25  Simon Josefsson  <jas@extundo.com>
120923         * modules/check-version: New file.
120925 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120927         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120928         initializer of struct addrinfo, as an indication that we don't
120929         care how many members the structure has.
120931 2005-06-24  Derek Price  <derek@ximbiot.com>
120932         and Bruno Haible  <bruno@clisp.org>
120934         Remove stat module & update lstat.
120935         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120936         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120937         * m4/stat.m4: Remove this file.
120939 2005-06-24  Derek Price  <derek@ximbiot.com>
120940         and Bruno Haible  <bruno@clisp.org>
120942         Remove stat module & update lstat.
120943         * lib/stat.c: Remove this file...
120944         (slash_aware_lstat): ...moving this content and its support...
120945         * lib/lstat.c (rpl_lstat): ...into here.
120946         * lib/lstat.h: New file.
120948 2005-06-24  Derek Price  <derek@ximbiot.com>
120949         and Bruno Haible  <bruno@clisp.org>
120951         Remove stat module & update lstat.
120952         * config/srclist.txt (libc sources): Remove stat.
120954 2005-06-24  Derek Price  <derek@ximbiot.com>
120955         and Bruno Haible  <bruno@clisp.org>
120957         Remove stat module & update lstat.
120958         * MODULES.html.sh (stat): Remove.
120959         * MODULES.html: Regenerated.
120960         * modules/lstat (Description): Correct function name.
120961         (Files): Add "lstat.h".
120962         (Depends-on): Remove stat, add xalloc, stat-macros.
120963         * modules/stat: Remove this file.
120964         (Include): Add "lstat.h", remove <sys/stat.h>.
120966 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120968         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120969         (ranged_convert): Don't save conversion in a temporary struct.
120970         This causes a warning with GCC 4.0.0, and anyway in the typical
120971         case it's not worth the extra 100 bytes or so of code.
120972         (ranged_convert, __mktime_internal): When calling a function via a
120973         pointer P, use P () rather than (*P) (), as we now assume C89 or
120974         better.
120976 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120978         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120979         "who -r" failed to give output.  Problem reported by Tim Waugh.
120981         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120982         (xcalloc): Use it to avoid needless tests.
120983         Problem reported by Jim Meyering.
120985 2005-06-20  Derek Price  <derek@ximbiot.com>
120987         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120988         unnecessary for Autoconfs > 2.59c.
120990 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120992         * lib/argp.h (__option_is_short): Check upper limit of
120993         __key. Isprint() requires its argument to have the value
120994         of an unsigned char or EOF.
120996 2005-06-16  Jim Meyering  <jim@meyering.net>
120998         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120999         when either N or S is zero.
121001 2005-06-16  Derek Price  <derek@ximbiot.com>
121003         * m4/bison.m4: Declare YACC & YFLAGS precious.
121005 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
121007         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
121008         multibyte string or pattern, fall back on unibyte matching.
121009         Problem reported by James Youngman.
121011 2005-06-08  Bruno Haible  <bruno@clisp.org>
121013         * modules/csharpcomp: New file.
121014         * MODULES.html.sh (C#): Add csharpcomp.
121016 2005-06-08  Bruno Haible  <bruno@clisp.org>
121018         * m4/csharpcomp.m4: New file, from GNU gettext.
121020 2005-06-08  Bruno Haible  <bruno@clisp.org>
121022         * lib/csharpcomp.h: New file, from GNU gettext.
121023         * lib/csharpcomp.c: New file, from GNU gettext.
121024         * lib/csharpcomp.sh.in: New file, from GNU gettext.
121026 2005-06-08  Bruno Haible  <bruno@clisp.org>
121028         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
121029         warning on mingw.
121031 2005-06-07  Derek Price  <derek@ximbiot.com>
121033         Sync from CVS.
121034         * lib/glob_.h: Indent nested #ifdef.
121036 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121038         Sync from coreutils.
121039         Use "file name" when talking about file names, instead of "filename"
121040         or "path", as per the GNU coding standards.
121041         * lib/mkdir-p.c: Renamed from makepath.c.
121042         (make_dir_parents): Renamed from make_path.  All callers changed.
121043         * lib/mkdir-p.h: Likewise.  All includers changed.
121044         * lib/filenamecat.c: Renamed from path-concat.c.
121045         (file_name_concat): Renamed from path_concat.  All callers changed.
121046         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
121047         * lib/filenamecat.h: Likewise.  All includers changed.
121048         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
121049         in comments or local variable names.
121050         * lib/basename.c: Likewise.
121051         * lib/canonicalize.c, canonicalize.h: Likewise.
121052         * lib/dirname.c, dirname.h: Likewise.
121053         * lib/euidaccess.c: Likewise.
121054         * lib/exclude.c: Likewise
121055         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
121056         * lib/fsusage.c, fsuage.h: Likewise.
121057         * lib/fts.c, fts_.h: Likewise.
121058         * lib/getcwd.c: Likewise.
121059         * lib/getloadavg.c: Likewise.
121060         * lib/mkstemp.c: Likewise.
121061         * lib/mountlist.c, mountlist.h: Likewise.
121062         * lib/openat.c, openat.h: Likewise.
121063         * lib/readlink-stub.c: Likewise.
121064         * lib/readutmp.c, readutmp.h: Likewise.
121065         * lib/rename.c: Likewise.
121066         * lib/rmdir.c: Likewise.
121067         * lib/same.c: Likewise.
121068         * lib/savedir.c: Likewise.
121069         * lib/stripslash.c: Likewise.
121070         * lib/tempname.c: Likewise.
121071         * lib/xreadlink.c: Likewise.
121072         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
121073         All uses changed.
121074         * lib/exclude.h: Likewise.
121076         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
121077         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121078         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
121079         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121080         * lib/pathmax.h: Include <limits.h> unconditionally, since other
121081         files have been getting away with it for years (MORE/BSD 4.3
121082         is extinct now).
121083         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
121084         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
121086         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
121087         Define to 256, not 255, as per modern POSIX.
121089 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121091         Sync from coreutils.
121092         Use "file name" when talking about file names, instead of "filename"
121093         or "path", as per the GNU coding standards.
121094         * MODULES.html.sh: mkdir-p renamed from makepath.
121095         filenamecat renamed from path-concat.
121096         * modules/filenamecat: Renamed from modules/path-concat.
121097         (Files): filenamecat.h and filenamecat.c renamed from
121098         path-concat.h and path-concat.c.
121099         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
121100         (Include): filenamecat.h, not path-concat.h.
121101         * modules/mkdir-p: Renamed from modules/makepath.
121102         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
121103         makepath.c.
121104         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
121105         (Include): mkdir-p.h, not makepath.h.
121107 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
121109         Sync from coreutils.
121110         * m4/mkdir-p.m4: Renamed from makepath.m4.
121111         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
121112         Rename files from makepath.c to mkdir-p.c, and from
121113         makepath.h to mkdir-p.h.
121114         * m4/filenamecat.m4: Renamed from path-concat.m4.
121115         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
121116         Rename files from path-concat.c to filenamecat.c,
121117         and from path-concat.h to filenamecat.h.
121118         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
121119         "file name" in local variables or comments.
121120         * m4/rename.m4: Likewise.
121122 2005-06-01  Bruno Haible  <bruno@clisp.org>
121124         * modules/csharpexec: New file.
121125         * MODULES.html.sh (C#): New section.
121127 2005-06-01  Bruno Haible  <bruno@clisp.org>
121129         * m4/csharp.m4: New file, from GNU gettext.
121130         * m4/csharpexec.m4: New file, from GNU gettext.
121132 2005-06-01  Bruno Haible  <bruno@clisp.org>
121134         * lib/csharpexec.h: New file, from GNU gettext.
121135         * lib/csharpexec.c: New file, from GNU gettext.
121136         * lib/csharpexec.sh.in: New file, from GNU gettext.
121138 2005-05-31  Derek Price  <derek@ximbiot.com>
121139             Paul Eggert  <eggert@cs.ucla.edu>
121141         Sync from cvs.
121142         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121144 2005-05-31  Derek Price  <derek@ximbiot.com>
121145             Paul Eggert  <eggert@cs.ucla.edu>
121147         Sync from cvs.
121148         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
121150 2005-05-29  Derek Price  <derek@ximbiot.com>
121152         * config/srclist.txt (glob_.h, glob.c): Add these files.
121154 2005-05-29  Derek Price  <derek@ximbiot.com>
121156         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
121157         * modules/glob: New file.
121158         * modules/getlogin_r: Add link to POSIX spec in description.
121160 2005-05-29  Derek Price  <derek@ximbiot.com>
121161             Paul Eggert  <eggert@cs.ucla.edu>
121163         * m4/glob.m4: New file.
121165 2005-05-29  Derek Price  <derek@ximbiot.com>
121166             Paul Eggert  <eggert@cs.ucla.edu>
121168         * lib/glob_.h, lib/glob.c: New files.
121170 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121172         * modules/fts (Files): Remove m4/inttypes-pri.m4.
121173         * modules/fts-lgpl (Depends-on): Remove gettext.
121175 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
121178         and don't require gt_INTTYPES_PRI.
121180 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
121182         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
121184         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
121185         the configuration hassle isn't worth it.
121186         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
121187         (LONGEST_MODIFIER, PRIuMAX): Remove.
121189 2005-05-27  Bruno Haible  <bruno@clisp.org>
121191         * lib/getlogin_r.h: Remove second include of <stddef.h>.
121193 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
121195         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
121196         _POSIX_PTHREAD_SEMANTICS for Solaris.
121198 2005-05-25  Derek Price  <derek@ximbiot.com>
121200         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
121202 2005-05-25  Derek Price  <derek@ximbiot.com>
121203             Paul Eggert  <eggert@cs.ucla.edu>
121205         * modules/getlogin_r, m4/getlogin_r.m4: New files.
121206         * lib/getlogin_r.c, getlogin_r.h: New files.
121208 2005-05-25  Bruno Haible  <bruno@clisp.org>
121209             Derek Price  <derek@ximbiot.com>
121211         * lib/getlogin_r.h: Simplify API documentation.
121213 2005-05-23  Derek Price  <derek@ximbiot.com>
121215         * modules/minmax (Files): Add m4/minmax.m4.
121216         (configure.ac): Add gl_MINMAX.
121218 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
121220         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
121221         so that unistd-safer.h (GPL'ed code) need not be included.
121223 2005-05-22  Bruno Haible  <bruno@clisp.org>
121225         * m4/minmax.m4: New file.
121226         Based on a patch by Derek Price <derek@ximbiot.com>.
121228 2005-05-22  Bruno Haible  <bruno@clisp.org>
121230         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
121231         (INT64_MIN): Fix definition.
121232         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
121234         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
121235         NEED_SIGNED_INT_TYPES.
121237         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
121238         HAVE_SYSTEM_INTTYPES.
121240 2005-05-22  Bruno Haible  <bruno@clisp.org>
121242         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
121243         Also include <sys/param.h> if it defines MIN, MAX.
121244         Based on a patch by Derek Price <derek@ximbiot.com>.
121246 2005-05-21  Jim Meyering  <jim@meyering.net>
121248         * modules/fts (Files): Add m4/inttypes-pri.m4.
121249         (Depends-on): Add lstat and remove gettext.  Alphabetize.
121251 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121253         New fts module.
121254         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121255         (setup_dir, free_dir): New functions.
121256         (enter_dir, leave_dir): Define trivial
121257         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121258         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121259         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121260         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121261         Move to fts-cycle.c.
121262         (fts_open): Use setup_dir.
121263         (fts_close): Use free_dir.
121264         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121265         This adds a label and some gotos, but the alternatives were messier.
121266         Check for memory allocation failure when entering a dir.
121267         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121268         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121269         (FTS): New member fts_cycle, that is a union that contains the
121270         old active_dir_ht and cycle_state.  All uses changed to mention
121271         fts_cycle.ht and fts_cycle.state.
121272         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121273         fts.c, with the following changes:
121274         (setup_dir, free_dir): New functions.
121275         (enter_dir): Now returns bool.  Return true if successful, false
121276         if memory exhausted.  All callers changed.
121277         Do not bother partly cleaning up on
121278         memory allocation failure; that is free_dir's job.
121279         However, free ad if hash_insert fails, to avoid memory leak.
121280         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121281         fts->fts_options to see which union member to use.
121283 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121285         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121286         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121288 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121290         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121292 2005-05-20  Jim Meyering  <jim@meyering.net>
121294         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121295         Now a macro, to pacify GCC.
121297 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121299         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121300         of -1.
121302 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121304         * lib/chown.c (rpl_chown): Return -1 on failure.
121306 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121308         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121309         Don't check for stddef.h.
121310         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121311         don't use its results.
121312         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121313         since we include them unconditionally.  Don't require
121314         AM_STDBOOL_H, since stdbool is a prerequisite.
121315         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121316         since we assume C89 or better.
121317         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121318         as we don't use their results.
121319         Don't check for fchdir, memmove, memset, strrchr, as we use
121320         them unconditionally.
121321         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121322         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121324 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121326         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121327         Include <stddef.h> unconditionally, since we assume C89 now.
121328         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121329         * lib/fts.c: Include fts_.h first, to check interface.
121330         Do not include intprops.h; no longer needed.
121331         Include cycle-check.h and hash.h, since fts_.h no longer does.
121332         Remove unnecessary casts of closedir to void.
121333         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121334         decide whether to decrement nlinks.
121335         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121336         (FTS): Use struct hash_table * instead of Hash_table, so that
121337         we no longer need to include hash.h here.
121339 2005-05-18  Jim Meyering  <jim@meyering.net>
121341         * modules/dirfd (License): Change to LGPL.  Most of the code
121342         is already in the public domain.
121344 2005-05-18  Jim Meyering  <jim@meyering.net>
121346         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121347         Reported by Yoann Vandoorselaere.
121349 2005-05-17  Jim Meyering  <jim@meyering.net>
121351         * m4/fts.m4: New file, from coreutils.
121353 2005-05-17  Jim Meyering  <jim@meyering.net>
121355         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121357 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121359         Sync from coreutils.
121360         * m4/unlinkdir.m4: New file.
121362 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121364         Sync from coreutils.
121365         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121366         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121367         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121368         White space changes only.
121369         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121370         special.
121371         * lib/yesno.c: Include getline.h, not ctype.h.
121372         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121373         Use getline to remove arbitrary restriction on response length.
121375 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121377         * config/srclist-update: Spell out "Street" in FSF postal
121378         mail address; this is the style the FSF seems to prefer.
121380         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121381         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121382         this updates FSF postal mail address.
121384         Sync from coreutils.
121385         * modules/unlinkdir: New file.
121386         * modules/yesno (Depends-on): Add getline.
121387         * MODULES.html.sh (File system functions): Add unlinkdir.
121389 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121391         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121392         lib/strsep.h:
121393         Change the initial comment to refer to GPL, not LGPL.
121394         gnulib-tool will change it to LGPL as needed.
121396         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121397         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121398         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121399         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121400         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121401         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121402         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121403         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121404         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121405         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121406         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121407         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121408         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121409         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121410         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121411         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121412         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121413         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121414         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121415         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121416         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121417         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121418         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121419         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121420         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121421         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121422         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121423         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121424         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121425         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121426         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121427         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121428         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121429         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121430         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121431         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121432         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121433         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121434         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121435         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121436         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121437         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121438         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121439         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121440         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121441         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121442         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121443         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121444         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121445         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121446         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121447         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121448         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121449         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121450         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121451         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121452         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121453         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121454         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121455         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121456         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121457         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121458         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121459         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121460         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121461         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121462         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121463         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121464         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121465         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121466         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121467         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121468         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121469         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121470         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121471         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121472         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121473         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121474         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121475         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121476         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121477         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121478         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121479         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121480         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121481         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121482         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121483         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121484         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121485         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121486         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121487         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121488         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121489         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121490         lib/yesno.c, lib/yesno.h:
121491         Update FSF postal mail address.
121493 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121495         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121496         tests/test-memmem.c, tests/test-stpncpy.c:
121497         Update FSF postal mail address.
121499 2005-05-13  Bruno Haible  <bruno@clisp.org>
121501         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121502         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121503         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121504         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121505         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121506         Add support for 64-bit integers in the MSVC compiler.
121508 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121510         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121512 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121514         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121516 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121518         * doc/getdate.texi (General date syntax): Don't say that date
121519         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121520         Problem reported by Nic Ferrier.
121522 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121524         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121525         specified in ai_socktype. Fix invalid ai_protocol
121526         check. ai_protocol is usually set to 0 or depending on
121527         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121528         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121529         ai_socktype / ai_protocol in the returned addrinfo structure.
121531 2005-05-10  Simon Josefsson  <jas@extundo.com>
121533         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121534         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121536 2005-05-10  Karl Berry  <karl@gnu.org>
121538         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121539         (from http://www.gnu.org/licenses).
121540         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121541         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121542         fdl.texi suffices.
121544 2005-05-10  Karl Berry  <karl@gnu.org>
121546         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121547         (COPYING.DOC): remove.
121549         * config/srclist-update: new FSF address.
121551 2005-05-10  Derek Price  <derek@ximbiot.com>
121553         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121554         possible.
121556 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121557             Bruno Haible  <bruno@clisp.org>
121559         * modules/inet_ntop: New file.
121560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121561         inet_ntop.
121563 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121564             Bruno Haible  <bruno@clisp.org>
121566         * m4/inet_ntop.m4: New file.
121568 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121569             Bruno Haible  <bruno@clisp.org>
121571         * lib/inet_ntop.h: New file.
121572         * lib/inet_ntop.c: New file, from glibc with modifications.
121574 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121576         * modules/time_r (License): Change to LGPL.
121577         * modules/extensions (License): Change to LGPL.  Actually,
121578         the license is more permissive than that, but currently gnulib-tool
121579         doesn't know how to handle more-permissive licenses.
121581         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121582         Problem reported by Dave Love.
121584 2005-05-08  Jim Meyering  <jim@meyering.net>
121586         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121587         blank.
121589 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121591         * modules/argmatch (Depends-on): Add stdbool.
121592         * modules/backupfile (Depends-on): Likewise.
121593         * modules/chdir-long (Depends-on): Likewise.
121594         * modules/closeout (Depends-on): Likewise.
121595         * modules/cycle-check (Depends-on): Likewise.
121596         * modules/dirname (Depends-on): Likewise.
121597         * modules/fnmatch (Depends-on): Likewise.
121598         * modules/fsusage (Depends-on): Likewise.
121599         * modules/fwriteerror (Depends-on): Likewise.
121600         * modules/getcwd (Depends-on): Likewise.
121601         * modules/getloadavg (Depends-on): Likewise.
121602         * modules/hard-locale (Depends-on): Likewise.
121603         * modules/makepath (Depends-on): Likewise.
121604         * modules/mountlist (Depends-on): Likewise.
121605         * modules/nanosleep (Depends-on): Likewise.
121606         * modules/posixtm (Depends-on): Likewise.
121607         * modules/quotearg (Depends-on): Likewise.
121608         * modules/readtokens (Depends-on): Likewise.
121609         * modules/readtokens0 (Depends-on): Likewise.
121610         * modules/readutmp (Depends-on): Likewise.
121611         * modules/save-cwd (Depends-on): Likewise.
121612         * modules/strftime (Depends-on): Likewise.
121613         * modules/userspec (Depends-on): Likewise.
121614         * modules/utimecmp (Depends-on): Likewise.
121615         * modules/xgetcwd (Depends-on): Likewise.
121616         * modules/xnanosleep (Depends-on): Likewise.
121617         * modules/xstrtod (Depends-on): Likewise.
121618         * modules/yesno (Depends-on): Likewise.
121620 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121622         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121623         needless checks.
121625 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121627         Merge from coreutils.  Among other things,
121628         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121629         * lib/fd-safer.c: New file.
121630         * lib/fcntl-safer.h, open-safer.c: Remove.
121631         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121632         * lib/dup-safer.c: Include unistd-safer.h first.
121633         Don't include errno.h.
121634         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121635         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121636         * lib/file-type.c: Rely on file-type.h change.
121637         * lib/getloadavg.c: Include unistd-safer.h.
121638         (getloadavg): Use safer open.
121639         * lib/getusershell.c: Include "stdio-safer.h".
121640         (getusershell): Use safer fopen.
121641         * lib/long-options.c (long_options): Use NULL rather than 0.
121642         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121643         'free'.
121644         * lib/modechange.c: Likewise.
121645         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121646         (MODE_DONE): New constant.
121647         (struct mode_change): Remove 'next' member.
121648         (make_node_op_equals): New function; like the old one of the
121649         same name, except it allocates an array.
121650         (mode_compile, mode_create_from_ref): Use it.
121651         (mode_compile): Allocate result as an array, not a linked list.
121652         Parse octal string ourself, so that we catch mistakes like "+0".
121653         (mode_adjust): Arg is an array, not a linked list.
121654         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121655         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121656         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121657         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121658         Remove.  This is now stat-macros.h's job.
121659         (talloc): Remove.  All callers replaced by xalloc, so that
121660         our invokers don't have to worry about reporting memory failures.
121661         (make_node_op_equals): Remove.
121662         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121663         New constants.
121664         (struct mode_change): Moved here from modechange.h.
121665         (mode_append_entry): Remove.
121666         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121667         apps to have incorrect behavior.  Use simpler algorithm for head
121668         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121669         Detect more invalid usages rather than having somewhat-random behavior.
121670         Don't insert an "a=" action, as that leads to incorrect behavior.
121671         (mode_compile, mode_create_from_ref): Return NULL on error instead
121672         of an enum, since now there's only one way to have an error.  All
121673         callers changed.
121674         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121675         at the correct time.  Simplify calculation of "+u" and its ilk.
121676         Don't mishandle "+X".
121677         (mode_free): Remove "register" and localize decls.
121678         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121679         (struct mode_change): Move to modechange.c; callers don't
121680         need to see this stuff.
121681         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121682         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121683         (mode_change, mode_adjust): Reflect the new signatures noted above.
121684         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121685         that might redefine system include files.
121686         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121687         (my_usleep): Use NULL rather than (void *) 0.
121688         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121689         Use siginterrupt to specify that system calls should be interrupted.
121690         (rpl_nanosleep): Move initialization of suspended closer to call of
121691         my_usleep.
121692         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121693         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121694         (desirable_utmp_entry): New function.
121695         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121696         using x2nrealloc, to simplify logic.
121697         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121698         size calculation.  Do not assume utmp file is a regular file.
121699         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121700         (READ_UTMP_CHECK_PIDS): New constant.
121701         * lib/save-cwd.c: Include unistd-safer.h.
121702         (save_cwd): Use fd_safer.
121703         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121704         [!_LIBC] Include "stat-macros.h" instead.
121705         * lib/unistd-safer.h (fd_safer): New decl.
121707 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121709         * modules/getloadavg (Depends-on): Add unistd-safer.
121710         * modules/getusershell (Depends-on): Add stdio-safer.
121711         * modules/lstat (Depends-on): Remove xalloc.
121712         * modules/mkstemp (Depends-on): Add stat-macros.
121713         * modules/modechange (Depends-on): Remove xstrtol.
121714         Add stat-macros, xalloc.
121715         * modules/save-cwd (Depends-on): Add unistd-safer.
121716         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121717         * modules/unistd-safer (Files): Add lib/fd-safer.c
121718         (Makefile.am): Remove lib_SOURCES.
121720         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121721         Remove fcntl-safer; unistd-safer supersedes it.
121723 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121725         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121726         AC_HEADER_STAT.
121727         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121728         (gl_PREREQ_CHOWN): Remove.
121729         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121730         it.  Don't require AC_HEADER_STAT.
121731         (gl_PREREQ_LSTAT): Remove.
121732         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121733         Don't require AC_HEADER_STAT.
121734         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121735         (gl_PREREQ_RMDIR): Remove.
121736         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121737         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121738         the stat-macros module a prerequisite.
121739         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121740         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121741         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121742         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121743         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121744         variable names.
121745         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121746         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121747         variable prefixes.
121748         * m4/fcntl-safer.m4: Remove.
121749         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121750         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121751         Invoke gl_PREREQ_FD_SAFER.
121752         (gl_PREREQ_FD_SAFER): New macro.
121753         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121754         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121755         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121756         Remove duplicate call to AC_LIBOBJ(readutmp).
121757         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121759         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121760         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121762 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121764         * MODULES.html.sh (Misc): Add byteswap.
121766 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121768         * modules/getcwd (Depends-on): Add extensions.
121769         * modules/openat (Depends-on): Likewise.
121771 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121773         * modules/byteswap: New file.
121775 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121777         * m4/byteswap.m4: New file.
121779 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121781         * lib/byteswap_.h: New file.
121783 2005-04-25  Karl Berry  <karl@gnu.org>
121785         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121787 2005-04-25  Albert Chin  <china@thewrittenword.com>
121789         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121790         Toolkit C bug.
121792 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121794         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121795         (func_ln_if_changed): Remove forcibly for no error message
121796         in case file does not exist.
121798 2005-04-19  Simon Josefsson  <jas@extundo.com>
121800         * gnulib-tool (Options): Make --symlink mean --symbolic.
121802 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121804         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121806 2005-04-16  Simon Josefsson  <jas@extundo.com>
121808         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121810 2005-04-15  Simon Josefsson  <jas@extundo.com>
121812         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121814 2005-04-15  Simon Josefsson  <jas@extundo.com>
121816         * gnulib-tool: Rename --symlink to --symbolic.
121818 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121820         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121821         symbolic links to files instead of copying/moving.  Add --aux-dir,
121822         specifying directory relative --dir where auxiliary build tools
121823         are placed.
121825 2005-04-14  Bruno Haible  <bruno@clisp.org>
121827         * modules/allocsa (License): Change to LGPL.
121828         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121830 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121832         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121833         that "UTC +1 second" continues to work.  Problem reported
121834         by Dmitry V. Levin.
121835         (relunit_snumber): New rule.
121836         (relunit): Use it.
121838 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121840         * lib/getdate.y (universal_time_zone_table): New constant.
121841         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121842         universal_time_zone_table.
121843         (lookup_zone): Prefer universal_time_zone_table to
121844         local_time_zone_table, so that "GMT" time stamps are allowed in
121845         London during the summer.  Problem reported by Ian Abbott.
121847 2005-04-12  Jim Meyering  <jim@meyering.net>
121849         * lib/human.c (humblock): Set *options even when returning due to
121850         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121851         warning from gcc-4.
121853 2005-04-09  Jim Meyering  <jim@meyering.net>
121855         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121856         -Wuninitialized: initialize tm0.tm_year.
121858 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121860         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121861         count, since there's no maximum.  All uses changed.
121862         Add member dsts_seen.
121863         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121864         not being INT_MAX.
121865         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121866         Use pc_rels_seen to decide whether a date is absolute.
121868         * lib/getdate.y (number): Don't overwrite year.
121869         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121870         check.
121872 2005-04-02  Simon Josefsson  <jas@extundo.com>
121874         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121875         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121877 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121879         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121880         where no absolute path name can be longer than PATH_MAX.
121882 2005-03-27  Jim Meyering  <jim@meyering.net>
121884         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121886 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121888         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121889         "one's complement" -> "ones' complement" in comment, as per Knuth.
121890         "value of type" -> "type or expression" in comment.
121891         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121893 2005-03-26  Jim Meyering  <jim@meyering.net>
121895         Comment nits.
121896         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121897         Correct typos: s/or/of/.
121899 2005-03-26  Jim Meyering  <jim@meyering.net>
121901         * modules/check-include-files: Move to ../ and rename to...
121902         * check-module: ...this.
121904 2005-03-25  Jim Meyering  <jim@meyering.net>
121906         * modules/xvasprintf (Files): Add xalloc.h.
121908 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121910         * modules/gettext (Files): config/config.rpath ->
121911         build-aux/config.rpath
121912         * modules/iconv (Files): Likewise.
121913         Problem reported by Oskar Liljeblad.
121915 2005-03-23  Jim Meyering  <jim@meyering.net>
121917         * modules/check-include-files: New script to check for
121918         missing dependencies, multiple includes, etc.
121920         * modules/c-strtold (Depends-on): Add xalloc.
121921         * modules/c-strtod (Depends-on): Add xalloc.
121922         * modules/hash (Depends-on): Add xalloc.
121923         (Files): Remove lib/xalloc.h.
121925         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121926         * modules/userspec (Files): Add lib/inttostr.h.
121928 2005-03-23  Jim Meyering  <jim@meyering.net>
121930         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121932 2005-03-22  Jim Meyering  <jim@meyering.net>
121934         * modules/stat-macros: New module.
121935         * modules/canonicalize, modules/euidaccess, modules/file-type,
121936         * modules/filemode, modules/lchown, modules/makepath,
121937         * modules/rmdir, modules/stat: Depend on new stat-macros module
121938         rather than listing lib/stat-macros.h manually.
121939         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121941 2005-03-22  Jim Meyering  <jim@meyering.net>
121943         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121945 2005-03-22  Bruno Haible  <bruno@clisp.org>
121947         * config/srclist.txt: Replace target directory 'config' with
121948         'build-aux'.
121949         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121950         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121951         ../build-aux/.
121953 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121955         * modules/chdir-long (Depends-on): Add mempcpy.
121957         * modules/acl, modules/backupfile, modules/c-strtod,
121958         modules/c-strtold, modules/canon-host, modules/canonicalize,
121959         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121960         modules/exclude, modules/exitfail, modules/file-type,
121961         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121962         modules/getdate, modules/getline, modules/getpagesize,
121963         modules/getpass, modules/getugroups, modules/group-member,
121964         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121965         modules/inttostr, modules/long-options, modules/makepath,
121966         modules/md5, modules/memcasecmp, modules/memcoll,
121967         modules/modechange, modules/mountlist, modules/path-concat,
121968         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121969         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121970         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121971         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121972         modules/strftime, modules/strndup, modules/strverscmp,
121973         modules/timespec, modules/unlocked-io, modules/userspec,
121974         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121975         modules/yesno:
121976         Remove lib_SOURCES line from Makefile.am section, as this is now
121977         done automatically by the corresponding Autoconf macro.
121979 2005-03-21  Jim Meyering  <jim@meyering.net>
121981         Changes imported from coreutils.
121983         * lib/cycle-check.c: Don't include xalloc.h.
121985         * lib/path-concat.c: Don't include assert.h.
121986         (path_concat): Remove assertion that would have triggered
121987         for ABASE starting with more than one slash.
121988         Reported by Andreas Schwab.
121990         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121991         properly when ABASE is an absolute file name.
121992         Correct the description of this function.
121993         Include <assert.h>.
121994         Add an assertion and a test driver.
121995         This fixes a bug introduced on 2004-07-02.
121996         Andreas Schwab reported the resulting failure of cp --parents:
121997         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121999 2005-03-21  Jim Meyering  <jim@meyering.net>
122001         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
122002         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
122004 2005-03-21  Jim Meyering  <jim@meyering.net>
122005         and  Paul Eggert  <eggert@cs.ucla.edu>
122007         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
122008         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
122009         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
122010         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
122011         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
122012         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
122013         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
122014         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
122015         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
122016         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
122017         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
122018         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
122019         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
122020         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
122021         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
122022         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
122023         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
122024         for these modules.
122026 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
122028         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
122029         (which shouldn't happen), generate nothing instead of returning 0
122030         immediately, so that nstrftime (NULL, ...) doesn't return 0.
122032 2005-03-16  Bruno Haible  <bruno@clisp.org>
122034         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
122035         HAVE_LONGLONG_64BIT.
122037 2005-03-16  Bruno Haible  <bruno@clisp.org>
122039         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
122040         HAVE_LONGLONG_64BIT.
122042 2005-03-16  Bruno Haible  <bruno@clisp.org>
122044         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
122045         HAVE_LONGLONG_64BIT.
122047 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122049         * lib/strftime.c (my_strftime): Prepend space to format so that we can
122050         reliably distinguish strftime failure from empty output on POSIX
122051         hosts.
122053 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
122055         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
122056         (iconv_string): Don't guess a size-zero buffer, as that might cause
122057         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
122058         result would be 'too large', where 'too large' is (heuristically)
122059         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
122060         overflow concerns.  This will prevent some unwanted malloc failures
122061         when the inputs are very large.
122063 2005-03-15  Karl Berry  <karl@gnu.org>
122065         * config/srclist.txt (config.rpath): from gettext.
122066         * config/config.rpath: update.
122068 2005-03-15  Bruno Haible  <bruno@clisp.org>
122070         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
122071         to 'negate'.
122073         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
122074         variable.
122076         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
122077         results.
122079 2005-03-14  Simon Josefsson  <jas@extundo.com>
122081         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
122082         <fx@gnu.org>.
122084 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
122086         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
122087         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
122088         intprops.h.
122089         * lib/strtol.c: Likewise.
122091 2005-03-14  Jim Meyering  <jim@meyering.net>
122093         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
122094         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
122095         to be nonzero so that we (and caller) can detect the difference
122096         between a valid zero-length expansion and an error return, even
122097         when the underlying strftime fails before writing anything into
122098         that location.
122100 2005-03-14  Bruno Haible  <bruno@clisp.org>
122102         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
122103         Update from GNU gettext 0.14.3.
122105 2005-03-10  Jim Meyering  <jim@meyering.net>
122107         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
122109 2005-03-10  Jim Meyering  <jim@meyering.net>
122111         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
122112         so that this module works on systems without fchdir.
122114 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
122116         Factor int-properties macros into a single file, except for
122117         glibc-related files.
122118         * lib/intprops.h: New file.
122119         * lib/getloadavg.c: Include it instead of limits.h.
122120         (INT_STRLEN_BOUND): Remove.
122121         * lib/human.c: Include intprops.h.
122122         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
122123         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
122124         302/1000.
122125         * lib/inttostr.h: Include intprops.h instead of limits.h.
122126         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
122127         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
122128         for consistency with intprops.h.
122129         (time_t_is_integer, twos_complement_arithmetic): Use them.
122130         * lib/sig2str.h: Include <signal.h>, intprops.h.
122131         (INT_STRLEN_BOUND): Remove.
122132         * lib/strftime.c (TYPE_SIGNED): Remove.
122133         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
122134         * lib/strtol.c: Adjust comments to match intprops.h.
122135         * lib/userspec.c: Include intprops.h.
122136         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
122137         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
122138         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
122139         instead of rolling our own expressions.
122140         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
122142         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
122143         instead of int.
122144         (my_strftime): Do not mishandle years close to INT_MAX, by doing
122145         the right thing even if adding 1900 would overflow.  Similarly
122146         for tm_mon + 1 and tm_yday + 1.
122147         Make %Y always equivalent to %C%y, and similarly for %G and %g.
122148         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
122149         (DO_SIGNED_NUMBER): New macro.
122150         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
122152 2005-03-07  Bruno Haible  <bruno@clisp.org>
122154         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
122156 2005-03-07  Bruno Haible  <bruno@clisp.org>
122158         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
122160 2005-03-04  Derek R. Price  <derek@ximbiot.com>
122162         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
122163         (func_import): Only replace files via --import when they have actually
122164         changed.
122166 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122168         * m4/mmap-anon.m4: New file.
122169         * m4/pagealign_alloc.m4: New file.
122171 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122172             Bruno Haible  <bruno@clisp.org>
122174         * modules/pagealign_alloc: New file.
122175         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
122177 2005-03-03  Derek R. Price  <derek@ximbiot.com>
122178             Bruno Haible  <bruno@clisp.org>
122180         * lib/pagealign_alloc.h: New file.
122181         * lib/pagealign_alloc.c: New file.
122183 2005-03-03  Bruno Haible  <bruno@clisp.org>
122185         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
122186         Use an all-permissive copyright notice, recommended by RMS.
122188 2005-03-02  Bruno Haible  <bruno@clisp.org>
122190         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
122191         of AIX, the replacement has to be done only after <string.h> is
122192         included, therefore not in config.h. stpncpy.h does the replacement,
122193         and stpncpy.c uses it.
122195 2005-03-02  Bruno Haible  <bruno@clisp.org>
122197         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
122198         stpncpy.c uses it.
122200 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122202         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
122203         The workaround isn't strictly needed for POSIX conformance, and
122204         it's too much of a pain to configure and maintain.  We'll ask
122205         people to fix their kernels instead.
122206         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
122207         (NANOSLEEP_BUG_WORKAROUND): Remove.
122208         (xnanosleep): Remove the workaround.
122210 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122212         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
122213         Reported by Derek Price.
122214         (Include): Add "timespec.h".
122216         * modules/xnanosleep (Depends-on): Remove gethrxtime.
122218 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
122220         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
122221         to detect nanosleep bug.
122223 2005-03-01  Bruno Haible  <bruno@clisp.org>
122225         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
122227 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
122229         * modules/gethrxtime: New file.
122230         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
122231         (Depends-on): Add gethrxtime.
122232         (configure.ac): Add gl_XNANOSLEEP.
122233         (Makefile.am): Remove lib_SOURCES line.
122235 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122237         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
122238         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
122240 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
122242         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
122243         * lib/timespec.h (gettime): Return void, since it always
122244         succeeds now.  All uses changed.
122245         * lib/gettime.c (gettime): Likewise.
122246         [HAVE_NANOTIME]: Prefer nanotime.
122247         Assume gettimeofday succeeds, as POSIX requires.
122248         Assime time () succeeds, since other code already does.
122249         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
122250         (timespec_subtract): Remove.
122251         (NANOSLEEP_BUG_WORKAROUND): New constant.
122252         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
122253         things considerably.  Use it only on GNU/Linux hosts, since the
122254         workaround shouldn't be needed elsewhere.
122256 2005-02-24  Bruno Haible  <bruno@clisp.org>
122258         * modules/gettext (Files): Add m4/glibc2.m4.
122260 2005-02-24  Bruno Haible  <bruno@clisp.org>
122262         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122263         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122264         * m4/progtest.m4:
122265         Update from GNU gettext 0.14.2.
122266         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122268 2005-02-24  Bruno Haible  <bruno@clisp.org>
122270         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122271         * lib/config.charset: Update from GNU gettext 0.14.2.
122273 2005-02-24  Bruno Haible  <bruno@clisp.org>
122275         * lib/gettext.h: Update from GNU gettext 0.14.2.
122277 2005-02-23  Simon Josefsson  <jas@extundo.com>
122279         * m4/iconvme.m4: New file.
122281 2005-02-23  Jim Meyering  <jim@meyering.net>
122283         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122284         change.
122285         Thanks to Bruno Haible for catching it.
122287 2005-02-22  Simon Josefsson  <jas@extundo.com>
122289         * modules/iconvme: New file.
122291         * MODULES.html.sh: Add iconvme.
122293 2005-02-22  Simon Josefsson  <jas@extundo.com>
122295         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122297 2005-02-22  Simon Josefsson  <jas@extundo.com>
122299         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122301 2005-02-22  Jim Meyering  <jim@meyering.net>
122303         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122304         s/ifndef/ifdef/.
122306 2005-02-20  Neil Conway  <neilc@samurai.com>
122308         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122309         returned by OSX/Darwin if the specified buffer is not large
122310         enough for the hostname.
122312 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122314         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122315         pass it to _help, otherwise the latter coredumps trying to
122316         dereference state.root_argp.
122318 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122320         * modules/chdir-long (Depends-on): Add memrchr.
122321         * modules/memrchr (Files): Add lib/memrchr.h.
122322         (Include): "memrchr.h".
122324 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122326         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122328 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122330         * lib/memrchr.h: New file.
122331         * lib/chdir-long.c: Include it.
122332         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122333         Don't bother including stddef.h.
122335 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122337         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122338         inclusion.
122339         Include <sys/types.h>, for dev_t.
122340         (ME_DUMMY, ME_REMOTE): Move from here....
122341         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122342         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122343         Dmitry V. Levin.
122344         Include mountlist.h first, to test the interface.
122346 2005-01-29  Bruno Haible  <bruno@clisp.org>
122348         * lib/progname.c (program_name): Initialize.
122349         Needed when linking statically on MacOS X.
122351 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122353         Sync from coreutils.
122354         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122355         (Depends-on): Add c-strtod.
122356         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122358 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122360         Sync from coreutils.
122361         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122363         Remove files that are specific to coreutils.
122364         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122366 2005-01-28  Bruno Haible  <bruno@clisp.org>
122368         * modules/javacomp: New file.
122369         * MODULES.html.sh (Java): Add javacomp.
122371 2005-01-28  Bruno Haible  <bruno@clisp.org>
122373         * m4/javacomp.m4: New file, from GNU gettext.
122375 2005-01-28  Bruno Haible  <bruno@clisp.org>
122377         * lib/javacomp.sh.in: New file, from GNU gettext.
122378         * lib/javacomp.h: New file, from GNU gettext.
122379         * lib/javacomp.c: New file, from GNU gettext.
122381 2005-01-26  Simon Josefsson  <jas@extundo.com>
122383         * lib/gai_strerror.c: Use GPL in header.
122385 2005-01-26  Bruno Haible  <bruno@clisp.org>
122387         * modules/javaexec: New file.
122388         * MODULES.html.sh (Java): Add javaexec.
122390 2005-01-26  Bruno Haible  <bruno@clisp.org>
122392         * m4/javaexec.m4: New file, from GNU gettext.
122394 2005-01-26  Bruno Haible  <bruno@clisp.org>
122396         * lib/javaexec.sh.in: New file, from GNU gettext.
122397         * lib/javaexec.h: New file, from GNU gettext.
122398         * lib/javaexec.c: New file, from GNU gettext.
122400 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122402         * modules/lchown (Depends-on): Remove lchown.h
122404 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122406         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122407         must be defined if the header file was not found, in order
122408         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122410 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122412         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122413         initializers for struct pentry_state.
122414         (__argp_error): Check return value of __asprintf
122415         (__argp_failure): Translate error message
122417         * lib/argp-parse.c: Removed braces around the expansion of N_()
122419 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122421         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122422         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122423         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122424         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122425         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122426         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122427         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122428         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122429         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122430         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122431         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122432         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122433         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122434         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122435         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122436         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122437         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122438         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122439         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122440         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122441         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122442         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122443         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122444         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122445         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122446         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122447         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122448         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122449         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122450         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122451         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122452         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122453         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122454         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122455         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122456         Use an all-permissive copyright notice, recommended by RMS.
122458 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122460         * modules/chdir-long (Depends-on): Remove mempcpy.
122462 2005-01-21  Jim Meyering  <jim@meyering.net>
122464         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122465         same value as for Solaris 9.
122467         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122468         component length.  This included changing the parameter to be
122469         of type `char *' rather than `char const *'.
122470         * lib/chdir-long.h (chdir_long): Update prototype.
122472         * lib/openat.c (fdopendir, fstatat): New functions.
122473         * lib/openat.h: Include headers required for use of DIR and struct
122474         stat.
122475         [AT_SYMLINK_NOFOLLOW]: Define.
122476         (fdopendir, fstatat): Add prototypes.
122478 2005-01-21  Bruno Haible  <bruno@clisp.org>
122480         * modules/classpath: New file.
122481         * MODULES.html.sh (Java): Add classpath.
122483 2005-01-21  Bruno Haible  <bruno@clisp.org>
122485         * lib/classpath.h: New file, from GNU gettext.
122486         * lib/classpath.c: New file, from GNU gettext.
122488 2005-01-20  Simon Josefsson  <jas@extundo.com>
122490         * modules/version-etc-fsf: New file.
122492 2005-01-20  Simon Josefsson  <jas@extundo.com>
122494         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122495         * lib/version-etc.c: Remove version_etc_copyright.
122496         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122497         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122499 2005-01-20  Simon Josefsson  <jas@extundo.com>
122501         * lib/base64.h (isbase64): Add.
122503         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122504         using a unsigned prototype, don't inline.
122505         (base64_decode): Use it.
122507 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122509         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122510         it.
122512 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122514         * lib/save-cwd.c (save_cwd): Remove code to support the case
122515         where fchdir is missing or flaky.
122517 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122519         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122521 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122523         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122524         AC_LIBSOURCES now does this.
122525         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122526         with new ullong_max module.
122528 2005-01-19  Bruno Haible  <bruno@clisp.org>
122530         * modules/sh-quote: New file.
122531         * MODULES.html.sh (Executing programs): Add sh-quote.
122533 2005-01-19  Bruno Haible  <bruno@clisp.org>
122535         * lib/sh-quote.h: New file, from GNU gettext.
122536         * lib/sh-quote.c: New file, from GNU gettext.
122538 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122540         Merge from coreutils.
122541         * m4/ullong_max.m4: New file.
122542         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122543         (gl_MACROS): Assume localeconv exists.
122545 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122547         Merge changes from coreutils, as described below in several
122548         changelogs dated today.
122550         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122551         (O_DIRECTORY): Remove; not needed here, since "." must be
122552         a directory.  All uses removed.
122553         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122554         universal on Suns, and we also need to test for IRIX.
122555         Revamp code to use 'if' rather than '#if'.
122556         Avoid unnecessary comparison of cwd->desc to 0.
122558         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122559         for known valid error numbers rather than observed invalid ones.
122561 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122563         * modules/ullong_max: New file.
122565         * modules/chdir-long, modules/openat: New files.
122566         * modules/save-cwd (Depends-on): Depend on chdir-long.
122567         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122569 2005-01-18  Jim Meyering  <jim@meyering.net>
122571         Merge from coreutils.
122572         * m4/chdir-long.m4, m4/openat.m4: New files.
122573         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122574         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122575         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122576         is sane and DOES follow symlinks.  Besides, testing 20 different
122577         systems found no broken chown implementations.
122578         Prompted by a change in rsync's copy of this macro.
122579         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122581         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122583         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122584         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122585         NULL-means-set-to-current-time semantics.
122586         Remove temporary file immediately, rather than waiting
122587         for configure's at-exit trap code to do it.
122589 2005-01-18  Jim Meyering  <jim@meyering.net>
122591         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122593         * lib/utimens.c (futimens): Account for the fact that futimes
122594         can also fail with errno == ENOSYS or errno == ENOENT.
122595         Patch from Dmitry V. Levin.
122597         Change the name of the robust chdir function from chdir to chdir_long.
122598         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122599         (restore_cwd): Use chdir_long, not chdir.
122600         * lib/chdir-long.c: Renamed from chdir.c.
122601         * lib/chdir-long.h: Renamed from chdir.h.
122602         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122603         Hurd.
122605 2005-01-18  Bruno Haible  <bruno@clisp.org>
122607         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122608         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122609         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122610         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122611         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122612         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122613         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122614         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122615         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122616         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122617         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122618         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122619         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122620         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122621         Use an all-permissive copyright notice, recommended by RMS.
122623 2005-01-18  Bob Proulx  <bob@proulx.com>
122625         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122626         simplify offsetof() macro construct to avoid compile failure with
122627         native HP-UX 11.0 ANSI C compiler.
122629 2005-01-17  Bruno Haible  <bruno@clisp.org>
122631         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122632         redundant because stpncpy.m4 takes care of it.
122634 2005-01-17  Bruno Haible  <bruno@clisp.org>
122636         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122638 2005-01-17  Bruno Haible  <bruno@clisp.org>
122640         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122641         used.
122643 2005-01-17  Bruno Haible  <bruno@clisp.org>
122645         * lib/fwriteerror.h (fwriteerror): Change specification to include
122646         fclose.
122647         * lib/fwriteerror.c: Include <stdbool.h>.
122648         (fwriteerror): At the end, close the file stream. Record whether
122649         stdout was already closed.
122651 2005-01-17  Bruno Haible  <bruno@clisp.org>
122653         * lib/execute.c (environ): Declare if needed.
122654         * lib/pipe.c (environ): Likewise.
122655         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122657 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122659         * modules/argp: Depend on vsnprintf
122661 2005-01-10  Jim Meyering  <jim@meyering.net>
122663         * modules/closeout (Depends-on): Add atexit.
122665 2005-01-06  Bruno Haible  <bruno@clisp.org>
122667         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122669 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122671         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122672         definitions to be after all include files, to avoid collisions.
122673         Problem reported by Bob Proulx.
122675 2005-01-04  Jim Meyering  <jim@meyering.net>
122677         Changes imported from coreutils.
122678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122679         as the mkstemp template, use a temporary directory and an
122680         8.3-friendly template to avoid trouble on systems like DJGPP.
122681         Reported by Juan M. Guerrero via Stepan Kasal.
122682         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122683         close. Remove the temporary directory right away, rather than waiting
122684         for configure's at-exit trap code to do it.
122685         Suggestion from Stepan Kasal.
122687 2005-01-01  Simon Josefsson  <jas@extundo.com>
122689         * gnulib-tool: Print #include directives when --import'ing.
122691 2004-12-28  Simon Josefsson  <jas@extundo.com>
122693         * tests/test-base64.c: Include required header files.  Remove
122694         unused variables.
122696 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122698         * modules/error (Depends-on): Remove gettext.
122700 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122702         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122703         not needed.  This removes a dependency on the gettext module.
122704         [defined _LIBC]: Do not include <libintl.h>; not needed.
122706 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122708         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122709         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122711 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122713         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122714         HAVE_DECL_STRTOLD.
122716 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122718         * modules/getdate (Depends-on): Remove alloca-opt.
122720 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122722         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122724 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122726         * lib/argp-parse.c: Include <stddef.h>.
122727         (alignof, alignto): New macros.
122728         (parser_init): Don't assume that void * is aligned sufficiently
122729         for struct option.
122731         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122732         need to extend the stack.
122733         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122734         large.
122736 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122738         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122740 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122742         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122743         (2004-10-24) change.  Apparently this was a false alarm.
122745         * modules/getdate: Depend on alloca-opt, not alloca.
122747 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122749         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122750         Remove now-obsolete comment about AIX.
122751         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122752         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122753         (YYMAXDEPTH): New macro.
122755 2004-12-18  Simon Josefsson  <jas@extundo.com>
122757         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122759 2004-12-18  Bruno Haible  <bruno@clisp.org>
122761         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122763 2004-12-18  Bruno Haible  <bruno@clisp.org>
122765         * lib/fatal-signal.c (fatal_signals): Make non-const.
122766         (init_fatal_signals): New function.
122767         (uninstall_handlers, install_handlers): Ignore signals that were set to
122768         SIG_IGN.
122769         (at_fatal_signal): Call init_fatal_signals.
122770         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122771         SIG_IGN.
122772         Reported by Paul Eggert.
122774 2004-12-18  Bruno Haible  <bruno@clisp.org>
122776         * doc/alloca.texi: New file.
122777         * doc/alloca-opt.texi: New file.
122779 2004-12-17  Jim Meyering  <jim@meyering.net>
122781         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122782         Otherwise, install-sh could exit with improper exit status when
122783         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122785 2004-12-16  Simon Josefsson  <jas@extundo.com>
122787         * tests/test-base64.c: Add license.
122789 2004-12-15  Stepan Kasal  <address@hidden>
122791         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122793 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122795         * modules/getcwd (Files): Add m4/d-ino.m4.
122796         Suggested by Mark D. Baushke.
122798 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122800         * lib/getdate.y (textint): New member "negative".
122801         (time_zone_hhmm): New function.
122802         Expect 14 shift-reduce conflicts, not 13.
122803         (o_colon_minutes): New rule.
122804         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122805         (yylex): Set the "negative" member of signed numbers.
122807 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122809         * doc/getdate.texi (Time of day items, Time zone items):
122810         Describe new formats +00:00, UTC+00:00.
122812 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122814         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122815         spurious "-l"s.  Problem reported by Stepan Kasal.
122817 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122819         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122820         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122822 2004-12-04  Simon Josefsson  <jas@extundo.com>
122824         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122825         Vandoorselaere <yoann@prelude-ids.org>.
122827 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122829         Changes imported from coreutils.
122830         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122831         exist.
122832         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122834 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122836         Changes imported from coreutils.
122837         * lib/hard-locale.c: Assume <locale.h> exists.
122838         Include "strdup.h".
122839         (GLIBC_VERSION): New macro.
122840         (hard_locale): Assume setlocale exists.
122841         Rewrite to avoid #ifdef.
122842         Use strdup rather than malloc + strcpy.
122843         * lib/human.c: Assume <locale.h> exists.
122844         (human_readable): Assume localeconv exists.
122846 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122848         * modules/hard-locale (Depends-on): Add strdup.
122850 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122852         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122853         convert T2, not T.  (Imported from libc.)
122855 2004-11-30  Simon Josefsson  <jas@extundo.com>
122857         * modules/restrict (License): Change to LGPL.
122859 2004-11-30  Simon Josefsson  <jas@extundo.com>
122861         * m4/restrict.m4: Add copyright and copying conditions.
122863 2004-11-30  Simon Josefsson  <jas@extundo.com>
122865         * m4/base64.m4: New file.
122867 2004-11-30  Simon Josefsson  <jas@extundo.com>
122869         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122870         base64.
122872         * tests/test-base64.c: New file.
122874         * modules/base64: New file.
122876 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122878         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122879         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122881         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122883 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122885         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122886         (__getcwd.c): Don't restore errno; glibc doesn't.
122887         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122888         first, falling back to our code only if its results look suspicious.
122889         Ensure that the resulting buffer is only as large as necessary.
122891         * lib/readutmp.c: Include readutmp.h first.
122892         Include <errno.h>, since readutmp.h no longer does that.
122893         * lib/readutmp.h: Don't include <errno.h>,
122894         <sys/param.h>, <time.h>; not needed to establish interface.
122895         (errno): Remove decl.
122896         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122897         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122898         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122900 2004-11-28  Simon Josefsson  <jas@extundo.com>
122902         * lib/base64.h, base64.c: New file.
122904 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122906         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122908 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122910         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122911         (Depends-on): Remove pathmax, same.  Add mempcpy.
122912         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122913         (Makefile.am): Append getcwd.h to lib_SOURCES.
122914         (Include): Add getcwd.h.
122915         (Maintainer): Change from Jim Meyering to "all, glibc",
122916         since getdate now uses intended-for-glibc code.
122917         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122918         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122920 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122922         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122923         HP's ANSI C compiler.
122924         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122925         Declaring int functions causes warnings on some modern systems and
122926         shouldn't be needed to compile on ancient ones.
122927         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122928         defined.
122930         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122931         with the following changes.
122932         (__set_errno): Parenthesize properly.
122933         Include <stdbool.h>.
122934         (MIN, MAX, MATCHING_INO): New macros.
122935         (__getcwd): Define with prototype, not K&R form.
122936         Use heuristics to allocate default buffer on stack if possible.
122937         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122938         behavior, and to avoid the PATH_MAX limit when computing
122939         ../../../../...
122940         Use MATCHING_INO to compare inode number to file.
122941         Check for arithmetic overflow in size calculations.
122942         Fix bug in reallocation of dot array that caused getcwd to fail
122943         on directories nested deeper than 75.
122944         Be more careful about saving errno on error.
122945         Do not use realloc; use only free+malloc, as this is a bit
122946         more flexible and avoids a needless copy operation.
122947         Do not inspect st_dev and st_ino for symbolic links; POSIX
122948         doesn't specify the latter.
122949         Check for closedir errors.
122950         Avoid needless casts.
122951         Use "#ifdef weak_alias" around weak_alias, to be like other
122952         glibc code.
122953         The following changes to getcwd.c have effect only when used in
122954         gnulib; they have no effect inside glibc proper.
122955         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122956         as alloca isn't used.
122957         (alloca, __alloca): Likewise.
122958         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122959         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122960         unconditionally, as gnulib assumes C89 or better.
122961         Do not include <sys/param.h>.
122962         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122963         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122964         better.
122965         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122966         Include <dirent.h> in a way that is compatible with modern Autoconf.
122967         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122968         New macros, if not already defined.
122969         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122970         Use "_LIBC", not "defined _LIBC", for consistency.
122971         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122972         a mempcpy module.
122973         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122974         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122975         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122976         credit only to Jim Meyering and adjust the copyright dates.
122977         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122978         <stdlib.h>, <unistd.h>, "pathmax.h".
122979         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122980         (INITIAL_BUFFER_SIZE): Remove.
122981         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122983 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122985         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122986         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122987         Use the _ONCE methods, for efficiency.
122988         Check for fcntl.h.  In test program, include <errno.h>
122989         and <fcntl.h> if available.  Remove old K&R cruft from
122990         test program.  Check for common errors in GNU/Linux,
122991         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122992         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122993         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122994         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122995         name accordingly.
122996         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122997         accommodate new getcwd.c.
122998         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122999         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
123000         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
123001         that's all we need now.
123003 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123005         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
123006         argp-parse.c depends on getopt internals, that means we should
123007         always use our getopt, to be on the safe side.
123008         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
123009         order not to spoil the result of an eventual previous invocation
123010         of gl_GETOPT_SUBSTITUTE.
123012 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123014         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
123015         redefinition warnings. To avoid them, include the defines
123016         in `#if !defined __need_getopt ... #endif'. The only place
123017         where __getopt_argv_const is used is in definitions
123018         of getopt_long and getopt_long_only below, which are as well
123019         protected by `#ifndef __need_getopt'.
123020         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
123021         __need_getopt after including <stdio.h> and <unistd.h> These
123022         headers might have defined it.
123024 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123026         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
123028 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
123030         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
123031         (futimens): New function, which uses futimes if available.
123032         (futimens, utimens): Support timespec==NULL, with same semantics
123033         as utime and utimens.
123034         * lib/utimens.h (futimens): New decl.
123036 2004-11-23  Jim Meyering  <jim@meyering.net>
123038         * lib/getopt_.h: Remove trailing blanks.
123040 2004-11-23  Jim Meyering  <jim@meyering.net>
123042         * lib/__fpending.c: Add comment.
123044 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
123046         * modules/canonicalize (Depends-on): Add xreadlink.
123047         Problem reported by James Youngman.
123049 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
123051         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
123052         New macros.
123053         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
123054         optopt): Use them instead of invoking ## directly; otherwise, the
123055         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
123057 2004-11-19  Bruno Haible  <bruno@clisp.org>
123059         * lib/strtok_r.c: Move comments from here...
123060         * lib/strtok_r.h: ... to here.
123062 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123064         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
123065         implementations that mishandle size_t overflow.
123067 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
123069         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
123070         might fail.  Problem reported by Yoann Vandoorselaere.
123071         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
123072         implementations that mishandle size_t overflow.
123074 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123076         * modules/canon-host (Depends-on): Add strdup.
123078 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123080         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
123082 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123084         * lib/canon-host.c: Include "strdup.h".
123085         (canon_host): Use getaddrinfo if available, so that IPv6 works.
123086         Use strdup instead of malloc/strcpy to duplicate strings.
123088         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
123089         (human_space_before_unit): New constant.
123090         * lib/human.c (human_readable): Support it.
123092         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
123093         (xgetcwd): Set errno correctly when failing.
123094         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
123095         the failure is actually due to a PATH_MAX problem.
123097         Further getopt changes to make it more likely that glibc will
123098         buy the changes back.
123099         * lib/getopt.c (POSIXLY_CORRECT): New constant.
123100         (getopt): Use it, so to preserve glibc semantic
123101         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
123102         when compiling for libc.
123103         * lib/getopt_.h (__getopt_argv_const): Bring it back.
123104         (getopt_long, getopt_long_only): Use it.
123106         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123107         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
123108         (getopt): Argv is now char * const *, as per standard.
123109         (_getopt_internal_r, _getopt_internal): Argv is now char **,
123110         not char *__getopt_argv_const *.
123111         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123112         _getopt_long_only_r): Likewise.
123113         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
123114         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123115         _getopt_long_r, _getopt_long_only_r): Likewise.
123116         * lib/getopt_.h (__getopt_argv_const): Remove.
123117         (getopt): Argv is now char * const *, as per standard.
123119         * lib/getdate.y (tORDINAL): New token.
123120         (day, relunit): Allow it for relative times.
123121         (relative_time_table): Use tORDINAL for ordinals.
123123 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
123125         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
123126         Document that "second" isn't allowed as an ordinal number.
123128 2004-11-16  Jim Meyering  <jim@meyering.net>
123130         * modules/closeout (Depends-on): Add fpending.
123132 2004-11-15  Jim Meyering  <jim@meyering.net>
123134         * lib/closeout.c: Include "__fpending.h" once again.
123135         Include <stdbool.h>.
123136         (close_stdout): Don't fail just because stdout was closed initially,
123137         since some programs don't write to stdout in the normal course of
123138         operation (other than --version and --help), and we don't want this
123139         function to make e.g. `touch file >&-' fail.
123140         But do fail if it was closed and someone has tried to write to it.
123141         E.g., `printf foo >&-' must fail.
123143 2004-11-13  Jim Meyering  <jim@meyering.net>
123145         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
123147 2004-11-12  Simon Josefsson  <jas@extundo.com>
123149         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
123150         small doc fix is still pending.
123152 2004-11-11  Simon Josefsson  <jas@extundo.com>
123154         * modules/strtok_r: New file.
123156         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123157         strtok_r.
123159 2004-11-11  Simon Josefsson  <jas@extundo.com>
123161         * m4/strtok_r.m4: New file.
123163         * m4/getopt.m4: Replace opterr.
123165 2004-11-11  Simon Josefsson  <jas@extundo.com>
123167         * lib/strtok_r.h, strtok_r.c: New file.
123169 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123171         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
123172         of replacing opterr, getopt, etc.  This should handle the
123173         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
123175 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
123177         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
123178         we can stop lying to compilers about the constness of argv when we
123179         are compiled outside glibc.
123180         (getopt, getopt_long, getopt_long_only): Use it.
123181         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
123182         _getopt_internal, getopt): Likewise.
123183         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
123184         _getopt_long_only_r): Likewise.
123185         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
123186         _getopt_long_r, _getopt_long_only_r): Likewise.
123188         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
123189         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
123190         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
123191         the other external symbols.
123192         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
123193         declaration, since the above renaming now works around collisions.
123195 2004-11-11  Jim Meyering  <jim@meyering.net>
123197         * lib/linebreak.c: Remove trailing blanks.
123198         * lib/alloca_.h: Likewise.
123199         * lib/acosl.c: Likewise.
123200         * lib/euidaccess.c: Likewise.
123201         * lib/allocsa.h: Likewise.
123203 2004-11-10  Simon Josefsson  <jas@extundo.com>
123205         * m4/getaddrinfo.m4: New file.
123207 2004-11-10  Simon Josefsson  <jas@extundo.com>
123209         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
123211 2004-11-10  Simon Josefsson  <jas@extundo.com>
123213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123214         getaddrinfo.
123216         * modules/getaddrinfo: New file.
123218 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123220         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
123222 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
123224         * lib/mktime.c (SHR): New macro, which is a portable
123225         substitute for >> that should work even on Crays.
123226         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
123227         Problem reported by Mark D. Baushke in
123228         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
123229         * lib/getdate.y (SHR): Likewise.
123230         (tm_diff): Use it.
123231         * lib/strftime.c (SHR): Likewise.
123232         (tm_diff): Use it.
123233         * lib/quotearg.c (struct quoting_options): Use unsigned int for
123234         quote_these_too, so that right shifts are well defined.  All uses
123235         changed.
123237 2004-11-10  Jim Meyering  <jim@meyering.net>
123239         Ensure that no close failure goes unreported.
123240         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
123241         return early when it seems there's nothing to flush.
123242         Don't include __fpending.h.
123244 2004-11-10  Jim Meyering  <jim@meyering.net>
123246         * modules/closeout (Depends-on): Remove fpending.
123248 2004-11-10  Jim Meyering  <jim@meyering.net>
123250         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
123252 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123254         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123255         gl_FUNC_STRFTIME.
123256         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123257         and AC_REQUIRE when possible, to avoid duplicate checks.
123258         Check for <wchar.h>.
123260 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123262         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123264 2004-11-09  Bruno Haible  <bruno@clisp.org>
123266         * m4/sockpfaf.m4: New file.
123268 2004-11-05  Bruno Haible  <bruno@clisp.org>
123270         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123271         Reported by Mark D. Baushke <mdb@cvshome.org>.
123273 2004-11-04  Bruno Haible  <bruno@clisp.org>
123275         2004-09-11  Bruno Haible  <bruno@clisp.org>
123276                 * allocsa.valgrind: New file.
123277         2004-02-06  Bruno Haible  <bruno@clisp.org>
123278                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123279                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123280                 Reported by Christopher Seip <chris.seip@hp.com>.
123282 2004-11-04  Bruno Haible  <bruno@clisp.org>
123284         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123285         (Makefile.am): Distribute it.
123287 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123289         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123290         with errno == ERANGE if the buffer is too small.
123291         Problem reported by Mark D. Baushke.
123293 2004-11-03  Albert Chin  <china@thewrittenword.com>
123294             Paul Eggert  <eggert@cs.ucla.edu>
123296         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123297         equivalent, substitute $ac_type for equivalent type rather than
123298         blindly using uint32_t *always* which won't work if uint32_t is not
123299         available.  Define _UINT32_T to work around typedef of uint32_t if
123300         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123301         2.5.1.
123303 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123305         * m4/jm-macros.m4: Sync from coreutils.
123306         (gl_MACROS): Check for mbrlen, for pathchk.
123307         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123309 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123311         * lib/xreadlink.c (MAXSIZE): New macro.
123312         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123313         size does not exceed MAXSIZE.  Avoid cast.
123314         As suggested by Mark D. Baushke in
123315         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123316         if readlink fails with buffer size just under MAXSIZE, try again
123317         with MAXSIZE.
123319 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123321         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123323 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123324         and  Paul Eggert  <eggert@cs.ucla.edu>
123326         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123327         (get_date): Overparenthesize to avoid GCC warning.
123329 2004-11-02  Bruno Haible  <bruno@clisp.org>
123331         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123332         returns void.
123334 2004-11-02  Bruno Haible  <bruno@clisp.org>
123336         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123337         function returns void.
123339 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123341         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123342         fflush_unlocked, flockfile, funlockfile, funlockfile,
123343         fputs_unlocked, putc_unlocked.
123345 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123347         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123348         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123349         already declared.
123351 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123353         * modules/getdate (Files): Add doc/getdate.texi.
123354         (Depends-on): Add setenv, xalloc.
123356 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123358         * lib/getdate.y: Add support for TZ="foo" within a date string.
123359         Fix some bugs near time_t boundaries.  Reject dates with
123360         out-of-range components, e.g., "Sept 31".
123361         Include <stdlib.h>, "setenv.h", "xalloc.h".
123362         (ISDIGIT_LOCALE): Remove; unused.
123363         Note that the TZ and time functions used here are not reentrant.
123364         (mktime_ok, get_tz): New functions.
123365         (TZBUFSIZE): New constant.
123366         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123367         This requires that we sometimes generate our own TZ="XXX..." setting.
123369 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123371         * doc/getdate.texi: New file, from coreutils with modifications for
123372         the new TZ parsing.
123374 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123376         * lib/mktime.c (not_equal_tm): Remove redundant check.
123378 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123380         * modules/regex (lib_SOURCES): Add regex.c.
123381         Reported by James Youngman in
123382         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123384 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123386         * lib/getdate.y: Use Bison 1.875 features, and some minor
123387         code cleanups.  This change does not affect semantics.
123388         Don't include <stdlib.h>; no longer needed.
123389         Don't include unlocked-io.h; only the "#if TEST" code uses
123390         stdio, and performance isn't crucial there.
123391         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123392         Bison 1.875 features as described below.
123393         All uses of "PC." replaced by "pc->".
123394         (YYSTYPE): Add a forward declaration.
123395         (yylex, yyerror): Use full prototypes in forward decls.
123396         Use "%pure-parser" rather than obsolescent "%pure_parser".
123397         Use %parse-param and %lex-param instead of obsolescent
123398         YYPARSE_PARAM and YYLEX_PARAM.
123399         (meridian_table, month_and_day_table, time_units_table,
123400         relative_time_table, time_zone_table, military_table,
123401         lookup_zone, lookup_word, get_date):
123402         Use NULL instead of 0 where appropriate.
123403         (to_hour): Avoid abort (), to avoid a dependency on
123404         stdlib.h.
123405         (yyerror, yylex): Now accepts parser_control * arg.
123406         (main) [TEST]: Use '\0' rather than 0 for char.
123408 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123410         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123412 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123414         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123415         It's now the caller's responsibility to handle the case where
123416         !HAVE_GETPAGESIZE && !defined getpagesize.
123418         * lib/mktime.c (leapyear): Arg is long int, not int.
123420 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123422         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123424 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123426         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123427         missing.  Problem reported by James Youngman.
123429 2004-10-16  Simon Josefsson  <jas@extundo.com>
123431         * gnulib-tool: Fix comments.  Fix parse problem.
123432         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123434 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123436         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123437         implementation of getopt_long.  Problem reported by Alexander Taler in:
123438         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123440 2004-10-15  Bruno Haible  <bruno@clisp.org>
123442         * gnulib-tool: Untabify. Initialize supplied_libname.
123443         (func_usage): More homogenous output.
123444         (func_modules_transitive_closure, func_modules_to_filelist,
123445         func_emit_lib_Makefile_am): New functions.
123446         (func_import): New function, extracted from big case statement. Use
123447         func_get_license, func_modules_transitive_closure,
123448         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123449         opt_lgpl. Don't use test -a, as it's not portable.
123450         (func_create_testdir): Use func_modules_transitive_closure,
123451         func_modules_to_filelist, func_emit_lib_Makefile_am.
123453 2004-10-15  Bruno Haible  <bruno@clisp.org>
123455         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123457 2004-10-15  Bruno Haible  <bruno@clisp.org>
123459         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123460         the portions belonging to each module.
123461         Suggested by Derek Robert Price <derek@ximbiot.com>.
123463 2004-10-12  Simon Josefsson  <jas@extundo.com>
123465         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123466         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123467         to real functions.
123469 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123471         * modules/vsnprintf: New file.
123473 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123475         * m4/vsnprintf.m4: New file.
123477 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123479         * lib/vsnprintf.h: New file.
123480         * lib/vsnprintf.c: New file.
123482 2004-10-11  Bruno Haible  <bruno@clisp.org>
123484         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123485         vsnprintf.
123487 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123489         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123491 2004-10-07  Bruno Haible  <bruno@clisp.org>
123493         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123494         fits into the provided buffer.
123496 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123498         * lib/diacrit.c, diacrit.h: Add GPL notice.
123500         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123501         notice.
123502         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123503         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123504         This avoids a potential constant-folding bug.
123506 2004-10-05  Bruno Haible  <bruno@clisp.org>
123508         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123509         for the declaration of strsep.
123511 2004-10-05  Bruno Haible  <bruno@clisp.org>
123513         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123515 2004-10-04  Simon Josefsson  <jas@extundo.com>
123517         * modules/memmem: New file.
123518         * tests/test-memmem.c: New file.
123519         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123521 2004-10-04  Simon Josefsson  <jas@extundo.com>
123523         * m4/memmem.m4: New file.
123525 2004-10-04  Simon Josefsson  <jas@extundo.com>
123527         * lib/memmem.h: New file.
123528         * lib/memmem.c: New file, taken from glibc.
123530 2004-10-04  Simon Josefsson  <jas@extundo.com>
123532         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123533         '#ifdef USE_UNLOCKED_IO'.
123535 2004-10-04  Simon Josefsson  <jas@extundo.com>
123537         * config/srclist.txt: Add memmem from glibc.
123539 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123541         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123543         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123544         modules/exclude, modules/getdate, modules/getline,
123545         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123546         modules/getusershell, modules/linebuffer, modules/md5,
123547         modules/mountlist, modules/posixtm, modules/readtokens,
123548         modules/readutmp, modules/regex, modules/sha1,
123549         modules/version-etc, modules/yesno:
123550         Remove dependency on unlocked-io.
123552 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123554         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123556         * m4/unlocked-io.m4: Add copyright notice.
123557         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123559 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123561         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123562         * lib/xmalloc.c (xmemdup): Likewise.
123563         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123564         XFREE): Remove these long-obsolescent macros.
123565         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123566         * lib/xstrdup.c: Remove.
123568         * lib/regex.c (re_comp): Cast gettext return value to char *,
123569         Problem reported by Martin Neitzel via Mark D. Baushke.
123571 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123573         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123574         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123575         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123576         regex.c, sha1.c, version-etc.c, yesno.c:
123577         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123578         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123579         the includer's responsibility.
123581         Sync from coreutils.
123583         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123584         points to the start of a string, as the C Standard says the
123585         resulting behavior is undefined.
123587         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123588         simple -> simple_backups, numbered_existing ->
123589         numbered_existing_backups, numbered -> numbered_backups
123590         to avoid shadowing problems.  All uses changed.
123591         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123592         * lib/backupfile.c (check_extension, numbered_backup):
123593         Rename locals to avoid shadowing 'basename'.
123594         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123595         once.
123597         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123598         * lib/.cvsignore: Add getopt.h.
123600 2004-10-04  Bruno Haible  <bruno@clisp.org>
123602         * modules/README: New file.
123603         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123604         not a module.
123606 2004-10-02  Jim Meyering  <jim@meyering.net>
123608         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123610 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123612         * modules/strsep: New file.
123614 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123616         * m4/strsep.m4: New file.
123618 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123620         * lib/strsep.h: New file.
123621         * lib/strsep.c: New file.
123623 2004-10-01  Simon Josefsson  <jas@extundo.com>
123625         * lib/snprintf.c (snprintf): Handle size==0.
123627 2004-10-01  Simon Josefsson  <jas@extundo.com>
123628             Bruno Haible  <bruno@clisp.org>
123630         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123631         (snprintf): Declare 'args'.
123633 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123635         * lib/snprintf.c: Remove comments as to why each header is needed.
123637 2004-10-01  Bruno Haible  <bruno@clisp.org>
123639         * MODULES.html.sh: Add strsep.
123641 2004-09-30  Simon Josefsson  <jas@extundo.com>
123643         * modules/snprintf: New file.
123645 2004-09-30  Simon Josefsson  <jas@extundo.com>
123647         * m4/snprintf.m4: New file.
123649 2004-09-30  Simon Josefsson  <jas@extundo.com>
123651         * lib/snprintf.h, lib/snprintf.c: New files.
123653 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123655         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123656         (hol_entry_help): Never translate an empty string.
123657         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123658         * lib/argp.h (OPTION_NO_TRANS): New option.
123660 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123662         * modules/argp (Maintainer): Replace Simon Josefsson
123663         by Sergey Poznyakoff.
123665 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123667         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123668         changes merged back into glibc.
123670 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123672         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123674 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123676         * lib/xvasprintf.c: Include xalloc.h.
123677         (xvasprintf): Use xalloc_die, not xmalloc_die.
123679 2004-09-29  Bruno Haible  <bruno@clisp.org>
123681         * modules/alloca-opt: New file, derived from modules/alloca.
123682         * modules/allocsa: Depend on alloca-opt instead of alloca.
123683         * modules/setenv: Likewise.
123684         * modules/vasnprintf: Likewise.
123685         * MODULES.html.sh: Add alloca-opt.
123687 2004-09-28  Simon Josefsson  <jas@extundo.com>
123689         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123690         LGPL, and to replace license template from GPL to LGPL.
123692 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123694         * modules/dummy: Change license to LGPL.
123696 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123698         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123700 2004-09-24  Simon Josefsson  <jas@extundo.com>
123702         * modules/minmax (License): Change from GPL to LGPL.
123704 2004-09-23  Simon Josefsson  <jas@extundo.com>
123706         * gnulib-tool (--import): Typo.
123708 2004-09-23  Simon Josefsson  <jas@extundo.com>
123710         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123712 2004-09-22  Bruno Haible  <bruno@clisp.org>
123714         * modules/*: Add 'License' field.
123715         * gnulib-tool: Accept --extract-license option.
123716         (func_get_license): New function.
123718 2004-09-21  Bruno Haible  <bruno@clisp.org>
123720         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123721         Reported by Simon Josefsson.
123723 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123725         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123726         gl_AC_TYPE_LONG_LONG.
123728 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123730         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123732 2004-09-18  Simon Josefsson  <jas@extundo.com>
123733         and  Paul Eggert  <eggert@cs.ucla.edu>
123735         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123736         calls with autoreconf.  Define GL_LIB.
123738 2004-09-14  Karl Berry  <karl@gnu.org>
123740         * config/srclist.txt: unsync setenv.c, sigh.
123742 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123744         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123745         Problem reported by Bruno Haible in:
123746         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123748 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123750         * config/srclist.txt: Comment out argp-pvh.c.
123752 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123754         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123755         in case some system header has #define'd it.  Problem reported by
123756         Soeren D. Schulze in
123757         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123759 2004-09-09  Karl Berry  <karl@gnu.org>
123761         * regex.[ch]: delete from the root.  These were supposed to be
123762                 synced with emacs cvs, but this has not happened for about
123763                 a year, and anyway nothing else uses emacs regex.[ch].
123764                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123765                 lib/regex[.ch] is untouched.
123767 2004-09-09  Bruno Haible  <bruno@clisp.org>
123769         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123771 2004-09-09  Bruno Haible  <bruno@clisp.org>
123773         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123774         modifications.
123775         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123777 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123779         * modules/xvasprintf: New file.
123780         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123782 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123784         * lib/xvasprintf.h: New file.
123785         * lib/xvasprintf.c: New file.
123786         * lib/xasprintf.c: New file.
123788 2004-09-08  Bruno Haible  <bruno@clisp.org>
123790         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123792 2004-09-08  Bruno Haible  <bruno@clisp.org>
123794         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123795         length is > INT_MAX.
123796         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123797         more.
123799 2004-09-08  Bruno Haible  <bruno@clisp.org>
123801         * lib/stdint_.h: New file, taken from GNU clisp.
123803 2004-09-08  Bruno Haible  <bruno@clisp.org>
123804             Oskar Liljeblad  <oskar@osk.mine.nu>
123806         * modules/stdint: New file.
123807         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123809 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123811         Import from coreutils.
123812         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123813         strings on unbounded length.  alloca's performance benefits aren't
123814         that important here.
123815         (V_STRDUP): Remove.
123816         (parse_with_separator): New function, with most of the internals
123817         of the old parse_user_spec.  Allow user to omit both user and group,
123818         for compatibility with FreeBSD.
123819         Clone only the user name, not the entire spec.
123820         Do not set *uid, *gid unless entirely successful.
123821         Avoid memory leak in some failing cases.
123822         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123823         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123824         (parse_user_spec): Rewrite to use parse_with_separator.
123826 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123828         * modules/userspec: Don't depend on alloca.
123830 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123832         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123834 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123836         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123837         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123838         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123840 2004-08-16  Simon Josefsson  <jas@extundo.com>
123842         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123843         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123844         Add --dry-run for --import.
123845         Let user provided command line parameters override configure.ac
123846         settings.
123848 2004-08-12  Simon Josefsson  <jas@extundo.com>
123850         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123851         as discussed with Paul Eggert in threads rooted at
123852         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123853         and
123854         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123855         Before, the test was empty, and relied on ELIDE_CODE in source
123856         code.)
123857         (gl_PREREQ_GETOPT): New macro.
123858         (gl_GETOPT): Use them.
123860 2004-08-12  Simon Josefsson  <jas@extundo.com>
123862         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123863         * lib/getopt_.h: Renamed from getopt.h.
123865 2004-08-12  Simon Josefsson  <jas@extundo.com>
123867         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123868         Change default library name from libfoo to libgnu.
123869         Now, if you have a configure.ac that says:
123870                 gl_SOURCE_BASE(gl)
123871                 gl_M4_BASE(gl/m4)
123872                 gl_MODULES(error getopt etcetera)
123873                 gl_INIT
123874         you can import all you need by running:
123875                 ../gnulib/gnulib-tool --import
123877         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123878         (Makefile.am): Rewrite, use logic from argz.
123879         (Include): Use <getopt.h> instead of "getopt.h".
123881 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123883         * modules/argp (Files): Add m4/unlocked-io.m4.
123884         (Depends-on): Add extensions.
123886 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123888         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123889         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123890         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123891         Check for program_invocation_name, program_invocation_short_name,
123892         flockfile, funlockfile, features.h, _getopt_long_only_r.
123894 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123896         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123897         its complicated substitute.
123898         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123899         and program_invocation_name.
123900         (__argp_basename) [!_LIBC]: Remove; the only use was
123901         replaced by its body.
123902         (__argp_short_program_name): Change condition from
123903         !defined __argp_short_program_name to
123904         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123905         to match argp-namefrob.h.
123906         (__argp_failure): Don't assume strerror_r returns char *.
123907         * lib/argp-parse.c (N_): Define unconditionally.
123908         (argp_default_options): Fill out initializers with 0 to avoid
123909         gcc warnings.
123911 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123913         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123914         getopt1.c.
123916 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123918         Merge from coreutils.
123920         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123922         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123923         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123925 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123927         Merge from coreutils.
123929         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123930         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123931         for Reliant Unix 5.43.
123933         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123934         (union fooround): Use uintmax_t, not long int.
123935         The rest is a merge from libc:
123936         [defined _LIBC]: Include <shlib-compat.h>.
123937         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123939         * lib/settime.c (settime): Recode to avoid warning with
123940         Sun Forte C 6U2.
123942         * lib/strverscmp.c: Convert to UTF-8.
123944 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123946         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123947         m4/uintmax_t.m4.
123949 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123951         * modules/xalloc-die: New file.
123952         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123954         * modules/md5 (Files): Add m4/uint32_t.m4.
123955         * modules/sha1: Renamed from modules/sha.
123956         (Files):
123957         Rename lib/sha.h to lib/sha1.h.
123958         Rename lib/sha.c to lib/sha1.c.
123959         Rename m4/sha.m4 to m4/sha1.m4.
123960         (lib_SOURCES): Likewise.
123961         (configure.ac): Rename gl_SHA to gl_SHA1.
123962         (Include): sha.h -> sha1.h.
123964 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123966         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123967         * m4/sha1.m4: Renamed from sha.m4.
123968         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123970 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123972         * lib/obstack.h (obstack_empty_p):
123973         Don't assume that chunk->contents is suitably aligned.
123974         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123975         Likewise. Problem reported by Benno in
123976         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123978         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123979         readable.  This could be improved further but it'd take some work.
123981 2004-08-08  Simon Josefsson  <jas@extundo.com>
123983         * modules/xgethostname (Depends-on): Remove exit and error (not
123984         used).
123986         * modules/getpass-gnu: Add getpass.h.
123987         (Depends-on): Add stdbool.
123988         * modules/getpass: Add getpass.h.
123990 2004-08-08  Simon Josefsson  <jas@extundo.com>
123992         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123993         Check getpass declaration.
123995 2004-08-08  Simon Josefsson  <jas@extundo.com>
123997         * lib/xgethostname.c: Don't include error.h (not used).
123999         * lib/getpass.h: Add.
124000         * lib/getpass.c: Include getpass.h first.
124002 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
124004         * lib/xalloc-die.c: New file.
124005         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
124006         All uses removed.
124007         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
124008         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
124009         xalloc-die.c.
124010         (_, N_, xalloc_die): Move to xalloc-die.c.
124011         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
124012         so that we needn't mess with xalloc_msg_memory_exhausted.
124014         * lib/sha1.h: Renamed from sha.h.
124015         (SHA1_H): Renamed from _SHA_H.
124016         (sha1_ctx): Renamed from sha_ctx.
124017         (sha1_init_ctx): Renamed from sha_init_ctx.
124018         (sha1_process_block): Renamed from sha_process_block.
124019         (sha1_process_bytes): Renamed from sha_process_bytes.
124020         (sha1_finish_ctx): Renamed from sha_finish_ctx.
124021         (sha1_read_ctx): Renamed from sha_read_ctx.
124022         (sha1_stream): Renamed from sha_stream.
124023         (sha1_buffer): Renamed from sha_buffer.
124024         * lib/sha1.c: Likewise; renamed from sha.c.
124025         Do not include <sys/types.h>.
124026         Include <stddef.h> rather than <stdlib.h>.
124028 2004-08-08  Bruno Haible  <bruno@clisp.org>
124030         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
124031         FILESYSTEM_PREFIX_LEN.
124032         * lib/progreloc.c: Likewise.
124033         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
124035 2004-08-06  Simon Josefsson  <jas@extundo.com>
124037         * modules/progname (Depends-on): Don't depend on stdbool.
124039 2004-08-06  Simon Josefsson  <jas@extundo.com>
124041         * modules/getsubopt: New file.
124042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124043         getsubopt.
124045 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124047         More merge from coreutils.
124049         * m4/utimens.m4, m4/utimecmp.m4: New files.
124050         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
124051         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
124052         prereq.m4, sha.m4: Import changes from coreutils.
124054 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124056         More merge from coreutils.
124057         * modules/raise, modules/readtokens0, modules/utimens:
124058         * modules/utimecmp, module/xnanosleep: New files.
124059         * modules/strftime: Add lib/strftime.h.
124060         Change include from <time.h> to "strftime.h".
124061         * modules/yesno: Add lib/yesno.h.
124062         * modules/backupfile: Remove lib/addext.c.
124063         * modules/euidaccess: Add stat-macros.h.
124064         * modules/canonicalize, modules/euidaccess,
124065         modules/filemode, modules/lchown, modules/makepath,
124066         modules/rmdir, modules/stat: Likewise.
124068 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
124070         Merge from tar.
124071         * lib/argp-help.c (make_hol, hol_append): Don't assume that
124072         SIZE_MAX is a valid preprocessor constant.
124073         (__argp_basename): Change from "#ifndef _LIBC"
124074         to "#ifndef __argp_short_program_name", so that
124075         we don't compile these functions for tar.
124077         More merges from coreutils.
124078         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
124079         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
124080         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
124081         * lib/addext.c: Remove; no longer needed.
124082         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
124083         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
124084         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
124085         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
124086         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
124087         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
124088         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
124089         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
124090         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
124091         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
124092         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
124093         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
124094         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
124095         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
124096         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
124097         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
124098         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
124099         Import changes from coreutils.
124101 2004-08-05  Simon Josefsson  <jas@extundo.com>
124103         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
124105 2004-08-05  Simon Josefsson  <jas@extundo.com>
124107         * m4/getsubopt.m4: New file.
124109 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124111         Merge from coreutils.
124113         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
124114         * m4/getcwd-path-max.m4: New files.
124116         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
124117         FILESYSTEM_PREFIX_LEN ->
124118         FILE_SYSTEM_PREFIX_LEN.
124119         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
124120         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
124121         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
124122         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
124124         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
124125         prerequisite modules now handle the DOS stuff.
124126         Don't check for unistd.h.
124128 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124130         Merge from coreutils.
124132         * lib/.gdb-history: Remove; this doesn't belong here.
124134         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
124135         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
124136         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
124137         * lib/getcwd.c: New files.
124139         * lib/dirname.h: Include <stdbool.h>.
124140         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
124141         for consistency with POSIX terminology.  All uses changed.
124142         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
124143         (strip_trailing_slashes): Use bool for booleans.
124144         * lib/stripslash.c (strip_trailing_slashes): Likewise.
124146         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
124147         sometimes returns a positive errno value even when it succeeds.
124148         (print_errno_message) [!LIBC]: Fall back on strerror if
124149         __strerror_r fails.
124151         * lib/path-concat.c (mempcpy): Don't define if a system header defines
124152         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
124153         (longest_relative_suffix): New function.
124154         (path_concat): Use it.  Assume first argument is not NULL.
124155         Port to DOS.  Omit redundant separators.
124156         Report an error instead of returning NULL.
124157         Use mempcpy instead of memcpy.
124158         (xpath_concat): Remove: not declared or used.
124160         * lib/same.h: Include <stdbool.h>
124161         (same_name): Return bool, not int.
124162         * lib/same.c (same_name): Likewise.
124163         (errno): Don't declare; we assume C89 or better now.
124165         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
124166         if not already defined.
124168         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
124169         * lib/dup-safer.c (errno): Likewise.
124171 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
124173         Merge from coreutils.
124174         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
124175         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
124176         * modules/path-concat: Don't depend on strdup.
124178 2004-08-03  Simon Josefsson  <jas@extundo.com>
124180         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
124181         * lib/progname.h: Don't include stdbool.h.
124183 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124185         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
124186         * MODULES.html.sh (func_all_modules): Remove fatal.
124188 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124190         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
124192 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
124194         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
124195         working.
124197 2004-08-02  Simon Josefsson  <jas@extundo.com>
124199         * lib/getsubopt.h: New file, with comments from Bruno Haible.
124200         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
124201         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
124203 2004-08-01  Simon Josefsson  <jas@extundo.com>
124205         * lib/xgetdomainname.c: Include stdlib.h, for free().
124207 2004-07-19  Bruno Haible  <bruno@clisp.org>
124209         * MODULES.html.sh (func_all_modules): Add dummy.
124211 2004-07-16  Simon Josefsson  <jas@extundo.com>
124213         * modules/dummy: New file.
124215 2004-07-16  Simon Josefsson  <jas@extundo.com>
124217         * lib/dummy.c: New file.
124219 2004-07-16  Bruno Haible  <bruno@clisp.org>
124221         * lib/backupfile.h: Add extern "C" for C++.
124222         * lib/closeout.h: Likewise.
124223         * lib/copy-file.h: Likewise.
124224         * lib/findprog.h: Likewise.
124225         * lib/full-write.h: Likewise.
124226         * lib/pathname.h: Likewise.
124227         * lib/progname.h: Likewise.
124228         * lib/stpcpy.h: Likewise.
124229         * lib/stpncpy.h: Likewise.
124230         * lib/strcase.h: Likewise.
124231         * lib/strstr.h: Likewise.
124232         * lib/xalloc.h: Likewise.
124234         * lib/mbswidth.h: Add extern "C" for C++.
124235         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
124237 2004-07-13  Robert Millan  <robertmh@gnu.org>
124239         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
124241 2004-07-09  Simon Josefsson  <jas@extundo.com>
124243         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
124244         failed without this.)
124246 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124248         * modules/chown (Files): Add lib/fchown-stub.c, since
124249         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
124251 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
124253         * lib/fchown-stub.c: New file.
124255 2004-06-24  Jim Meyering  <jim@meyering.net>
124257         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124259 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124261         * modules/argz: Omit "#include".
124263         * MODULES.html.sh (func_all_modules): Add calloc, to match
124264         2004-06-01 addition of calloc module.
124266 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124268         * m4/argz.m4: New file, which is autoupdated from libtool.
124270 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124272         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124273         libtool.
124275 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124277         * config/srclist-update: Don't insist on "USA." before the
124278         close-comment, as libtool omits the period and puts the */ on a
124279         separate line.
124280         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124281         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124283 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124285         * modules/argz: New file.
124286         * MODULES.html.sh (func_all_modules): Add argz.
124288 2004-06-12  Jim Meyering  <jim@meyering.net>
124289         and  Paul Eggert  <eggert@cs.ucla.edu>
124291         * modules/hash (Files): Add lib/xalloc.h.
124292         * modules/pipe (Depends-on): Add wait-process.
124293         * modules/stat (Depends-on): Add xalloc.
124294         * modules/userspec (Files): Add lib/userspec.h.
124295         * modules/xstrto
124297         Upgrade from gettext-0.13.
124298         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124299         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124300         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124302 2004-06-10  Jim Meyering  <jim@meyering.net>
124304         * lib/calloc.c: New file.
124306 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124308         * lib/getdate.y (yylex): Allow space between sign and number.
124309         Problem reported by Dan Jacobson.
124311 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124313         Merge from coreutils CVS.
124315         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124316         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124317         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124318         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124319         xstrtol.m4: Fix copyright date and/or serial number.
124321         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124322         See if we need an fchown replacement.
124323         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124324         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124325         and use the replacement function if we detect either defect.
124327         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124328         gl_UTIMECMP.
124330 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124331         and  Jim Meyering  <jim@meyering.net>
124333         Merge from coreutils CVS.
124335         * lib/stat-macros.h: New file, with contents from file-type.h
124336         and coreutils' system.h.
124337         * lib/file-type.c: Include "stat-macros.h".
124338         * lib/file-type.h (file_type): Move all macro definitions to new file,
124339         stat-macros.h.
124341         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124342         Wrap old code with this conditional.
124343         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124344         function that does not dereference symlinks.
124345         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124347         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124348         dependency problems.
124349         (xreadlink): Accept new arg SIZE, for efficiency.
124350         All decls and uses changed.
124351         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124353         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124354         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124356         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124357         sysexits.h.
124359 2004-06-01  Jim Meyering  <jim@meyering.net>
124361         * m4/calloc.m4: New file.
124363 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124366         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124367         Also, fix a typo in a diagnostic.
124369 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124371         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124372         or AC_FUNC_REALLOC.
124374 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124376         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124377         macros to be defined.
124378         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124379         the allocator returns NULL because the requested size is zero.
124381 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124383         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124384         var.  Add comment explaining why libc still defines it.  This
124385         merges the following patch from glibc:
124386         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124388 2004-05-20  Andreas Schwab  <schwab@suse.de>
124390         * m4/free.m4: Replace free if it not known to work, not the other
124391         way round.
124393 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124395         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124396         present in glibc since revision 1.1 of this file.
124397         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124398         obstack_alignment_mask, obstack_alloc, obstack_base,
124399         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124400         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124401         obstack_grow0, obstack_init, obstack_int_grow,
124402         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124403         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124404         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124405         nonexistent functions.
124407 2004-05-18  Karl Berry  <karl@gnu.org>
124409         * config/srclist.txt: break link for vasnprintf.c.
124411 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124413         Port obstack to the AS/400, where pointers are 16 bytes wide and
124414         you cannot cast an integer to a valid pointer.  This patch is
124415         currently waiting to be integrated into glibc; see
124416         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124418         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124419         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124420         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124421         (struct obstack): temp member is now a union of a pointer and
124422         an integer, instead of an integer.  All integer uses changed.
124423         This does not affect the physical layout of struct obstack,
124424         except on hosts (like the AS/400) where the size or alignment of
124425         void * is greater than that of ptrdiff_t.
124426         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124427         __STDC__)]: Store temporary in pointer member of union, not
124428         integer member.
124429         * lib/obstack.c: Include <stddef.h>, for offsetof.
124430         (struct fooalign): Remove; it doesn't need a name.
124431         (union fooround): Change double to long double, and add void *.
124432         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124433         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124434         not a macro.  Hence the values are always int; so remove all
124435         casts-to-int in uses.
124437 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124439         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124440         we can get this patch merged into glibc.
124442 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124443             Paul Eggert  <eggert@cs.ucla.edu>
124445         * m4/argp: Depend on alloca.
124447 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124448             Paul Eggert  <eggert@cs.ucla.edu>
124450         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124451         freecoding.
124453 2004-05-17  Bruno Haible  <bruno@clisp.org>
124455         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124456         precision that consists of a '.' followed by an empty digit string.
124457         Patch by Tor Lillqvist <tml@iki.fi>.
124459 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124461         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124462         for backward compatibility with older code.  We need our own
124463         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124464         it under some other name, and our alloca.h will define it.
124466 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124467             Derek Price  <derek@ximbiot.com>
124469         * lib/alloca.c: Include <alloca.h>, to get our interface.
124470         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124471         include <alloca.h> first.  Use C89 prototype for alloca; this
124472         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124473         Use #elif for simplicity, since we can assume C89 now.
124474         Don't try to source the system alloca.h since it will not be found
124475         and to prevent recursively including its replacement.
124476         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124477         * lib/regex.c: Likewise.
124479 2004-05-16  Derek Price  <derek@ximbiot.com>
124480             Paul Eggert  <eggert@cs.ucla.edu>
124482         getline cleanup.  This changes the getndelim2 API: both order of
124483         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124484         no delimiter).
124486         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124487         interface does that.
124488         (getline): Always use getdelim, so that we don't have two
124489         copies of this code.
124490         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124491         if available.
124492         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124493         (GETNDELIM2_MAXIMUM): New macro.
124494         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124495         instead of the old practice of delim2==0.  All callers changed.
124496         Return -1 on overflow, instead of returning junk.
124497         Do not set *linesize unless allocation succeeds.
124498         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124499         that we include sys/types.h.
124500         * lib/getnline.h: Likewise.
124501         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124502         (getndelim2): Reorder arguments.
124503         * lib/getnline.c (getnline, getndelim):
124504         Don't discard the NMAX argument.
124505         (getnline): Invoke getndelim, to avoid code duplication.
124506         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124507         of (size_t) -1 by callers of the getnline family.
124509 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124511         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124512         Check for gettimeofday.
124513         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124514         Check for settimeofday, stime.
124516 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124518         * lib/nanosleep.c (suspended): Change its type from int to
124519         sig_atomic_t volatile.
124520         (first_call): Make it private to rpl_nanosleep, and have it
124521         be zero initially as that's a bit faster.
124522         (my_usleep): Round up fractional times instead of truncating them,
124523         as this is the usual meaning for 'sleep'.
124525         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124526         doesn't work.
124527         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124528         (ENOSYS): Define if not defined.
124529         (settime): Fall back on stime if it exists and settimeofday fails.
124530         But don't bother with fallbacks if a method fails with errno == EPERM.
124532 2004-05-11  Jim Meyering  <jim@meyering.net>
124534         Prior to this change, the save_cwd caller required read access to the
124535         current directory on most systems (ones with the fchdir function).
124537         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124538         fails, try write-only, and finally, resort to using xgetcwd.
124540 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124542         * lib/obstack.c, obstack.h: Import changes from libc.
124544 2004-04-28  Bruno Haible  <bruno@clisp.org>
124546         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124547         also implicitly appends .exe to executables.
124548         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124549         accepts Windows pathnames.
124550         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124551         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124552         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124553         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124554         Reported by Derek Robert Price <derek@ximbiot.com>.
124556 2004-04-21  Karl Berry  <karl@gnu.org>
124558         * config/srclist.txt (localcharset.c): break sync.
124560 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124562         * m4/host-os.m4: Add a copyright notice.
124564 2004-04-20  Jim Meyering  <jim@meyering.net>
124566         Change UTILS_ to gl_ in AC_DEFINE'd names.
124567         Change utils_- and jm_-prefixed variables, too.
124568         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124569         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124572         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124573         Don't emit trailing blanks.
124574         Also rename jm_-prefixed variables to have gl_ prefix.
124576         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124577         Also rename jm_-prefixed variables to have gl_ prefix.
124579         * m4/jm-macros.m4: Reflect the renamings.
124580         * m4/prereq.m4: Likewise.
124582 2004-04-20  Jim Meyering  <jim@meyering.net>
124584         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124585         memory.
124587 2004-04-20  Jim Meyering  <jim@meyering.net>
124588             Bruno Haible  <bruno@clisp.org>
124590         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124591         memory when realloc fails.
124593 2004-04-19  Jim Meyering  <jim@meyering.net>
124595         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124596         now that readutmp.c may call `free (0)'.
124598 2004-04-19  Bruno Haible  <bruno@clisp.org>
124600         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124601         * m4/inttypes_h.m4: Likewise.
124602         * m4/stdint_h.m4: Likewise.
124603         * m4/intmax_t.m4: Likewise.
124604         * m4/uintmax_t.m4: Likewise.
124606 2004-04-18  Jim Meyering  <jim@meyering.net>
124608         * m4/prereq.m4: Don't forbid jm_ prefix.
124610         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124611         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124612         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124613         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124614         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124615         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124616         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124617         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124618         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124619         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124620         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124621         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124622         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124623         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124624         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124625         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124626         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124627         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124628         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124630 2004-04-18  Jim Meyering  <jim@meyering.net>
124632         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124633         failure, don't leak memory and do call END_UTMP_ENT.
124635 2004-04-16  Jim Meyering  <jim@meyering.net>
124637         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124638         coreutils' stat program.
124639         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124641 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124643         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124644         C89.
124645         (CHAR_BIT): Remove, since we assume C89.
124646         Include <stdint.h> if available, as per current Autoconf CVS advice.
124648 2004-03-31  Jim Meyering  <jim@meyering.net>
124650         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124651         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124652         * m4/xalloc.m4: Likewise.
124654 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124656         Merge from coreutils.
124658         * m4/inttostr.m4: New file.
124659         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124660         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124661         Require gl_CLOCK_TIME.
124662         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124664 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124666         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124667         not bool, to be more consistent with Unix conventions.
124668         Suggested by Bruno Haible.
124670         Merge from coreutils.
124672         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124673         * lib/umaxtostr.c: New files.
124675         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124676         the usual <time.h> dance.
124677         (get_date): Change signature to support fractional time stamps.
124678         All callers changed.
124679         * lib/getdate.y: Include "getdate.h" first, as we can now
124680         assume C89 and don't need to worry about 'const'.
124681         Similarly, include "unlocked-io.h" near start, not in middle.
124682         Include <limits.h>.
124683         (textint.value): Use long int rather than int.
124684         (textint.digits): Use size_t rather than int.
124685         (BILLION, LOG10_BILLION): New constants.
124686         (parser_control): New member rel_ns.  Members day_ordinal,
124687         time_zone, month, day, hour, minutes, rel_year, rel_month,
124688         rel_day, rel_hour, rel_minutes, rel_seconds
124689         are now long int, not int.  Member seconds is now struct timespec,
124690         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124691         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124692         not int.
124693         (%union.intval): Now long int, not int.
124694         New member timespec.
124695         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124696         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124697         (spec): Now is a timespec or an item list.
124698         (timespec, items): New nonterminals.
124699         (time, rel, relunit, number, get_date):
124700         Add support for fractional seconds.
124701         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124702         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124703         (to_hour): First arg is now long int, not int.
124704         (to_year): Returns long int, not int.
124705         Don't treat year -70 like 70.
124706         (tm_diff): Returns long int, not int.
124707         (lookup_word): Use bool instead of int when appropriate.
124708         (yylex): Use size_t for count, not int.
124709         Detect overflow when parsing large integer constants.
124710         Add support for fractions.
124711         (get_date): Make pointers 'const' if possible.
124712         Use more-portable code to detect integer overflow.
124713         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124714         Don't use ctime; it's not reliable if the year has >4 digits.
124716         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124717         This is for compatibility with BSD.
124719         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124720         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124721         From coreutils' system.h.
124723         * lib/userspec.c: Don't include "posixver.h".
124724         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124725         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124726         compatible extension.  Simplify code by removing a boolean int
124727         that was always nonzero if a string was nonnull.
124729 2004-03-30  Jim Meyering  <jim@meyering.net>
124731         Merge from coreutils.
124733         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124734         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124735         on some systems one must include <grp.h> before it.
124736         Reported by Christian Krackowizer.
124738 2004-03-30  Jim Meyering  <jim@meyering.net>
124740         Merge from coreutils.
124742         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124744         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124745         an empty input stream.
124747         * lib/readtokens.c: Include <stdbool.h>.
124748         (readtoken): Use `size_t' rather than int/long.
124749         All callers adjusted.
124750         Use `bool' rather than `int' where appropriate.
124751         Use memset rather than an explicit loop.
124752         Use x2nrealloc rather than xrealloc.
124753         Allow the use of `\0' as a delimiter.
124754         (readtokens): Likewise.
124755         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124757 2004-03-30  Jim Meyering  <jim@meyering.net>
124759         * m4/realloc.m4: Remove file, since now it does no more than
124760         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124761         the `configure.ac' section of module/realloc.
124762         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124764 2004-03-30  Bruno Haible  <bruno@clisp.org>
124766         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124767         nonnull.
124769 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124771         Merge changes to getloadavg.c from coreutils and Emacs.
124773         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124774         Define to an expression, not to the empty string.
124775         Include cloexec.h and xalloc.h.
124776         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124777         Use set_cloexec_flag rather than rolling our own.
124778         * lib/cloexec.c, lib/cloexec.h: New files.
124780 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124782         * m4/cloexec.m4: New file.
124784 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124786         * lib/getopt.h: Sync with libc CVS.
124788 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124789             Bruno Haible  <bruno@clisp.org>
124791         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124792         mbswidth.
124794 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124795             Bruno Haible  <bruno@clisp.org>
124797         * lib/mbswidth.h: Include <wchar.h> only if
124798         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124799         <wchar.h>.
124800         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124802 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124804         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124805         Sync with libc CVS.
124806         * lib/getopt_int.h: New file, also synced from libc.
124808 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124810         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124811         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124812         Bring back getopt.c, getopt.h, getopt1.c.
124814 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124816         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124817         All uses changed.  Check for sa_sigaction member; this fixes
124818         a bug first reported by Jason Andrade in
124819         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124821 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124823         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124824         '#if' expressions.  Unlike the code it replaces, it does not
124825         depend on (defined _SC_PAGESIZE).  However, it does depend on
124826         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124827         first reported by Jason Andrade in
124828         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124830 2004-02-25  Simon Josefsson  <jas@extundo.com>
124832         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124834 2004-02-25  Simon Josefsson  <jas@extundo.com>
124836         * lib/strdup.h: New file.
124837         * lib/strdup.c: Include it.
124838         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124839         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124841 2004-02-23  Karl Berry  <karl@gnu.org>
124843         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124844         (from fencepost.gnu.org:/gd/gnuorg).
124846 2004-02-23  Karl Berry  <karl@gnu.org>
124848         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124849         * config/srclist.txt: add maintain/standards documents.
124851 2004-02-18  Bruno Haible  <bruno@clisp.org>
124853         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124854         Reported by Derek Robert Price <derek@ximbiot.com>.
124856 2004-02-16  Karl Berry  <karl@gnu.org>
124858         * config/mkinstalldirs, install-sh: update from automake.
124860 2004-02-06  Karl Berry  <karl@gnu.org>
124862         * m4/po.m4: update from gettext 0.14.1.
124864 2004-02-06  Karl Berry  <karl@gnu.org>
124866         * lib/config.charset: update from gettext 0.14.1.
124868 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124870         Add comments and code, prompted by suggestions from Bruno Haible
124871         for sh-quote.
124872         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124873         describing the enum quoting_style values.
124874         * lib/quotearg.c (quotearg_alloc): New function.
124875         (quotearg_buffer_restyled): Treat lone { and } as special.
124876         Treat = as special.  Work around bug with older shells
124877         that "see" a '\' that is really the 2nd byte of a multibyte char.
124878         Quote empty string with shell_quoting_style.
124880 2004-02-03  Bruno Haible  <bruno@clisp.org>
124882         * m4/pipe.m4: New file, from GNU gettext.
124884 2004-02-03  Bruno Haible  <bruno@clisp.org>
124886         * lib/pipe.h: New file, from GNU gettext.
124887         * lib/pipe.c: New file, from GNU gettext.
124889 2004-01-27  Bruno Haible  <bruno@clisp.org>
124891         * m4/execute.m4: New file, from GNU gettext.
124893 2004-01-27  Bruno Haible  <bruno@clisp.org>
124895         * lib/execute.h: New file, from GNU gettext.
124896         * lib/execute.c: New file, from GNU gettext.
124897         * lib/w32spawn.h: New file, from GNU gettext.
124899 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124901         Merge from diffutils.
124903         * lib/file-type.c (file_type): Add typed memory objects.
124904         * lib/file-type.h (S_TYPEISTMO): New macro.
124906         * lib/c-stack.h (c_stack_action): Remove argv argument.
124907         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124908         (die): Don't calculate message unless segv_action returns.
124909         (get_stack_location, min_address_from_argv, max_address_from_argv,
124910         volatile stack_base, volatile_stack_size): Remove.
124911         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124912         that every segmentation violation is a stack overflow.  (Ouch!)
124913         See Debian bug 136249 (still outstanding) for more info about why
124914         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124916 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124918         Exit-status fix from coreutils.
124920         Use exit_failure consistently in place of EXIT_FAILURE,
124921         so that program exit statuses are consistent on failure.
124923         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124924         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124925         * lib/argmatch.h: Comment fix to match the above.
124926         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124927         Now a macro referring to exit_failure, instead of a separate
124928         variable.  Include "exitfail.h" to get it.
124929         * lib/xstrtol.h: Include "exitfail.h".
124930         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124932         * lib/long-options.c (parse_long_options): Use prototype
124933         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124934         for clarity.
124936 2004-01-21  Jim Meyering  <jim@meyering.net>
124938         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124939         so as not to conflict with a different-sized __mktime_internal
124940         function in GNU libc.
124941         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124942         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124944 2004-01-20  Karl Berry  <karl@gnu.org>
124946         * config/config.guess: update from config.
124948         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124950 2004-01-20  Bruno Haible  <bruno@clisp.org>
124952         Safer stack allocation.
124953         * lib/setenv.c: Include allocsa.h.
124954         (alloca): Remove fallback definition.
124955         (freea): Remove macro.
124956         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124957         instead of freea.
124959 2004-01-20  Bruno Haible  <bruno@clisp.org>
124961         * m4/eealloc.m4: New file, from GNU gettext.
124963 2004-01-20  Bruno Haible  <bruno@clisp.org>
124965         * m4/allocsa.m4: New file, from GNU gettext.
124967 2004-01-20  Bruno Haible  <bruno@clisp.org>
124969         * lib/xallocsa.h: New file, from GNU gettext.
124970         * lib/xallocsa.c: New file, from GNU gettext.
124972 2004-01-20  Bruno Haible  <bruno@clisp.org>
124974         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124976 2004-01-20  Bruno Haible  <bruno@clisp.org>
124978         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124979         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124980         specially.
124982 2004-01-20  Bruno Haible  <bruno@clisp.org>
124984         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124985         patch.
124987 2004-01-20  Bruno Haible  <bruno@clisp.org>
124989         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124991 2004-01-20  Bruno Haible  <bruno@clisp.org>
124993         * lib/eealloc.h: New file.
124995 2004-01-20  Bruno Haible  <bruno@clisp.org>
124997         * lib/binary-io.h: Avoid warnings on Cygwin.
124999 2004-01-20  Bruno Haible  <bruno@clisp.org>
125001         * lib/allocsa.h: New file, from GNU gettext.
125002         * lib/allocsa.c: New file, from GNU gettext.
125004 2004-01-18  Karl Berry  <karl@gnu.org>
125006         * doc/gpl.texi, doc/lgpl.texi: new files.
125008 2004-01-18  Karl Berry  <karl@gnu.org>
125010         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
125011         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
125013 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125015         Merge from coreutils.
125017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
125018         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
125019         (gl_DEFAULT_POSIX2_VERSION): Move
125020         the documentation from 'configure' into 'config.hin',
125021         so that 'configure --help' isn't burdened by it and
125022         we don't have to worry about its formatting there.
125023         Reword the documentation so that it's more succinct
125024         and can be run together into a single paragraph.
125025         * m4/same.m4 (gl_SAME): Check for pathconf.
125027 2004-01-15  Paul Eggert  <eggert@twinsun.com>
125029         Merge from coreutils.
125031         * lib/posixver.c: Include posixver.h.
125033         * lib/same.c: Include <stdbool.h>, <limits.h>.
125034         (_POSIX_NAME_MAX): Define if not defined.
125035         (MIN): New macro.
125036         (same_name): If file names are silently truncated, report
125037         that the file names are the same if they are the same after
125038         the silent truncation.
125040         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
125041         conversion function.
125042         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
125043         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
125044         longer needed.
125046 2004-01-15  Jim Meyering  <jim@meyering.net>
125048         Merge from coreutils.
125050         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
125051         if no library is required.
125052         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
125053         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
125054         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
125055         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
125056         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
125057         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
125058         value, $ac_cv_search_crypt, if it's "none required".
125059         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
125060         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
125061         not gl_FUNC_GETLOADAVG.
125062         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
125063         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
125065 2004-01-15  Jim Meyering  <jim@meyering.net>
125067         Merge from coreutils.
125069         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
125070         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
125071         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
125073         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
125074         optional configure-time default.
125076         * lib/version-etc.c (version_etc_copyright): Update copyright date.
125078         * lib/xreadlink.c (xreadlink): Correct outdated comment.
125080 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
125082         Merge from coreutils.
125084         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
125085         value, $ac_cv_search_nanosleep, if it's "none required".
125087 2004-01-14  Paul Eggert  <eggert@twinsun.com>
125089         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
125090         with like-named macro in fnmatch.c.
125091         (EXT): Use an internal constant instead.
125093         Merge fnmatch patches from glibc.
125094         * lib/fnmatch.c (mbsinit): Remove define.
125095         Add libc_hidden_ver (__fnmatch, fnmatch).
125096         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
125097         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
125099 2004-01-14  Karl Berry  <karl@gnu.org>
125101         * config/install-sh: update from automake.
125103 2004-01-13  Karl Berry  <karl@gnu.org>
125105         * config/install-sh: update from automake.
125107 2004-01-09  Karl Berry  <karl@gnu.org>
125109         * config/install-sh: update from automake.
125111 2004-01-05  Karl Berry  <karl@gnu.org>
125113         * config/config.{sub,guess}: update from config.
125115 2003-12-31  Karl Berry  <karl@gnu.org>
125117         * config/depcomp: update from automake.
125119 2003-12-14  Karl Berry  <karl@gnu.org>
125121         * lib/config.charset: update from gettext-runtime.
125123 2003-12-03  Paul Eggert  <eggert@twinsun.com>
125125         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
125126         Bug reported by Alfred M. Szmidt.
125128 2003-12-03  Bruno Haible  <bruno@clisp.org>
125130         * m4/gettext.m4: Upgrade from gettext-0.13.
125131         * m4/po.m4: Upgrade from gettext-0.13.
125132         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
125133         * m4/intmax.m4: New file, from gettext-0.13.
125134         * m4/printf-posix.m4: New file, from gettext-0.13.
125136 2003-11-29  Karl Berry  <karl@gnu.org>
125138         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
125140 2003-11-25  Paul Eggert  <eggert@twinsun.com>
125141             Bruno Haible  <bruno@clisp.org>
125143         * lib/printf-parse.h: Don't include sys/types.h.
125144         (ARG_NONE): New macro.
125145         (char_directive): Change type of *arg_index fields to size_t.
125146         * lib/printf-parse.c: Don't include sys/types.h.
125147         (SSIZE_MAX): Remove macro.
125148         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
125149         Remove unnecessary overflow check.
125150         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
125151         fields.
125153 2003-11-25  Bruno Haible  <bruno@clisp.org>
125155         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
125157 2003-11-25  Bruno Haible  <bruno@clisp.org>
125159         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
125160         gt_TYPE_SSIZE_T.
125162 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125164         * modules/alloca: Remove dependency on xalloc.
125166 2003-11-24  Paul Eggert  <eggert@twinsun.com>
125168         * lib/alloca.c: Remove dependency on xalloc module.
125169         (xalloc_die): Remove.
125170         (memory_full) [!defined emacs]: New macro.
125171         [!defined emacs]: Don't include xalloc.h.
125172         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
125173         address arithmetic overflows.  Change datatypes a bit to avoid
125174         unnecessary casts.
125176 2003-11-22  Jim Meyering  <jim@meyering.net>
125178         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
125179         s/size/size_t/.
125181 2003-11-21  Karl Berry  <karl@gnu.org>
125183         * config/config.{sub,guess}: update from config.
125185 2003-11-18  Karl Berry  <karl@gnu.org>
125187         * config/config.{sub,guess}: update from config.
125189         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
125191 2003-11-17  Paul Eggert  <eggert@twinsun.com>
125193         * README: Mention that S+T cannot overflow if S is the size of
125194         an existing object and T is sufficiently small.
125196 2003-11-17  Jim Meyering  <jim@meyering.net>
125198         On systems without utime and without a utimes function capable of
125199         dealing with a NULL struct utimbuf* argument, this utime replacement
125200         could -- in unusual circumstances -- leak a file descriptor.
125201         * lib/utime.c: Include <unistd.h> and <errno.h>.
125202         (utime_null): Be sure to close `fd' and to preserve errno.
125203         Reported by Geoff Collyer via Arnold Robbins.
125205 2003-11-17  Bruno Haible  <bruno@clisp.org>
125207         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
125208         (Depends-on): Add xsize.
125210 2003-11-17  Bruno Haible  <bruno@clisp.org>
125212         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
125214 2003-11-17  Bruno Haible  <bruno@clisp.org>
125216         * lib/vasnprintf.c (alloca): Remove fallback definition.
125217         (freea): Remove definition.
125218         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
125219         Reported by Paul Eggert.
125221 2003-11-16  Paul Eggert  <eggert@twinsun.com>
125222             Bruno Haible  <bruno@clisp.org>
125224         Protect against address arithmetic overflow.
125225         * lib/printf-args.h: Include stddef.h.
125226         (arguments): Change type of field 'count' to size_t.
125227         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
125228         'unsigned int' where appropriate.
125229         * lib/printf-parse.h: Include sys/types.h.
125230         (char_directive): Change type of *arg_index fields to ssize_t.
125231         (char_directives): Change type of fields 'count', max_*_length to
125232         size_t.
125233         * lib/printf-parse.c: Include sys/types.h and xsize.h.
125234         (SSIZE_MAX): Define fallback value.
125235         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
125236         instead of 'int' where appropriate. Check a_allocated, d_allocated
125237         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
125238         * lib/vasnprintf.c: Include xsize.h.
125239         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
125240         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
125241         overflow. Avoid wraparound when converting a width or precision from
125242         decimal to binary.
125244 2003-11-16  Bruno Haible  <bruno@clisp.org>
125246         Update from GNU gettext.
125247         * lib/printf-parse.c: Generalize to it can be compiled for wide
125248         strings.
125249         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
125250         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
125251         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
125252         SNPRINTF): New macros.
125253         Don't include <alloca.h> if the file is used inside libintl.
125254         (local_wcslen): New function, for Solaris 2.5.1.
125255         (VASNPRINTF): Use it instead of wcslen.
125257 2003-11-16  Bruno Haible  <bruno@clisp.org>
125259         * lib/xsize.h (xmax): New function.
125260         (xsum, xsum3, xsum4): Declare as "pure" functions.
125262 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125264         * modules/xalloc (Files): Undo latest change, since xalloc.h
125265         no longer needs SIZE_MAX or PTRDIFF_MAX.
125267 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125269         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125270         gl_PTRDIFF_MAX.
125272 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125274         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125275         "return", to pacify some unknown compiler.  Problem reported
125276         by Joerg Schilling.
125278 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125280         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125281         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125282         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125283         heuristic is just as accurate as far as we know, and it removes a
125284         dependency on size_max.m4 and ptrdiff_max.m4.
125286 2003-11-11  Bruno Haible  <bruno@clisp.org>
125288         * modules/xsize (Files): Add m4/size_max.m4.
125289         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125291 2003-11-11  Bruno Haible  <bruno@clisp.org>
125293         * m4/size_max.m4: New file.
125294         * m4/ptrdiff_max.m4: New file.
125295         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125296         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125297         (gl_XALLOC): Invoke it.
125299 2003-11-11  Bruno Haible  <bruno@clisp.org>
125301         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125302         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125303         defined.
125305 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125307         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125308         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125309         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125310         From Bruno Haible.
125311         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125312         not (size_t) -1, since it's defined here.
125314 2003-11-09  Karl Berry  <karl@gnu.org>
125316         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125318 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125320         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125321         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125322         Reject sizes of exactly SIZE_MAX bytes.
125323         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125324         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125326 2003-11-05  Bruno Haible  <bruno@clisp.org>
125328         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125329         SIZE_MAX defined in <limits.h> on Solaris.
125331 2003-11-04  Jim Meyering  <jim@meyering.net>
125333         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125334         variable names, rather than @VAR@.
125335         * modules/poll: Likewise.
125337 2003-11-04  Bruno Haible  <bruno@clisp.org>
125339         * modules/xsize: New file.
125340         * modules/linebreak: Depend on xsize.
125341         * MODULES.html.sh (func_all_modules): Add xsize.
125343 2003-11-04  Bruno Haible  <bruno@clisp.org>
125345         * m4/xsize.m4: New file.
125347 2003-11-04  Bruno Haible  <bruno@clisp.org>
125349         * lib/xsize.h: New file.
125350         * lib/linebreak.c: Include xsize.h.
125351         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125352         argument for overflow.
125353         Suggested by Paul Eggert.
125355 2003-11-03  Karl Berry  <karl@gnu.org>
125357         * config/config.{guess,sub}: update from config.
125359 2003-11-03  Jim Meyering  <jim@meyering.net>
125361         * modules/userspec (lib_SOURCES): Add userspec.h.
125362         (Include): Add "userspec.h".
125363         Improve description.
125365 2003-11-03  Jim Meyering  <jim@meyering.net>
125367         * lib/userspec.c: Include "userspec.h".
125368         * lib/userspec.h: New file.
125370 2003-11-03  Bruno Haible  <bruno@clisp.org>
125372         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125374 2003-11-03  Bruno Haible  <bruno@clisp.org>
125376         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125377         available, to avoid (extremely rare) race condition.
125378         Suggested by Paul Eggert.
125380 2003-11-02  Karl Berry  <karl@gnu.org>
125382         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125384 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125386         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125387         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125388         (read_filesystem_list): Set and use me_type_malloced.
125389         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125390         whatever the type happens to be), for brevity and consistency.
125391         Check for size calculation overflow on Alphas running OSF/1.
125393 2003-10-31  Jim Meyering  <jim@meyering.net>
125395         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125397         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125399 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125400             Bruno Haible  <bruno@clisp.org>
125402         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125403         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125405 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125407         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125408         netbsd*-gnu*.  Suggested by Robert Millan.
125410 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125412         * modules/group-member: Depend on stdbool.
125414 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125416         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125418 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125420         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125421         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125422         after the 'gnu' in these cases.  This fixes some bugs in the
125423         previous change, and is based on suggestions by Robert Millan.
125425 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125427         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125428         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125429         no longer needed.
125430         * lib/quotearg.c (quotearg_n_options): Use it.
125431         * lib/group-member.c: Include <stdbool.h>.
125432         (free_group_info): Arg is now const *; don't free arg.
125433         (get_group_info): Now returns bool and accepts struct group_info *,
125434         rather than returning a malloc'ed struct group_info *.
125435         All uses changed.  Check for overflow in internal size calculation.
125437         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125438         rather than xmalloc/xrealloc.
125439         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125440         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125441         conformance bug: the old code used a pointer after freeing the
125442         storage that it addressed.
125443         * lib/hash.c (hash_initialize): Simplify the code by using
125444         xalloc_oversized rather than doing it by hand.
125445         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125446         the buffer preserved.  Use free and xmalloc instead.
125447         * lib/quotearg.c (quotearg_n_options): Likewise.
125448         Use a simpler test for size overflow.  Don't use xalloc_oversized
125449         because unsigned int might be wider than size_t (!); this suggests
125450         that we should switch from unsigned int to size_t for slot numbers.
125452 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125454         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125455         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125456         NetBSD kernels.  Requested by Richard Stallman.
125458 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125460         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125461         to allocate the returned structure.  Do not allocate a subarray,
125462         as x2nrealloc will do that.
125463         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125464         instead of xnrealloc.
125465         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125467 2003-10-27  Bruno Haible  <bruno@clisp.org>
125469         * lib/stdbool_.h: Better support for BeOS.
125471 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125473         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125474         now uses inline.
125476 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125478         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125479         callers that want to do their own size-overflow checking.  Include
125480         <stdbool.h>, since xalloc_oversized returns bool.
125481         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125482         to use xalloc_oversized.
125484         Add two functions x2realloc, x2nrealloc, for programs that grow
125485         arrays dynamically by doubling their sizes.
125486         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125487         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125488         New functions.
125490         Port to C99 semantics for 'inline' of external functions.
125491         Bug reported by Bruno Haible.
125492         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125493         with the old contents of xnmalloc.
125494         (xnmalloc, xmalloc): Use it.
125495         (xnrealloc_inline): New static inline function,
125496         with the old contents of xnrealloc.
125497         (xnrealloc, xrealloc): Use it.
125499         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125500         that.
125502 2003-10-26  Karl Berry  <karl@gnu.org>
125504         * config/srclist.txt (COPYING.DOC): no longer available from
125505         /gd/gnuorg; don't know where the ultimate source is.
125507 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125509         Fix several address-calculation bugs in the hash modules,
125510         plus some minor code cleanup.
125512         * lib/hash.h: Include <stdbool.h>, for bool.
125513         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125514         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125515         hash_get_n_entries, hash_get_max_bucket_length,
125516         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125517         hash_rehash): Use size_t rather than unsigned.
125518         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125519         hash_get_n_buckets_used, hash_get_n_entries,
125520         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125521         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125522         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125523         Likewise.
125524         (SIZE_MAX): Define if not defined.
125525         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125526         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125527         hash_print):
125528         Use const * when possible.
125529         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125530         (check_tuning): Fix bug: if tuning parameters were very close to
125531         0 or 1, rounding errors could have caused subscript violations.
125532         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125533         (hash_initialize): Add 'fail:' label
125534         to free table and return NULL, and use it to simplify code.
125535         Use calloc rather than clearing the storage ourself.
125536         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125537         buffer size calculations.
125538         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125539         Include <stddef.h>, for size_t.
125540         * lib/hash-pjw.c (hash_pjw): Likewise.
125541         Switch to method described by Bruno Haible.
125542         Include <limits.h>, for CHAR_BIT.
125543         (SIZE_BITS): New macro.
125545 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125547         * m4/getline.m4 (AM_FUNC_GETLINE):
125548         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125549         hosts.  Problem reported by Derek Robert Price in
125550         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125551         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125552         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125554 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125556         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125557         ceiling the allocation at NMAX bytes rather than silently
125558         discarding input bytes before NMAX is reached.  This makes
125559         a difference only if NMAX exceeds SIZE_MAX / 2.
125561         * lib/obstack.c: Merge from glibc.
125562         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125563         Add libc_hidden_def (_obstack_newchunk).
125564         (_obstack_free) [! defined _LIBC]: Remove.
125565         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125566         a clone of the function body.
125567         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125568         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125570         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125571         glibc.
125572         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125573         arg to memcpy.
125575         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125576         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125577         Don't use lvalue casts, as GCC plans to remove support for them
125578         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125579         was also present in the non-GCC version, indicating that this
125580         code had always been buggy and had never been widely used.
125581         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125582         Use the fast variant of each macro, rather than copying the
125583         definiens of the fast variant; that way, we'll be more likely to
125584         catch future bugs in the fast variants.
125586 2003-10-20  Bruno Haible  <bruno@clisp.org>
125588         * modules/wait-process: New file.
125589         * MODULES.html.sh (func_all_modules): Add wait-process.
125591 2003-10-20  Bruno Haible  <bruno@clisp.org>
125593         * m4/wait-process.m4: New file.
125595 2003-10-20  Bruno Haible  <bruno@clisp.org>
125597         * lib/wait-process.h: New file, from GNU gettext.
125598         * lib/wait-process.c: New file, from GNU gettext.
125600 2003-10-19  Jim Meyering  <jim@meyering.net>
125602         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125603         HPUX 10.20.
125605 2003-10-18  Karl Berry  <karl@gnu.org>
125607         * config/config.guess: update from config.
125609 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125611         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125612         (getgroups): First arg is int, not size_t.
125613         Don't let 'free' mangle errno.
125615 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125617         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125619 2003-10-16  Karl Berry  <karl@gnu.org>
125621         * config/config.{guess,sub}: update from config.
125623 2003-10-16  Jim Meyering  <jim@meyering.net>
125625         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125626         memcpy.
125628 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125630         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125631         (SIZE_MAX): Remove.
125632         (new_exclude, add_exclude_file): Initial size no longer needs to
125633         be a power of 2.
125634         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125635         our own address arithmetic overflow checking.
125637         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125638         (fnmatch): Do not alloca more than 2000 wide characters;
125639         instead, use malloc for large buffers.
125640         Check for address arithmetic overflow, and return -1
125641         with errno set to ENOMEM in that case.
125642         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125643         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125644         instead, return -1.  Check for address arithmetic overflow.
125646 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125648         Handle invalid suffixes and overflow independently, so that
125649         callers can treat them independently as needed.  Fix some bugs in
125650         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125651         suffix for a human-readable blocksize.  The major caller-visible
125652         change is the addition of a new
125653         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125654         that both overflow and suffix chars were found.
125656         * lib/human.c (humblock): Don't check separately for invalid suffix
125657         char; that is xstrtoumax's job (now that its bug is fixed).
125658         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125659         INTMAX_MAX]: New macros.
125660         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125661         TYPE_MAXIMUM): New macros.
125662         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125663         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125664         if overflow occurs, as it's what __strtol does and it's more useful
125665         in practice.
125666         (__xstrtol): If __strtol reports some error other than ERANGE,
125667         reflect it to the caller as LONGINT_INVALID.  If it reports
125668         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125669         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125670         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125671         value.
125672         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125673         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125674         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125675         [defined UINTMAX_MAX]: New macros.
125677 2003-10-14  Bruno Haible  <bruno@clisp.org>
125679         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125681 2003-10-14  Bruno Haible  <bruno@clisp.org>
125683         * m4/sig_atomic_t: New file, from GNU gettext.
125684         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125686 2003-10-14  Bruno Haible  <bruno@clisp.org>
125688         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125689         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125690         Also use volatile where needed.
125692 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125694         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125695         Change maintainer from Bruno Haible to 'all'.
125697 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125699         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125701 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125703         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125704         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125705         and define in terms of the other primitives.
125706         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125707         (SIZE_MAX): Define if not already defined.
125708         (array_size_overflow): New function.
125709         (xalloc_die): Abort instead of exiting if 'error' returns.
125710         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125711         (xmalloc, xrealloc): Use them.
125712         (xcalloc): Check for address arithmetic overflow.
125713         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125714         a bit faster than strcpy.
125716 2003-10-10  Simon Josefsson  <jas@extundo.com>
125718         * modules/argp (Depends-on): Add restrict and strcase.
125720 2003-10-10  Simon Josefsson  <jas@extundo.com>
125722         * m4/argp.m4: Add AC_C_INLINE.
125724 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125726         Merge getpass from libc, plus a few fixes.
125728         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125729         Include <stdbool.h>.
125730         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125731         __fsetlocking to empty.
125732         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125733         do include <bits/libc-lock.h>.
125734         Do not include <fcntl.h>; not needed.
125735         [_LIBC]: Include <wchar.h>.
125736         (NOTCANCEL_MODE): New macro.
125737         (flockfile, funlockfile) [_LIBC]: New macros.
125738         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125739         [!_LIBC]: New macros.
125740         (call_fclose): New function.
125741         (getpass): Use it.  Save tty stream separately; this simplifies the
125742         code and makes it more reliable if stdin happens to equal stdout.
125743         Invoke __fsetlocking on tty.
125744         Handle thread cancellation if needed.
125745         Namespace cleanup (use __tcgetattr, __getline).
125746         Use bool for Booleans.
125747         [USE_IN_LIBIO]: Handle wide streams.
125748         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125749         stream might go where.
125751         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125752         doesn't have to include <stdio.h> before us.
125753         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125754         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125755         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125756         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125757         if not declared, so that we can use getpass.c code from libc without
125758         rewriting it.
125759         (flockfile, ftrylockfile, funlockfile): New macros.
125761 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125763         * modules/getpass: Depend on stdbool.
125765 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125767         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125769 2003-10-07  Karl Berry  <karl@gnu.org>
125771         * config/config.{guess,sub}: update from config.
125773 2003-10-06  Jim Meyering  <jim@meyering.net>
125774             Bruno Haible  <bruno@clisp.org>
125776         This lets translators provide better translations for the
125777         "Written by ..." part of --version output.
125778         * lib/version-etc.h: Include stdarg.h.
125779         (version_etc_copyright): Declare as readonly.
125780         (version_etc): Make this function variadic with a NULL-terminated list
125781         of author name strings.
125782         (version_etc_va): New declaration.
125783         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125784         (version_etc_copyright): Declare as readonly.
125785         (version_etc_va): New function. Provide a different translatable string
125786         for each possible number of authors < 10. Abbreviate when there are 10
125787         authors or more.
125788         (version_etc): Make this function variadic. Call version_etc_va.
125789         Suggestion from Gary V. Vaughan.
125791         * lib/long-options.h (parse_long_options): Change prototype: the
125792         authors string is moved to the end and becomes variadic.
125793         * lib/long-options.c: Include stdarg.h.
125794         (parse_long_options): Make this function variadic, too.
125795         Call version_etc_va, not version_etc.
125797 2003-10-06  Bruno Haible  <bruno@clisp.org>
125799         * modules/version-etc-2: Remove file.
125800         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125802 2003-10-06  Bruno Haible  <bruno@clisp.org>
125804         * modules/fatal-signal: New file.
125805         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125807 2003-10-06  Bruno Haible  <bruno@clisp.org>
125809         * m4/fatal-signal.m4: New file.
125810         * m4/signalblocking.m4: New file, from GNU gettext.
125812 2003-10-06  Bruno Haible  <bruno@clisp.org>
125814         * lib/version-etc-2.h: Remove file.
125815         * lib/version-etc-2.c: Remove file.
125817 2003-10-06  Bruno Haible  <bruno@clisp.org>
125819         * lib/fatal-signal.h: New file, from GNU gettext.
125820         * lib/fatal-signal.c: New file, from GNU gettext.
125822 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125824         * README: Rework advice for preventing empty .o files.
125825         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125826         not <sys/types.h>.
125828 2003-10-04  Karl Berry  <karl@gnu.org>
125830         * lib/argp*: update from libc.
125832 2003-10-04  Karl Berry  <karl@gnu.org>
125834         * config/config.{guess,sub}: update from config.
125836 2003-10-02  Bruno Haible  <bruno@clisp.org>
125838         * modules/lchown (Include): Add lchown.h.
125839         * modules/time_r (Include): Use "..." syntax.
125840         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125842 2003-10-01  Simon Josefsson  <jas@extundo.com>
125844         * MODULES.html.sh (func_all_modules): Move gethostname from section
125845         'based on' to section 'lacking' POSIX:2001.
125847 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125849         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125850         to output mode on the same stream.
125852 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125854         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125855         Fix arg typo in previous patch.
125857 2003-09-28  Jim Meyering  <jim@meyering.net>
125859         * lib/error.c: Correct cpp indentation.
125861 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125863         * modules/free: New file.
125865 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125867         * m4/free.m4: New file.
125869 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125871         * lib/minmax.h (MIN, MAX)
125872         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125873         Omit the special code that used __typeof__, since we worry that
125874         it could be more trouble than it's worth.  See:
125875         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125876         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125878         * lib/free.c: New file.
125880 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125882         Trivial fixes to Makefile.am parts of module listings.
125883         * modules/strstr: Append strstr.h to lib_SOURCES.
125884         * modules/strcase: Likewise, for strcase.h.
125886 2003-09-27  Karl Berry  <karl@gnu.org>
125888         * config/mkinstalldirs: update from automake.
125890 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125892         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125893         (error_tail): Do not loop, reallocating temporary buffer, since
125894         the output cannot contain more wide characters than the input
125895         contains bytes, the size must be big enough already.  This avoids
125896         one potential size overflow calculation.  Check for size overflow
125897         when calculating temporary buffer size.  Free temporary buffer
125898         when done, if it was allocated with malloc; this plugs a memory
125899         leak.  Remove casts from void * to pointers, that are no longer
125900         needed now that we're assuming C89 or better.
125902         Merge error changes from glibc.
125904         * lib/error.c, error.h: Update copyright notice header to match glibc.
125905         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125906         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125907         Disable cancellation while printing error.
125908         * lib/error.h: Prepend __ to parameter names.
125910 2003-09-26  Jim Meyering  <jim@meyering.net>
125912         * lib/error.c (error_tail): Move some declarations
125913         into inner scope where the local variables are used.
125915 2003-09-26  Bruno Haible  <bruno@clisp.org>
125917         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125918         stpncpy().
125919         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125921 2003-09-26  Bruno Haible  <bruno@clisp.org>
125923         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125924         (stpncpy): Define as alias for gnu_stpncpy.
125925         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125927 2003-09-25  Simon Josefsson  <jas@extundo.com>
125929         * lib/xgetdomainname.h: New file.
125930         * lib/xgetdomainname.c: New file.
125932 2003-09-25  Simon Josefsson  <jas@extundo.com>
125933             Bruno Haible  <bruno@clisp.org>
125935         * modules/getdomainname: New file.
125936         * modules/xgetdomainname: New file.
125937         * MODULES.html.sh (func_all_modules): Add getdomainname,
125938         xgetdomainname.
125940 2003-09-25  Simon Josefsson  <jas@extundo.com>
125941             Bruno Haible  <bruno@clisp.org>
125943         * m4/getdomainname.m4: New file.
125945 2003-09-25  Simon Josefsson  <jas@extundo.com>
125946             Bruno Haible  <bruno@clisp.org>
125948         * lib/getdomainname.h: New file.
125949         * lib/getdomainname.c: New file.
125951 2003-09-25  Karl Berry  <karl@gnu.org>
125953         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125955 2003-09-25  Karl Berry  <karl@gnu.org>
125957         * config/install-sh: update from automake.
125959 2003-09-25  Bruno Haible  <bruno@clisp.org>
125961         * modules/version-etc-2: New file, from modules/version-etc with
125962         modifications.
125963         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125965 2003-09-25  Bruno Haible  <bruno@clisp.org>
125967         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125968         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125970 2003-09-24  Simon Josefsson  <jas@extundo.com>
125972         * modules/xgethostname: Add xgethostname.h.
125974 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125976         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125977         the buffer associated with the argument.  Bug reported by
125978         Simon Josefsson.
125980 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125982         * README: Document assumptions that 'int' is at least 32 bits
125983         wide, that integer arithmetic is 2's complement without overflow,
125984         that there are no holes in integer values, that adding sizes of
125985         two nonoverlapping objects can't overflow, and that all-bits-zero
125986         yields scalar zero.  Fix spelling and capitalization typos.
125988 2003-09-19  Karl Berry  <karl@gnu.org>
125990         * lib/argp.h: update from libc.
125992 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125994         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125995         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125996         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125998 2003-09-17  Paul Eggert  <eggert@twinsun.com>
126000         * gnulib-tool: Use "test -h", not "test -L", for portability
126001         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
126002         (tags_regexp): Remove, since \| doesn't conform to POSIX.
126003         (sed_extract_prog): Issue s commands one-by-one, rather than
126004         using \| in one s command.
126006 2003-09-16  Paul Eggert  <eggert@twinsun.com>
126008         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
126009         input error, instead of returning NULL the next time we are called
126010         (and therefore losing track of errno).
126012 2003-09-16  Bruno Haible  <bruno@clisp.org>
126014         * gnulib-tool (func_create_testdir): Warn about duplicated
126015         dependencies.
126017 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126019         * modules/argmatch, modules/fatal, modules/obstack,
126020         modules/xalloc, modules/xgethostname: Sort dependencies by
126021         importance, not alphabetically.
126023 2003-09-15  Paul Eggert  <eggert@twinsun.com>
126025         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
126026         fails, so that the caller gets the proper errno.
126028         * lib/readutmp.c (read_utmp): Likewise.
126029         Check for fstat error.  Close stream and free storage
126030         when failing.
126032 2003-09-14  Karl Berry  <karl@gnu.org>
126034         * config/srclist.txt (strdup.c): disable for c89 changes.
126036 2003-09-14  Jim Meyering  <jim@meyering.net>
126038         * lib/getloadavg.c: Correct cpp indentation.
126039         * lib/strdup.c: Likewise.
126040         * lib/vasnprintf.c: Likewise.
126042 2003-09-14  Bruno Haible  <bruno@clisp.org>
126044         * modules/fwriteerror: New file.
126045         * MODULES.html.sh (func_all_modules): Add fwriteerror.
126047 2003-09-14  Bruno Haible  <bruno@clisp.org>
126049         * lib/fwriteerror.h: New file.
126050         * lib/fwriteerror.c: New file.
126052 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126054         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
126055         modules/xgethostname, modules/xalloc: Depend on exit.
126057 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126059         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
126061         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
126062         and AC_MINIX, too, so that their extensions are available.
126064         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
126065         This macro has been superseded by gl_BACKUPFILE.
126067         More patches to assume C89 or better.
126069         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
126071         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
126072         unconditionally.
126073         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
126074         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
126075         Include <string.h>, <stdlib.h> unconditionally.
126076         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
126077         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
126078         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
126079         headers or for string.h.
126080         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
126081         or strtoul.
126083         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
126084         headers.
126085         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
126086         * m4/userspec.m4 (gl_USERSPEC): Likewise.
126087         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
126088         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
126089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
126090         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
126091         memcpy, memset.
126092         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
126093         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
126094         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
126095         strtol.
126096         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
126097         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
126098         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
126099         strtoul.
126101 2003-09-12  Paul Eggert  <eggert@twinsun.com>
126103         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
126104         * lib/obstack.c [!defined _LIBC]: Likewise.
126105         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
126106         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
126107         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
126109         More changes to assume C89 or better.
126111         * lib/error.c (error_tail): Assume vprintf.
126113         * lib/argmatch.c (getenv): Remove decl.
126114         * lib/progreloc.c (get_full_program_name): Define via prototype.
126115         * lib/setenv.c (clearenv): Likewise.
126116         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
126117         needed.
126118         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
126119         (malloc, memcpy): Remove decls.
126120         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
126121         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
126122         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126123         (memcpy): Remove macro.
126124         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
126125         (__P): Remove.  All uses removed.
126126         (PTR): Remove.  All uses changed to void *.
126127         (CHAR_BIT, NULL): Remove.
126128         (spaces, zeros, memset_space, memset_zero)
126129         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
126130         Remove.
126131         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
126132         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
126133         Define with prototype.
126134         Remove now-unnecessary prototype decl.
126135         (extra_args_spec): Assume ANSI C.  All uses changed.
126136         (extra_args_spec_iso): Remove.
126137         (my_strftime, emacs_strftimeu): Define via prototype.
126138         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
126139         unconditionally.
126140         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
126141         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
126142         (strtoul, strtol): Remove decls.
126143         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
126144         LONG_MAX): Remove.
126145         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
126146         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
126147         (LOCALE_PARAM_PROTO): New macro.
126148         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
126149         (INTERNAL (strtol), strtol): Define with a prototype.
126150         (PARAMS): Remove.  All uses removed.
126151         * lib/tempname.c: Include <string.h> unconditionally.
126152         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
126153         * lib/xgethostname.c (main): Define with a prototype.
126154         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
126155         Include <stdlib.h> unconditionally.
126156         (calloc, malloc, realloc, free): Remove decls.
126157         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
126158         Include <stdlib.h> unconditionally.  Sort include file names.
126159         (strtod): Remove.
126160         (xstrtod): Define with a prototype.
126161         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
126162         (strtol, strtoul): Remove decls.
126164 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126166         More patches to assume C89 or better.
126167         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
126168         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
126169         string.h, memchr, STDC_HEADERS.
126171 2003-09-11  Paul Eggert  <eggert@twinsun.com>
126173         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
126174         Include <stdlib.h>, <string.h> unconditionally.
126175         Remove now-unnecessary cast to char *.
126176         * lib/strnlen.c: Include <string.h> unconditionally.
126177         * lib/yesno.c (yesno): Define with a prototype.
126179 2003-09-11  Bruno Haible  <bruno@clisp.org>
126181         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
126183 2003-09-10  Jim Meyering  <jim@meyering.net>
126185         * lib/error.c: Correct indentation of cpp directives.
126187 2003-09-10  Bruno Haible  <bruno@clisp.org>
126189         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
126190         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
126191         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
126192         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
126193         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
126194         <stdlib.h> and <string.h> checks.
126195         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
126196         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
126198 2003-09-10  Bruno Haible  <bruno@clisp.org>
126200         * lib/strcspn.c: Include <string.h> unconditionally.
126201         * lib/strpbrk.c: Include <string.h> unconditionally.
126202         * lib/strstr.c: Include <string.h> unconditionally.
126203         * lib/unicodeio.c: Include <string.h> unconditionally.
126204         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
126205         * lib/unsetenv.c: Likewise.
126206         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
126207         * lib/yesno.c: Include <stdlib.h> unconditionally.
126208         (rpmatch): Add prototype.
126210 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126212         More patches to assume C89 or better.
126213         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
126214         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
126215         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
126216         or for string.h.
126217         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
126218         stdlib.h.
126219         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
126220         C headers.
126221         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
126222         string.h.
126223         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
126224         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
126225         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
126226         or for string.h.
126227         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
126228         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
126229         C headers.
126230         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
126231         memcpy.
126232         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
126233         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
126234         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
126235         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
126236         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
126237         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
126238         string.h, free.
126239         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
126240         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
126241         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
126242         C headers, or for string.h.
126243         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
126244         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
126245         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
126246         headers, memory.h, stdlib.h, string.h, strings.h.
126247         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
126248         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
126249         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
126250         strchr.
126251         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
126252         headers, memory.h, string.h.
126253         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126254         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126255         free.
126256         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126257         headers.
126258         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126259         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126260         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126261         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126262         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126264 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126266         More K&R removal.
126268         * lib/acosl.c (main): Use a prototype.
126269         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126270         tanl.c: Likewise.
126272         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126274         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126275         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126276         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126277         with a prototype.
126278         * lib/getopt.c (const): Remove macro.
126279         Include <string.h> unconditionally.
126280         (my_index): Remove; all uses changed to strchr.
126281         (strlen): Remove decl.
126282         (exchange): Remove forward decl; no longer needed.
126283         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126284         Define with prototype.
126285         * lib/getopt1.c (const): Remove macro.
126286         (getopt_long, getopt_long_only, main): Define with prototype.
126288         * lib/getugroups.c: Include <string.h> unconditionally.
126290         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126291         (getusershell, setusershell, endusershell, readname, main):
126292         Define with prototypes.
126294         * lib/group-member.c: Include group-member.h first.
126295         Include <stdlib.h> unconditionally.
126297         * lib/hard-locale.c: Include hard-locale.h first.
126298         Include <stdlib.h>, <string.h> unconditionally.
126300         * lib/hash.c (free, malloc): Remove decls.
126301         Include <stdlib.h> unconditionally.
126303         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126304         (getenv): Do not declare.
126306         * lib/idcache.c: Include <string.h> unconditionally.
126308         * lib/long-options.c: Include long-options.h first, to test interface.
126309         Include <stdlib.h> unconditionally.
126311         * lib/makepath.c: Include makepath.h first, to test interface.
126312         Include <stdlib.h> and <string.h> unconditionally.
126314         * lib/linebuffer.c: Include <stdlib.h>.
126315         (free): Remove decl.
126317         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126318         stddef.h. rpl_malloc returns void *, not char *.
126319         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126320         prototype.
126322         * lib/md5.h: Include <limits.h> unconditionally.
126323         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126324         (__P): Remove; all uses removed.
126325         * lib/md5.c: Include "md5.h" first.
126326         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126327         md5_buffer, md5_process_bytes, md5_process_block):
126328         Define with prototypes.
126329         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126330         * lib/sha.c: Include "sha.h" first.
126331         Include <stdlib.h>, <string.h> unconditionally.
126333         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126334         * lib/memcmp.c (__ptr_t): Likewise.
126335         * lib/memrchr.c (__ptr_t): Likewise.
126336         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126337         Include <string.h> unconditionally.
126338         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126339         * lib/memchr.c: Include <stdlib.h> unconditionally.
126340         * lib/memchr.c (LONG_MAX): Remove.
126341         * lib/memrchr.c (LONG_MAX): Likewise.
126342         * lib/memchr.c (__memchr): Define via a prototype.
126343         * lib/memrchr.c (__memrchr): Likewise.
126344         * lib/memcmp.c (__P): Remove, and remove all uses.
126345         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126346         Remove forward decls; no longer needed.
126347         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126348         Use types required by C89 in prototype.
126350         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126351         * lib/savedir.c: Likewise.
126352         * lib/mkdir.c (free): Remove decl.
126353         * lib/rmdir.c (rmdir): Define with a prototype.
126354         * lib/savedir.c: Include savedir.h first, to test interface.
126356         * lib/mktime.c (STDC_HEADERS): Remove.
126357         Include <stdlib.h>, <string.h> unconditionally.
126359         * lib/modechange.c: Include <stdlib.h> unconditionally.
126360         (malloc): Remove decl.
126362         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126363         (free): Remove decl.
126365         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126366         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126367         (This type really should be intptr_t, but that's a C99ism.)
126368         (_obstack_memcpy): Remove: all uses changed to memcpy.
126369         Include <string.h> unconditionally.
126370         (struct obstack): Assume __STDC__ for types of members
126371         chunkfun, freefun, extra_arg.
126372         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126373         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126374         obstack_begin, obstack_specify_allocation,
126375         obstack_specify_allocation_with_arg, obstack_chunkfun,
126376         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126377         Remove unprototyped decls and the macros that use them.
126378         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126379         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126380         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126381         (defined __STDC__ && __STDC__)]:
126382         Remove nonprototyped code.
126383         Include <stdlib.h> unconditionally.
126384         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126385         _obstack_allocated_p, _obstack_free, obstack_free,
126386         _obstack_memory_used, print_and_abort):
126387         Define using prototypes.
126388         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126389         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126390         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126391         obstack_next_free, obstack_object_size, obstack_room) [0]:
126392         Remove unused, unprototyped code.
126394         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126396         * lib/physmem.c (physmem_total, physmem_available, main): Define
126397         with prototypes.
126399         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126400         (main): Define with a prototype.
126402         * lib/posixver.c (getenv): Remove decl.
126404         * lib/putenv.c (malloc): Returns void *, not char *.
126405         Include <string.h> unconditionally.
126406         (strchr, memcpy, NULL): Do not define.
126408         * lib/readtokens.c: Include readtokens.h first, to test interface.
126409         Include <stdlib.h>, <string.h> unconditionally.
126410         (init_tokenbuffer): Define with a prototype.
126412         * lib/regex.c (PARAMS): Remove.  All uses removed.
126413         All uses of _RE_ARGS removed, too.
126414         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126415         unconditionally.
126416         (bzero): Assume memset exists.
126417         (memcmp, memcpy, NULL): Remove.
126418         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126419         char, or assignments to local vars of type signed char.
126420         (init_syntax_once, PREFIX(extract_number_and_incr),
126421         PREFIX(print_partial_compiled_pattern),
126422         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126423         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126424         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126425         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126426         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126427         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126428         wcs_compile_range, byte_compile_range, truncate_wchar,
126429         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126430         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126431         count_mbs_length, wcs_re_match_2_internal,
126432         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126433         PREFIX(alt_match_null_string_p),
126434         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126435         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126436         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126437         now-unnecessary declaration, if any.
126438         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126439         regcomp, regexec):
126440         Remove now-unnecessary casts among pointer types.
126441         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126443         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126444         (free): Remove decl.
126446         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126448         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126449         (free): Remove decl.
126451         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126452         * lib/xgetcwd.c: Likewise.
126454         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126455         (free): Remove decl.
126457         * lib/strchrnul.c (strchrnul): Define with a prototype.
126458         Fix bug: c_in was not converted to char before searching.
126460         The following changes are not K&R related:
126462         * lib/group-member.h: Include <sys/types.h>, so that this file is
126463         self-contained.
126464         * lib/makepath.h: Likewise.
126466         * lib/getusershell.c (readname, default_index, line_size, readname):
126467         Use size_t, not int, for sizes.
126468         (readname): If the size overflows, report an error instead of
126469         looping forever.
126471 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126473         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126474         libc.
126476 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126478         * README: New section: portability guidelines.
126480 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126482         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126483         C89 spec.
126485 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126487         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126489 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126491         Assume C89 or better; remove K&R cruft.
126492         A few of these changes were first proposed by Derek Robert Price
126493         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126495         * lib/addext.c: Include <string.h> unconditionally.
126496         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126497         Don't declare getenv or malloc.
126499         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126500         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126501         (NULL): Remove.
126502         (find_stack_direction, alloca): Use prototypes.
126504         * lib/atexit.c (atexit): Define using a prototype.
126506         * lib/basename.c, dirname.c, stripslash.c:
126507         Include <string.h> unconditionally.
126509         * lib/bcopy.c: Include <stddef.h>.
126510         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126512         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126514         * lib/error.h (error, error_at_line, error_print_progname)
126515         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126516         * lib/error.c: Include error.h first, to check interface.
126517         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126518         (VA_START): Remove; all uses changeed to va_start.
126519         (exit, strerror): Remove decls.
126520         (error_print_progname): Prototype uncondionally.
126521         Don't include <errno.h>; no longer needed.
126522         (private_strerror): Remove.
126523         (error_tail): Always define.
126524         (error, error_at_line): Assume C89 or better; always use prototypes.
126525         * lib/fatal.c: Include "fatal.h" first, to test interface.
126526         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126527         (VA_START): Remove; all uses changed to va_start.
126528         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126529         this case.
126530         (exit): Remove decl.
126531         (fatal): Prototype unconditionally.  Assume va_start works.
126532         Abort at end, to pacify gcc.
126534         * lib/euidaccess.c (main): Define with a prototype.
126536         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126538         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126540         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126541         prototypes.
126542         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126543         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126544         (getenv): Remove decl.
126545         (fnmatch): Define using a prototype.
126546         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126547         (FCT): Define using a prototype.
126549         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126551         * lib/gethostname.c: Include <stddef.h>.
126552         (gethostname): Define with prototype.  Length is size_t, not int.
126554 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126556         Assume C89 or better; remove K&R cruft.
126557         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126558         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126559         string.h, getenv, malloc.
126560         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126561         headers.
126562         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126563         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126564         do not check for strerror.
126565         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126566         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126567         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126568         do not check for doprnt or vprintf.
126569         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126570         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126572 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126574         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126575         getversion.c should have been removed then, but was accidentally
126576         preserved.
126578         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126579         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126581 2003-09-08  Karl Berry  <karl@gnu.org>
126583         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126584                 config, forget about prep.
126586         * config/depcomp, missing: update from automake.
126588 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126590         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126591         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126593 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126595         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126596         copy_tm_result.  Bug reported by Simon Josefsson in
126597         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126599 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126601         * m4/time_r.m4: New file.
126602         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126603         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126604         is. Check for timegm declaration.
126605         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126606         Do not check for gmtime_r.
126607         Replace mktime if __mktime_internal does not exist and if mktime
126608         hasn't been replaced already.
126610 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126612         * lib/time_r.c, lib/time_r.h: New files.
126614         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126615         __localtime_r.
126616         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126617         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126619         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126620         __gmtime_r.
126621         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126622         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126623         Include <time_r.h>.
126625         * lib/timegm.c: Switch to glibc implementation, with the following
126626         changes:
126627         [defined HAVE_CONFIG_H]: Include <config.h>.
126628         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126629         (__mktime_internal) [!defined _LIBC]: New decl.
126630         (__gmtime_r) [!defined _LIBC]: New macro and function.
126631         (timegm): Use a prototype, since gnulib assumes C89.
126632         Do not bother declaring tmp to be const, as it's not really usefu.
126633         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126634         (timegm): Declare only if HAVE_DECL_TIMEGM.
126636 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126638         * MODULES.html.sh (func_all_modules): Add time_r.
126639         * modules/time_r: New file.
126640         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126641         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126643 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126645         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126646         Bug reported by Lute Kamstra in
126647         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126649         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126650         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126651         course with correspondingly smaller numbers for tomorrow and
126652         yesterday.  From Tadayoshi Funaba.  Originally installed into
126653         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126654         coreutils merge?).
126656 2003-08-31  Simon Josefsson  <jas@extundo.com>
126658         * modules/timegm: New file.
126659         * MODULES.html.sh (func_all_modules): Add timegm.
126661 2003-08-31  Simon Josefsson  <jas@extundo.com>
126663         * m4/timegm.m4: New file.
126665 2003-08-31  Simon Josefsson  <jas@extundo.com>
126667         * lib/timegm.h: New file.
126668         * lib/timegm.c: New file.  Based on
126669         wget-1.8.2/src/http.c:mktime_from_utc.
126671 2003-08-31  Karl Berry  <karl@gnu.org>
126673         * lib/argp.h: update from libc.
126675 2003-08-28  Bruno Haible  <bruno@clisp.org>
126677         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126678         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126679         followed by '#define fnmatch fnmatch_posix' gives an error.
126681 2003-08-28  Bruno Haible  <bruno@clisp.org>
126683         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126684         warning on QNX, which defines O_BINARY to 000000.
126686 2003-08-27  Jim Meyering  <jim@meyering.net>
126688         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126689         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126690         would fail after 32.  Reported by Danny Levinson.  Details here:
126691         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126693 2003-08-24  Bruno Haible  <bruno@clisp.org>
126695         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126696         MSVC7 <stdio.h> is included later.
126698 2003-08-22  Simon Josefsson  <jas@extundo.com>
126700         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126702 2003-08-20  Karl Berry  <karl@gnu.org>
126704         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126706 2003-08-20  Bruno Haible  <bruno@clisp.org>
126708         * modules/progname: New file.
126709         * MODULES.html.sh (func_all_modules): Add progname.
126711 2003-08-20  Bruno Haible  <bruno@clisp.org>
126713         * lib/progname.h: New file, from GNU gettext.
126714         * lib/progname.c: New file, from GNU gettext.
126715         * lib/progreloc.c: New file, from GNU gettext.
126717 2003-08-19  Jim Meyering  <jim@meyering.net>
126719         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126720         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126722 2003-08-19  Bruno Haible  <bruno@clisp.org>
126724         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126725         more.
126727 2003-08-19  Bruno Haible  <bruno@clisp.org>
126729         * lib/xstrdup.c: Assume <string.h> exists.
126731 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126733         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126734         in makefile rules.
126736 2003-08-18  Jim Meyering  <jim@meyering.net>
126738         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126739         * m4/lib-ld.m4: Likewise.
126741 2003-08-18  Jim Meyering  <jim@meyering.net>
126743         * lib/setenv.h: Indent nested cpp directive.
126744         * lib/vasnprintf.c: Remove trailing blanks.
126746 2003-08-17  Simon Josefsson  <jas@extundo.com>
126748         * modules/xstrndup: New file.
126749         * MODULES.html.sh (func_all_modules): Add xstrndup.
126751 2003-08-17  Simon Josefsson  <jas@extundo.com>
126753         * modules/argp: Fix autoconf macro name. Add more dependencies.
126755 2003-08-17  Simon Josefsson  <jas@extundo.com>
126757         * m4/xstrndup.m4: New file.
126759 2003-08-17  Simon Josefsson  <jas@extundo.com>
126761         * m4/argp.m4: New file.
126763 2003-08-17  Simon Josefsson  <jas@extundo.com>
126764             Bruno Haible  <bruno@clisp.org>
126766         * lib/xstrndup.h: New file.
126767         * lib/xstrndup.c: New file.
126769 2003-08-17  Bruno Haible  <bruno@clisp.org>
126771         * modules/strndup (Files, Include): Add lib/strndup.h.
126773 2003-08-17  Bruno Haible  <bruno@clisp.org>
126775         * modules/euidaccess (Files): Add lib/euidaccess.h.
126777 2003-08-17  Bruno Haible  <bruno@clisp.org>
126779         * lib/strndup.h: New file.
126781 2003-08-17  Bruno Haible  <bruno@clisp.org>
126783         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126784         like AC_GNU_SOURCE.
126785         * modules/extensions (configure.ac): Comment out the invocation of
126786         gl_USE_SYSTEM_EXTENSIONS.
126788 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126790         Merges from coreutils, etc.
126791         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126792         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126793         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126794         fixing a typo.
126795         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126796         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126798 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126800         Document merge from coreutils.
126801         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126802         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126803         * modules/utime: Add m4/utimes-null.m4.
126805 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126807         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126808         space, undoing this 2003-08-12 change:
126809         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126811 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126813         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126814         strtoul.c from libc, undoing this 2003-08-12 change:
126815         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126817 2003-08-16  Jim Meyering  <jim@meyering.net>
126819         Merges from coreutils.
126820         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126821         prefix.  Adjust cache variables similarly.  Create 500 rather than
126822         just 300 files, to exercise bug on Darwin6.5, too.
126823         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126824         $missing_dir.
126825         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126826         AM_SYS_POSIX_TERMIOS.
126827         Reported by mkc@mathdogs.com.
126828         Also change use of $am_cv_sys_posix_termios
126829         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126830         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126831         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126832         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126833         in /proc/mounts until it finds one with matching device number.  This
126834         is unnecessary when the FILE argument *is* a mount point.  No stat call
126835         is necessary in that case.  So, disable the statvfs-testing code on
126836         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126837         as RedHat bug# 84846.
126838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126839         to 1MB, so as not to render systems with no stack size limit (e.g.,
126840         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126841         Include <unistd.h>.  On some systems,
126842         it is required for the definition of _SC_PAGESIZE.
126844 2003-08-16  Jim Meyering  <jim@meyering.net>
126846         Merge from coreutils.
126847         * lib/xstrtoimax.c: #else #if -> #elif.
126848         * lib/xstrtoumax.c: Likewise.
126850 2003-08-16  Jim Meyering  <jim@meyering.net>
126852         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126853         * m4/utimes.m4: Removed.
126854         * m4/utimes-null.m4: Renamed from utimes.m4.
126856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126857         to 1MB, so as not to render systems with no stack size limit (e.g.,
126858         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126859         Include <unistd.h>.  On some systems,
126860         it is required for the definition of _SC_PAGESIZE.
126862 2003-08-16  Jim Meyering  <jim@meyering.net>
126863         and Paul Eggert  <eggert@cs.ucla.edu>
126865         Merges from coreutils, etc.
126867         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126868         using the latest version from cvs.  This avoids problems with #line
126869         directives using a vendor (Sun) compiler.
126870         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126871         Don't set GETGROUPS_LIB here; now it's
126872         done via getgroups.m4's wrapper function.
126873         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126874         rather than just in sh-util/configure.in, so that the
126875         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126876         same.
126877         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126878         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126879         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126880         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126881         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126882         Remove code that is now done by the newly-required macros.
126883         Append $(EXEEXT) to DF_PROG.
126884         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126885         Do not invoke or require the following here,
126886         since prereq.m4 or some gnulib .m4 now does this for us:
126887         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126888         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126889         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126890         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126891         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126892         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126893         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126894         AC_FUNC_OBSTACK.
126895         Do not replace the following functions, as this is now the job
126896         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126897         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126898         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126899         atexit getpass, strdup, getpagesize.
126900         Replace 'raise'.
126901         Do not check for the following functions, as this is now the job
126902         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126903         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126904         setregid.
126905         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126906         Check for sys/sysctl.h.
126907         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126908         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126909         of checking for ssize_t ourselves.
126911         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126912         Require every macro that gnulib/modules/* suggests for us.
126913         (jm_PREREQ_ADDEXT): New macro.
126914         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126915         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126917         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126918         (gl_PHYSMEM): Use it.
126919         Also check for `table' function.
126920         Check for new headers and functions.
126921         Add check for sys/sysmp.h.
126922         With suggestions from Kaveh Ghazi.
126923         Ignore headers that are present but cannot be compiled.  This
126924         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126925         C 5.4.
126927 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126929         Document merge from coreutils.
126930         * modules/userspec: Depend on posixver.
126931         * modules/strftime: Depend on tzset.
126933 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126935         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126936         rather than tab, after '#' in shell-script copyright notices.
126937         Suggested by Bruno Haible.
126939 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126941         * config/srclist-update: Use three spaces, rather than tab, after '#'
126942         in shell-script copyright notices.  Suggested by Bruno Haible.
126943         Remove unnecessary parenthesization in regular expression.
126945 2003-08-15  Jim Meyering  <jim@meyering.net>
126947         Merge from coreutils.
126948         * lib/xgethostname.c: Include <stdlib.h>.
126949         (xghostname): Don't exit for anything other than memory-related
126950         failure; just return NULL.
126951         * lib/userspec.c: Include "posixver.h".
126952         (parse_user_spec): Accept `.' as a separator only
126953         in pre-POSIX-200112 mode.
126954         * lib/strtoimax.c: Use #elif rather than #else #if.
126955         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126956         Remove function, now that we can rely on a working tzset function.
126957         [!_LIBC]: Ensure that the required autoconf test has been run.
126958         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126959         Use underlying_strftime for %r.
126960         * lib/sha.c: Merge in some clean-up and optimization changes from
126961         glibc.
126962         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126963         Ensure that it is a multiple of 64.
126964         Rearrange loop exit tests so as to avoid performing an
126965         additional fread after encountering an error or EOF.
126966         * lib/realloc.c: Update copyright date.
126968 2003-08-15  Jim Meyering  <jim@meyering.net>
126969         and Paul Eggert  <eggert@twinsun.com>
126971         Merge from coreutils.
126972         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126973         member but strut utmpx does not.  Needed for AIX 4.3.3.
126974         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126976 2003-08-15  Jim Meyering  <jim@meyering.net>
126977         and Paul Eggert  <eggert@cs.ucla.edu>
126979         Merges from coreutils, etc.
126980         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126981         Require gl_FUNC_TZSET_CLOBBER.
126982         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126983         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126984         members.
126986 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126988         Help the merge from coreutils.
126989         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126990         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126991         * m4/tzset.m4: Use it too.
126993 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126995         * modules/tzset: New file.
126997 2003-08-14  Jim Meyering  <jim@meyering.net>
126999         Merges from coreutils.
127000         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
127001         variable names, rather than @FNMATCH_H@.
127002         * modules/alloca: Likewise for $(ALLOCA_H).
127004         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
127005         the three copies of the literal target, `fnmatch.h'.
127006         * modules/alloca (alloca.h): Likewise.
127008 2003-08-14  Jim Meyering  <jim@meyering.net>
127010         Merge from coreutils.
127011         * m4/tzset.m4: New file.
127012         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
127013         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
127014         otherwise, AIX 5.1 systems would end up using the latter.
127015         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
127016         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
127017         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
127018         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
127020 2003-08-14  Jim Meyering  <jim@meyering.net>
127022         Merge from coreutils.
127023         * lib/obstack.h: Whitespace changes.
127024         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
127025         and xcalloc return values.
127026         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
127027         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
127028         hang on OSF/1 5.1 for DIR on both local and remote file systems.
127029         Reported by (and fix confirmed by) Nelson H. F. Beebe.
127030         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127031         error from mntctl.
127032         Use mntctl's return value to drive the entry-processing loop, since
127033         we can't rely on the value of the vmt_length member in the last
127034         entry.  On some systems doing so could result in exhausting
127035         virtual memory.  Based in part on a patch from Mike Jetzer.
127037 2003-08-14  Jim Meyering  <jim@meyering.net>
127038         and Paul Eggert  <eggert@twinsun.com>
127040         Merges from coreutils, plus other fixes.
127041         * lib/physmem.c: Merge in portability changes from gcc/libiberty
127042         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
127043         for credits and details.  Thanks to Kaveh Ghazi for helping
127044         to keep these files in sync.
127045         (ARRAY_SIZE): Define it.
127046         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
127047         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
127048         (memcasecmp): Don't assume size_t fits in unsigned int.
127049         Remove casts and duplicate code.
127050         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
127051         (memcpy): Remove definition.
127052         Merge in some clean-up and optimization changes from glibc.
127053         [BLOCKSIZE]: Move definition to top of file.
127054         Ensure that it is a multiple of 64.
127055         Rearrange loop exit tests so as to avoid performing an
127056         additional fread after encountering an error or EOF.
127057         * lib/md5.h (md5_uintptr): Define.
127058         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
127059         return to the initial working directory.  Preserve errno
127060         for caller.
127061         * lib/idcache.c: Include "xalloc.h".
127062         (xmalloc, xrealloc): Remove decls.
127063         (getuser): Remove casts no longer required in C89.
127064         * lib/human.c: Include stdio.h, for sprintf.
127065         * lib/group-member.c: Include "xalloc.h".
127066         (xmalloc, xrealloc): Remove decls.
127067         (get_group_info): Remove casts no longer required in C89.
127068         * lib/getusershell.c (readname): Remove casts no longer required in
127069         C89.
127070         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
127071         * lib/getline.c: Whitespace fix, from coreutils.
127073 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127075         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
127076         Check for isascii.
127078         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127079         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127080         Undo previous (whitespace-only) change.
127082 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127084         * lib/exclude.c: Include <ctype.h>
127085         (IN_CTYPE_DOMAIN): New macro.
127086         (is_space): New fn.
127087         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
127088         and empty lines.
127090         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127091         Undo previous (whitespace-only) change.
127093 2003-08-13  Paul Eggert  <eggert@twinsun.com>
127095         * config/srclist-update: Change update back to the old behavior,
127096         leaving whitespace alone.  Use one 'sed' command rather than a
127097         pipeline.
127098         (fixlicense): Now a variable, not a function.
127099         (remove_trailing_blanks): Remove.
127100         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
127101         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127102         Undo previous (whitespace-only) change.
127104 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127106         Merge from coreutils.
127107         * modules/euidaccess: Add lib_SOURCES, include for new
127108         file euidaccess.h
127110 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127112         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
127113         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
127114         Normalize leading white space and remove trailing white space.
127116         Merge from coreutils
127117         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
127119         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
127120         0.12.1.  These files are now being upgraded automatically by
127121         ../config/srclist-update.
127123 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127125         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
127126         Normalize leading white space and remove trailing white space.
127127         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
127128         notice, as per ../config/srclist-update.
127130         Merge from coreutils.
127131         * lib/euidaccess.h: New file.
127132         * lib/euidaccess.c: Include it.
127133         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
127134         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
127135         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
127137 2003-08-12  Paul Eggert  <eggert@twinsun.com>
127139         * config/srclist-update: Add copyright notice.
127140         (remove_id_lines, remove_trailing_blanks): New constants.
127141         (fixfile): Use them to normalize spacing a bit in copied files.
127142         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
127143         Normalize leading white space and remove trailing white space.
127145         * config/texinfo.tex: Sync with texinfo.
127147         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
127148         strtoul.c from libc, to merge coreutils whitespace changes.
127150         * config/srclist.txt: Get the following m4 files from gettext:
127151         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
127152         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
127153         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
127154         wint_t.m4.
127156 2003-08-12  Karl Berry  <karl@gnu.org>
127158         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
127159         been made.
127161 2003-08-11  Paul Eggert  <eggert@twinsun.com>
127163         * modules/gnu-source, m4/gnu-source.m4:
127164         Remove; we're assuming Autoconf 2.54 or later now.
127165         Suggested by Bruno Haible.
127166         * MODULES.html.sh (func_all_modules): Remove gnu-source.
127168 2003-08-11  Bruno Haible  <bruno@clisp.org>
127170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
127172 2003-08-11  Bruno Haible  <bruno@clisp.org>
127174         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
127175         (vasnprintf): Use it instead of wcslen.
127177 2003-08-11  Bruno Haible  <bruno@clisp.org>
127179         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
127180         value to ensure that _Bool promotes to int. Use #define for _Bool when
127181         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
127183 2003-08-10  Karl Berry  <karl@gnu.org>
127185         * lib/regex.h: update from libc (whitespace fix).
127187 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127189         Merge some files from coreutils.  These changes were
127190         originally made by Jim Meyering.
127191         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
127192         many older Unixes require this.
127193         * lib/alloca.c (alloca): Remove cast to argument of free;
127194         no longer needed in C89.
127195         * lib/alloca_.h, regex.h: Fix white space to match
127196         what GNU indent does.
127198 2003-08-09  Paul Eggert  <eggert@twinsun.com>
127200         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
127201         apparently Emacs's Unicode mode got confused before my 2003-08-05
127202         checkin.
127204 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127206         * m4/extensions.m4: New file.
127207         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
127208         Require gl_USE_SYSTEM_EXTENSIONS.
127209         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
127210         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
127212 2003-08-08  Paul Eggert  <eggert@twinsun.com>
127214         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
127215         * modules/extensions, modules/gnu-source: New files.
127216         * modules/timespec, modules/unlocked-io: Depend on extensions.
127218 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127220         * modules/restrict: New file.
127221         * MODULES.html.sh (func_all_modules): Add restrict.
127222         * modules/regex: Depend on restrict.
127224 2003-08-07  Paul Eggert  <eggert@twinsun.com>
127226         * m4/restrict.m4: New file.
127227         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
127229 2003-08-07  Bruno Haible  <bruno@clisp.org>
127231         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
127232         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
127234 2003-08-07  Bruno Haible  <bruno@clisp.org>
127236         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
127237         makes the module 'getndelim2' compatible with the module 'getline'.
127239 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127241         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
127242         byte with "\201" to avoid glitches when editing that source file
127243         with multi-gnome-terminal.
127245 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127247         * lib/bumpalloc.h: Remove.
127249 2003-08-05  Paul Eggert  <eggert@twinsun.com>
127251         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
127252         * modules/bumpalloc: Remove.
127254 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127256         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127257         GNU coding style.
127259         Merge from coreutils.
127260         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127261         1. From glibc.
127262         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127263         from Karl Berry, implemented by Jim Meyering.
127264         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127265         from Dmitry V. Levin.
127266         Remove anachronistic cast of xrealloc.
127267         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127268         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127269         type. Otherwise, it wouldn't compile with at least /bin/cc on
127270         ymp-cray-unicos9.0.2.X.
127271         Combine two mostly-identical uses of alloca into one.
127272         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127274 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127276         [From Emacs.]
127278         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127279         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127280         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127281         obsolete NLIST_NAME_UNION.
127282         [__GNU__]: Undef BSD and FSCALE.
127283         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127285 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127287         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127288         an enum type, so that it's guaranteed to promote to int.  See:
127289         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127291 2003-08-03  Karl Berry  <karl@gnu.org>
127293         * config/depcomp: update from automake.
127295 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127297         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127298         (strerror): Don't assume that a printable int fits in 14 bytes.
127300 2003-07-31  Bruno Haible  <bruno@clisp.org>
127302         * modules/getpass-gnu: New file.
127303         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127305 2003-07-31  Bruno Haible  <bruno@clisp.org>
127307         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127309 2003-07-24  Karl Berry  <karl@gnu.org>
127311         * config/missing: update from automake.
127313 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127314             Bruno Haible  <bruno@clisp.org>
127316         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127317         * lib/getline.c (getline, getdelim): Likewise.
127318         Remove _GNU_SOURCE define; now it's defined in config.h through
127319         m4/getline.m4.
127321 2003-07-23  Karl Berry  <karl@gnu.org>
127323         * config/config.sub: update from prep.
127325 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127327         * modules/xalloc (Depends-on): Add exitfail.
127328         * modules/xmemcoll: Likewise.
127330 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127332         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127333         over-parenthesization in macros.
127335         Sync with coreutils.
127337         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127338         required by C99.
127340         Use `exit_failure' for xalloc and xmemcoll instead of their own
127341         private exit-failure variables.
127342         * lib/xalloc.h (xalloc_exit_failure): Remove.
127343         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127344         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127345         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127346         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127347         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127349 2003-07-20  Jim Meyering  <jim@meyering.net>
127351         * modules/closeout (Depends-on): Add exitfail.
127352         Suggestion from Bruno Haible.
127354 2003-07-19  Karl Berry  <karl@gnu.org>
127356         * config/config.sub: update from prep.
127358 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127360         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127361         Remove.
127362         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127363         to test that it can stand by itself.  Include "exitfail.h".
127364         Clients should set exit_failure instead.
127365         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127367 2003-07-18  Bruno Haible  <bruno@clisp.org>
127369         * modules/getndelim2: New file.
127370         * modules/getline: Share files with module getndelim2.
127371         * modules/getnline: Depend on getndelim2 instead of sharing files with
127372         it. Add getnline.c to lib_SOURCES.
127373         * MODULES.html.sh (func_all_modules): Add getndelim2.
127375 2003-07-18  Bruno Haible  <bruno@clisp.org>
127377         * m4/getndelim2.m4: New file.
127378         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127379         invoke gl_PREREQ_GETNDELIM2.
127380         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127381         gl_PREREQ_GETNDELIM2.
127382         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127383         gl_GETNDELIM2.
127385 2003-07-18  Bruno Haible  <bruno@clisp.org>
127387         * lib/getndelim2.h: New file.
127388         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127389         getndelim2.h.
127390         (getndelim2): Make non-static. Change return type to ssize_t.
127391         * lib/getline.h: Change argument names.
127392         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127393         * lib/getnline.c: Include getndelim2.h.
127395 2003-07-18  Andreas Schwab  <schwab@suse.de>
127397         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127399 2003-07-17  Karl Berry  <karl@gnu.org>
127401         * config/config.sub: update from prep.
127403 2003-07-17  Bruno Haible  <bruno@clisp.org>
127405         * modules/getnline: New file.
127406         * modules/getline: Add lib/getndelim2.c to source file list.
127407         * MODULES.html.sh (func_all_modules): Add getnline.
127409 2003-07-17  Bruno Haible  <bruno@clisp.org>
127411         * m4/getnline.m4: New file.
127413 2003-07-17  Bruno Haible  <bruno@clisp.org>
127415         * m4/Makefile.am.in: Remove file.
127416         * m4/Makefile.am: Remove file.
127417         * m4/Makefile.in: Remove file.
127419 2003-07-17  Bruno Haible  <bruno@clisp.org>
127421         * lib/getnline.h: New file.
127422         * lib/getnline.c: New file.
127423         * lib/getndelim2.c: New file, extracted from getline.c.
127424         (getndelim2): Renamed from getdelim2, with added nmax argument.
127425         * lib/getline.c: Include getndelim2.c.
127426         (getdelim2): Moved out to getndelim2.c.
127427         (getline, getdelim): Update.
127429 2003-07-17  Bruno Haible  <bruno@clisp.org>
127431         * lib/Makefile.am: Remove file.
127432         * lib/Makefile.in: Remove file.
127434 2003-07-17  Bruno Haible  <bruno@clisp.org>
127436         * configure.in: Remove file.
127437         * Makefile.in: Remove file.
127439 2003-07-17  Bruno Haible  <bruno@clisp.org>
127441         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127443 2003-07-16  Karl Berry  <karl@gnu.org>
127445         * config/srclist-update: was running fixlicense twice, which caused
127446                 texinfo.tex to be nullified for some reason.  Simplify,
127447                 $gplsrc is no longer needed as far as I can see?
127449 2003-07-16  Jim Meyering  <jim@meyering.net>
127451         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127453 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127455         * config/srclist.txt: Get the following files from gettext-runtime/intl
127456         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127457         ref-del.sin.  From Bruno Haible.
127458         * config/srclist-update (fixfile): Change grep pattern again, since the
127459         previous fix didn't work (there was another trailing $).  Use
127460         '[$]' to escape the $s.
127462 2003-07-15  Karl Berry  <karl@gnu.org>
127464         * lib/vasnprintf.c: update from gettext.
127466 2003-07-15  Karl Berry  <karl@gnu.org>
127468         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127469         gets expanded when surrounded by '$'.
127471 2003-07-15  Jim Meyering  <jim@meyering.net>
127473         * modules/save-cwd: Don't depend on error.  From Derek Price.
127475 2003-07-15  Jim Meyering  <jim@meyering.net>
127477         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127479 2003-07-14  Simon Josefsson  <jas@extundo.com>
127481         * modules/mempcpy: New file.
127482         * MODULES.html.sh (func_all_modules): Add mempcpy.
127484 2003-07-14  Simon Josefsson  <jas@extundo.com>
127486         * m4/mempcpy.m4: New file.
127488 2003-07-14  Simon Josefsson  <jas@extundo.com>
127490         * lib/mempcpy.h: New file.
127491         * lib/mempcpy.c: New file.
127493 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127495         * modules/getdate, modules/posixtm: Depend on mktime.
127497 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127499         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127500         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127501         unicodeio.c, unicodeio.h, unlocked-io.h:
127502         Switch from LGPL to GPL.
127504 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127506         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127507         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127508         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127509         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127510         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127511         updated automatically by ../config/srclist-update.  This changes
127512         their license from LPGL to GPL.
127514 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127516         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127517         assumed to refer to the root of the most recent stable gettext version.
127518         * config/srclistvars.sh: Add defaults for eggert.
127519         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127520         Match "This program" as well as "The program".  This is needed
127521         for gettext.
127523 2003-07-14  Jim Meyering  <jim@meyering.net>
127525         Don't emit diagnostics.  Let callers do that.
127526         * lib/save-cwd.c: Don't include "error.h".
127527         (save_cwd): Don't call error.  Ensure that errno is valid
127528         when returning nonzero.
127530         * lib/save-cwd.h (restore_cwd): Update prototype.
127531         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127532         Simplify.  Don't call error upon failure.  Let callers do that.
127533         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127534         when auditing is enabled.  But don't bother updating the #if.
127536 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127538         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127539         it breaks C++ compilation.
127540         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127542 2003-07-10  Simon Josefsson  <jas@extundo.com>
127544         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127546 2003-07-10  Jim Meyering  <jim@meyering.net>
127548         * m4/clock_time.m4: Remove trailing blank.
127549         * m4/intmax_t.m4: Likewise.
127551 2003-07-10  Jim Meyering  <jim@meyering.net>
127553         * lib/vasnprintf.c: Remove trailing blanks.
127554         Make cpp indentation consistent.
127556 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127558         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127559         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127560         Switch from LGPL to GPL.
127562 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127564         * config/srclist.txt: Sort sublists.  Add
127565         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127566         that differ from gnulib for one reason or another; we'd like this list
127567         to be smaller but for now let's document what we have.
127569 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127571         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127572         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127573         and sweeter "eval x=$x".
127574         * config/srclist.txt: Get lib/argp* from glibc.
127576 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127578         * lib/mktime.c: Fix some boundary cases and remove need for floating
127579         point.
127581         Issue a compile-time diagnostic if time_t is floating point, or if
127582         two's complement arithmetic is not in effect, or if arithmetic
127583         right shift does not propagate the sign.  These assumptions were
127584         all in the original code but they weren't checked.
127586         (TIME_T_MIDPOINT, verify): New macros.
127587         (__isleap): Remove; it has integer overflow problems.
127588         (leapyear): New function, without those problems.
127589         (ydhms_tm_diff): Remove; splitting into two parts.
127590         (ydhms_diff): New function, containing the arithmetic part of
127591         the old ydhms_tm_diff function.  Issue a compile-time
127592         diagnostic if we are not using C99 integer division.
127593         Avoid casts when possible.
127594         (guess_time_tm): New function, containing the checking part of
127595         the old ydhms_tm_diff function.  Return the new value, rather than
127596         the difference between it and the old.  Accept a new argument T
127597         so that *T specifies the old value.  Check for overflow in the result.
127599         (__mktime_internal): Use a time_t offset, not a long int offset.
127600         This undoes the 2003-06-04 change, which is no longer needed now
127601         that we have better overflow checking.
127602         (localtime_offset): Likewise.
127604         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127605         and long are 64-bit but int is only 32-bit.
127606         (ydhms_diff): Use long int to store year1 and yday1.
127607         Issue a compile-time diagnostic if long int is not wide enough.
127609         (__mktime_internal): Use long int to store adjusted year and yday.
127610         Use plain C rather than preprocessor commands, if that doesn't
127611         affect efficiency.
127612         Check for overflow (and try to repair) after each probe
127613         rather than checking only at the very end.  This avoids some bugs
127614         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127615         does not equal GMT offset at maximum time).
127616         Use integer to check for overflow rather than floating point; this
127617         is more portable to non-IEEE hosts, and is a tad faster.
127618         When we detect that we are oscillating between two values,
127619         don't check whether tm_isdst has the requested value, since
127620         we already know the answer.  When tm_isdst has the wrong value,
127621         use a different heuristic to find the right one, based on the
127622         extreme values actually observed in practice in tz2003a,
127623         rather than the (overly optimistic) "previous 3 calendar quarters".
127625         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127626         "T const" to accommodate glibc style.
127627         (check_result): Use less-confusing report format.  "long" -> "long int.
127628         (main): Likewise.
127629         Don't loop if the iteration overflows time_t.
127630         Allow a negative step in the iteration.
127632 2003-07-06  Karl Berry  <karl@gnu.org>
127634         * config/depcomp: update from automake.
127635         * config/config.sub: update from prep.
127637 2003-07-03  Karl Berry  <karl@gnu.org>
127639         * config/config.guess: update from prep.
127641 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127643         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127644         xreadlink.c now includes it unconditionally.
127646 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127648         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127649         having it depend on HAVE_SYS_TYPES_H.
127651 2003-07-01  Bruno Haible  <bruno@clisp.org>
127653         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127654         <sys/types.h> should be sufficient.
127655         Reported by Paul Eggert.
127657 2003-06-26  Karl Berry  <karl@gnu.org>
127659         * config/depcomp: update from automake.
127661 2003-06-26  Bruno Haible  <bruno@clisp.org>
127663         * modules/human: Depend on module stdbool.
127665 2003-06-25  Bruno Haible  <bruno@clisp.org>
127667         * modules/readlink: New file.
127668         * modules/xreadlink: Depend on it.
127669         * MODULES.html.sh (func_all_modules): Add readlink.
127671 2003-06-25  Bruno Haible  <bruno@clisp.org>
127673         * m4/readlink.m4: New file.
127675 2003-06-25  Bruno Haible  <bruno@clisp.org>
127677         * lib/readlink.c: New file.
127679 2003-06-22  Karl Berry  <karl@gnu.org>
127681         * config/srclist.txt: update mkinstalldirs from automake.
127682         * config/mkinstalldirs: update.
127684 2003-06-22  Bruno Haible  <bruno@clisp.org>
127686         Portability to mingw32.
127687         * m4/ssize_t.m4: New file, from GNU gettext.
127688         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127689         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127691 2003-06-22  Bruno Haible  <bruno@clisp.org>
127693         * modules/safe-read: Add m4/ssize_t.m4.
127694         * modules/xreadlink: Add m4/ssize_t.m4.
127696 2003-06-20  Bruno Haible  <bruno@clisp.org>
127698         Assume C89, so PARAMS isn't needed.
127699         * lib/unicodeio.h (PARAMS): Remove.
127700         * lib/unicodeio.c: Don't use PARAMS.
127702 2003-06-18  Karl Berry  <karl@gnu.org>
127704         * config/config.{guess,sub}: update from prep.
127706 2003-06-18  Jim Meyering  <jim@meyering.net>
127708         Merge changes from coreutils.
127709         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127710         Remove explicit declarations of xmalloc and realloc.
127711         Include xalloc.h.
127712         (read_utmp): Remove anachronistic cast of xmalloc.
127714 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127716         Assume C89, so PARAMS isn't needed.
127717         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127718         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127719         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127720         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127721         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127722         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127723         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127724         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127725         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127726         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127727         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127728         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127729         no longer needed. Anyway, config.h should always be included before any
127730         other file.
127732 2003-06-11  Simon Josefsson  <jas@extundo.com>
127734         * modules/sysexits: New file.
127735         * MODULES.html.sh (func_all_modules): Add sysexits.
127737 2003-06-11  Simon Josefsson  <jas@extundo.com>
127739         * lib/sysexit_.h: New file.
127741 2003-06-11  Derek Price  <derek@ximbiot.com>
127743         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127744         necessary.
127746 2003-06-11  Bruno Haible  <bruno@clisp.org>
127748         * m4/sysexits.m4: New file.
127750 2003-06-10  Simon Josefsson  <jas@extundo.com>
127752         * lib/argp.h: New file, from glibc.
127753         * lib/argp-ba.c: New file, from glibc.
127754         * lib/argp-eexst.c: New file, from glibc.
127755         * lib/argp-fmtstream.c: New file, from glibc.
127756         * lib/argp-fmtstream.h: New file, from glibc.
127757         * lib/argp-fs-xinl.c: New file, from glibc.
127758         * lib/argp-help.c: New file, from glibc.
127759         * lib/argp-namefrob.h: New file, from glibc.
127760         * lib/argp-parse.c: New file, from glibc.
127761         * lib/argp-pv.c: New file, from glibc.
127762         * lib/argp-pvh.c: New file, from glibc.
127763         * lib/argp-xinl.c: New file, from glibc.
127765 2003-06-10  Simon Josefsson  <jas@extundo.com>
127767         * modules/strchrnul: New file.
127769 2003-06-10  Simon Josefsson  <jas@extundo.com>
127771         * modules/argp: New file.
127773 2003-06-10  Simon Josefsson  <jas@extundo.com>
127775         * m4/strchrnul.m4: New file.
127777 2003-06-10  Simon Josefsson  <jas@extundo.com>
127779         * lib/strchrnul.h: New file.
127780         * lib/strchrnul.c: New file.
127782 2003-06-10  Bruno Haible  <bruno@clisp.org>
127784         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127786 2003-06-07  Karl Berry  <karl@gnu.org>
127788         * config/config.{guess,sub}: update from prep.
127790 2003-06-07  Jim Meyering  <jim@meyering.net>
127792         * modules/strtod: Use $(...) notation, not @...@ for
127793         AC_REPLACE'd variables.
127794         * modules/localcharset: Likewise.
127796 2003-06-07  Jim Meyering  <jim@meyering.net>
127798         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127799         in place of my name in the copyright comment.
127800         Remove definition and uses of __P.
127802         From coreutils.
127803         * lib/stat.c: Don't declare xmalloc explicitly.
127804         Instead, include "xalloc.h".
127805         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127806         xrealloc, and xcalloc return values.
127807         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127808         Improve comment.
127809         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127811 2003-06-07  Bruno Haible  <bruno@clisp.org>
127813         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127814         avoid AC_CONFIG_LINKS.
127815         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127816         fnmatch.h, to avoid AC_CONFIG_LINKS.
127817         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127819 2003-06-07  Bruno Haible  <bruno@clisp.org>
127821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127822         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127823         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127824         directory.
127825         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127826         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127827         directory.
127829 2003-06-06  Jim Meyering  <jim@meyering.net>
127831         Merge from coreutils.
127832         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127833         Consolidate declarations and initializations of *_base* locals.
127835         Merge from coreutils.
127836         This avoids a core dump on systems without GNU putenv,
127837         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127838         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127839         (unsetenv): New static function, from GNU libc.
127840         (rpl_putenv): Use it.
127842         * lib/modechange.c: Remove trailing blanks.
127844         Merge from coreutils.
127845         * lib/fsusage.c: Remove declaration of statfs.
127846         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127848         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127850 2003-06-06  Jim Meyering  <jim@meyering.net>
127852         * lib/stdbool_.h: Renamed from stdbool.h.in.
127854 2003-06-06  Jim Meyering  <jim@meyering.net>
127855             Bruno Haible  <bruno@clisp.org>
127857         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127858         Adjust Makefile.am snippet not to redirect directly to target.
127859         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127861 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127863         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127864         mismatch, look in future quarters as well as past.  This fixes a
127865         bug when processing fall-backwards gaps immediately after a long
127866         period of daylight-saving time.
127868         * lib/mktime.c: Assume freestanding C89 or better.
127869         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127870         (__P): Remove; not used.
127871         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127872         (mktime, not_equal_tm, print_tm, check_result,
127873         main): Use prototypes.  Use const * where appropriate.
127874         (main): Fix typo in testing code that uncovered by above changes.
127875         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127877 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127879         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127880         locale.h, localeconv.  This merges changes from coreutils.
127882         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127883         It can be removed after the next Autoconf is released.
127884         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127885         needed.
127887 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127889         * lib/mktime.c: Fix Debian bug 177940
127890         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127891         (localtime_offset): Now long int, not time_t, because we want it
127892         to be guaranteed to be signed.  All uses changed.
127893         (__mktime_internal): If overflow would occur when adding offset,
127894         don't add it.
127896         Merge 'human' changes from coreutils.  Rewrite to support
127897         locale-specific notations like thousands separators.
127898         * lib/human.c: Simplify authorship notice.
127899         Include human.h immediately after config.h.
127900         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127901         <limits.h>: Do not include, since human.h does.
127902         (SIZE_MAX, UINTMAX_MAX): New macros.
127903         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127904         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127905         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127906         (power_letter): Renamed from suffixes.
127907         (generate_suffix_backwards): Remove.
127908         (adjust_value): Now takes int style (because of human.h changes)
127909         and long double value (for greater precision on some platforms).
127910         (group_number): New function.
127911         (human_readable): Use it.  Use integer options, not enum.
127912         Put the options before the sizes in the arg list.
127913         Support all the new options.
127914         The old human_readable function has been removed;
127915         use inttostr.h instead.
127916         (human_readable, default_block_size, humblock):
127917         Use uintmax_t, not int, for block sizes.
127918         (human_readable_inexact, block_size_types): Remove.
127919         (block_size_opts): New constant.
127920         (human_options): Renamed from human_block_size, with new signature
127921         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127922         * lib/human.h: Add copyright and authorship notice.
127923         Include <limits.h> and <stdbool.h> unconditionally.
127924         (PARAMS): Remove.  All uses removed.
127925         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127926         (enum human_inexact_style): Remove tag; now a nameless enum.
127927         (human_floor, human_ceiling, human_round_to_even): Now have
127928         values 2, 0, 1 rather than -1, 1, 0.
127929         (human_group_digits, human_suppress_point_zero, human_autoscale,
127930         human_base_1024, human_SI, human_B): New constants.
127931         (human_readable_inexact, human_block_size): Remove.
127932         (human_readable): Size args are now uintmax_t, not int.
127933         (human_options): New decl.
127935         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127936         unnecessary now that we assume C89 or better.  This change
127937         imported from coreutils.
127939         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127940         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127941         in the 2003-05-30 sync from glibc.
127943         .h files should stand alone, but we shouldn't include <sys/types.h>
127944         if we can get away with just <stddef.h>.
127946         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127947         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127948         rather than <sys/types.h>, as we merely need size_t.
127949         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127950         to get size_t.
127951         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127952         Include <stdio.h>, to get FILE.
127953         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127954         memcasecmp.h has included <stddef.h> and all we need is size_t.
127955         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127956         our interface, instead of including <sys/types.h>
127958 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127960         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127961         now, as glibc mktime is buggy on non-glibc systems.
127963 2003-06-03  Karl Berry  <karl@gnu.org>
127965         * config/config.sub: update from prep.
127967 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127969         [from coreutils]
127970         Fix some minor time-related bugs with POSIX time arguments.
127971         Some valid time stamps were being rejected (notably -1, and
127972         time stamps before 1900 on 64-bit hosts).  And some invalid
127973         time stamps were being accepted, e.g. September 31.
127975         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127976         that we can return (time_t) -1 successfully.
127977         * lib/posixtm.c: Likewise.
127978         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127979         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127980         (t): Remove static var.
127981         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127982         of static var.  All uses changed.
127983         (year): Do not reject years before 1900; they can occur with
127984         64-bit time_t.
127985         (posix_time_parse): Do not check for out-of-range components;
127986         that is now the caller's responsibility, since our checks were
127987         only approximations.
127988         (posixtime): Use mktime to check for out-of-range components,
127989         since it knows them exactly.
127990         If mktime returns (time_t) -1, check whether an error actually occurred
127991         by invoking localtime on -1.
127992         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127993         posixtime failures better.
127994         Improve the test data (in comments only).
127996 2003-06-02  Karl Berry  <karl@gnu.org>
127998         * config/mkinstalldirs (version): new variable.
127999         (--version): new option.
128000         (usage): improve message.
128002 2003-05-30  Karl Berry  <karl@gnu.org>
128004         * lib/mktime.c: update from libc.
128006 2003-05-30  Bruno Haible  <bruno@clisp.org>
128008         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
128009         * config/config.rpath: Upgrade to gettext-0.12.1.
128011 2003-05-30  Bruno Haible  <bruno@clisp.org>
128013         * m4/gettext.m4: Upgrade to gettext-0.12.1.
128014         * m4/nls.m4: New file, from gettext-0.12.1.
128015         * m4/po.m4: New file, from gettext-0.12.1.
128016         * m4/progtest.m4: Upgrade to gettext-0.12.1.
128018 2003-05-30  Bruno Haible  <bruno@clisp.org>
128020         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
128021         * lib/localcharset.h: Likewise.
128022         * lib/localcharset.c: Likewise.
128024 2003-05-29  Karl Berry  <karl@gnu.org>
128026         * config/config.rpath: update from gettext.
128028 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128030         Assume the headers required for C89 freestanding compilers.
128031         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
128032         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
128033         * m4/human.m4 (gl_HUMAN): Likewise.
128034         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
128035         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
128036         * m4/userspec.m4 (gl_USERSPEC): Likewise.
128037         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
128038         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
128039         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
128041 2003-05-28  Paul Eggert  <eggert@twinsun.com>
128043         Assume the headers required for C89 freestanding compilers.
128044         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
128045         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
128046         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
128047         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
128048         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
128049         define, since <limits.h> is guaranteed to do that.
128050         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
128051         * lib/exclude.c: Include <stdbool.h> unconditionally.
128052         * lib/tempname.c: Include <stddef.h> unconditionally.
128053         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
128054         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
128055         <stddef.h> does that.
128056         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
128057         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
128058         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
128059         needed.
128060         * lib/xstrtol.c: Likewise.
128061         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
128062         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
128064         * lib/addext.c (addext): Use assignment rather than cast, to avoid
128065         warnings on some platforms.
128067         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128068         arbitrarily.
128070 2003-05-26  Jim Meyering  <jim@meyering.net>
128072         Merge in a change from coreutils:
128073         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
128074         that is guaranteed to be `no'.  Use `no_such_member' to indicate
128075         that condition, rather than `-1' which is slightly misleading.
128076         Change the name of the cache variable to have the gl_ prefix.
128077         Prompted by a patch from Richard Dawe for DJGPP.
128079 2003-05-24  Karl Berry  <karl@gnu.org>
128081         * config/config.guess: update from prep.
128083 2003-05-22  Karl Berry  <karl@gnu.org>
128085         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
128087 2003-05-20  Karl Berry  <karl@gnu.org>
128089         * config/config.guess: update from prep.
128091 2003-05-18  Karl Berry  <karl@gnu.org>
128093         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
128094         might actually be set by the user.
128096         * config/depcomp, install-sh, mdate-sh: update from automake.
128098 2003-05-17  Bruno Haible  <bruno@clisp.org>
128100         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
128101         invalid expansion for AC_EGREP_CPP.
128102         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
128103         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
128104         Suggested by Akim Demaille <akim@epita.fr> in
128105         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
128107 2003-05-12  Jim Meyering  <jim@meyering.net>
128109         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
128110         the space-padded-by-default conversion specifiers, %e, %k, %l.
128112 2003-05-12  Bruno Haible  <bruno@clisp.org>
128114         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
128115         the string is longer than 4 KB.
128117 2003-05-11  Karl Berry  <karl@gnu.org>
128119         * config/config.{guess,sub}: update from prep.
128121 2003-05-09  Bruno Haible  <bruno@clisp.org>
128123         * modules/error: Add m4/strerror_r.m4 to file list.
128125 2003-05-03  Bruno Haible  <bruno@clisp.org>
128127         Upgrade to Unicode-4.0.
128128         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
128129         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
128130         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
128131         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
128132         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
128133         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
128134         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
128135         Change width of U+E0100..U+E01EF from 1 to 0.
128137 2003-04-25  Jim Meyering  <jim@meyering.net>
128139         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
128140         of type size_t, not int.
128142 2003-04-25  Bruno Haible  <bruno@clisp.org>
128144         * lib/copy-file.c: Include <stddef.h>, for size_t.
128146 2003-04-21  Paul Eggert  <eggert@twinsun.com>
128148         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
128149         code which expansion is under static control.  Patch imported from
128150         Akim Demaille's patch to Bison; see
128151         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
128153 2003-04-14  Bruno Haible  <bruno@clisp.org>
128155         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
128157 2003-04-11  Jim Meyering  <jim@meyering.net>
128159         Merge changes from Coreutils.
128161         2003-03-22  Jim Meyering  <jim@meyering.net>
128163         * lib/strftime.c (widen): Cast alloca return value to proper type.
128165         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
128167         From GNU libc.
128168         * lib/strftime.c (my_strftime): Handle very large width
128169         specifications for numeric values correctly.  Improve checks for
128170         overflow.
128172         2003-01-19  Jim Meyering  <jim@meyering.net>
128174         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
128175         definitions.
128176         (nl_get_alt_digit) [! defined my_strftime]: Define.
128177         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
128178         _nl_get_alt_digit and _nl_get_walt_digit.
128180         * lib/strftime.c (my_strftime): Merge in locale-related changes from
128181         libc. These changes have no effect outside of _LIBC.
128183 2003-04-10  Bruno Haible  <bruno@clisp.org>
128185         * modules/findprog: New file.
128186         * MODULES.html.sh (func_all_modules): Add it.
128188 2003-04-10  Bruno Haible  <bruno@clisp.org>
128190         * m4/findprog.m4: New file.
128191         * m4/eaccess.m4: New file.
128193 2003-04-10  Bruno Haible  <bruno@clisp.org>
128195         * lib/findprog.h: New file, from GNU gettext.
128196         * lib/findprog.c: New file, from GNU gettext.
128198 2003-04-05  Jim Meyering  <jim@meyering.net>
128200         Merge changes from Coreutils.
128202         * lib/exclude.h (PARAMS): Remove definition and uses.
128203         * lib/exclude.c: Remove uses of `PARAMS'.
128205         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
128206         Add test-cases for DOS filenames. Declare program_name.
128207         (main): Set up program_name.  Patch by Rich Dawe.
128209         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128210         error from mntctl.
128211         Use mntctl's return value to drive the entry-processing loop, since
128212         we can't rely on the value of the vmt_length member in the last
128213         entry.  On some systems doing so could result in exhausting
128214         virtual memory.  Based in part on a patch from Mike Jetzer.
128216 2003-04-04  Bruno Haible  <bruno@clisp.org>
128218         * modules/linebreak: New file.
128219         * MODULES.html.sh (func_all_modules): Add it.
128221 2003-04-04  Bruno Haible  <bruno@clisp.org>
128223         * m4/linebreak.m4: New file.
128225 2003-04-04  Bruno Haible  <bruno@clisp.org>
128227         * lib/linebreak.h: New file, from GNU gettext.
128228         * lib/linebreak.c: New file, from GNU gettext with slight
128229         modifications.
128230         * lib/lbrkprop.h: New file, from GNU gettext.
128232 2003-04-03  Bruno Haible  <bruno@clisp.org>
128234         * modules/utf8-ucs4: New file.
128235         * modules/utf16-ucs4: New file.
128236         * modules/ucs4-utf8: New file.
128237         * modules/ucs4-utf16: New file.
128238         * MODULES.html.sh (func_all_modules): Add them.
128240 2003-04-03  Bruno Haible  <bruno@clisp.org>
128242         * m4/utf-ucs4.m4: New file.
128243         * m4/ucs4-utf.m4: New file.
128245 2003-04-03  Bruno Haible  <bruno@clisp.org>
128247         * lib/utf8-ucs4.h: New file, from GNU gettext.
128248         * lib/utf16-ucs4.h: New file, from GNU gettext.
128249         * lib/ucs4-utf8.h: New file, from GNU gettext.
128250         * lib/ucs4-utf16.h: New file, from GNU gettext.
128252 2003-04-02  Bruno Haible  <bruno@clisp.org>
128254         * modules/binary-io: New file.
128255         * MODULES.html.sh (func_all_modules): Add it.
128257 2003-04-02  Bruno Haible  <bruno@clisp.org>
128259         * lib/binary-io.h: New file, from GNU gettext.
128261 2003-04-01  Bruno Haible  <bruno@clisp.org>
128263         * modules/pathname: New file.
128264         * MODULES.html.sh (func_all_modules): Add it.
128266 2003-04-01  Bruno Haible  <bruno@clisp.org>
128268         * lib/pathname.h: New file, from GNU gettext.
128269         * lib/concatpath.c: New file, from GNU gettext.
128271 2003-03-30  Bruno Haible  <bruno@clisp.org>
128273         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128275 2003-03-30  Bruno Haible  <bruno@clisp.org>
128277         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128278         function chown() doesn't exist.
128280 2003-03-28  Bruno Haible  <bruno@clisp.org>
128282         * modules/copy-file: New file.
128283         * MODULES.html.sh (func_all_modules): Add it.
128285 2003-03-28  Bruno Haible  <bruno@clisp.org>
128287         * m4/copy-file.m4: New file.
128289 2003-03-28  Bruno Haible  <bruno@clisp.org>
128291         * lib/copy-file.h: New file, from GNU gettext.
128292         * lib/copy-file.c: New file, from GNU gettext.
128294 2003-03-18  Jim Meyering  <jim@meyering.net>
128296         * lib/quote.c (quote_n): Fix typo in comment.
128298 2003-03-18  Bruno Haible  <bruno@clisp.org>
128300         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128301         checking.
128302         * m4/onceonly_2_57.m4: Likewise.
128304 2003-03-17  Bruno Haible  <bruno@clisp.org>
128306         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128307         (m4_quote): Remove macro.
128308         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128310 2003-03-14  Jim Meyering  <jim@meyering.net>
128312         Merge changes from Coreutils.
128313         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128314         to be const, in order to avoid warnings.
128315         (obstack_room): Likewise.
128316         (obstack_empty_p): Likewise.
128318 2003-03-14  Bruno Haible  <bruno@clisp.org>
128320         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128321         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128323 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128325         Merge changes from Bison.
128326         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128327         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128328         when compiling Bison 1.875's `bitset bset = obstack_alloc
128329         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128330         * lib/hash.c: Include <stdbool.h> unconditionally.
128332 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128334         * m4/onceonly.m4 (m4_quote): New macro.
128335         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128336         Quote AC_FOREACH variable-expansions properly.
128338 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128340         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128342 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128344         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128345         Reported by Bruce Becker; see:
128346         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128348 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128349             Bruno Haible  <bruno@clisp.org>
128351         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128352         Reported by John Hughes, see
128353         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128355 2003-02-20  Bruno Haible  <bruno@clisp.org>
128357         * MODULES.html.sh (func_all_modules): Add poll.
128359 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128361         * modules/poll: New file.
128363 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128365         * lib/poll_.h: New file.
128366         * lib/poll.c: New file.
128368 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128370         * m4/poll.m4: New file.
128372 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128374         * modules/mathl: New file.
128376 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128378         * lib/mathl.h: New file.
128379         * lib/acosl.c: New file.
128380         * lib/asinl.c: New file.
128381         * lib/atanl.c: New file.
128382         * lib/ceill.c: New file.
128383         * lib/cosl.c: New file.
128384         * lib/expl.c: New file.
128385         * lib/floorl.c: New file.
128386         * lib/frexpl.c: New file.
128387         * lib/ldexpl.c: New file.
128388         * lib/logl.c: New file.
128389         * lib/sincosl.c: New file.
128390         * lib/sinl.c: New file.
128391         * lib/sqrtl.c: New file.
128392         * lib/tanl.c: New file.
128393         * lib/trigl.c: New file.
128394         * lib/trigl.h: New file.
128396 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128398         * m4/mathl.m4: New file.
128400 2003-02-18  Bruno Haible  <bruno@clisp.org>
128402         * MODULES.html.sh (func_all_modules): Add mathl.
128404 2003-02-17  Bruno Haible  <bruno@clisp.org>
128406         * modules/mkdtemp: New module.
128407         * MODULES.html.sh (func_all_modules): Add it.
128409 2003-02-17  Bruno Haible  <bruno@clisp.org>
128411         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128413 2003-02-17  Bruno Haible  <bruno@clisp.org>
128415         * lib/mkdtemp.h: New file, from GNU gettext.
128416         * lib/mkdtemp.c: New file, from GNU gettext.
128418 2003-02-02  Jim Meyering  <jim@meyering.net>
128420         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128421         e.g. glibc-2.2.93.
128423 2003-01-31  Bruno Haible  <bruno@clisp.org>
128425         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128426         'rpl_rename'.
128427         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128428         'rpl_strnlen'.
128429         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128430         'rpl_strtod'.
128431         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128432         'rpl_utime'.
128434 2003-01-31  Bruno Haible  <bruno@clisp.org>
128436         * lib/rename.c: #undef rename before defining rpl_rename.
128437         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128439 2003-01-30  Bruno Haible  <bruno@clisp.org>
128441         * modules/vasnprintf, modules/vasprintf: New modules.
128442         * MODULES.html.sh (func_all_modules): Add them.
128444 2003-01-30  Bruno Haible  <bruno@clisp.org>
128446         * m4/signed.m4: New file, from GNU gettext.
128447         * m4/longdouble.m4: New file, from GNU gettext.
128448         * m4/wchar_t.m4: New file, from GNU gettext.
128449         * m4/wint_t.m4: New file, from GNU gettext.
128450         * m4/vasnprintf.m4: New file.
128451         * m4/vasprintf.m4: New file.
128453 2003-01-30  Bruno Haible  <bruno@clisp.org>
128455         * lib/printf-args.h: New file, from GNU gettext.
128456         * lib/printf-args.c: New file, from GNU gettext.
128457         * lib/printf-parse.h: New file, from GNU gettext.
128458         * lib/printf-parse.c: New file, from GNU gettext.
128459         * lib/vasnprintf.h: New file, from GNU gettext.
128460         * lib/vasnprintf.c: New file, from GNU gettext.
128461         * lib/asnprintf.c: New file, from GNU gettext.
128462         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128463         * lib/vasprintf.c: New file, from GNU gettext.
128464         * lib/asprintf.c: New file, from GNU gettext.
128466 2003-01-29  Bruno Haible  <bruno@clisp.org>
128468         * modules/stpncpy: New module.
128469         * MODULES.html.sh (func_all_modules): Add it.
128471 2003-01-29  Bruno Haible  <bruno@clisp.org>
128473         * m4/stpncpy.m4: New file.
128475 2003-01-29  Bruno Haible  <bruno@clisp.org>
128477         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128478         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128480 2003-01-28  Bruno Haible  <bruno@clisp.org>
128482         * modules/c-ctype: New module.
128483         * MODULES.html.sh (func_all_modules): Add it.
128485 2003-01-28  Bruno Haible  <bruno@clisp.org>
128487         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128488         Paul Eggert.
128489         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128490         Paul Eggert.
128492 2003-01-27  Bruno Haible  <bruno@clisp.org>
128494         * modules/xsetenv: New module.
128495         * MODULES.html.sh (func_all_modules): Add it.
128497 2003-01-27  Bruno Haible  <bruno@clisp.org>
128499         * lib/xsetenv.h: New file, from GNU gettext.
128500         * lib/xsetenv.c: New file, from GNU gettext.
128502 2003-01-23  Jim Meyering  <jim@meyering.net>
128504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128505         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128507 2003-01-23  Bruno Haible  <bruno@clisp.org>
128509         * modules/minmax: New module.
128510         * MODULES.html.sh (func_all_modules): Add it.
128512 2003-01-23  Bruno Haible  <bruno@clisp.org>
128514         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128515         Eggert.
128517 2003-01-22  Bruno Haible  <bruno@clisp.org>
128519         * modules/exit: New module.
128520         * MODULES.html.sh (func_all_modules): Add it.
128522 2003-01-22  Bruno Haible  <bruno@clisp.org>
128524         * lib/exit.h: New file, from GNU gettext.
128526 2003-01-19  Bruno Haible  <bruno@clisp.org>
128528         * gnulib-tool: Recognize option --extract-maintainer.
128529         (func_get_maintainer): New function.
128530         * modules/*: Add Maintainer entry.
128532 2003-01-16  Jim Meyering  <jim@meyering.net>
128534         * m4/regex.m4: The `regex' struct is both input and output.
128535         Initialize it before each use.  Patch by Tim Waugh.
128537 2003-01-16  Bruno Haible  <bruno@clisp.org>
128539         * MODULES.html.sh: Add a table of contents. Add the module name as
128540         leftmost column. Add hyperlinks.
128542 2003-01-15  Bruno Haible  <bruno@clisp.org>
128544         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128546 2003-01-15  Bruno Haible  <bruno@clisp.org>
128548         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128549         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128550         suffix.
128552 2003-01-15  Bruno Haible  <bruno@clisp.org>
128554         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128556 2003-01-15  Bruno Haible  <bruno@clisp.org>
128558         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128559         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128561 2003-01-14  Jim Meyering  <jim@meyering.net>
128563         * lib/same.c (same_name): Tweak a comment.
128565 2003-01-14  Bruno Haible  <bruno@clisp.org>
128567         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128568         when a string comparison is sufficient.
128570 2003-01-14  Bruno Haible  <bruno@clisp.org>
128572         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128573         'unsigned int'.
128575 2003-01-14  Bruno Haible  <bruno@clisp.org>
128577         * lib/hash-pjw.c: Add comment about low quality of this function.
128579 2003-01-13  Bruno Haible  <bruno@clisp.org>
128581         * modules/stpcpy: Distribute lib/stpcpy.h.
128582         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128584 2003-01-13  Bruno Haible  <bruno@clisp.org>
128586         * modules/*: Add a description.
128587         * modules/strpbrk: Fix Makefile.am snippet.
128588         * modules/strtoimax: Fix dependencies.
128589         * modules/strtoumax: Likewise.
128591 2003-01-13  Bruno Haible  <bruno@clisp.org>
128593         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128594         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128595         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128597 2003-01-13  Bruno Haible  <bruno@clisp.org>
128599         * gnulib-tool (func_create_testdir): Store config/* files in the main
128600         directory.
128601         * config.rpath: Move to ...
128602         * config/config.rpath: ... here.
128603         * modules/gettext: Contains config/config.rpath, not config.rpath.
128604         * modules/iconv: Likewise.
128606 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128608         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128609         to avoid collisions with libcurses and libreadline.
128611         * m4/getstr.m4: Remove.
128612         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128614 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128616         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128617         to avoid collisions with libcurses and libreadline.
128619         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128620         * lib/getstr.h, getstr.c: Remove.
128621         * lib/getline.c: Include "getline.h", to check interface.
128622         Move body of old getstr.c here: this defines MIN_CHUNK and
128623         declares getdelim2, which is renamed from getstr.
128624         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128626         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128627         All uses changed.
128628         * lib/linebuffer.h: Likewise.
128629         (readline): Remove backward-compatibility macro.
128631 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128633         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128634         to avoid collisions with libcurses and libreadline.
128635         * getstr: Remove.
128636         * MODULES.html.sh: Remove getstr.
128637         * modules/getline: Depend on unlocked-io, not getstr.
128639 2003-01-12  Jim Meyering  <jim@meyering.net>
128641         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128643 2003-01-10  Bruno Haible  <bruno@clisp.org>
128645         * modules/alloca: Change Makefile.am requirements. Simplify Include
128646         requirements. Add lib/alloca_.h to file list.
128648 2003-01-10  Bruno Haible  <bruno@clisp.org>
128650         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128652 2003-01-10  Bruno Haible  <bruno@clisp.org>
128654         * lib/alloca_.h: New file.
128655         * lib/getdate.y: Unconditionally include alloca.h.
128656         * lib/makepath.c: Likewise.
128657         * lib/setenv.c: Likewise.
128658         * lib/userspec.c: Likewise.
128660 2003-01-09  Karl Berry  <karl@gnu.org>
128662         * MODULES.html.sh: include `dirname $0` in PATH, to find
128663         gnulib-tool.
128665 2003-01-09  Bruno Haible  <bruno@clisp.org>
128667         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128668         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128670 2003-01-09  Bruno Haible  <bruno@clisp.org>
128672         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128674 2003-01-09  Bruno Haible  <bruno@clisp.org>
128676         * lib/stdbool.h.in: New file.
128678 2003-01-09  Bruno Haible  <bruno@clisp.org>
128680         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128681         * MODULES.html.sh: Likewise.
128683 2003-01-08  Jim Meyering  <jim@meyering.net>
128685         * lib/full-write.c: Undefine and define-away `const' after inclusion
128686         of errno.h, not before.  Suggestion from Bruno Haible.
128688 2003-01-08  Bruno Haible  <bruno@clisp.org>
128690         * modules/full-read: Depend on full-write.
128692 2003-01-08  Bruno Haible  <bruno@clisp.org>
128694         * lib/safe-read.c: Include specification header first, to ensure its
128695         selfcontainedness.
128696         * lib/full-write.c: Likewise.
128698 2003-01-07  Jim Meyering  <jim@meyering.net>
128700         * lib/full-write.c: Rework so that it may serve to define full_read,
128701         too.
128702         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128704 2003-01-07  Bruno Haible  <bruno@clisp.org>
128706         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128707         <inttypes.h>.
128708         * lib/xstrtol.h: Likewise.
128709         * lib/xstrtoimax.c: Likewise.
128710         * lib/xstrtoumax.c: Likewise.
128711         * lib/human.h: Likewise.
128713         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128714         on systems that have <inttypes.h> but not <stdint.h>.
128716 2003-01-07  Bruno Haible  <bruno@clisp.org>
128718         * MODULES.html.sh: Add copyright notice.
128719         (missed_files): Omit CVS directory entries.
128720         (func_module): Make it work with sed-3.02.
128721         * MODULES.txt: Remove file.
128723 2003-01-06  Jim Meyering  <jim@meyering.net>
128725         * lib/version-etc.c: Update year in translatable copyright string.
128727 2003-01-03  Karl Berry  <karl@gnu.org>
128729         * config/config.{guess,sub}: update from prep.
128731 2003-01-02  Karl Berry  <karl@gnu.org>
128733         * doc/COPYING.DOC: belatedly updated to 1.2.
128735 2003-01-01  Karl Berry  <karl@gnu.org>
128737         * gnulib-tool (func_verify_module): report module name $module in
128738         error message, not $1.
128739         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128740         be created, only if it doesn't exist.
128741         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128743 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128745         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128747 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128749         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128750         memcmp if strcoll doesn't work.
128752 2002-12-31  Bruno Haible  <bruno@clisp.org>
128754         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128755         nonempty.
128757 2002-12-31  Bruno Haible  <bruno@clisp.org>
128759         * lib/memcoll.c (STRCOLL): New macro.
128760         (memcoll): Use it.
128762 2002-12-31  Bruno Haible  <bruno@clisp.org>
128764         * lib/localcharset.h: New file.
128765         * lib/localcharset.c: Include it.
128766         * lib/unicodeio.c: Likewise.
128768 2002-12-31  Bruno Haible  <bruno@clisp.org>
128770         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128771         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128773 2002-12-31  Bruno Haible  <bruno@clisp.org>
128775         * lib/getline.h: Include <stddef.h>, for size_t.
128777         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128778         * lib/unicodeio.c: Don't include <stddef.h>.
128780 2002-12-31  Bruno Haible  <bruno@clisp.org>
128782         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128783         HAVE_TM_ZONE.
128785 2002-12-24  Karl Berry  <karl@gnu.org>
128787         * config/config.guess: update from prep.
128789 2002-12-24  Bruno Haible  <bruno@clisp.org>
128791         General infrasructure.
128792         * m4/README: Rewritten.
128793         * m4/onceonly.m4: New file.
128794         * m4/onceonly_2_57.m4: New file.
128796         Module atexit.
128797         * m4/atexit.m4: New file.
128799         Module strtod.
128800         * m4/strtod.m4: New file.
128802         Module strtol.
128803         * m4/strtol.m4: New file.
128805         Module strtoul.
128806         * m4/strtoul.m4: New file.
128808         Module memchr.
128809         * m4/memchr.m4: New file.
128811         Module memcmp.
128812         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128813         (jm_FUNC_MEMCMP): Invoke it.
128815         Module memcpy.
128816         * m4/memcpy.m4: New file.
128818         Module memmove.
128819         * m4/memmove.m4: New file.
128821         Module memset.
128822         * m4/memset.m4: New file.
128824         Module strcspn.
128825         * m4/strcspn.m4: New file.
128827         Module strpbrk.
128828         * m4/strpbrk.m4: New file.
128830         Module strstr.
128831         * m4/strstr.m4: New file.
128833         Module strerror.
128834         * m4/strerror.m4: New file.
128836         Module mktime.
128837         * m4/mktime.m4: Renamed from jm-mktime.m4.
128838         (gl_PREREQ_MKTIME): New macro.
128839         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128841         Module malloc.
128842         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128843         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128844         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128846         Module realloc.
128847         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128848         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128849         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128851         Module strftime.
128852         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128853         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128854         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128855         gl_TM_GMTOFF.
128856         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128858         Module xalloc.
128859         * m4/xalloc.m4: New file.
128861         Module alloca.
128862         * m4/alloca.m4: New file.
128864         Module putenv.
128865         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128866         (jm_FUNC_PUTENV): Invoke it.
128868         Module setenv.
128869         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128870         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128871         when invoked twice.
128872         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128873         gt_FUNC_SETENV.
128875         Module memrchr.
128876         * m4/memrchr.m4: New file.
128878         Module stpcpy.
128879         * m4/stpcpy.m4: New file.
128881         Module strcase.
128882         * m4/strcase.m4: New file.
128884         Module strdup.
128885         * m4/strdup.m4: New file.
128887         Module strnlen.
128888         * m4/strnlen.m4: New file.
128890         Module strndup.
128891         * m4/strndup.m4: New file.
128893         Module xstrtod.
128894         * m4/xstrtod.m4: New file.
128896         Module xstrtol.
128897         * m4/xstrtol.m4: New file.
128899         Module getdate.
128900         * m4/getdate.m4: New file.
128902         Module unlocked-io.
128903         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128904         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128905         * m4/jm-glibc-io.m4n: Remove file.
128907         Module long-options.
128908         * m4/long-options.m4: New file.
128910         Module md5.
128911         * m4/md5.m4: New file.
128913         Module sha.
128914         * m4/sha.m4: New file.
128916         Module getstr.
128917         * m4/getstr.m4: New file.
128919         Module getline.
128920         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128921         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128922         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128923         simply getline. Infoke gl_PREREQ_GETLINE.
128925         Module obstack.
128926         * m4/obstack.m4: New file.
128928         Module hash.
128929         * m4/hash.m4: New file.
128931         Module readtokens.
128932         * m4/readtokens.m4: New file.
128934         Module strverscmp.
128935         * m4/strverscmp.m4: New file.
128937         Module stdbool.
128938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128939         OSF/1.
128941         Module strtoll.
128942         * m4/strtoll.m4: New file.
128944         Module strtoull.
128945         * m4/strtoull.m4: New file.
128947         Module strtoimax.
128948         * m4/strtoimax.m4: New file.
128950         Module strtoumax.
128951         * m4/strtoumax.m4: New file.
128953         Module xstrtoimax.
128954         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128955         jm_AC_PREREQ_XSTRTOIMAX.
128956         Moved the strtol prerequisites to strtol.m4.
128957         Moved the strtoll prerequisites to strtoll.m4.
128958         Moved the strtoimax prerequisites to strtoimax.m4.
128960         Module xstrtoumax.
128961         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128962         jm_AC_PREREQ_XSTRTOUMAX.
128963         Moved the strtoul prerequisites to strtoul.m4.
128964         Moved the strtoull prerequisites to strtoull.m4.
128965         Moved the strtoumax prerequisites to strtoumax.m4.
128967         Module chown.
128968         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128969         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128971         Module dup2.
128972         * m4/dup2.m4: New file.
128974         Module ftruncate.
128975         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128976         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128978         Module getgroups.
128979         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128980         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128982         Module gettimeofday.
128983         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128984         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128985         gl_PREREQ_GETTIMEOFDAY.
128987         Module mkdir.
128988         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128989         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128991         Module mkstemp.
128992         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128993         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128994         jm_AC_TYPE_UINTMAX_T.
128995         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128997         Module stat.
128998         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128999         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
129001         Module lstat.
129002         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
129003         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
129005         Module timespec.
129006         * m4/timespec.m4 (gl_TIMESPEC): New macro.
129007         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
129008         * m4/st_mtim.m4: Indentation.
129010         Module nanosleep.
129011         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
129012         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
129013         gl_PREREQ_NANOSLEEP.
129015         Module regex.
129016         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
129017         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
129018         (gl_REGEX): New macro.
129020         Module rename.
129021         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
129022         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
129024         Module rmdir.
129025         * m4/rmdir.m4: New file.
129027         Module utime.
129028         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
129029         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
129030         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
129032         Module dirname.
129033         * m4/dirname.m4: New file.
129035         Module getopt.
129036         * m4/getopt.m4: New file.
129038         Module unistd-safer.
129039         * m4/unistd-safer.m4: New file.
129041         Module fnmatch.
129042         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
129043         declaration.
129044         (gl_PREREQ_FNMATCH_EXTRA): New macro.
129045         (gl_FUNC_FNMATCH_POSIX): New macro.
129046         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
129047         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
129048         simply fnmatch.
129050         Module exclude.
129051         * m4/exclude.m4: New file.
129053         Module human.
129054         * m4/human.m4: New file.
129056         Module acl.
129057         * m4/acl.m4: Nop.
129059         Module backupfile.
129060         * m4/backupfile.m4: New file.
129061         * m4/d-ino.m4: Indentation.
129063         Module fsusage.
129064         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
129065         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
129066         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
129068         Module dirfd.
129069         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
129070         requirements.
129072         Module euidaccess.
129073         * m4/euidaccess.m4: New file.
129075         Module file-type.
129076         * m4/file-type.m4: New file.
129078         Module fileblocks.
129079         * m4/fileblocks.m4: New file.
129081         Module filemode.
129082         * m4/filemode.m4: New file.
129084         Module isdir.
129085         * m4/isdir.m4: New file.
129087         Module lchown.
129088         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
129089         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
129091         Module makepath.
129092         * m4/makepath.m4: New file.
129094         Module modechange.
129095         * m4/modechange.m4: New file.
129097         Module mountlist.
129098         * m4/mountlist.m4: New file.
129099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
129100         Indentation.
129102         Module path-concat.
129103         * m4/path-concat.m4: New file.
129105         Module pathmax.
129106         * m4/pathmax.m4: New file.
129108         Module same.
129109         * m4/same.m4: New file.
129111         Module save-cwd.
129112         * m4/save-cwd.m4: New file.
129114         Module savedir.
129115         * m4/savedir.m4: New file.
129117         Module xgetcwd.
129118         * m4/xgetcwd.m4: New file.
129119         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
129121         Module xreadlink.
129122         * m4/xreadlink.m4: New file.
129124         Module safe-read.
129125         * m4/safe-read.m4: New file.
129127         Module safe-write.
129128         * m4/safe-write.m4: New file.
129130         Module closeout.
129131         * m4/closeout.m4: New file.
129133         Module stdio-safer.
129134         * m4/stdio-safer.m4: New file.
129136         Module getpass.
129137         * m4/getpass.m4: New file.
129139         Module getugroups.
129140         * m4/getugroups.m4: New file.
129142         Module group-member.
129143         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
129144         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
129146         Module idcache.
129147         * m4/idcache.m4: New file.
129149         Module userspec.
129150         * m4/userspec.m4: New file.
129152         Module gettime.
129153         * m4/clock_time.m4: New file.
129154         * m4/gettime.m4: New file.
129156         Module settime.
129157         * m4/settime.m4: New file.
129159         Module posixtm.
129160         * m4/posixtm.m4: New file.
129162         Module gethostname.
129163         * m4/gethostname.m4: New file.
129165         Module canon-host.
129166         * m4/canon-host.m4: New file.
129168         Module gettext.
129169         * m4/codeset.m4: New file, from gettext-0.11.5.
129170         * m4/gettext.m4: New file, from gettext-0.11.5.
129171         * m4/glibc21.m4: New file, from gettext-0.11.5.
129172         * m4/iconv.m4: New file, from gettext-0.11.5.
129173         * m4/intdiv0.m4: New file, from gettext-0.11.5.
129174         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
129175         * m4/inttypes.m4: New file, from gettext-0.11.5.
129176         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
129177         * m4/isc-posix.m4: New file, from gettext-0.11.5.
129178         * m4/lcmessage.m4: New file, from gettext-0.11.5.
129179         * m4/lib-ld.m4: New file, from gettext-0.11.5.
129180         * m4/lib-link.m4: New file, from gettext-0.11.5.
129181         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
129182         * m4/progtest.m4: New file, from gettext-0.11.5.
129183         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
129184         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
129185         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
129187         Module localcharset.
129188         * m4/localcharset.m4: New file.
129190         Module hard-locale.
129191         * m4/hard-locale.m4: New file.
129193         Module mbswidth.
129194         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
129195         onceonly macros.
129196         * m4/mbrtowc.m4: Add comment.
129198         Module memcasecmp.
129199         * m4/memcasecmp.m4: New file.
129201         Module memcoll.
129202         * m4/memcoll.m4: New file.
129204         Module unicodeio.
129205         * m4/unicodeio.m4: New file.
129207         Module rpmatch.
129208         * m4/rpmatch.m4: New file.
129210         Module yesno.
129211         * m4/yesno.m4: New file.
129213         Module exitfail.
129214         * m4/exitfail.m4: New file.
129216         Module c-stack.
129217         * m4/c-stack.m4 (gl_C_STACK): New macro.
129218         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
129220         Module error.
129221         * m4/error.m4 (gl_ERROR): New macro.
129222         (jm_PREREQ_ERROR): Use onceonly macros.
129224         Module fatal.
129225         * m4/fatal.m4: New file.
129227         Module getloadavg.
129228         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
129229         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
129231         Module getpagesize.
129232         * m4/getpagesize.m4: New file.
129234         Module getusershell.
129235         * m4/getusershell.m4: New file.
129237         Module physmem.
129238         * m4/physmem.m4: New file.
129240         Module posixver.
129241         * m4/posixver.m4: New file.
129243         Module quotearg.
129244         * m4/quotearg.m4: New file.
129246         Module quote.
129247         * m4/quote.m4: New file.
129249         Module readutmp.
129250         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
129252         Module sig2str.
129253         * m4/sig2str.m4: New file.
129255         Other.
129256         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129257         ulonglong.m4.
129258         * m4/intmax_t.m4: New file.
129259         * m4/d-type.m4: Indentation.
129260         * m4/jm-macros.m4: Update.
129261         * m4/prereq.m4 (jm_PREREQ): Update.
129262         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129263         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129264         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129265         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129266         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129267         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129268         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129269         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129270         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129271         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129272         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129273         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129274         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129275         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129276         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129277         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129278         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129279         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129280         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129282 2002-12-24  Bruno Haible  <bruno@clisp.org>
129284         * MODULES.txt: Update according to m4/ changes.
129286         Module gettext.
129287         * config.rpath: New file, from gettext-0.11.5.
129289         * modules/*: New module descriptions.
129290         * gnulib-tool: New file.
129291         * MODULES.html.sh: New file.
129293 2002-12-21  Karl Berry  <karl@gnu.org>
129295         * doc/fdl.texi: update to version 1.2.
129297 2002-12-19  Karl Berry  <karl@gnu.org>
129299         * config/config.guess: update from prep.
129301 2002-12-18  Bruno Haible  <bruno@clisp.org>
129303         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129304         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129306 2002-12-17  Bruno Haible  <bruno@clisp.org>
129308         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129309         stdlib.h, string.h.
129311 2002-12-17  Bruno Haible  <bruno@clisp.org>
129313         * lib/canon-host.c (strdup): Remove unused declaration.
129315         * lib/fsusage.c: Include full_read.h.
129316         (get_fs_usage): Use full_read instead of safe_read.
129318         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129320 2002-12-12  Karl Berry  <karl@gnu.org>
129322         * config/config.guess: update from prep.
129324 2002-12-11  Bruno Haible  <bruno@clisp.org>
129326         * m4/setenv.m4: New file, from gettext-0.11.5.
129328 2002-12-11  Bruno Haible  <bruno@clisp.org>
129330         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129331         not unsetenv().
129332         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129333         modifications:
129335         2002-12-11  Bruno Haible  <bruno@clisp.org>
129337                 * setenv.c (alloca): Fall back to malloc.
129338                 (freea): New macro.
129339                 (setenv): Use freea() to free memory allocated with alloca().
129341         2002-11-13  Bruno Haible  <bruno@clisp.org>
129343                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129344                 function declarations.
129345                 * unsetenv.c (unsetenv): Likewise.
129347         2002-03-04  Bruno Haible  <bruno@clisp.org>
129349                 Portability to AIX 4.3.3.
129350                 * unsetenv.c: New file, extracted from setenv.c.
129351                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129353         2001-12-20  Bruno Haible  <bruno@clisp.org>
129355                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129356                 use malloc instead. For SunOS 4.
129358         2001-12-11  Bruno Haible  <bruno@clisp.org>
129360                 * setenv.c: Declare alloca.
129361                 (compar_fn_t): New typedef.
129362                 (KNOWN_VALUE, STORE_VALUE): Use it.
129364         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129365         setenv.h.
129367 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129369         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129370         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129371         Choose values that are less likely to collide with system fnmatch
129372         options.
129373         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129374         defined (e.g., a pure POSIX system).
129375         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129376         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129378 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129380         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129381         a pain in practice to deal with generated m4 files.  This change
129382         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129384         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129385         and jm-glibc-io.m4, as they are no longer a special case.
129386         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129387         kludge and the auto-generation stuff.  Check only whether the
129388         functions are declared, not whether they exist, since older hosts
129389         that don't declare the functions can't use the optimization anyway.
129391 2002-12-06  Jim Meyering  <jim@meyering.net>
129393         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129395         Merge in changes from libc's misc/error.c, in preparation
129396         for the merge of gnulib's changes back into libc.
129398         * lib/error.c (_): Define only if not already defined.
129399         Move definition to follow all #include directives.
129400         Include unlocked-io.h only if !_LIBC.
129401         [_LIBC]: Include <libio/libioP.h>.
129402         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129403         (fflush): Tweak definition to use INTUSE.
129404         (putc): Define.
129406 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129408         * lib/alloca.c [defined emacs]: Include "lisp.h".
129409         (xalloc_die) [defined emacs]: New macro.
129410         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129411         [! defined emacs]: Include <xalloc.h>.
129412         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129413         (pointer): Typedef to POINTER_TYPE *.
129414         (malloc): Remove decl; we now always use xmalloc.
129415         (alloca): Use old-style definition, since Emacs needs this.
129416         Check for arithmetic overflow when computing combined size.
129418 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129420         Do not generate unlocked-io.h automatically, since it's easier to
129421         maintain it by hand.
129423         * lib/unlocked-io.h: New file, from GNU diffutils,
129424         but with proper copyright notice and attribution.
129425         * lib/gen-uio: Remove.
129426         * lib/Makefile.am: Add copyright notice.
129427         (libfetish_a_SOURCES): Add unlocked-io.h.
129428         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129429         (DISTCLEANFILES, io_functions): Remove macros.
129430         (EXTRA_DIST): Remove gen_uio.
129431         (unlocked-io.h): Remove rule.
129433 2002-12-04  Jim Meyering  <jim@meyering.net>
129435         Reflect the fact that stat.c and lstat.c are no longer generated.
129436         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129437         (DISTCLEANFILES): Likewise.
129438         (EXTRA_DIST): Likewise.
129439         (all_local): Don't depend on stat.c or lstat.c.
129440         (stat.c, lstat.c): Remove rules.
129441         (EXTRA_DIST): Remove xstat.in.
129443         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129444         * lib/stat.c: New file.  Contents mostly from xstat.in.
129445         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129446         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129448         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129449         too.
129450         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129452 2002-12-03  Jim Meyering  <jim@meyering.net>
129454         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129455         but not semantics, to minimize the differences between these two files.
129456         (safe_read): Change comment to mention SAFE_READ_ERROR.
129458         * lib/safe-read.c (IS_EINTR): Define.
129459         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129461 2002-12-02  Jim Meyering  <jim@meyering.net>
129463         * lib/safe-read.c (EINTR): Define.
129464         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129465         (INT_MAX): Provide fallback.
129466         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129468         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129470 2002-12-02  Bruno Haible  <bruno@clisp.org>
129472         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129473         Define, taken from safe-read.c.
129474         (INT_MAX): Provide fallback.
129475         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129476         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129478         * lib/safe-read.c (EINTR): Remove definition.
129479         (safe_read): Don't use EINTR if it is absent.
129481 2002-12-01  Jim Meyering  <jim@meyering.net>
129483         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129484         zero.
129485         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129487 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129489         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129490         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129491         with `if (! (value < limit)) abort ();', for readability.
129493 2002-11-26  Karl Berry  <karl@gnu.org>
129495         * lib/strdup.c: copy from libc again, with jim's ok.
129496         * lib/.cppi-disable: re-add strdup.c
129498 2002-11-25  Karl Berry  <karl@gnu.org>
129500         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129501         instead of "strtol.c".
129503 2002-11-25  Karl Berry  <karl@gnu.org>
129505         * config/install-sh: update from automake for variable quoting, $0 in
129506         error msgs, etc.
129508         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129509         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129510         entry.
129512 2002-11-25  Jim Meyering  <jim@meyering.net>
129514         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129516 2002-11-24  Karl Berry  <karl@gnu.org>
129518         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129519         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129521 2002-11-24  Jim Meyering  <jim@meyering.net>
129523         Update from coreutils:
129525         * lib/mktime.c: Merge in changes from libc.
129527         Avoid a link-time failure on some Linux systems.
129528         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129529         (otherwise).
129530         (__mon_yday): Declare with the STATIC attribute.
129531         (__mktime_internal): Likewise.
129532         Based on a report from Greg Schafer.
129534 2002-11-23  Jim Meyering  <jim@meyering.net>
129536         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129537         Use `unsigned', not `int', as type of index.
129539         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129541         * lib/fsusage.c: Remove unneeded parentheses around operands of
129542         `defined'.
129544 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129546         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129547         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129548         so that we can be included first.
129549         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129550         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129551         No need to include stddef.h or sys/types.h any more.
129552         Surround local include files with "", not "<>".
129553         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129554         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129555         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129556         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129557         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129558         (ISPRINT): Remove; no longer needed now that we assume C89.
129560         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129561         Preserve errno.
129563         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129564         quotearg_char): Use SIZE_MAX rather than
129565         (size_t) -1 when we are talking about "infinity".
129567         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129569 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129571         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129572         hint that one should use `if (! x) abort ();' rather than `assert
129573         (x);', and anyway it's one less thing to worry about configuring.
129574         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129575         hash_rehash, hash_insert): Use abort rather than assert.
129577 2002-11-22  Bruno Haible  <bruno@clisp.org>
129579         * lib/safe-read.h: Assume C89. Add comments.
129580         (safe_read): Change return type to size_t.
129581         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129582         byte counts > SSIZE_MAX correctly.
129583         * lib/safe-write.h: New file.
129584         * lib/safe-write.c: New file.
129585         * lib/full-read.h: New file.
129586         * lib/full-read.c: New file.
129587         * lib/full-write.h: Assume C89. Add comments.
129588         * lib/full-write.c: Include safe-write.h.
129589         (full_write): Rewritten to use safe_write.
129590         Suggested by Jim Meyering and Paul Eggert.
129592 2002-11-21  Jim Meyering  <jim@meyering.net>
129594         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129596         Merge in changes from the coreutils.
129598         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129599         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129600         <stdint.h>.
129601         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129602         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129603         int.  Work more efficiently if X is the same width as uintmax_t.
129604         Do not compare X to -1, to avoid bogus compiler warning.
129605         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129606         Don't assume that f_frsize and f_bsize are the same type.
129608         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129609         warning on FreeBSD.
129611         * lib/makepath.c (make_path): Restore umask *before* creating the final
129612         component.
129613         (make_path): Minor reformatting.
129615         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129616         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129617         HAVE_MALLOC/HAVE_REALLOC.
129619         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129620         dummy ones.  At least on GNU/Linux systems, `auto' means something
129621         else.
129622         From Michael Stone.
129624 2002-11-21  Bruno Haible  <bruno@clisp.org>
129626         Remove case insensitive option matching.
129627         * lib/argmatch.h (argcasematch): Remove declaration.
129628         (ARGCASEMATCH): Remove macro.
129629         (__xargmatch_internal): Remove case_sensitive argument.
129630         (XARGMATCH): Update.
129631         (XARGCASEMATCH): Remove macro.
129632         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129633         case_sensitive argument.
129634         (argcasematch): Remove function.
129635         (__xargmatch_internal): Remove case_sensitive argument.
129636         (main): Use XARGMATCH instead of XARGCASEMATCH.
129638         * lib/xmalloc.c: Change compile-time error message. Add comment about
129639         required autoconf version.
129641 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129643         Merge argmatch cleanups from Bison.  Assume C89.
129645         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129646         Include stdlib.h, for EXIT_FAILURE.
129647         Always include <string.h>, since we assume C89.
129648         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129649         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129650         Include <stddef.h> instead, since it's all we need for size_t.
129651         (PARAMS): Remove.  All uses removed.
129652         (ARRAY_CARDINALITY): Do not bother to #undef.
129653         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129654         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129655         Remove unnecessary parentheses.
129656         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129657         Insert necessary parentheses.
129658         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129659         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129661 2002-11-19  Bruno Haible  <bruno@clisp.org>
129663         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129664         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129666         * lib/mbswidth.h (PARAMS): Remove macro.
129667         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129668         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129670         * lib/gcd.h (PARAMS): Remove macro.
129671         (gcd): Use ANSI C function declarations.
129672         * lib/gcd.c (gcd): Likewise.
129674 2002-11-15  Bruno Haible  <bruno@clisp.org>
129676         * lib/strcspn.c: Include <stddef.h>.
129677         (strcspn): Use ANSI C function declaration. Change return type to
129678         size_t. Use NULL.
129679         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129680         (strpbrk): Use NULL.
129681         * lib/strpbrk.h (PARAMS): Remove macro.
129682         (strpbrk): Use ANSI C function declaration.
129683         * lib/strstr.c: Don't include <sys/types.h>.
129684         * lib/strstr.h (PARAMS): Remove macro.
129685         (strstr): Use ANSI C function declarations.
129687 2002-11-14  Karl Berry  <karl@gnu.org>
129689         * config/mkinstalldirs: `do' on separate line, instead of
129690         `for var; do'.
129692 2002-11-06  Bruno Haible  <bruno@clisp.org>
129694         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129695         * lib/gcd.c (gcd): Likewise.
129697 2002-11-05  Bruno Haible  <bruno@clisp.org>
129699         * lib/gcd.h: New file, from gettext-0.11.5.
129700         * lib/gcd.c: New file, from gettext-0.11.5.
129702 2002-11-05  Bruno Haible  <bruno@clisp.org>
129704         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129705         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129706         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129707         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129709         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129710         <libintl.h>.
129711         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129712         <libintl.h>.
129714         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129715         * lib/human.c: Include gettext.h instead of <libintl.h>.
129716         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129717         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129718         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129719         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129720         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129721         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129722         (textdomain): Remove definition.
129723         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129725         * lib/long-options.c: Remove include of <libintl.h> and definition of
129726         _.
129727         * lib/same.c: Remove include of <libintl.h> and definition of _.
129729 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129731         * lib/config.charset: A few additions for Solaris.
129733 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129735         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129736         * lib/localcharset.c (locale_charset): Declare as extern "C".
129738 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129740         * lib/config.charset: msdos in uk_UA uses CP1125.
129742 2002-11-04  Bruno Haible  <bruno@clisp.org>
129744         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129745         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129746         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129747         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129748         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129750 2002-11-04  Bruno Haible  <bruno@clisp.org>
129752         * lib/localcharset.c (locale_charset): Don't return an empty string.
129754 2002-11-04  Bruno Haible  <bruno@clisp.org>
129756         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129757         aliases.
129759 2002-11-04  Bruno Haible  <bruno@clisp.org>
129761         * lib/config.charset: Update for newest glibc. Add canonical names
129762         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129764 2002-11-04  Bruno Haible  <bruno@clisp.org>
129766         * lib/config.charset: Add support for NetBSD.
129768 2002-11-04  Bruno Haible  <bruno@clisp.org>
129770         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129772 2002-11-01  Bruno Haible  <bruno@clisp.org>
129774         * configure.in: Add AC_CONFIG_AUX_DIR call.
129775         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129776         test/Makefile.
129777         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129779 2002-09-28  Karl Berry  <karl@gnu.org>
129781         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129782         installed automake until the next release, since changes have been
129783         made.
129785 2002-09-25  Karl Berry  <karl@gnu.org>
129787         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129788         * lib/getopt*: copy from libc/posix.
129789         * lib/gettext.h: copy from gettext.
129790         * lib/.cppi-disable: add strdup.c, gettext.h.
129792 2002-09-25  Karl Berry  <karl@gnu.org>
129794         * config/srclist.txt: enable gettext.h check.
129795         * config/config.{guess,sub}: update from prep.
129796         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129797                 from automake 1.6.3.
129798         See srclist*.
129800 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129802         * regex.c (PATFETCH): Remove the translating fetch.
129803         (PATFETCH_RAW): Rename to PATFETCH.
129804         (set_image_of_range): New fun.
129805         (SET_RANGE_TABLE_WORK_AREA): Use it.
129806         (regex_compile): Don't translate the pattern chars so eagerly.
129807         Only do it when inserting an `exactn' bytecode or when handling
129808         a char-range.
129809         (mutually_exclusive_p): Avoid empty statement.
129811 2002-07-06  Jim Meyering  <meyering@lucent.com>
129813         * m4/README: Don't mention Makefile.am.in.
129814         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129816 2002-07-01  Jim Meyering  <meyering@lucent.com>
129818         * lib/c-stack.c: Include sys/time.h.
129819         From Volker Borchert.
129821 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129823         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129825 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129827         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129828         New macro.  Use it uniformly instead of
129829         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129830         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129831         reported by Vin Shelton.
129833 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129835         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129836         Do not assume SA_SIGINFO behavior.
129837         Bug reported by Jim Meyering on NetBSD 1.5.2.
129839 2002-06-22  Jim Meyering  <meyering@lucent.com>
129841         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129842         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129845         now that configure.ac uses AC_GNU_SOURCE.
129846         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129847         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129849         Update to latest tools.  Suggestions from Paul Eggert.
129850         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129851         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129852         * m4/fnmatch.m4: Likewise.
129853         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129854         to AC_HEADER_STDBOOL
129856 2002-06-22  Jim Meyering  <meyering@lucent.com>
129858         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129859         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129861 2002-06-22  Jim Meyering  <meyering@lucent.com>
129863         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129865         * lib/exitfail.c, exitfail.h: Likewise.
129866         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129868         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129869         of fnmatch.h.
129870         (EXTRA_DIST): Add fnmatch_loop.c.
129871         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129873         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129874         * lib/fnmatch.c: Update from diffutils-2.8.2.
129875         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129876         * lib/fnmatch.h: Remove file.
129878 2002-06-21  Jim Meyering  <meyering@lucent.com>
129880         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129881         * m4/mbrtowc.m4: Likewise.
129883         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129884         * m4/mbswidth.m4: Reflect name change:
129885         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129886         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129888         * m4/lib-link.m4: Update from gettext-0.11.2.
129889         * m4/gettext.m4: Likewise.
129891         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129892         From Alfred M. Szmidt.
129894 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129896         * lib/file-type.h: Report an error if neither S_ISREG nor
129897         S_IFREG is defined, instead of using a test specific to glibc
129898         2.2.  This should be safe, since POSIX requires S_ISREG and
129899         Unix Version 7 had S_IFREG.  We don't need to check for
129900         <sys/types.h> since we don't use any symbols that it defines.
129902 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129904         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129905         $@-t, so that each temporary file name is unique and valid in the first
129906         8 characters, for operation under DOS.
129908 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129912 2002-06-15  Jim Meyering  <meyering@lucent.com>
129914         Work even with DJGPP 2.03, which lacks support for symlinks.
129915         From Richard Dawe.
129916         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129917         is defined.
129918         * lib/lchown.c (S_ISLNK): Likewise.
129920 2002-06-15  Jim Meyering  <meyering@lucent.com>
129922         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129923         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129924         have been included before this file.
129926 2002-06-14  Jim Meyering  <meyering@lucent.com>
129928         * lib/file-type.h: Use the version from diffutils-2.8.2.
129929         * lib/file-type.c: Likewise.
129931 2002-06-07  Jim Meyering  <meyering@lucent.com>
129933         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129934         They're needed at least for NetBSD 1.5.2.
129935         ($statxfs_includes): Include those same headers.
129936         ($statxfs_includes): Include sys/vfs.h if available.
129937         ($statxfs_includes): Likewise for sys/statvfs.h.
129938         Check for the following members in both structs statfs and statvfs:
129939         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129941 2002-06-01  Jim Meyering  <meyering@lucent.com>
129943         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129944         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129946 2002-05-28  Jim Meyering  <meyering@lucent.com>
129948         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129949         Reported by Volker Borchert.
129951 2002-05-27  Jim Meyering  <meyering@lucent.com>
129953         Fix a problem seen only on nonconforming systems whereby ls.c's
129954         use of localtime, and then of gettimeofday would cause trouble:
129955         the localtime call used to initialize rpl_gettimeofday's save
129956         mechanism would clobber ls's current local time information so
129957         that in any long listing the first file would always be listed
129958         with date 1970-01-01.  Analysis by Volker Borchert.
129960         * lib/gettimeofday.c (localtime): Undefine.
129961         (rpl_localtime): New function.
129963 2002-05-27  Jim Meyering  <meyering@lucent.com>
129965         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129966         localtime.
129968         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129969         use the replacement function; it wouldn't resolve at link time.
129970         Reported by Volker Borchert.
129972 2002-05-22  Jim Meyering  <meyering@lucent.com>
129974         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129975         file-type.h.
129976         * lib/file-type.h: New file.
129977         * lib/file-type.c (file_type): New file/function.  Extracted from
129978         diffutils.
129980 2002-04-30  Jim Meyering  <meyering@lucent.com>
129982         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129984 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129986         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129988 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129990         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129991         Do not check for alloca.h (no longer used) or stdbool.h (was never
129992         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129994 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129996         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129998 2002-04-29  Jim Meyering  <meyering@lucent.com>
130000         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
130001         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
130002         Use AC_FUNC_STRNLEN here instead.
130004         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
130005         With autoconf-2.53a, it's part of AC_PROG_CC.
130007 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130009         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
130010         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
130012 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130014         * lib/sig2str.h, lib/sig2str.c: New files.
130015         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
130017 2002-04-28  Paul Eggert  <eggert@twinsun.com>
130019         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
130020         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
130021         of 127, since 64 is the largest conceivable number for ancient
130022         nonstandard hosts.
130023         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
130025 2002-04-28  Jim Meyering  <meyering@lucent.com>
130027         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
130029 2002-04-24  Jim Meyering  <meyering@lucent.com>
130031         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
130032         (jm_PREREQ): Use it.
130034         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
130035         mach/mach.h fcntl.h.
130036         Check for this function: setlocale.
130038 2002-04-24  Jim Meyering  <meyering@lucent.com>
130040         * lib/gettext.h: New file, from Gettext.
130041         * lib/Makefile.am (INCLUDES): Remove -I../intl.
130042         (libfetish_a_SOURCES): Add gettext.h.
130044 2002-04-16  Jim Meyering  <meyering@lucent.com>
130046         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
130047         ut_pid, ut_id, ut_exit.
130049 2002-04-16  Jim Meyering  <meyering@lucent.com>
130051         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
130052         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
130053         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
130055 2002-04-12  Jim Meyering  <meyering@lucent.com>
130057         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
130058         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
130059         existence of the getmntinfo function.  Needed for Darwin 5.3.
130061         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
130062         This is necessary at least on Darwin 5.3.
130064         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
130065         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
130066         strnlen.o in the library, and that makes some versions of ranlib
130067         object.
130069 2002-04-12  Jim Meyering  <meyering@lucent.com>
130071         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
130073 2002-04-09  Jim Meyering  <meyering@lucent.com>
130075         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
130076         to be more precise.  Rather than saying we're checking whether the
130077         function `works', say what we're testing.
130078         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
130079         Reported by Bruno Haible.
130081 2002-03-10  Jim Meyering  <meyering@lucent.com>
130083         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
130084         Suggestion from Santiago Vila.
130086 2002-03-08  Jim Meyering  <meyering@lucent.com>
130088         * lib/rename.c: Mention that this wrapper is needed also on
130089         mips-dec-ultrix4.4 systems.
130091 2002-03-02  Jim Meyering  <meyering@lucent.com>
130093         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
130094         not HAVE_CLOCK_SETTIME.
130096 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130098         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
130099         Check for clock_settime.
130101 2002-02-27  Paul Eggert  <eggert@twinsun.com>
130103         * lib/nanosleep.h: Rename to....
130104         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
130106         * lib/gettime.c: New file.
130107         * lib/settime.c: New file.
130108         * lib/stime.c: Remove.
130110         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
130111         timespec.h.  Remove nanosleep.h.
130113 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130115         * m4/acl.m4: New file.
130116         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
130117         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
130119 2002-02-25  Paul Eggert  <eggert@twinsun.com>
130121         * lib/acl.c, lib/acl.h: New files.
130122         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
130124 2002-02-24  Jim Meyering  <meyering@lucent.com>
130126         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
130127         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
130128         cause trouble.  Reported by Nelson Beebe.
130130 2002-02-23  Paul Eggert  <eggert@twinsun.com>
130132         * lib/path-concat.c (xpath_concat): Reorder code to pacify
130133         compilers that don't know that xalloc_die never returns.
130135 2002-02-20  Jim Meyering  <meyering@lucent.com>
130137         * lib/getdate.c: Regenerate using bison-1.33.
130139 2002-02-17  Jim Meyering  <meyering@lucent.com>
130141         * config/config.guess (main): Don't use `head -1'; it's no longer
130142         portable. Use `sed 1q' instead.
130144 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
130146         * m4/codeset.m4: Upgrade to gettext-0.11.
130147         * m4/gettext.m4: Upgrade to gettext-0.11.
130148         * m4/glibc21.m4: Upgrade to gettext-0.11.
130149         * m4/iconv.m4: Upgrade to gettext-0.11.
130150         * m4/isc-posix.m4: Upgrade to gettext-0.11.
130151         * m4/lcmessage.m4: Upgrade to gettext-0.11.
130152         * m4/lib-ld.m4: New file, from gettext-0.11.
130153         * m4/lib-link.m4: New file, from gettext-0.11.
130154         * m4/lib-prefix.m4: New file, from gettext-0.11.
130155         * m4/progtest.m4: Upgrade to gettext-0.11.
130157 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130159         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
130160         (jm_PREREQ): Use it.
130162 2002-02-15  Paul Eggert  <eggert@twinsun.com>
130164         * lib/posixver.c, lib/posixver.h: New files.
130165         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130167 2002-02-02  Paul Eggert  <eggert@twinsun.com>
130168             Bruno Haible  <bruno@clisp.org>
130170         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
130171         (fwrite_success_callback): New declaration.
130172         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
130173         print_unicode_char. Call failure callback instead of error.
130174         (fwrite_success_callback): New function.
130175         (exit_failure_callback): New function.
130176         (fallback_failure_callback): New function.
130177         (print_unicode_char): Call unicode_to_mb.
130179 2002-01-26  Jim Meyering  <meyering@lucent.com>
130181         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
130182         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
130184 2002-01-26  Jim Meyering  <meyering@lucent.com>
130186         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
130188 2002-01-22  Paul Eggert  <eggert@twinsun.com>
130190         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
130192 2002-01-22  Jim Meyering  <meyering@lucent.com>
130194         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
130195         Otherwise, some versions of automake would omit the rule that makes
130196         Makefile from Makefile.in.
130198 2002-01-21  Paul Eggert  <eggert@twinsun.com>
130200         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
130201         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
130202         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
130203         (memcoll): Set errno to zero if there is no error.
130205         * lib/quotearg.c (quotearg_buffer_restyled):
130206         Fix bug with quoting buffers containing NUL when backslashing escapes.
130207         This bug was exposed by the other changes in this patch.
130208         (quotearg_n_options): New arg ARGSIZE.
130209         All callers changed.
130210         (quoting_options_from_style): New function.
130211         (quotearg_n_style): Use it.
130212         (quotearg_n_style_mem): New function.
130214         * lib/quotearg.h (quotearg_n_style_mem): New function.
130216 2002-01-19  Jim Meyering  <meyering@lucent.com>
130218         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
130219         Remove useless quotes: DF_PROG="df".
130220         * m4/strnlen.m4: New file.
130222 2002-01-16  Paul Eggert  <eggert@twinsun.com>
130224         * lib/backupfile.c (ISDIGIT): Comment fix.
130225         * lib/getdate.y (ISDIGIT): Likewise.
130226         * lib/posixtm.c (ISDIGIT, year): Likewise.
130227         * lib/strverscmp.c (ISDIGIT): Likewise.
130228         * lib/userspec.c (ISDIGIT): Likewise.
130230 2002-01-16  Jim Meyering  <meyering@lucent.com>
130232         * lib/getdate.y: Add three semicolons, each just before a closing
130233         brace. Bison (as of version 1.31) no longer papers over that mistake.
130235 2002-01-05  Jim Meyering  <meyering@lucent.com>
130237         * lib/version-etc.c (version_etc_copyright): Update copyright year.
130239 2001-12-19  Paul Eggert  <eggert@twinsun.com>
130241         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
130242         not silently exit merely because the output buffer happens to
130243         have nothing pending.
130245 2001-12-18  Paul Eggert  <eggert@twinsun.com>
130247         See the big note in ../ChangeLog.
130248         * lib/human.c (suffixes): Prefer K to k for 1024.
130249         (generate_suffix_backwards): New function.
130250         (human_readable_inexact): Use it.
130251         * lib/xstrtol.c (__xstrtol): If there is no number but there
130252         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
130253         Accept 'K' as well as 'k'.
130255 2001-12-15  Jim Meyering  <meyering@lucent.com>
130257         * lib/regex.h (__restrict_arr): Update from libc.
130259         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130260         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130261         (STREQ): Define.
130263 2001-12-14  Jim Meyering  <meyering@lucent.com>
130265         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130266         Suggestion from Bruno Haible.
130268 2001-12-10  Jim Meyering  <meyering@lucent.com>
130270         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130271         xrealloc, Instead, include "xalloc.h".
130272         (initbuffer): Don't cast xmalloc return value to char*.
130273         (readline): Reword comment.
130274         Don't cast xrealloc return value to char*
130275         Return NULL, not 0.
130277 2001-12-09  Jim Meyering  <meyering@lucent.com>
130279         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130280         about `signed and unsigned type in conditional expression'.
130281         * lib/posixtm.c (posix_time_parse): Likewise.
130283         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130285         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130286         to avoid a pedantic warning.
130288         * lib/getstr.c: Don't include assert.h.
130289         (getstr): Remove warning-evoking assertions.
130290         Return -1 if offset parameter is out of bounds.
130291         Change the type of a local from int to size_t.
130293         * lib/strftime.c (my_strftime_localtime_r): Include this function
130294         definition in the `#if ! HAVE_TM_GMTOFF' block.
130296         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130297         Include xalloc.h instead.
130299 2001-12-02  Jim Meyering  <meyering@lucent.com>
130301         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130302         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130303         included.
130305         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130306         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130308 2001-11-30  Akim Demaille  <akim@epita.fr>
130310         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130311         before being defined.
130313 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130315         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130316         First arg is int, not unsigned.
130317         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130318         (SIZE_MAX, UINT_MAX): New macros.
130319         (quotearg_n_options): Abort if N is negative.
130320         Avoid overflow check on hosts where size_t is 64 bits and int
130321         is 32 bits, as overflow is impossible there.
130322         Fix off-by-one typo that caused unnecessary reallocation.
130324 2001-11-27  Jim Meyering  <meyering@lucent.com>
130326         * lib/tempname.c: Merge with version from libc.
130327         * lib/regex.c: Likewise.
130329         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130330         systems for which STDC_HEADERS is 0, it was not included, resulting in
130331         a warning about an integer-to-pointer conversion problem with getenv.
130332         Reported by Volker Borchert.
130334 2001-11-26  Jim Meyering  <meyering@lucent.com>
130336         * lib/gtod.h: Remove file.
130337         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130338         * lib/gettimeofday.c: Don't include gtod.h.
130339         (GTOD_init): Remove function.
130340         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130341         Suggestion from Volker Borchert.
130343 2001-11-23  Jim Meyering  <meyering@lucent.com>
130345         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130346         it.
130347         * lib/hash.c (struct hash_table): Define it here instead.
130349 2001-11-22  Jim Meyering  <meyering@lucent.com>
130351         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130353 2001-11-20  Jim Meyering  <meyering@lucent.com>
130355         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130356         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130358 2001-11-19  Jim Meyering  <meyering@lucent.com>
130360         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130361         directory.  Use "conftestXXXXXX" as the template.
130362         Suggestion from Paul Eggert.
130364         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130365         immediately, so the test doesn't mistakenly hit the max-open-files
130366         limit.
130368 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130370         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130371         (TEMPORARIES): New macro.
130372         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130373         removes an artificial limitation (e.g. HP-UX 10.20, where
130374         TMP_MAX is 17576).
130376 2001-11-18  Jim Meyering  <meyering@lucent.com>
130378         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130380 2001-11-18  Jim Meyering  <meyering@lucent.com>
130382         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130383         on SunOS 4.
130385         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130386         files will be created before anything else.
130388 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130390         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130391         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130393 2001-11-17  Jim Meyering  <meyering@lucent.com>
130395         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130396         Prompted by a report from Bob Proulx.
130398         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130399         Instead, require UTILS_FUNC_MKSTEMP.
130401 2001-11-17  Jim Meyering  <meyering@lucent.com>
130403         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130404         Now, that's done as part of AC_FUNC_STRTOD.
130406 2001-11-17  Jim Meyering  <meyering@lucent.com>
130408         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130409         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130410         rather than group writable.  Patch by Juan F. Codagnone.
130412         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130413         xrealloc, Instead, include "xalloc.h".
130415         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130416         Remove explicit declarations of xmalloc, xrealloc,
130417         and xstrdup.  Instead, include "xalloc.h".
130419         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130420         unlocked-io.h.
130421         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130422         Likewise.
130423         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130425         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130426         Reported by Padraig Brady.
130428         * lib/mkstemp.c: #undef mkstemp.
130429         Include config.h.
130430         (rpl_mkstemp): Rename from mkstemp.
130431         Protoize.
130433 2001-11-16  Jim Meyering  <meyering@lucent.com>
130435         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130436         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130437         determine the amount of total physical memory, use pstat_getstatic.
130438         HPUX-11 doesn't define _SC_PHYS_PAGES.
130439         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130440         If sysconf couldn't be used to determine the amount of available
130441         physical memory, use both pstat_getstatic and pstat_getdynamic.
130442         Based on a patch from Bob Proulx.
130444 2001-11-10  Jim Meyering  <meyering@lucent.com>
130446         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130447         (jm_PREREQ): Use it.
130449 2001-11-09  Jim Meyering  <meyering@lucent.com>
130451         * m4/jm-macros.m4: Require autoconf-2.52f.
130452         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130453         Use these AC_-prefixed names, not the AM_-prefixed ones.
130455         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130457 2001-11-05  Jim Meyering  <meyering@lucent.com>
130459         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130461 2001-11-04  Jim Meyering  <meyering@lucent.com>
130463         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130464         $DEFS.
130466 2001-11-03  Jim Meyering  <meyering@lucent.com>
130468         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130469         of AC_DEFUN.
130471         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130472         know the name of the variable in the macro definition.
130474 2001-11-03  Jim Meyering  <meyering@lucent.com>
130476         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130477         in argmatch_to_argument call.
130479         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130480         argument.
130482         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130483         e.g., a fault due to an attempt to free a NULL pointer.
130485 2001-11-01  Jim Meyering  <meyering@lucent.com>
130487         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130488         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130490 2001-11-01  Jim Meyering  <meyering@lucent.com>
130492         * lib/dirfd.c, lib/dirfd.h: New files.
130493         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130495         * lib/hash.c (hash_print) [TESTING]: Clean up.
130497 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130499         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130500         to avoid a warning if -Wall.
130502 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130504         * README: New file
130505         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130506         (per RMS's instructions, this is now the canonical source)
130507         * lgpl/, gpl/: New directories.
130509 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130511         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130513 2001-10-21  Jim Meyering  <meyering@lucent.com>
130515         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130516         this code would end up calling gettext even in packages built
130517         with --disable-nls.
130518         * lib/getopt.c (_): Likewise.
130519         * lib/regex.c (_): Likewise.
130521 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130523         * m4/error.m4 (jm_PREREQ_ERROR):
130524         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130525         AC_FUNC_STRERROR_R does that.
130526         Check for strerror declaration.
130528         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130529         are supposed to have them these days.
130530         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130531         Merge changes from latest Autoconf CVS.
130532         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130533         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130534         POSIX decided to standardize on the int flavor of strerror_r.
130536 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130538         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130539         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130540         Use strerror_r that is only a macro, even if it is not a function.
130541         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130542         (private_strerror): Use prototypes, not old-style function definition.
130543         (print_errno_message): New function.
130544         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130545         char*-flavored one.
130546         (error_tail, error, error_at_line): Use it.
130548 2001-10-11  Jim Meyering  <meyering@lucent.com>
130550         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130551         and quote_n (1, ... to avoid clobbering a buffer.
130553 2001-10-05  Jim Meyering  <meyering@lucent.com>
130555         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130556         hash-pjw.h.
130557         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130558         * lib/hash-pjw.h: New file.
130560 2001-09-30  Jim Meyering  <meyering@lucent.com>
130562         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130563         `struct fsstat' has the `f_fstypename' member.
130564         Use that to define FS_TYPE, which is now used to make
130565         the getfsstat link test tighter.
130567 2001-09-30  Jim Meyering  <meyering@lucent.com>
130569         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130570         Include <sys/ucred.h>, for Apple Darwin.
130571         Include sys/mount.h and sys/fs_types.h only if available.
130572         (FS_TYPE): Define.
130573         (read_filesystem_list): Use FS_TYPE.
130575 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130577         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130578         a boolean context.
130580 2001-09-29  Jim Meyering  <meyering@lucent.com>
130582         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130583         [one-argument getmntent function]): Include stdio.h before mntent.h.
130584         SunOS 4.1.x needs it for the declaration of `FILE'.
130585         Patch by Volker Borchert.
130587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130588         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130589         sys/fs_types.h, and make the link-test for getfsstat guard #include
130590         directives with appropriate #if HAVE_*_H tests so that we can
130591         detect getfsstat on Apple Darwin1.3.7 systems.
130592         Reported by Nelson Beebe.
130593         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130595 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130597         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130598         #defines strtoimax.  Also treat the other strto* functions
130599         like strtoimax.
130601         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130602         Check for strtoul and strtoumax,
130603         as those declarations are made even in the signed case.
130604         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130605         Likewise, for strtol and strtoimax.
130607 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130609         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130610         #defines strtoimax.  Also treat the other strto* functions
130611         like strtoimax.
130613         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130614         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130615         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130617 2001-09-26  Jim Meyering  <meyering@lucent.com>
130619         Most macros in unlocked-io.h had the wrong number of arguments.
130620         * lib/gen-uio: New script.
130621         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130622         * lib/unlocked-io.hin: Remove file.
130623         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130624         rather than trying to embed it here.
130625         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130626         Reported by Padraig Brady.
130628 2001-09-25  Volker Borchert  <bt@teknon.de>
130630         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130631         `result'.
130633 2001-09-24  Jim Meyering  <meyering@lucent.com>
130635         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130637 2001-09-23  Jim Meyering  <meyering@lucent.com>
130639         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130640         instead of the mere test for existence of mntent.h.  The latter
130641         would get a false-positive on AIX 3.4 systems.
130642         In the outer getmntent if-block, don't die if neither of the getmntent
130643         tests succeeds.  Instead, just fall through and continue with the
130644         remaining tests.
130646 2001-09-23  Jim Meyering  <meyering@lucent.com>
130648         * lib/mountlist.c: Remove useless parentheses in #if directives.
130649         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130650         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130652 2001-09-22  Jim Meyering  <meyering@lucent.com>
130654         * m4/gettext.m4: New file.  From gettext.
130655         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130656         * m4/progtest.m4: Likewise
130657         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130658         * m4/glibc21.m4: Likewise.
130660         * m4/libintl.m4: Remove.  No longer used.
130662 2001-09-22  Jim Meyering  <meyering@lucent.com>
130664         * lib/localcharset.c: Update from latest gettext.
130665         * lib/config.charset: Likewise.
130667 2001-09-20  Jim Meyering  <meyering@lucent.com>
130669         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130670         strtoimax.
130671         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130672         strtoumax.
130674 2001-09-20  Jim Meyering  <meyering@lucent.com>
130676         * lib/xstrtol.c (strtoimax): Guard declaration with
130677         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130678         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130679         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130680         (strtoumax): Likewise, for completeness (it wasn't necessary).
130682 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130684         * lib/strtoimax.c (HAVE_LONG_LONG):
130685         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130686         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130687         to work around bug in IBM C compiler.
130689 2001-09-17  Jim Meyering  <meyering@lucent.com>
130691         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130692         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130693         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130694         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130695         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130696         whenever the right hand side need not be expanded by the shell.
130698 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130700         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130701         library.  It's not correct, as some older glibcs are buggy.
130702         fnmatch wasn't fixed until glibc 2.2.
130704         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130705         special shell magic here.
130707 2001-09-16  Jim Meyering  <meyering@lucent.com>
130709         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130710         * m4/jm-macros.m4: Require it.
130712 2001-09-16  Jim Meyering  <meyering@lucent.com>
130714         * lib/mkdir.c: New file.
130716 2001-09-15  Jim Meyering  <meyering@lucent.com>
130718         * m4/jm-macros.m4: Check for help2man.
130720 2001-09-11  Jim Meyering  <meyering@lucent.com>
130722         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130723         The body, by Paul Eggert, was moved here from configure.in.
130724         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130726 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130728         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130729         (jm_PREREQ): Use it.
130731 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130733         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130734         Use ssize_t, not int, to store result of readlink.
130735         Check for ssize_t overflow as well as size_t overflow,
130736         as POSIX says the result of readlink is implementation-defined
130737         when ssize_t overflows.
130738         Remove unnecessary cast to char*.
130739         Use free+malloc instead of realloc, as the storage doesn't need
130740         to be preserved and it's clearer and can be more efficient that way.
130741         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130742         * lib/xreadlink.h (xreadlink): Update prototype.
130744 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130746         * lib/xgetcwd.c: Revert some of the previous change; intead,
130747         fix the HAVE_GETCWD_NULL code to behave more like the
130748         !HAVE_GETCWD_NULL code used to.
130750         Include "xalloc.h".
130751         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130752         invoke xalloc_die.
130754 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130756         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130757         sys/param.h, as pathmax.h includes them.
130759 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130761         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130762         (jm_PREREQ_XGETCWD): New macro.
130764         * m4/getcwd.m4: New file.
130766 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130768         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130769         like the HAVE_GETCWD_NULL code.
130770         Include pathmax.h if not HAVE_GETCWD.
130771         Do not include xalloc.h.
130772         (INITIAL_BUFFER_SIZE): New symbol.
130773         Do not use xmalloc / xrealloc, since the caller is responsible for
130774         handling errors.  Preserve errno around `free' during failure.
130775         Do not overrun buffer when using getwd.
130777 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130779         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130780         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130781         getcwd (NULL, 0).
130783 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130785         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130786         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130787         spotted by Jim Meyering.
130789 2001-09-03  Jim Meyering  <meyering@lucent.com>
130791         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130792         failure.
130794 2001-09-02  Jim Meyering  <meyering@lucent.com>
130796         * lib/error.c: Update from GNU libc.
130798 2001-09-01  Jim Meyering  <meyering@lucent.com>
130800         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130801         Used by df.
130803 2001-09-01  Jim Meyering  <meyering@lucent.com>
130805         * lib/xreadlink.c: New file.
130806         * lib/xreadlink.h: New file.
130807         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130808         xreadlink.h.
130810         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130811         doesn't conflict with sparc Solaris 7's definition in
130812         /usr/include/sys/int_types.h.
130814         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130815         files.
130816         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130817         and strncasecmp as r-values.  Unixware didn't have declarations.
130819 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130821         * lib/xstrtol.h: Add copyright notice.
130822         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130823         LONGINT_INVALID_SUFFIX_CHAR.
130825 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130827         * lib/xstrtol.c (strtoimax): New decl.
130829 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130831         * lib/xgetcwd.c: Don't include pathmax.h.
130832         Include stdlib.h and unistd.h if available.
130833         Include xalloc.h.
130834         (xmalloc, xstrdup, free): Remove decls.
130835         (xgetcwd): Don't assume sizes fit in unsigned.
130836         Check for overflow when computing sizes.
130837         Simplify reallocation code.
130839 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130841         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130842         a directory's st_size can have an arbitrary value, so the old
130843         usage could waste an arbitrary amount of memory.  All uses
130844         changed.
130845         * lib/savedir.h: Update prototype.
130847 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130849         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130851         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130852         old strtoimax.c.
130854         Also, make the following further changes to make this file's
130855         configuration more similar to that of strtol.c:
130856         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130857         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130858         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130859         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130860         changed to signed values.
130862         And make the following changes as well:
130863         Fix copyright notice, as 1999 was missing.
130864         (verify): New macro.
130865         (strtoimax): Check sizes at compile-time, not run-time.
130866         Prefer strtol to strtoll if both work.
130867         (main): Remove; it was not that useful and was a pain to maintain.
130869         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130871 2001-08-31  Jim Meyering  <meyering@lucent.com>
130873         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130874         Use an initial, malloc'd, buffer of length 128 rather than
130875         a statically allocated one of length 1024.
130877 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130879         Simplify code, partly by assuming autoconf 2.52 semantics.
130881         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130883         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130884         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130885         All uses removed.
130886         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130887         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130888         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130889         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130890         jm_AC_HEADER_INTTYPES_H.
130891         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130893         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130895         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130896         Quote first arg of AC_DEFUN.
130897         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130898         since they are needed to parse the include file even if we need
130899         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130900         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130901         but with opposite signedness.
130903 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130905         Merge 'exclude' changes from tar 1.13.22.
130906         This fixes one or two unlikely storage allocation overflow bugs,
130907         but doesn't change user-visible behavior otherwise.
130909 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130911         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130912         (jm_PREREQ_EXCLUDE): New macro.
130914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130916         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130917         tm to be declared.
130919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130921         * lib/hash.c: Remove '2001' from copyright notice.
130923 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130925         * lib/full-write.h: New file.
130926         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130927         * lib/full-write.c: Correct credits, as cccp.c no longer
130928         exists and anyway it was so heavily changed from the old cccp
130929         code as to be unrecognizable.  Include full-write.h.
130930         (full_write): Return size_t, with short writes meaning failure.
130931         All callers changed.  This fixes a bug with large buffers
130932         on 64-bit hosts.
130933         * lib/utime.c: Include full-write.h.
130935 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130937         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130938         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130939         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130940         Include if available.
130941         (<xalloc.h>): Include
130942         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130943         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130944         collide with FNM macros.
130945         (struct patopts): New struct.
130946         (struct exclude): Use it, as exclude patterns now come with options.
130947         (new_exclude): Support above changes.
130948         (new_exclude, add_exclude_file):
130949         Initial size must now be a power of two to simplify overflow checking.
130950         (free_exclude, fnmatch_no_wildcards): New function.
130951         (excluded_filename): No longer requires options arg, as the options
130952         are determined by add_exclude.  Now returns bool, not int.
130953         (excluded_filename, add_exclude):
130954         Add support for the fancy new exclusion options.
130955         (add_exclude, add_exclude_file): Now takes int options arg.
130956         Check for arithmetic overflow when computing sizes.
130957         (add_exclude_file): xrealloc might modify errno, so don't
130958         realloc until after errno might be used.
130960         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130961         New macros.
130962         (free_exclude): New decl.
130963         (add_exclude, add_exclude_file): Now takes int options arg.
130964         (excluded_filename): No longer requires options arg, as the options
130965         are determined by add_exclude.  Now returns bool, not int.
130967 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130969         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130971 2001-08-27  Jim Meyering  <meyering@lucent.com>
130973         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130975         * lib/version-etc.c (N_): Remove definition.
130976         Revert most of last change.
130977         Instead, simply don't mark the `Copyright...' string for translation.
130978         Based on advice from Paul Eggert.
130980         * lib/strtoxmax.c: Tweak comment.
130982 2001-08-26  Jim Meyering  <meyering@lucent.com>
130984         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130986         * m4/xstrtoimax.m4: New file.
130987         * m4/xstrtoumax.m4: Add comments explaining why we
130988         AC_REPLACE_FUNCS(strtol).
130990 2001-08-26  Jim Meyering  <meyering@lucent.com>
130992         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130993         of copyright with `%s' so translators don't get an untranslated
130994         message in 2002.
130995         (COPYRIGHT_YEAR): Define.
130996         (version_etc): Use fprintf rather than fputs.
130997         Suggestion from Ulrich Drepper.
130999         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
131001         * lib/strtoll.c: New file, from GNU libc.
131002         * lib/xstrtoimax.c: New file.
131004         * lib/xstrtol.h: Add xstrtoimax.
131005         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
131006         * lib/strtoimax.c: New file.  Likewise, but first define
131007         STRTOUXMAX_SIGNED.
131009         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
131010         ...
131011         * lib/strtoxmax.c: ... then renamed to this.
131013 2001-08-18  Paul Eggert  <eggert@twinsun.com>
131015         * m4/inttypes.m4: Add AC_PREREQ(2.13).
131016         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
131017         (jm_AC_TYPE_INTMAX_T): New macro.
131018         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
131020         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
131022         * m4/longlong.m4: Renamed from ulonglong.m4.
131023         * m4/inttypes.m4: Renamed from inttypes_h.m4.
131024         * m4/uintmax_t.m4: Removed.
131026 2001-08-13  Paul Eggert  <eggert@twinsun.com>
131028         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
131029         Port to Solaris 8, where 'sed' requires a space after the 'r'
131030         command, and where sh dislikes "$/".  Clean up the spacing a bit.
131031         Redirect output to $tmp just once.
131033 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
131035         * lib/addext.c (<errno.h>): Include.
131036         (errno): Declare if not defined.
131037         (addext): Work correctly when pathconf returns -1 and leaves
131038         errno alone because there is no limit.  Also, work even if
131039         pathconf returns a value greater than SIZE_MAX.
131041 2001-08-12  Jim Meyering  <meyering@lucent.com>
131043         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
131044         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
131045         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
131046         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
131047         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
131048         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
131049         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
131050         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
131051         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
131052         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
131053         utime.m4, utimes.m4, xstrtoumax.m4:
131054         Quote the first argument in each use of AC_DEFUN.
131056 2001-08-12  Jim Meyering  <meyering@lucent.com>
131058         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
131059         Simply `return getcwd (NULL, 0);'.
131060         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
131061         Use 1300 as initial value for length, not PATH_MAX.
131063         * lib/pathmax.h: Clean up cpp syntax.
131065 2001-08-12  Jim Meyering  <meyering@lucent.com>
131067         * lib/gettimeofday.c: New file.
131068         * lib/gtod.h: New file.
131069         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
131071 2001-08-05  Jim Meyering  <meyering@lucent.com>
131073         * m4/jm-macros.m4: Require autoconf-2.52.
131075 2001-08-04  Jim Meyering  <meyering@lucent.com>
131077         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
131078         stmt, to get in sync with glibc.
131080 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131082         The following changes are from gettext 0.10.39 as maintained by
131083         Bruno Haible.
131085         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
131086         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
131087         with inverted sense.  All uses changed.
131089         * lib/mbswidth.c: Don't include <limits.h>.
131090         Include <stdlib.h> and <string.h> unconditionally.
131091         (iswcntrl, mbsinit, ISCNTRL): New macros.
131092         (mbsnwidth): Use K&R style function declarations.
131093         Don't bother checking for MB_LEN_MAX == 1, since the compiler
131094         can optimize it when MB_CUR_MAX == 1.
131095         The width of control characters is zero, not 1.
131097 2001-08-03  Paul Eggert  <eggert@twinsun.com>
131099         The following changes are from gettext 0.10.39 as maintained by
131100         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
131102         * m4/codeset.m4: Upgrade to serial AM1.
131103         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
131104         all uses changed.  Quote first arg of AC_DEFUN.
131105         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
131107         * m4/iconv.m4: Upgrade to serial AM2.
131108         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
131109         Add --with-libconv-prefix.
131110         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
131111         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
131112         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
131113         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
131114         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
131116         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
131117         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
131118         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
131119         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
131120         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
131121         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
131122         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
131123         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
131124         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
131126         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
131127         string.h any more.
131129         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
131130         not the default value.
131132         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
131133         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
131134         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
131135         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
131136         Also check for iswcntrl, used for wcwidth fallback.
131137         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
131138         to Autoconf 2.13.
131140 2001-08-03  Jim Meyering  <meyering@lucent.com>
131142         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
131143         as it was in the original.  Reported by Paul Eggert.
131145 2001-07-16  Jim Meyering  <meyering@lucent.com>
131147         * m4/gettimeofday.m4: New file.
131148         Prompted by a report from Bernhard Baehr.
131150 2001-07-15  Jim Meyering  <meyering@lucent.com>
131152         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
131153         stuff. Now it's in ../Makefile.cfg.
131155 2001-07-15  Jim Meyering  <meyering@lucent.com>
131157         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
131158         (BUILT_SOURCES): Add unlocked-io.h.
131159         (io_functions): Define.
131160         (unlocked-io.h): New rule.
131161         (DISTCLEANFILES): Add unlocked-io.h.
131162         (all-local): Depend on unlocked-io.h, to ensure it is created.
131164         * lib/unlocked-io.hin: New file
131166         * lib/regex.c: Update from glibc.
131168 2001-07-05  Jim Meyering  <meyering@lucent.com>
131170         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
131171         recommendation.
131172         (libfetish_a_SOURCES): Put all .h files here instead.
131173         Remove a thus-exposed (better checks in automake) duplicate and
131174         two unnecessary .h files.
131176 2001-07-04  Jim Meyering  <meyering@lucent.com>
131178         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
131179         that generates jm-glibc-io.m4 so that it doesn't trigger any make
131180         distcheck failure.
131182 2001-07-02  Jim Meyering  <meyering@lucent.com>
131184         The following changes were prompted by suggestions from Bruno Haible.
131186         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
131187         is now generated.
131188         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
131189         definition of EXTRA_DIST.
131190         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
131191         ensure that the generated file is created/updated whenever the list
131192         of $(unlocked_functions) is changed.
131193         (jm-glibc-io.m4): New rule.
131194         (unlocked-io.h): New rule -- currently unused.
131196 2001-06-24  Jim Meyering  <meyering@lucent.com>
131198         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
131199         unmatched right bracket, rather than kludging it with an extra,
131200         falsely-matching quote in a comment.  Patch by Akim Demaille.
131202 2001-06-11  Jim Meyering  <meyering@lucent.com>
131204         * lib/regex.c: Update from GNU libc.
131206 2001-05-27  Jim Meyering  <meyering@lucent.com>
131208         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
131209         Check for ut_type in struct utmp.
131211 2001-05-27  Jim Meyering  <meyering@lucent.com>
131213         * lib/readutmp.h (UT_TYPE): Define.
131215 2001-05-24  Jim Meyering  <meyering@lucent.com>
131217         * lib/argmatch.c: Include "quote.h".
131218         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
131219         quote function.  Reported by Göran Uddeborg.
131221 2001-05-22  Jim Meyering  <meyering@lucent.com>
131223         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
131224         now that we use the package-supplied version unconditionally.
131225         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
131227 2001-05-21  Jim Meyering  <meyering@lucent.com>
131229         * m4/regex.m4: Change a couple backticks to single quotes to avoid
131230         shell syntax errors.
131232 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131234         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
131236 2001-05-20  Paul Eggert  <eggert@twinsun.com>
131238         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
131239         Don't bother to check library strftime, since
131240         we'll be using our own my_strftime function anyway.
131241         Define my_strftime instead of strftime.
131243 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
131245         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
131246         which is not yet declared.
131248 2001-05-15  Jim Meyering  <meyering@lucent.com>
131250         * m4/regex.m4: Use proper quoting so brackets appear in the test
131251         program.
131252         Reported by, and with help from, Bruno Haible.
131254 2001-05-13  Jim Meyering  <meyering@lucent.com>
131256         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131257         undefined.
131259 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131261         dirname code cleanup.  base_name now behaves more compatibly
131262         with POSIX basename when given file names that have trailing
131263         slashes, and similarly for dir_name.  Add new primitives
131264         base_len and dir_len.  Put the directory-name-related decls
131265         into dirname.h.
131267         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131268         * lib/backupfile.c (base_name): Likewise.
131269         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131270         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131271         * lib/makepath.c (strip_trailing_slashes): Likewise.
131272         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131273         ISSLASH): Likewise.
131274         * lib/rename.c (strip_trailing_slashes): Likewise.
131275         * lib/same.c (base_name): Likewise.
131276         * lib/stripslash.c (ISSLASH): Likewise.
131278         * lib/addext.c: Include <dirname.h> after size_t is defined.
131279         * lib/backupfile.c: Likewise.
131281         * lib/addext.c (addext): Use base_len to trim redundant
131282         trailing slashes instead of doing it ourselves.
131283         But do not trim the last slash if it is not redundant.
131285         * lib/backupfile.c (find_backup_file_name,
131286         max_backup_version): Use base_len instead of rolling it ourselves.
131287         Handle the case of "" and (on DOS) "C:" correctly.
131289         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131290         needed. Include <string.h>, <dirname.h>.
131291         (base_name): Allow file names ending in slashes, other than names
131292         that are all slashes.  In this case, return the basename followed
131293         by the slashes.  This is more general, and can be used in places
131294         where the original base_name purposely had an assertion failure.
131295         (base_len): New function.
131297         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131298         Do not include <assert.h>; no longer needed.
131299         Include xalloc.h.
131300         (memrchr): Remove decl.
131301         (dir_name_r): Remove.
131302         (dir_len): Renamed from dirlen.  All callers changed.
131303         Rewrite in terms of base_name, for simplicity and consistency.
131304         (dir_name): Never return NULL.  All callers changed.
131305         Do not include <stdlib.h> in test program; no longer needed.
131306         return 0; is fine for test program.
131308         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131309         New macros.
131310         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131312         * lib/path-concat.c (path_concat): Use base_len to compute
131313         base length, not strlen; this means we cannot rely on memcpy
131314         to null-terminate.
131316         * lib/same.c (STREQ): Remove.
131317         (same_name): Handle the case where the basename ends in trailing '/'.
131319         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131320         a slash was stripped.  Do not strip the last slash after a
131321         file system prefix.
131323 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131325         * lib/Makefile.am (libfetish_a_SOURCES):
131326         Add strftime.c, since we now compile it on all hosts.
131328         * lib/strftime.c (my_strftime):
131329         Define to nstrftime if emacs, but only if my_strftime is not defined.
131330         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131331         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131332         Add one more extra argument: a nanoseconds value.
131333         All uses changed.
131334         (ns): New macro.
131335         (my_strftime function): Add %N format.
131336         (emacs_strftimeu): Renamed from emacs_strftime,
131337         with extra ut argument.
131339 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131341         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131343 2001-04-21  Jim Meyering  <meyering@lucent.com>
131345         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131346         doesn't interfere.
131348 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131350         * m4/ftruncate.m4: Check for chsize.
131351         Link with ftruncate.o unconditionally if ftruncate is missing.
131352         This was required when cross-compiling to i586-mingw32msvc.
131354 2001-04-08  Jim Meyering  <meyering@lucent.com>
131356         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131357         recomputed; that's necessary when the offset spans a DST transition.
131358         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131360 2001-04-02  Jim Meyering  <meyering@lucent.com>
131362         * lib/regex.h, regex.c: Update from GNU libc.
131364 2001-03-24  Jim Meyering  <meyering@lucent.com>
131366         * m4/jm-macros.m4: Require autoconf-2.49d.
131368 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131370         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131372 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131374         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131376 2001-03-17  Jim Meyering  <meyering@lucent.com>
131378         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131379         now that the version in autoconf is equivalent.
131380         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131382         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131383         Suggestion from Akim Demaille.
131385         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131386         (jm_PREREQ_TEMPNAME): New function.
131388 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131390         * lib/tempname.c (uint64_t): Define to uintmax_t if
131391         not defined, and if UINT64_MAX is not defined.
131392         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131393         Reported by John David Anglin.
131395 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131397         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131398         resolve alias if codeset is empty.
131399         * lib/config.charset (BeOS): Use wildcard syntax.
131401 2001-03-13  Jim Meyering  <meyering@lucent.com>
131403         * lib/path-concat.c (path_concat)
131404         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131405         concatenating e.g., `C:' and `foo'.
131406         From Bruno Haible.
131408 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131410         * lib/localcharset.c (locale_charset): Don't use
131411         setlocale(LC_CTYPE,NULL). Don't return NULL.
131412         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131414 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131416         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131417         support for DOS/DJGPP.
131419 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131421         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131422         lacks mkstemp.  Compile our own tempname.c if we compile our own
131423         mkstemp.c, as mkstemp relies on tempname.
131425 2001-03-01  Jim Meyering  <meyering@lucent.com>
131427         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131428         AH_VERBATIM really does output its argument verbatim.
131430 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131432         * lib/Makefile.am (libfetish_a_SOURCES):
131433         Add dup-safer.c, fopen-safer.c.
131434         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131436         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131437         * lib/unistd-safer.h: New files.
131439 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131441         The mkstemp replacement is taken from glibc 2.2.2, with some
131442         portability fixes for use outside glibc, as follows:
131444         * lib/tempname.c (struct_stat64): New macro.
131445         (direxists, __gen_tempname): Use it.
131446         This avoids a portability problem with Solaris 8.
131448         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131449         (<stddef.h>, <stdint.h>, <string.h>):
131450         Include only if STDC_HEADERS || _LIBC.
131451         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131452         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131453         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131454         (__set_errno): Define this macro if <errno.h> doesn't.
131455         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131456         Define these macros if <stdio.h> doesn't.
131457         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131458         Define these macros if <sys/stat.h>
131459         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131460         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131461         __xstat64): Define if not _LIBC.
131462         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131463         (__gen_tempname): Invoke gettimeofday only if
131464         HAVE_GETTIMEOFDAY || _LIBC;
131465         otherwise, fall back on plain "time".
131466         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131468         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131470         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131472 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131474         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131476 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131478         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131479         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131480         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131483 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131485         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131486         Remove workaround macros for hosts that have mbrtowc but not
131487         mbstate_t, as we now insist on proper declarations for both
131488         before using mbrtowc.
131490 2001-02-17  Jim Meyering  <meyering@lucent.com>
131492         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131493         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131494         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131495         UnixWare 7.1.1.
131497         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131498         rather than AC_CACHE_VAL.
131500 2001-02-17  Jim Meyering  <meyering@lucent.com>
131502         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131503         around included file name.
131505         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131507         * lib/strftime.c: Update from GNU libc (the only changes were to
131508         comments).
131510 2001-02-17  Jim Meyering  <meyering@lucent.com>
131512         * lib/regex.c: Update from libc.
131514 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131516         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131517         clash.
131519 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131521         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131522         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131523         Reported by Mark Hounschell via Paul Eggert.
131525 2001-02-07  Jim Meyering  <meyering@lucent.com>
131527         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131529 2001-02-05  Jim Meyering  <meyering@lucent.com>
131531         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131532         it includes the patch required for `large file' support with at least
131533         HP-UX's 10.20 /bin/cc.
131535 2001-02-03  Jim Meyering  <meyering@lucent.com>
131537         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131538         AS_IF, now that it works once again (mysteriously).
131539         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131541 2001-01-30  Jim Meyering  <meyering@lucent.com>
131543         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131544         * m4/chown.m4: Rename conftestchown to conftest.chown.
131545         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131546         s/conftestdir2/conftest.d2/.
131547         * m4/utimes.m4: s/conftestdata/conftest.data/
131548         Inspired by Pavel Roskin's change in autoconf.
131550 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131552         * lib/config.charset: Update for FreeBSD 4.2.
131554 2001-01-27  Jim Meyering  <meyering@lucent.com>
131556         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131557         a use of AS_IF.
131558         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131560 2001-01-26  Jim Meyering  <meyering@lucent.com>
131562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131563         quotearg.c includes it.
131565 2001-01-26  Jim Meyering  <meyering@lucent.com>
131567         * lib/quotearg.c: Include stddef.h.
131568         * lib/quote.c: Include stddef.h.
131569         Reported by Axel Kittenberger.
131571         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131572         line in double quotes so that it evokes a better diagnostic.
131573         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131574         Reported by Axel Kittenberger.
131576 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131578         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131579         as if it was a `charset'.
131581 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131583         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131584         has const.
131586 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131588         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131589         to avoid a warning.  Add back 'const' to inptr.
131591 2001-01-20  Jim Meyering  <meyering@lucent.com>
131593         Be sure that headers are checked before used in code compiled
131594         for the type checks.
131595         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131596         In place of that, invoke jm_CHECK_ALL_TYPES.
131597         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131598         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131599         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131600         The check for ssize_t was mistakenly run before the test for unistd.h.
131602         The configure-time check for stdbool.h was missing.
131603         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131604         (jm_PREREQ_HASH): New function.
131606 2001-01-17  Jim Meyering  <meyering@lucent.com>
131608         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131609         for autoconf-2.49c.
131610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131612 2001-01-16  Jim Meyering  <meyering@lucent.com>
131614         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131615         From Bruno Haible.
131617 2001-01-14  Jim Meyering  <meyering@lucent.com>
131619         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131620         foo and bar.  Create conftestdir/ in the script, not in the C code.
131621         Remove directories in the script, not in the C code.
131622         Remove conftestdir{,2} before trying to create the directory.
131623         Make the entire configure script fail if the mkdir fails.
131625 2001-01-14  Jim Meyering  <meyering@lucent.com>
131627         * lib/rename.c: New file.  From Volker Borchert.
131628         Include stdlib.h, string.h or strings.h, and xalloc.h.
131629         Use strip_trailing_slashes rather than open-coding it.
131631 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131633         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131635 2001-01-03  Jim Meyering  <meyering@lucent.com>
131637         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131638         of local `inptr' to avoid warning with some system declarations of
131639         iconv.
131641 2001-01-02  Volker Borchert  <bt@teknon.de>
131643         * m4/rename.m4: New file.
131644         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131646 2001-01-01  Jim Meyering  <meyering@lucent.com>
131648         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131649         even on systems with utmpx.h.  It's necessary for the declaration of
131650         utmp's ut_user member.  Reported by Andreas Jaeger.
131652         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131653         available. They are required for the declarations of getgrgid and
131654         getpwuid resp.
131655         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131656         Reported by Andreas Jaeger.
131658 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131660         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131661         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131662         so `make install' also works in VPATH builds.
131664 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131666         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131667         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131668         can be used in subdirectories.
131670 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131672         * lib/modechange.c: Do not assume that mode_t uses the
131673         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131674         the other-execute bit of FOO even if S_IXOTH != 1.
131676         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131677         WOTH, XOTH, ALLM): New macros.
131678         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131679          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131680         Use them.
131681         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131682         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131683         (mode_compile):
131684         No need to use uintmax_t; unsigned long is long enough.
131685         Don't bother to get suffix since we don't use it.
131687 2000-12-26  Jim Meyering  <meyering@lucent.com>
131689         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131690         better with autoheader.
131692 2000-12-24  Jim Meyering  <meyering@lucent.com>
131694         * lib/hash.c (is_prime): Return explicit boolean values.
131695         (hash_get_first): Return NULL to appease Irix5.6's 89.
131696         Reported by Nelson Beebe.
131698 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131700         * lib/localcharset.c (locale_charset): Add support for Win32.
131702 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131704         * lib/physmem.h, lib/physmem.c: New files.
131706         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131707         (noinst_HEADERS): Add physmem.h.
131709         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131710         't' for compatibility with Solaris 8 sort.
131712 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131714         * lib/config.charset: Add support for BeOS.
131716 2000-12-17  Jim Meyering  <meyering@lucent.com>
131718         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131719         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131721 2000-12-16  Jim Meyering  <meyering@lucent.com>
131723         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131724         N and M) would have treated it like `chown N:N FILE'.
131726         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131728 2000-12-16  Jim Meyering  <meyering@lucent.com>
131730         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131731         SHELLS_FILE to a file name that's useful on djgpp systems.
131732         Include stdlib.h.
131733         (ADDITIONAL_DEFAULT_SHELLS): Define.
131734         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131735         Based mostly on a patch from Prashant TR.
131737 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131739         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131740         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131741         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131743 2000-12-08  Andreas Schwab  <schwab@suse.de>
131745         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131746         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131748 2000-12-07  Jim Meyering  <meyering@lucent.com>
131750         * lib/stripslash.c (ISSLASH): Define.
131751         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131752         `/'.
131753         From Prashant TR.
131755         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131756         (dir_name_r): Declare this function as static.
131757         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131758         manifest itself on a name containing a mix of slashes and
131759         backslashes.
131760         Make this function work with names starting with a DOS-style
131761         drive letter and colon prefix.
131762         (dir_name): Append `.' if necessary.
131763         Based mostly on patches from Prashant TR and Eli Zaretskii.
131765         * lib/dirname.h (dir_name_r): Remove prototype.
131767 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131769         * m4/off_t-format.m4: Remove this file.
131770         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131772 2000-12-06  Jim Meyering  <meyering@lucent.com>
131774         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131775         replacement strtoull, we may well need the replacement strtoul, too.
131776         Check for declarations of strtoul and strtoull.
131777         Check for strtol.  Mainly as a cue to cause automake to include
131778         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131779         Check for limits.h -- strtol.c needs it.
131781 2000-12-05  Jim Meyering  <meyering@lucent.com>
131783         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131785 2000-12-04  Jim Meyering  <meyering@lucent.com>
131787         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131788         Also include memory.h, stdlib.h, unistd.h if appropriate.
131789         Reported by Andreas Jaeger (conflicting declaration of malloc).
131791 2000-12-02  Jim Meyering  <meyering@lucent.com>
131793         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131794         * m4/jm-macros.m4 (jm_MACROS): require it.
131796 2000-12-02  Jim Meyering  <meyering@lucent.com>
131798         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131800 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131802         * lib/memrchr.c: Include <config.h> before any system include file.
131804 2000-11-30  Jim Meyering  <meyering@lucent.com>
131806         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131808 2000-11-30  Jim Meyering  <meyering@lucent.com>
131810         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131812 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131814         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131816 2000-11-26  Jim Meyering  <meyering@lucent.com>
131818         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131820 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131822         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131823         size of (size_t) -1; it's not portable.
131825 2000-11-17  Jim Meyering  <meyering@lucent.com>
131827         * lib/strstr.c: Update from GNU libc.
131829 2000-11-17  Akim Demaille  <akim@epita.fr>
131831         * lib/obstack.h: Formatting changes.
131832         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131833         prevent type checking.
131834         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131835         cast the value to (void *): assigning a `foo *' to a `void *'
131836         variable is valid.
131837         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131839 2000-11-16  Jim Meyering  <meyering@lucent.com>
131841         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131843 2000-11-11  Jim Meyering  <meyering@lucent.com>
131845         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131847 2000-11-10  Jim Meyering  <meyering@lucent.com>
131849         * lib/obstack.h: Update from GNU libc.
131850         * lib/obstack.c: Likewise.
131852 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131854         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131856 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131858         * lib/getusershell.c (setusershell): Use rewind rather than
131859         fseek/fseeko, to avoid configuration hassles with fseeko.
131860         Don't bother opening SHELLS_FILE if shellstream is NULL;
131861         it's not necessary.
131863 2000-11-05  Jim Meyering  <meyering@lucent.com>
131865         * lib/makepath.h (make_dir): Declare.
131866         * lib/makepath.c (make_dir): Remove `static' attribute.
131867         Tweak a comment.
131869 2000-11-04  Jim Meyering  <meyering@lucent.com>
131871         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131873 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131875         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131876         last one in a bucket, advance to the next bucket.
131878 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131880         * lib/fnmatch.c: Do not comment out all the code if we are using
131881         the GNU C library, because in some cases we are replacing buggy
131882         code in the GNU C library itself.
131884 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131886         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131887         (regex_compile): Catch bogus \(\1\).
131889 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131891         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131892         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131893         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131895 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131897         * lib/error.h, getline.h, modechange.h:
131898         Remove "2000" from Copyright line, as the file hasn't been
131899         changed this year other than in the copyright notice.
131901         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131902         was changed this year.
131904 2000-10-29  Jim Meyering  <meyering@lucent.com>
131906         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131907         renaming.
131908         * m4/ls-mntd-fs.m4: Likewise
131910 2000-10-29  Jim Meyering  <meyering@lucent.com>
131912         * lib/xstat.in: Fix grammar in comment.
131914 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131916         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131917         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131918         doesn't define __restrict_arr.
131920 2000-10-28  Jim Meyering  <meyering@lucent.com>
131922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131923         (jm_PREREQ_MEMCHR): New function.
131925 2000-10-28  Jim Meyering  <meyering@lucent.com>
131927         * lib/memchr.c: Update from libc.
131928         Adjust for portability:
131929         [HAVE_STDLIB_H]: Include stdlib.h.
131930         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131931         Undef __memchr, too.
131932         [!weak_alias]: Define __memchr to memchr.
131934         * lib/regex.c: Update from libc.
131935         * lib/regex.h: Likewise.
131936         * lib/getopt1.c: Likewise.
131937         * lib/memcmp.c: Likewise.
131939         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131940         Avoid using fseek, when possible -- it's broken by design.
131941         Patch by Ulrich Drepper.
131943 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131945         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131946         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131947         Giving in to popular pressure to shut up the compiler with casts.
131949 2000-10-26  Jim Meyering  <meyering@lucent.com>
131951         * lib/strftime.c: Update from libc.
131953 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131955         * regex.c: More `unsigned char' -> `re_char' changes.
131956         Also change several `int' into `re_wchar_t'.
131957         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131958         (PUSH_FAILURE_POINTER): Don't cast any more.
131959         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131960         We want GCC to complain, since this piece of code makes
131961         re_match non-reentrant, which *should* be fixed.
131962         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131963         (EXTEND_BUFFER): Use RETALLOC.
131964         (SET_LIST_BIT): Don't cast.
131965         (re_wchar_t): New type.
131966         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131967         that those two functions will always properly return.
131968         (IMMEDIATE_QUIT_CHECK): Cast to void.
131969         (analyse_first): Use recursion rather than an explicit stack.
131970         (re_compile_fastmap): Can't fail anymore.
131971         (re_search_2): Don't check re_compile_fastmap for failure.
131972         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131973         Now also sets the new value (passed in a new argument).
131974         (re_match_2_internal): Use it.
131975         Also, use a new var `reg' of type size_t when looping through regs
131976         rather than reuse the inappropriate `mcnt'.
131978 2000-10-25  Jim Meyering  <meyering@lucent.com>
131980         * lib/obstack.c: Update from libc.
131982 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131984         * regex.c (regex_compile): Change the way of handling a range from
131985         a char less than 256 to a char not less than 256.
131987 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131989         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131990         NT-Emacs only.
131991         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131992         so that re_search functions only quit when callers expect them to.
131994 2000-10-23  Jim Meyering  <meyering@lucent.com>
131996         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131997         wrong.  That set_locale call must not have any side effects.
131998         From Paul Eggert.
132000 2000-10-22  Jim Meyering  <meyering@lucent.com>
132002         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
132003         [CYCLIC]: Remove now-unused definition.
132005         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
132006         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
132007         Suggestion from Ulrich Drepper.
132009 2000-10-21  Jim Meyering  <meyering@lucent.com>
132011         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
132012         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
132013         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
132015 2000-10-21  Jim Meyering  <meyering@lucent.com>
132017         * lib/dirname.c (memrchr): Declare if necessary.
132018         (dir_name): Remove the restriction that there be no
132019         trailing slashes.  Now, this code skips past them, effectively
132020         ignoring them.
132021         [TEST_DIRNAME] (main): New unit tests.
132023         * lib/memrchr.c: New file from GNU libc.
132024         Undef __memrchr, too.
132025         [!weak_alias]: Define __memrchr to memrchr.
132026         Guard weak_alias use with `#ifdef weak_alias'.
132028 2000-10-21  Jim Meyering  <meyering@lucent.com>
132030         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
132031         (dir_name): Use dir_name_r.
132032         * lib/dirname.h (dir_name_r): Declare it.
132034 2000-10-17  Jim Meyering  <meyering@lucent.com>
132036         * lib/quote.h (PARAMS): Define and use.
132037         Reported by Akim Demaille.
132039         * lib/getopt.c: Update from libc.
132041 2000-10-16  Jim Meyering  <meyering@lucent.com>
132043         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
132044         setlocale.
132045         From Jan Fedak.
132047 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
132049         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
132051 2000-09-25  Jim Meyering  <meyering@lucent.com>
132053         * lib/md5.h (rol): Define (from GnuPG).
132055         * lib/sha.c: Give credit (GnuPG) where due.
132056         (M): Use rol rather than open-coding it.
132057         Add a FIXME comment.
132059 2000-09-21  Jim Meyering  <meyering@lucent.com>
132061         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
132062         Reported by Michael Stone.
132064 2000-09-20  Jim Meyering  <meyering@lucent.com>
132066         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
132067         (noinst_HEADERS): Add sha.h.
132068         Based on code from Scott G. Miller and from GnuPG.
132070 2000-09-18  Jim Meyering  <meyering@lucent.com>
132072         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
132073         LIBS. Otherwise, everyone ends up linking with -lelf for some
132074         configurations.
132075         Reported by Mike Stone.
132077 2000-09-15  Jim Meyering  <meyering@lucent.com>
132079         * lib/regex.c: Update from libc.
132081 2000-09-10  Jim Meyering  <meyering@lucent.com>
132083         * lib/getopt.c (_getopt_internal): Update from glibc.
132085 2000-09-09  Jim Meyering  <meyering@lucent.com>
132087         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
132088         think it should be used as a general replacement for isascii.
132089         * lib/fnmatch.c: Likewise.
132090         * lib/mbswidth.c: Likewise
132091         * lib/regex.c: Likewise.
132093         Don't use atoi.
132094         * lib/userspec.c: Include sys/param.h and limits.h.
132095         Include xstrtol.h.
132096         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
132097         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
132098         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
132099         UID, GID.  Check range.
132101 2000-09-06  Jim Meyering  <meyering@lucent.com>
132103         * lib/getopt.c (_getopt_internal): Update from glibc.
132105 2000-08-30  Jim Meyering  <meyering@lucent.com>
132107         * lib/strftime.c: Merge in changes from GNU libc.
132109 2000-08-26  Jim Meyering  <meyering@lucent.com>
132111         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
132112         * m4/fpending.m4: New file.
132114 2000-08-26  Jim Meyering  <meyering@lucent.com>
132116         * lib/closeout.c: Include "__fpending.h".
132117         (close_stdout_status): Return right away if there's nothing to flush.
132119         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
132120         * lib/__fpending.c: New file.
132121         * lib/__fpending.h: New file.
132123 2000-08-20  Jim Meyering  <meyering@lucent.com>
132125         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
132126         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
132127         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
132129 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
132131         Improve fileutils installation on systems where running
132132         programs (like install) can't be unlinked.
132133         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
132134         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
132136 2000-08-07  Paul Eggert  <eggert@twinsun.com>
132138         Standardize on "memory exhausted" instead of "Memory exhausted"
132139         or "virtual memory exhausted".
132140         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
132141         "virtual memory exhausted".
132142         * lib/same.c (same_name): Invoke xalloc_die instead of printing
132143         our own message.
132144         * lib/userspec.c (parse_user_spec): Likewise.
132145         * lib/bumpalloc.h: comment fix
132146         * lib/same.c, userspec.c: Include xalloc.h.
132148         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
132149         not char *const and pointing to a constant array.
132150         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
132151         (xrealloc): Comment fix.
132153         * lib/userspec.c (parse_user_spec):
132154         Don't translate a message until just before returning,
132155         to avoid unnecessary translation.
132157 2000-08-07  Jim Meyering  <meyering@lucent.com>
132159         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
132160         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
132161         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
132162         getgroups.c, gethostname.c, getopt.h, group-member.c,
132163         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
132164         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
132165         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
132166         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
132167         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
132168         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
132169         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
132170         yesno.c: Back out Copyright date changes for each file with no change
132171         this year.  This eases coordination with other programs using the same
132172         source code modules.  From Paul Eggert.
132174 2000-08-06  Paul Eggert  <eggert@twinsun.com>
132176         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
132177         not char, for compatibility with glibc 2.1.3 strftime.c.
132179 2000-08-03  Greg McGary  <greg@mcgary.org>
132181         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
132182         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
132183         (EXTEND_BUFFER): Use them.
132185 2000-08-01  Jim Meyering  <meyering@lucent.com>
132187         * lib/dirname.c (ISSLASH): Define.
132188         (BACKSLASH_IS_PATH_SEPARATOR): Define.
132189         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
132190         both `\' and `/' may be use as path separators.
132191         Based on a patch from Prashant TR.
132193 2000-07-31  Paul Eggert  <eggert@twinsun.com>
132195         * lib/quotearg.c (quotearg_n_options): Don't make the initial
132196         slot vector a constant, since it might get modified.
132198 2000-07-31  Jim Meyering  <meyering@lucent.com>
132200         * lib/xmalloc.c: Use `virtual memory exhausted', not
132201         `Memory exhausted'.
132202         * lib/obstack.c (print_and_abort): Likewise.
132204 2000-07-30  Paul Eggert  <eggert@twinsun.com>
132206         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
132207         buffer, so that the caller can always quote one small
132208         component of a "memory exhausted" message in slot 0.
132209         From a suggestion by Jim Meyering.
132211 2000-07-30  Jim Meyering  <meyering@lucent.com>
132213         * lib/makepath.c (make_path): Quote the other instance, too.
132215         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
132216         (STATIC_BUF_SIZE): Define.
132217         (quotearg_n_options): Use only statically allocated storage when
132218         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
132219         than STATIC_BUF_SIZE.
132221 2000-07-29  Jim Meyering  <meyering@lucent.com>
132223         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
132224         * lib/dirname.c (dir_name): Likewise.
132226         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
132227         `/'.
132229         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
132230         (dir_name): Assert that there are no trailing slashes.
132232 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
132234         * lib/mbswidth.h (mbswidth): Add a flags argument.
132235         (mbswidth): New declaration.
132236         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
132237         * lib/mbswidth.c (mbswidth): Add a flags argument.
132238         (mbsnwidth): New function.
132240 2000-07-24  Jim Meyering  <meyering@lucent.com>
132242         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
132244 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132246         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
132248 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132250         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
132251         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
132252         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
132253         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132254         invoke multibyte primitives.
132256 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132258         * lib/quotearg.c:
132259         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132260         so that mbstate_t is always defined.
132262         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132263         be 1 in at least one GCC installation, and this configuration
132264         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132265         performance on hosts that have mbrtowc but have only unibyte
132266         locales, but I assume these hosts are rare.
132268 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132270         * lib/mbswidth.c (_XOPEN_SOURCE):
132271         Don't define; this causes problems on Solaris 7.
132272         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132274 2000-07-23  Jim Meyering  <meyering@lucent.com>
132276         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132277         too: getgrgid, getpwuid, getuid.
132279 2000-07-23  Jim Meyering  <meyering@lucent.com>
132281         * lib/basename.c (base_name): Add an assertion.
132283 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132285         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132286         shadow its mbsinit function.
132288 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132290         * lib/mbswidth.h: New file.
132291         * lib/mbswidth.c: New file.
132292         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132293         (noinst_HEADERS): Add mbswidth.h.
132295 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132297         * lib/config.charset: Add support for FreeBSD. Improve support for
132298         HP-UX and IRIX 6.
132300 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132302         * m4/mbswidth.m4: New file.
132303         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132305 2000-07-15  Jim Meyering  <meyering@lucent.com>
132307         * lib/makepath.c: Include quote.h.
132308         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132309         corresponding argument in a `quote (...)' call.
132310         Give better diagnostics.
132312         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132313         (noinst_HEADERS): Add quote.h.
132315         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132316         from tar's src/misc.c.
132317         * lib/quote.h: New file.  Prototypes for same.
132319 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132321         From a suggestion by Bruno Haible.
132322         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132323         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132324         to decide whether to define the BeOS workaround macro;
132325         this adjusts to the change to AC_MBSTATE_T.
132327 2000-07-14  Jim Meyering  <meyering@lucent.com>
132329         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132330         jm_AC_TYPE_UINTMAX_T.
132332 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132334         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132336         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132337         quotearg_buffer_restyled): Add support for
132338         clocale_quoting_style.  Undo previous change to
132339         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132340         and "{RIGHT QUOTATION MARK}" msgids.
132342 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132344         From a suggestion by Bruno Haible.
132345         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132346         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132347         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132348         and mbstate_t, to a single-part test that simply defines mbstate_t.
132349         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132350         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132352 2000-07-10  Jim Meyering  <meyering@lucent.com>
132354         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132356         * m4/gnu-source.m4: Output to confdefs.h directly.
132357         Suggestion from Akim Demaille.
132359 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132361         The old behavior of quoting `like this' doesn't look good with
132362         newer, ISO-style fonts.  See:
132363         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132365         Instead, quote "like this" by default.  Let the translator
132366         tailor the locale-specific quoting behavior by providing
132367         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132369         * lib/quotearg.c (N_): New macro.
132370         (gettext_default): New function.
132371         (quotearg_buffer_restyled): Use
132372         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132373         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132375 2000-07-09  Jim Meyering  <meyering@lucent.com>
132377         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132378         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132380         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132381         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132383 2000-07-09  Jim Meyering  <meyering@lucent.com>
132385         * lib/Most files: Update copyright dates to include 2000.
132387 2000-07-08  Jim Meyering  <meyering@lucent.com>
132389         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132390         if not defined.
132391         (xgethostname): Remove now-unnecessary #ifdef.
132392         Move declaration of `err' into loop where it's used.
132394 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132395         and Bruno Haible  <haible@clisp.cons.org>
132397         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132398         only if the test for an object-type mbstate_t fails.  This
132399         prevents us from mistakenly reporting that mbstate_t is a
132400         system object type after we "#define mbstate_t int" to work
132401         around its lack.
132403 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132404         and Bruno Haible  <haible@clisp.cons.org>
132406         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132408 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132410         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132411         to strerror_r.
132412         Include <ctype.h> for use of isalpha.
132414 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132416         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132417         by allocating a larger buffer. Test the gethostname return value for
132418         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132419         returns an error and ENAMETOOLONG isn't defined.
132421 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132423         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132424         dimension.
132426 2000-07-04  Jim Meyering  <meyering@lucent.com>
132428         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132429         of the deprecated AC_CHECKING.
132431 2000-07-04  Jim Meyering  <meyering@lucent.com>
132433         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132434         Reported by Bruno Haible.
132436 2000-07-04  Jim Meyering  <meyering@lucent.com>
132438         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132439         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132440         lacks mbrtowc.
132442 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132444         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132445         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132447 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132448         and Bruno Haible  <haible@clisp.cons.org>
132450         * lib/quotearg.c (mbrtowc):
132451         Assign to *pwc, and return 1 only if result is nonzero.
132452         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132454 2000-07-03  Jim Meyering  <meyering@lucent.com>
132456         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132458 2000-07-03  Jim Meyering  <meyering@lucent.com>
132460         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132461         This is necessary to get a definition of e.g., UTMP_FILE on
132462         HP-UX 10.20.
132463         From Bob Proulx.
132465 2000-07-02  Jim Meyering  <meyering@lucent.com>
132467         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132469         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132470         AC_LIBOBJ(function_name).
132471         * m4/chown.m4: Likewise.
132472         * m4/fnmatch.m4: Likewise.
132473         * m4/ftruncate.m4: Likewise.
132474         * m4/getgroups.m4: Likewise.
132475         * m4/getline.m4: Likewise.
132476         * m4/group-member.m4: Likewise.
132477         * m4/jm-macros.m4: Likewise.
132478         * m4/lstat.m4: Likewise.
132479         * m4/malloc.m4: Likewise.
132480         * m4/memcmp.m4: Likewise.
132481         * m4/nanosleep.m4: Likewise.
132482         * m4/putenv.m4: Likewise.
132483         * m4/realloc.m4: Likewise.
132484         * m4/regex.m4: Likewise.
132485         * m4/stat.m4: Likewise.
132486         * m4/strftime.m4: Likewise.
132488 2000-07-02  Jim Meyering  <meyering@lucent.com>
132490         * lib/quotearg.c (mbstate_t): Don't define here.
132492 2000-07-02  Jim Meyering  <meyering@lucent.com>
132494         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132496 2000-07-01  Jim Meyering  <meyering@lucent.com>
132498         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132500 2000-07-01  Jim Meyering  <meyering@lucent.com>
132502         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132503         problem.
132505 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132508         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132510 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132512         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132513         per change in ../m4/ls-mntd-fs.m4.
132514         (read_filesystem_list): Ignore symbolic links.
132516 2000-06-29  Jim Meyering  <meyering@lucent.com>
132518         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132519         for declaration of strcmp.
132521         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132523         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132524         Avoid warning by casting result to `char *' to remove `const'.
132526 2000-06-28  Jim Meyering  <meyering@lucent.com>
132528         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132529         included by quotearg.c, for which we perform this test.  From
132530         Bruno Haible.
132532 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132534         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132535         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132536         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132538 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132540         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132542 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132544         savedir now sets errno on failure and invokes xmalloc to get memory.
132545         Fix a couple of other minor bugs while we're at it.
132547         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132548         (NAMLEN): Remove macro.
132549         (malloc, realloc): Remove decls.
132550         (stpcpy): Likewise.
132551         ("xalloc.h"): Include.
132552         (NAME_SIZE_DEFAULT): New macro.
132553         (savedir): Use xmalloc / xrealloc to allocate memory.
132554         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132555         Skip "" directory entries.
132556         Use strlen to calculate directory entry length, since the old method
132557         is rarely used these days and isn't worth supporting.
132558         Don't use a pointer after freeing it.
132559         Check for integer overflow when calculating allocation size.
132560         Use memcpy to copy entries, instead of stpcpy.
132561         Set errno properly when returning NULL.
132562         Check for readdir error.
132564 2000-06-26  Jim Meyering  <meyering@lucent.com>
132566         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132568 2000-06-25  Jim Meyering  <meyering@lucent.com>
132570         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132571         Linux header bug when _XOPEN_SOURCE is defined to 500.
132573 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132575         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132576         deficiency.
132578 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132580         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132581         Include xalloc.h.
132582         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132584 2000-06-24  Jim Meyering  <meyering@lucent.com>
132586         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132587         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132588         for which strerror does return char*, but which lacks a conveniently
132589         accessible declaration of the function.  If the compile-test says
132590         strerror_r doesn't work, then resort to a `run'-test that works on
132591         BeOS and segfaults on DEC Unix.
132593 2000-06-24  Jim Meyering  <meyering@lucent.com>
132595         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132597 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132599         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132600         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132602 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132604         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132605         (mbrtowc, mbstate_t): Define substitutes if
132606         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132607         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132608         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132610 2000-06-23  Jim Meyering  <meyering@lucent.com>
132612         * m4/afs.m4: Add missing AC_MSG_RESULT.
132613         Reported by Bruno Haible.
132615         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132616         Suggestion from Bruno Haible.
132618 2000-06-23  Jim Meyering  <meyering@lucent.com>
132620         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132622 2000-06-21  Jim Meyering  <meyering@lucent.com>
132624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132626 2000-06-21  Jim Meyering  <meyering@lucent.com>
132628         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132629         (noinst_HEADERS): Add getstr.h.
132631         * lib/getline.c (getstr): Move into a separate file.
132632         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132633         the following changes: new parameter, delim2; both delim[12]
132634         parameters have type `int', not `char'.  The latter would lose
132635         with 8-bit delimiters.
132636         * lib/getstr.h: New file.
132638 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132640         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132641         than 1024, return a memory chunk of least possible size, instead
132642         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132643         Use free/xmalloc instead of xrealloc to avoid copying for very long
132644         paths.
132646 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132648         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132649         the empty string.
132651 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132653         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132654         address, not strdup.  Include <stdlib.h> and don't declare free().
132656 2000-06-19  Jim Meyering  <meyering@lucent.com>
132658         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132660 2000-06-18  Jim Meyering  <meyering@lucent.com>
132662         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132664         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132665         `checking whether...' message to be consistent with that of the
132666         lstat test.
132668 2000-06-18  Jim Meyering  <meyering@lucent.com>
132670         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132671         Besides, these days every porting target provides a mkdir function.
132673         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132674         needed. (this snippet comes from src/system.h).
132676 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132678         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132680 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132682         * lib/human.c (adjust_value): New function.
132683         (human_readable_inexact): Apply rounding style even when
132684         printing approximate values.
132686 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132688         * lib/human.c (human_readable_inexact): Allow an input block
132689         size that is not a multiple of the output block size, and vice versa.
132690         Reported by Piergiorgio Sartor.
132692 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132694         * lib/getdate.y (get_date): Apply relative times after time
132695         zone indicator, not before.  Reported by Todd A. Jacobs.
132697 2000-06-13  Jim Meyering  <meyering@lucent.com>
132699         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132701         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132703 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132705         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132707 2000-06-12  Jim Meyering  <meyering@lucent.com>
132709         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132710         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132711         optional argument.
132712         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132713         the optional argument, `lib'.
132715 2000-06-08  Jim Meyering  <meyering@lucent.com>
132717         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132719 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132721         Rewrite largefile configuration so that we don't need to run
132722         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132723         AC_CANONICAL_HOST in configure.in -- jmm]
132725         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132726         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132727         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132728         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132729         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132730         All uses changed.
132731         Instead of inspecting the output of getconf, try to compile the
132732         test program without and with the macro definition.
132733         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132734         for getconf.  Instead, check for the needed flags by compiling
132735         test programs.
132737 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132739         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132741 2000-06-04  Jim Meyering  <meyering@lucent.com>
132743         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132744         SunOS 4.1.4 for which gid_t is an unsigned type.
132746 2000-06-03  Jim Meyering  <meyering@lucent.com>
132748         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132749         now that autoconf requires that.
132751         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132752         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132753         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132755 2000-06-03  Jim Meyering  <meyering@lucent.com>
132757         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132759 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132761         * m4/glibc21.m4: New file.
132762         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132764 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132766         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132767         newer, don't install charset.alias.
132768         * lib/config.charset: Change the Linux/glibc rules so they become empty
132769         on glibc-2.1 or newer.
132771 2000-06-02  Jim Meyering  <meyering@lucent.com>
132773         * lib/mountlist.c: Back out last change.  Instead, do this...
132774         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132775         me_dummy member using the same `ignore'-testing code.
132776         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132777         fs_type strings.
132778         From Mark D. Roth.
132780 2000-05-29  Jim Meyering  <meyering@lucent.com>
132782         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132783         mounts with the `ignore' attribute.  Based on a patch from
132784         Mark D. Roth.
132786 2000-05-28  Jim Meyering  <meyering@lucent.com>
132788         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132789         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132790         * m4/stat.m4: Likewise.
132791         * m4/lstat.m4: Likewise.
132792         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132794         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132795         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132797 2000-05-26  Jim Meyering  <meyering@lucent.com>
132799         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132801 2000-05-24  Jim Meyering  <meyering@lucent.com>
132803         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132804         autoconf requires that.
132805         * m4/lib-check.m4: Likewise.
132806         * m4/jm-macros.m4: Likewise.
132807         * m4/strftime.m4: Likewise.
132809         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132810         AC_CHECK_DECLS, now that autoconf requires that.
132812 2000-05-22  Jim Meyering  <meyering@lucent.com>
132814         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132815         * m4/lstat.m4: Likewise.
132817 2000-05-22  Jim Meyering  <meyering@lucent.com>
132819         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132821 2000-05-20  Jim Meyering  <meyering@lucent.com>
132823         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132824         (jm_PREREQ): Use it.
132826 2000-05-18  Jim Meyering  <meyering@lucent.com>
132828         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132829         back, too, since it may have been modified by allocate_entry.
132830         (hash_delete): Rewrite to use neither the assignment operator
132831         nor the comma operator in an if-expression.
132833 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132835         * lib/closeout.c:
132836         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132837         Remove; no longer needed.
132838         "quotearg.h": Add include.
132839         (file_name): Do not bother to explicitly initialize to NULL; it's less
132840         efficient on some hosts.
132841         (close_stdout_status): Remove test as to whether stdout was already
132842         closed; it breaks for the case "echo x | sort >&-".
132843         Quote file name colons.
132844         Do not assume that _("write error") lacks format strings.
132846 2000-05-15  Jim Meyering  <meyering@lucent.com>
132848         * lib/version-etc.c (version_etc_copyright): Update the copyright
132849         string used in all --version output.
132851 2000-05-14  Jim Meyering  <meyering@lucent.com>
132853         * lib/closeout.c (close_stdout_set_file_name): New function.
132854         (close_stdout_status): Use new file-scoped global.
132855         Return right away if fstat says the stdout file descriptor is invalid.
132856         * lib/closeout.h (close_stdout_set_file_name): Declare.
132858 2000-05-10  Jim Meyering  <meyering@lucent.com>
132860         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132861         (close_stdout_set_status): New function.
132862         * lib/closeout.h (close_stdout_set_status): Declare.
132864 2000-05-09  Jim Meyering  <meyering@lucent.com>
132866         * m4/gettext.m4: Rename this...
132867         * m4/libintl.m4: ...to this.
132869 2000-05-08  Jim Meyering  <meyering@lucent.com>
132871         * lib/long-options.c: Don't include closeout.h.
132872         (parse_long_options): Don't call close_stdout for --version.
132874 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132876         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132877         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132878         2.1.3 bug.  This avoids a clash when files like regex.c define
132879         _GNU_SOURCE.
132881 2000-05-06  Jim Meyering  <meyering@lucent.com>
132883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132884         (AC_REPLACE_FUNCS): Add strnlen.
132886         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132887         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132889         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132890         AC_SEARCH_LIBS call for nanosleep.
132891         (LIB_NANOSLEEP): Set and AC_SUBST.
132893 2000-05-06  Jim Meyering  <meyering@lucent.com>
132895         * lib/strnlen.c: Undefine __strnlen and strnlen.
132896         [!weak_alias]: Define __strnlen to strnlen.
132898         * lib/atexit.c: New file, from libiberty.
132900 2000-05-06  Jim Meyering  <meyering@lucent.com>
132902         * lib/closeout.c (close_stdout_status): Also check for errors on the
132903         stderr stream.
132905 2000-05-05  Jim Meyering  <meyering@lucent.com>
132907         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132908         AC_SEARCH_LIBS call for clock_gettime.
132909         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132911         * m4/search-libs.m4: Update from autoconf.
132913         su doesn't work on Solaris 2.6.
132914         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132915         <shadow.h>.  Reported by Dragos Harabor.
132917 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132919         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132920         memcpy instead of xmalloc, xrealloc, path_concat.
132921         (locale_charset): Treat empty environment variables as absent.
132922         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132924 2000-05-04  Jim Meyering  <meyering@lucent.com>
132926         * lib/getopt.c: Update from glibc.
132927         * lib/obstack.c: Likewise.
132928         * lib/obstack.h: Likewise.
132929         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132930         file
132932         * lib/regex.h: Likewise.
132933         * lib/strndup.c: Likewise.
132934         * lib/strnlen.c: New file, from glibc.
132936 2000-05-03  Jim Meyering  <meyering@lucent.com>
132938         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132940 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132942         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132943         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132944         compile-time test, rather than inspecting host and OS, to
132945         decide whether to define _LARGEFILE_SOURCE.
132947 2000-05-01  Jim Meyering  <meyering@lucent.com>
132949         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132951         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132952         Based on a patch from Bruno Haible.
132954 2000-05-01  Jim Meyering  <meyering@lucent.com>
132956         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132958 2000-04-29  Jim Meyering  <meyering@lucent.com>
132960         * lib/path-concat.c: Declare strdup only if it's not defined.
132961         * lib/canon-host.c: Likewise.
132963 2000-04-28  Jim Meyering  <meyering@lucent.com>
132965         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132966         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132967         is included first, then limits.h is included by locale.h by libintl.h.
132968         From John David Anglin.
132970 2000-04-25  Jim Meyering  <meyering@lucent.com>
132972         * lib/makepath.c (S_IRWXUGO): Define.
132973         (make_path): Always perform explicit chmod if MODE specifies any
132974         of the `special' permission bits.  Prompted by a bug report against
132975         install from Mate Wierdl and Joost van Baal.
132977 2000-04-18  Jim Meyering  <meyering@lucent.com>
132979         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132980         (jm_PREREQ): Use it.
132982 2000-04-18  Jim Meyering  <meyering@lucent.com>
132984         * lib/README: New file.
132986         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132987         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132989 2000-04-17  Jim Meyering  <meyering@lucent.com>
132991         Get it right :-)
132992         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132993         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132994         Suggestion from Akim Demaille.
132996 2000-04-17  Jim Meyering  <meyering@lucent.com>
132998         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132999         the definition of it to rpl_strftime also defined-away the system's
133000         declaration.
133002 2000-04-15  Jim Meyering  <meyering@lucent.com>
133004         Use `C' to denote so-called `contiguous' files, the same way
133005         that tar does.
133006         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
133007         (ftypelet): Use S_ISCTG.
133008         From Michael Deutschmann.
133010 2000-04-14  Jim Meyering  <meyering@lucent.com>
133012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
133013         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
133014         clobbered.
133016 2000-04-14  Jim Meyering  <meyering@lucent.com>
133018         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
133020 2000-04-13  Jim Meyering  <meyering@lucent.com>
133022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
133023         AH_VERBATIM to insert required #ifndef into config.h.in.
133024         Suggestion from Akim Demaille.
133026 2000-04-12  Jim Meyering  <meyering@lucent.com>
133028         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
133029         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
133030         Christian Krackowizer.
133032         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
133033         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
133034         (AC_SYS_LARGEFILE): Require.
133035         (AM_C_PROTOTYPES): Require.
133037 2000-04-08  Jim Meyering  <meyering@lucent.com>
133039         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
133040         names don't conflict.  Reported by Eli Zaretskii.
133042 2000-04-07  Jim Meyering  <meyering@lucent.com>
133044         * lib/putenv.c: Move inclusion of errno.h so it follows that of
133045         sys/types.h, to work around system header problems on AIX 3.2.5.
133046         From Bruno Haible.
133048 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
133050         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
133051         bug.  Deal with the different error behavior of Irix iconv.
133053 2000-04-05  Paul Eggert  <eggert@twinsun.com>
133055         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
133056         IRIX if the installer said otherwise.
133058 2000-04-05  Jim Meyering  <meyering@lucent.com>
133060         Portability tweaks required for ultrix4.3.
133061         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
133062         (jm_CHECK_DECLS): Add getutent to the list of functions.
133063         (_jm_DECL_HEADERS): Add utmpx.h.
133064         From John David Anglin.
133066         * m4/strftime.m4: Back out the 2000-04-02 change.
133067         Instead of that change, simply undefine putenv in the test program.
133069 2000-04-05  Jim Meyering  <meyering@lucent.com>
133071         Portability tweaks required for ultrix4.3.
133072         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
133073         getutent.
133074         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
133075         * lib/canon-host.c: Declare strdup.
133076         * lib/path-concat.c: Likewise.
133077         From John David Anglin.
133079 2000-04-04  Jim Meyering  <meyering@lucent.com>
133081         Be more DOS 8.3-friendly.
133082         * lib/ref-add.sin: Renamed from ref-add.sed.in.
133083         * lib/ref-del.sin: Renamed from ref-del.sed.in.
133084         * lib/Makefile.am: Reflect renaming.
133085         Reported by Eli Zaretskii.
133087         Use a temporary file name that won't clash with `charset.alias'
133088         in the DOS 8.3 name space.
133089         * lib/Makefile.am (charset_tmp): Define.
133090         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
133091         (uninstall-local): Likewise.
133092         Reported by Eli Zaretskii.
133094 2000-04-03  Jim Meyering  <meyering@lucent.com>
133096         * m4/gettext.m4: Fix typo in comment.
133098         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
133099         textutils/configure.in).  Suggestion from Paul Eggert.
133100         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
133102 2000-04-02  Paul Eggert  <eggert@twinsun.com>
133104         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
133105         variable in the shell rather than using putenv, which isn't
133106         portable.  This avoids the configure-time inter-test dependency
133107         on the potentially-renamed putenv function.
133109 2000-03-30  Paul Eggert  <eggert@twinsun.com>
133111         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
133112         before checking struct stat.st_blksize, so that
133113         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
133115 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133117         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
133118         since strftime.c uses HAVE_STRFTIME to decide whether to use
133119         the underlying strftime.
133121 2000-03-29  Paul Eggert  <eggert@twinsun.com>
133123         * lib/time/strftime.c (my_strftime): Make sure we call the system
133124         strftime, not ourselves, when invoking the underlying strftime.
133126 2000-03-24  Jim Meyering  <meyering@lucent.com>
133128         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
133129         (charset_alias): Define.
133130         (install-exec-local): Factor out common code.
133131         (uninstall-local): Split lines longer than 80.
133132         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
133133         (SUFFIXES): Define.
133134         (.sed.in.sed): New rule.  Don't redirect directly to $@.
133135         (CLEANFILES): Add ref-add.sed and ref-del.sed.
133137 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
133139         * lib/config.charset: Output a line containing "Packages using this
133140         file".
133141         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
133142         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
133143         ref-del.sed): New rules.
133145 2000-03-17  Jim Meyering  <meyering@lucent.com>
133147         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
133148         Otherwise, include <strings.h>
133150 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
133152         * lib/unicodeio.c (utf8_wctomb): New function.
133153         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
133154         format instead of in UCS-4 with platform dependent endianness.
133156 2000-03-10  Jim Meyering  <meyering@lucent.com>
133158         * m4/lib-check.m4: Look for getspnam in -lgen, too.
133159         From Marco Franzen.
133161 2000-03-07  Paul Eggert  <eggert@twinsun.com>
133163         * lib/savedir.c (savedir): Work even if directory size is
133164         negative; this can happen with some screwy NFS configurations.
133166 2000-03-06  Jim Meyering  <meyering@lucent.com>
133168         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
133169         if it's NULL (because we ran out of memory).  From Bruno Haible.
133171 2000-03-05  Jim Meyering  <meyering@lucent.com>
133173         * lib/localcharset.c ("path-concat.h"): Include.
133174         (get_charset_aliases): Use path_concat instead of ANSI string
133175         concatenation.
133177         * lib/unicodeio.h (PARAMS): Define.
133178         Use it to guard prototype.
133180 2000-03-04  Jim Meyering  <meyering@lucent.com>
133182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
133183         for lib/localcharset.c.
133185 2000-03-04  Jim Meyering  <meyering@lucent.com>
133187         * lib/Makefile.am (install-exec-local): Create $(libdir) before
133188         installing into it.
133189         (uninstall-local): Uncomment this rule so `make distcheck' works
133190         once again.
133192         * lib/unicodeio.c (<errno.h>): Include it.
133193         (errno): Declare if not defined.
133195         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
133197         * lib/config.charset: New version, incorporating remarks from a linux
133198         i18n mailing list.  From Bruno Haible.
133200 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
133202         * m4/codeset.m4: New file.
133203         * m4/iconv.m4: New file.
133204         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
133206 2000-03-03  Jim Meyering  <meyering@lucent.com>
133208         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
133210 2000-03-02  Jim Meyering  <meyering@lucent.com>
133212         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
133213         the messages come out on separate lines.
133215         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
133216         rather than jm_CHECK_DECLARATIONS.
133217         * m4/decl.m4: Remove now-unused file.
133219         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
133220         geteuid.
133222 2000-03-02  Jim Meyering  <meyering@lucent.com>
133224         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
133226 2000-03-01  Jim Meyering  <meyering@lucent.com>
133228         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
133229         * lib/unicodeio.c: Likewise.
133231 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
133233         * lib/config.charset: New file.
133234         * lib/localcharset.c: New file.
133235         * lib/unicodeio.h, lib/unicodeio.c: New files.
133236         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
133237         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
133238         (noinst_HEADERS): Add unicodeio.h.
133239         (all-local, install-exec-local, charset.alias): New targets.
133241 2000-02-28  Paul Eggert  <eggert@twinsun.com>
133243         * lib/quotearg.c (ALERT_CHAR): New macro.
133244         (quotearg_buffer_restyled): Use it.
133246 2000-02-27  Jim Meyering  <meyering@lucent.com>
133248         * m4/check-decl.m4: Add getenv to the list.
133250 2000-02-27  Jim Meyering  <meyering@lucent.com>
133252         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
133253         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133255         * lib/backupfile.c: Guard inclusion of stdlib.h with
133256         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133257         Declare malloc if needed.
133259         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133260         `#ifndef HAVE_DECL..'
133261         now that autoconf always defines the HAVE_DECL_ symbols.
133262         * lib/human.c: Likewise.
133263         * lib/same.c: Likewise.
133264         * lib/strtoumax.c: Likewise.
133266         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133267         declaration check was not run.
133268         * lib/hash.c: Likewise.
133269         * lib/human.c: Likewise.
133270         * lib/same.c: Likewise.
133271         * lib/strtoumax.c: Likewise.
133273         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133274         `.', then first look up the entire `.'-containing string as a login
133275         name.
133277 2000-02-23  Jim Meyering  <meyering@lucent.com>
133279         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133280         in place of my hack.
133282 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133284         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133285         (textint): New typedef.
133286         (parser_control): Member year changed from int to textint.
133287         All uses changed.
133288         (YYSTYPE): Removed; replaced by %union with int and textint members.
133289         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133290         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133291         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133292         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133293         (date, number, to_year): Use width of number in digits, not its value,
133294         to determine whether it's a 2-digit year, or a 2-digit time.
133295         (yylex): Store number of digits of numeric tokens.
133296         Reported by John Kendall.
133298         (parser_control): Changed from struct parser_control to typedef (for
133299         consistency).  All uses changed.
133301         (tID): Removed; not used.
133302         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133304 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133306         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133307         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133309 2000-02-12  Jim Meyering  <meyering@lucent.com>
133311         * lib/userspec.c (ISDIGIT): Define it.
133312         (isdigit): Remove definition.
133313         (is_number): Use ISDIGIT, not isdigit.
133314         <libintl.h>: Include.
133315         (_ and N_): Define.
133316         (parse_user_spec): Mark translatable strings.
133318 2000-02-10  Jim Meyering  <meyering@lucent.com>
133320         With these changes, nanosleep.[ch] are finally enough like the other
133321         lib/* replacement files to compile on a few more losing systems.
133323         * lib/nanosleep.h: Don't include config.h.
133324         Remove prototype from declaration of nanosleep.
133325         (PARAMS): Remove now-unneeded definition.
133326         * lib/nanosleep.c: #undef nanosleep.
133327         (rpl_nanosleep): Rename from nanosleep.
133329 2000-02-10  Jim Meyering  <meyering@lucent.com>
133331         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133332         gnu_nanosleep to rpl_nanosleep.
133334 2000-02-09  Jim Meyering  <meyering@lucent.com>
133336         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133337         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133339 2000-02-08  Akim Demaille  <akim@epita.fr>
133341         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133342         `[' and `]' and remove uses of `changequote'.
133343         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133344         (AC_SYS_LARGEFILE): Likewise.
133345         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133346         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133347         of changequote.
133348         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133349         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133350         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133351         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133353 2000-02-05  Jim Meyering  <meyering@lucent.com>
133355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133356         Remove explicit use of AC_HEADER_TIME.  It is required by
133357         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133358         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133359         in autoconf whereby the expansion of the latter ended up preceding
133360         the expansion of its prerequisite, AC_HEADER_TIME.
133361         Reported by Volker Borchert.
133363 2000-02-03  Jim Meyering  <meyering@lucent.com>
133365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133367 2000-02-03  Jim Meyering  <meyering@lucent.com>
133369         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133370         rather than with `#if HAVE_UTMPNAME'.
133372 2000-02-02  Jim Meyering  <meyering@lucent.com>
133374         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133375         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133376         Reported by Eli Zaretskii.
133378 2000-02-01  Jim Meyering  <meyering@lucent.com>
133380         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133382 2000-01-31  Jim Meyering  <meyering@lucent.com>
133384         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133385         functions.  Add the time.h and sys/time.h headers along with the
133386         AC_REQUIRE'ment of AC_HEADER_TIME.
133388 2000-01-31  Jim Meyering  <meyering@lucent.com>
133390         * lib/nanosleep.h (nanosleep): Guard declaration with
133391         `#if ! HAVE_DECL_NANOSLEEP'.
133392         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133393         the declaration in that vendor's sys/timers.h.
133394         Reported by Christian Krackowizer.
133396         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133397         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133398         (ISPRINT): Likewise.
133399         Reported by Tom Tromey.
133401 2000-01-30  Jim Meyering  <meyering@lucent.com>
133403         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133405         * m4/prereq.m4 (utmp_includes): Define.
133406         Check for ut_user and ut_name members in both struct utmpx
133407         and struct utmp.
133409 2000-01-30  Jim Meyering  <meyering@lucent.com>
133411         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133412         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133413         header files where only utmpx.ut_user is declared.
133415         * lib/readutmp.h (UT_USER): Define.
133417 2000-01-29  Jim Meyering  <meyering@lucent.com>
133419         * m4/lib-check.m4: New file containing library-related checks from
133420         fileutils and sh-utils (textutils had none).
133422 2000-01-28  Jim Meyering  <meyering@lucent.com>
133424         * m4/perl.m4: Change format of warning message to look more like that
133425         from the missing script.  Suggestion from François Pinard.
133427 2000-01-25  Jim Meyering  <meyering@lucent.com>
133429         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133430         well as time.h in the compile check.
133431         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133432         Fix typo in cross-compiling case: s/yes/no/.
133434 2000-01-23  Jim Meyering  <meyering@lucent.com>
133436         * m4/jm-macros.m4: Move df-related tests here from
133437         fileutils/configure.in
133439         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133440         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133442         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133443         s/space/ac_fsusage_space/.
133444         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133446         * m4/ftruncate.m4: New file (derived from part of
133447         fileutils/configure.in).
133448         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133449         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133451         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133452         AC_SUBST these here, rather than just in sh-util/configure.in, so
133453         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133454         all the same.
133455         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133456         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133457         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133458         (AC_SUBST(POW_LIBM)): Likewise.
133459         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133461 2000-01-23  Jim Meyering  <meyering@lucent.com>
133463         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133464         obstack.c.
133466 2000-01-22  Jim Meyering  <meyering@lucent.com>
133468         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133470         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133472         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133473         configure.in
133474         (AC_CHECK_HEADERS): Likewise for sh-utils.
133475         (AC_CHECK_HEADERS): Likewise for textutils.
133476         Merge the three lists of headers.
133478         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133479         from fileutils' configure.in.
133481         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133482         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133483         check-decl.m4.
133485         * m4/check-decl.m4: Use #if rather than #ifdef.
133486         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133487         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133488         (_jm_DECL_HEADERS): Define new function.
133489         (jm_CHECK_DECLARATIONS): Require it.
133491 2000-01-22  Jim Meyering  <meyering@lucent.com>
133493         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133494         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133495         Required for some AIX systems.  Reported by Christian Krackowizer.
133496         [TESTING] (main): New function.
133498         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133499         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133500         letters.
133502         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133503         iswprint.
133505         * lib/strverscmp.c (ISDIGIT): Define.
133506         (strverscmp): Use ISDIGIT, not isdigit.
133508 2000-01-19  Jim Meyering  <meyering@lucent.com>
133510         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133511         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133512         defines `struct timespec' in <sys/time.h>
133514         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133515         Thanks to Akim for explaining.
133517 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133519         * lib/nanosleep.c (nanosleep):
133520         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133521         POSIX.1 doesn't require SA_INTERRUPT and some systems
133522         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133523         it's been part of POSIX.1 since day 1 (in 1988).
133525 2000-01-17  Jim Meyering  <meyering@lucent.com>
133527         * lib/interlock: Remove unused file.  Reported by François Pinard.
133529 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133531         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133532         alert, backslash, formfeed, and vertical tab unnecessarily in
133533         shell quoting style.
133535 2000-01-16  Jim Meyering  <meyering@lucent.com>
133537         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133538         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133539         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133540         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133542 2000-01-16  Jim Meyering  <meyering@lucent.com>
133544         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133545         because the latter didn't work.
133547 2000-01-15  Jim Meyering  <meyering@lucent.com>
133549         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133550         (AC_REPLACE_FUNCS): Add memcpy and memset.
133551         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133552         Add strpbrk.
133553         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133555 2000-01-12  Jim Meyering  <meyering@lucent.com>
133557         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133558         (jm_PREREQ): Use it.
133559         (jm_PREREQ_READUTMP): New macro.
133560         (jm_PREREQ): Use it.
133562 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133564         Quote multibyte characters correctly.
133565         * m4/c-bs-a.m4: New file.
133566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133567         (jm_PREREQ): Use it.
133569 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133571         * m4/uintmax_t.m4: Port to autoconf 2.13.
133573 2000-01-08  Jim Meyering  <meyering@ascend.com>
133575         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133576         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133578 2000-01-04  Jim Meyering  <meyering@ascend.com>
133580         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133581         jm_STRUCT_DIRENT_D_TYPE.
133582         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133583         jm_STRUCT_DIRENT_D_INO.
133584         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133585         jm_STRUCT_UTIMBUF.
133586         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133587         renamings.
133588         * m4/utime.m4: Likewise.
133590         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133591         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133593 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133595         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133596         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133598 2000-01-02  Jim Meyering  <meyering@ascend.com>
133600         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133601         remember if this is necessary.
133603 1999-12-26  Jim Meyering  <meyering@ascend.com>
133605         * m4/jm-macros.m4: Use it here.
133606         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133608 1999-12-23  Jim Meyering  <meyering@ascend.com>
133610         * m4/jm-macros.m4: Check for clock_gettime (moved from
133611         fileutils/configure.in)
133612         Check for gettimeofday.
133614 1999-12-20  Jim Meyering  <meyering@ascend.com>
133616         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133617         autoconf-2.14a-1999-12-20.
133619 1999-12-19  Jim Meyering  <meyering@ascend.com>
133621         * m4/lstat-slash.m4: New file.
133622         * m4/jm-macros.m4: Use the new macro:
133623         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133625 1999-12-07  Jim Meyering  <meyering@ascend.com>
133627         * m4/perl.m4: Require that File::Compare be available, too.
133628         Too many systems seem to lack it.
133630         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133631         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133633 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133636         problem with the QNX 4.25 shell, which doesn't propagate exit
133637         status of failed commands inside shell assignments.
133639 1999-11-17  Jim Meyering  <meyering@ascend.com>
133641         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133643 1999-11-07  Jim Meyering  <meyering@ascend.com>
133645         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133647 1999-11-06  Jim Meyering  <meyering@ascend.com>
133649         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133650         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133652 1999-11-05  Jim Meyering  <meyering@ascend.com>
133654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133655         configure.in of textutils, fileutils, and sh-utils into this one
133656         (shared between those packages) file.
133657         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133658         AC_STRUCT_ST_BLKSIZE.
133660 1999-11-03  Jim Meyering  <meyering@ascend.com>
133662         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133663         of AC_CHECK_TYPE checks includes unistd.h.
133664         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133665         Suggestion from Akim Demaille.
133667 1999-10-30  Jim Meyering  <meyering@ascend.com>
133669         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133670         m4-quoted string.
133671         * m4/ls-mntd-fs.m4: Likewise.
133672         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133673         * m4/jm-winsz1.m4: Likewise.
133675         * m4/const.m4: Remove file, since the fix made it into the experimental
133676         version of autoconf.
133677         * m4/mktime.m4: Likewise.
133679         * m4/check-type.m4: Remove file, now that the latest version of
133680         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133682         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133683         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133684         AC_CHECK_TYPE.
133686 1999-10-04  Jim Meyering  <meyering@ascend.com>
133688         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133690 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133692         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133693         2.95.1 bug with HP-UX 10.20.
133695 1999-09-17  Jim Meyering  <meyering@ascend.com>
133697         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133698         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133699         due to missing strdup (against sh-utils-2.0).
133701 1999-08-29  Jim Meyering  <meyering@ascend.com>
133703         * m4/jm-macros.m4: Require jm_BISON.
133704         * m4/bison.m4: New file.
133706 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133708         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133709         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133711 1999-08-05  Jim Meyering  <meyering@ascend.com>
133713         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133714         to avoid conflicts with `conftest' on 8+3 filesystems.
133715         Suggestion from Eli Zaretskii.
133717 1999-08-04  Jim Meyering  <meyering@ascend.com>
133719         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133720         fileutils and sh-utils (textutils's getline test was inadequate).
133721         (AM_FUNC_GETLINE): Run this test.
133722         (AC_CHECK_FUNCS): Check for getdelim.
133723         Reported by Bob Proulx.
133725 1999-08-02  Jim Meyering  <meyering@ascend.com>
133727         * m4/jm-macros.m4: Add a comment.
133729 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133731         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133732         <inttypes.h> defines strtoumax as a macro (and not as a
133733         function).
133735 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133737         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133738         that we can shift, multiply and divide unsigned long long
133739         values; Ultrix cc can't do it.
133741 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133743         * m4/mktime.m4: New file, which is a preview of what should appear
133744         in the next public autoconf release.
133746 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133748         * m4/lfs.m4: Remove this file.
133749         * m4/largefile.m4: New file.  It contains the old contents of
133750         lfs.m4, except that all names with prefix AC_LFS have been
133751         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133752         compatible with future autoconf versions.  Also, some minor m4
133753         quoting problems have been fixed.
133755 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133757         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133758         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133759         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133760         and simplify the shell code.
133762 1999-08-01  Jim Meyering  <meyering@ascend.com>
133764         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133765         m4.
133767 1999-07-20  Jim Meyering  <meyering@ascend.com>
133769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133771 1999-07-15  Jim Meyering  <meyering@ascend.com>
133773         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133775 1999-05-22  Jim Meyering  <meyering@ascend.com>
133777         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133779 1999-05-20  Jim Meyering  <meyering@ascend.com>
133781         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133782         Add a colon after each `then' in case $4 is empty.
133784 1999-05-16  Jim Meyering  <meyering@ascend.com>
133786         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133788 1999-05-10  Jim Meyering  <meyering@ascend.com>
133790         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133792         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133793         AC_FUNC_MKTIME.
133795 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133797         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133799 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133801         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133802         not CPPFLAGS, so that linking works correctly in IRIX.
133804 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133806         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133808 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133810         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133811         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133813         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133814         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133816         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133818 1999-04-20  Jim Meyering  <meyering@ascend.com>
133820         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133821         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133822         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133824 1999-04-18  Jim Meyering  <meyering@ascend.com>
133826         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133827         * m4/jm-macros.m4: Use it.
133829 1999-04-06  Jim Meyering  <meyering@ascend.com>
133831         * m4/strftime.m4: Remove test for %f.
133833 1999-03-29  Jim Meyering  <meyering@ascend.com>
133835         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133836         superset of the AC_TYPE_* checks in the textutils, fileutils,
133837         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133838         AC_TYPE_PID_T.
133840 1999-03-28  Jim Meyering  <meyering@ascend.com>
133842         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133843         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133844         replaced e.g., in the *.sh files of the sh-utils.
133846 1999-03-20  Jim Meyering  <meyering@ascend.com>
133848         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133849         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133850         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133852 1999-03-19  Jim Meyering  <meyering@ascend.com>
133854         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133856 1999-03-12  Jim Meyering  <meyering@ascend.com>
133858         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133860 1999-03-07  Jim Meyering  <meyering@ascend.com>
133862         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133863         declared.
133865 1999-02-17  Jim Meyering  <meyering@ascend.com>
133867         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133868         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133870 1999-02-07  Jim Meyering  <meyering@ascend.com>
133872         * m4/group-member.m4: New file -- extracted from sh-utils'
133873         configure.in.
133875         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133876         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133878 1999-02-06  Jim Meyering  <meyering@ascend.com>
133880         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133881         * m4/fnmatch.m4: Likewise.
133882         * m4/getgroups.m4: Likewise.
133883         * m4/lstat.m4: Likewise.
133884         * m4/malloc.m4: Likewise.
133885         * m4/putenv.m4: Likewise.
133886         * m4/realloc.m4: Likewise.
133887         * m4/regex.m4: Likewise.
133888         * m4/stat.m4: Likewise.
133889         * m4/strftime.m4: Likewise.
133890         Suggestion from Alain Magloire.
133892         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133893         * m4/fnmatch.m4: Likewise.
133894         * m4/getgroups.m4: Likewise.
133895         * m4/getline.m4: Likewise.
133896         * m4/lstat.m4: Likewise.
133897         * m4/malloc.m4: Likewise.
133898         * m4/memcmp.m4: Likewise.
133899         * m4/putenv.m4: Likewise.
133900         * m4/realloc.m4: Likewise.
133901         * m4/regex.m4: Likewise.
133902         * m4/stat.m4: Likewise.
133903         * m4/strftime.m4: Likewise.
133904         Suggestion from Alain Magloire.
133906         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133907         an argument.
133909         * m4/regex.m4: Add a run-time Test for proper operation of
133910         re_compile_pattern.
133912 1999-01-31  Jim Meyering  <meyering@ascend.com>
133914         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133916 1999-01-30  Jim Meyering  <meyering@ascend.com>
133918         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133920         * m4/jm-mktime.m4: Make this a wrapper around the official
133921         AM_FUNC_MKTIME rather than my private copy, now that the official one
133922         is up to date.
133923         * m4/mktime.m4: Remove file.
133925         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133926         * m4/uptime.m4: Likewise.
133927         * m4/uintmax_t.m4: Likewise.
133929 1999-01-28  Jim Meyering  <meyering@ascend.com>
133931         * m4/jm-macros.m4: Use jm_AFS.
133932         * m4/afs.m4: New file (from fileutils' configure.in).
133934         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133935         * m4/chown.m4: Likewise.
133936         * m4/d-ino.m4: Likewise.
133937         * m4/d-type.m4: Likewise.
133938         * m4/fnmatch.m4: Likewise.
133939         * m4/getgroups.m4: Likewise.
133940         * m4/gettext.m4: Likewise.
133941         * m4/jm-mktime.m4: Likewise.
133942         * m4/jm-winsz2.m4: Likewise.
133943         * m4/lcmessage.m4: Likewise.
133944         * m4/ls-mntd-fs.m4: Likewise.
133945         * m4/malloc.m4: Likewise.
133946         * m4/memcmp.m4: Likewise.
133947         * m4/putenv.m4: Likewise.
133948         * m4/realloc.m4: Likewise.
133949         * m4/st_mtim.m4: Likewise.
133950         * m4/strftime.m4: Likewise.
133952 1999-01-16  Jim Meyering  <meyering@ascend.com>
133954         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133955         (ARGMATCH_DIE_DECL): Define.
133957 1999-01-12  Jim Meyering  <meyering@ascend.com>
133959         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133960         Reported by Lars Hecking.
133962 1999-01-10  Jim Meyering  <meyering@ascend.com>
133964         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133965         gross kludge.
133966         * m4/inttypes_h.m4: Likewise.
133967         * m4/lstat.m4: Likewise.
133968         * m4/malloc.m4: Likewise.
133969         * m4/readdir.m4: Likewise.
133970         * m4/realloc.m4: Likewise.
133971         * m4/st_dm_mode.m4: Likewise.
133972         * m4/stat.m4: Likewise.
133973         * m4/utimbuf.m4: Likewise.
133974         * m4/utimes.m4: Likewise.
133976         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133977         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133978         comments in config.h.in are meaningful.
133980         * m4/jm-macros.m4: Require autoconf-2.13 here.
133982         * m4/regex.m4: By default, don't use the included regex.c on systems
133983         with glibc 2.  Suggestion from Uli Drepper.
133985 1999-01-02  Jim Meyering  <meyering@ascend.com>
133987         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133989 1998-12-18  Jim Meyering  <meyering@ascend.com>
133991         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133992         Based on a suggestion from Lars Hecking.
133994 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133996         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133998 1998-11-16  Jim Meyering  <meyering@ascend.com>
134000         * m4/lfs.m4: Double-quote the `uname...` expression.
134002 1998-11-14  Jim Meyering  <meyering@ascend.com>
134004         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
134005         * m4/stat.m4: Likewise.
134007 1998-11-03  Jim Meyering  <meyering@ascend.com>
134009         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
134010         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
134012 1998-10-18  Jim Meyering  <meyering@ascend.com>
134014         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
134016 1998-10-17  Jim Meyering  <meyering@ascend.com>
134018         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
134019         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
134020         calls for those previously hard-coded headers.  Instead, take a new
134021         parameter.
134022         (jm_CHECK_DECLARATIONS): Reflect interface change.
134023         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
134024         (jm_CHECK_DECL_LOCALTIME_R): New macro.
134026         * m4/mktime.m4: Test for spring-forward gap before long-running test.
134028 1998-10-14  Jim Meyering  <meyering@ascend.com>
134030         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
134031         instead of "TZ=America/Vancouver".  From Paul Eggert.
134033 1998-10-11  Jim Meyering  <meyering@ascend.com>
134035         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
134036         This adds a test for a recently added compatibility fix for mktime.c.
134037         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
134039 1998-09-27  Jim Meyering  <meyering@ascend.com>
134041         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
134043         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
134044         ../configure.in, including a change from Gordon Matzigkeit to allow
134045         cross-compiling for the Hurd.
134047         * m4/glibc.m4: New file/macro to test for the GNU C Library
134048         versions 1 and 2.  From Gordon Matzigkeit.
134049         Indent.
134051 1998-09-21  Jim Meyering  <meyering@ascend.com>
134053         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
134055 1998-08-18  Paul Eggert  <eggert@twinsun.com>
134057         Port nanosecond-resolution times to UnixWare 2.1.2 and
134058         pedantic Solaris 2.6.
134060         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
134061         AC_STRUCT_ST_MTIM.
134062         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
134063         Generate name of ns member, instead of just 1 or undef.
134064         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
134066 1998-08-15  Jim Meyering  <meyering@ascend.com>
134068         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
134069         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
134070         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
134071         instead of jm_TYPE_SSIZE_T.
134073 1998-08-12  Jim Meyering  <meyering@ascend.com>
134075         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
134077 1998-08-02  Jim Meyering  <meyering@ascend.com>
134079         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
134080         in acconfig.h manually.
134082 1998-07-31  Paul Eggert  <eggert@twinsun.com>
134084         * m4/st_mtim.m4: New file.
134086 1998-07-28  Jim Meyering  <meyering@ascend.com>
134088         * m4/utimes.m4: Undef stat.
134090 1998-07-25  Jim Meyering  <meyering@ascend.com>
134092         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
134093         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
134095 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
134097         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
134098         uid and gid actually remain unchanged.
134100 1998-07-07  Jim Meyering  <meyering@ascend.com>
134102         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
134104 1998-07-04  Jim Meyering  <meyering@ascend.com>
134106         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
134107         to prove that this macro can be used in packages without regex.c.
134109 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
134111         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
134112         is to be used.
134114 1998-07-03  Jim Meyering  <meyering@ascend.com>
134116         * m4/gettext.m4: Add -lintl if it's found to be necessary.
134118         * m4/gettext.m4: New file -- from gettext-0.10.35.
134119         * m4/lcmessage.m4: Likewise.
134120         * m4/progtest.m4: Likewise.
134122         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
134123         * m4/jm-macros.m4: Require the new macro.
134125 1998-06-29  Jim Meyering  <meyering@ascend.com>
134127         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
134128         for the definition of NGROUPS (used in a system header included
134129         by sys/mount.h).
134131 1998-06-28  Jim Meyering  <meyering@ascend.com>
134133         * m4/ls-mntd-fs.m4: New file.
134134         * m4/fstypename.m4: New file.
134136         * m4/jm-macros.m4: Require the new macro.
134137         * m4/jm-glibc-io.m4: New file.
134139 1998-05-19  Jim Meyering  <meyering@ascend.com>
134141         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
134142         * m4/lchown.m4: New file.
134144         * m4/Makefile.am.in: New file.
134145         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
134147 1998-05-14  Jim Meyering  <meyering@ascend.com>
134149         * m4/Makefile.am (EXTRA_DIST): Add them.
134150         * m4/jm-macros.m4: New file.
134151         * m4/utimbuf.m4: New file.
134153 1998-05-12  Jim Meyering  <meyering@ascend.com>
134155         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
134157 1998-05-11  Jim Meyering  <meyering@ascend.com>
134159         * m4/isc-posix.m4: New file.
134161 1998-05-10  Jim Meyering  <meyering@ascend.com>
134163         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
134165 1998-05-09  Jim Meyering  <meyering@ascend.com>
134167         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
134168         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
134169         with automake.
134171         * m4/ssize_t.m4: New file.
134172         * m4/mktime.m4: Remove file -- the new automake has this now.
134174 1998-04-26  Jim Meyering  <meyering@ascend.com>
134176         * m4/assert.m4: New file.
134177         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
134179 1998-04-05  Jim Meyering  <meyering@ascend.com>
134181         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
134182         (jm_PREREQ): Use it here.
134184 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
134186         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
134187         in acconfig.h.
134189 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
134191         * m4/prereq.m4: New file.
134192         * m4/error.m4: New file.
134193         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
134195 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
134197         * m4/getline.m4: Don't set am_cv_func_working_getline before the
134198         cache-check for the same variable -- that defeated the purpose of
134199         the test; the test program was never run.  This was a problem only
134200         on systems with losing getline functions -- HP-UX 10.20 is one.
134201         Reported by Bjorn Helgaas.
134203 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
134205         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
134207 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
134209         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
134211         * m4/const.m4: New file.  Use an initializer in this declaration
134212         typedef int charset[2]; const charset x;
134213         Reported by Bob Glickstein.
134215 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
134217         * m4/chown.m4: Fix reversed types on -1 args to chown.
134218         From Kaveh Ghazi.
134220 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
134222         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
134223         Add lseek and memchr.
134225         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
134226         T.E.Dickey <dickey@clark.net> said that some older preprocessors
134227         have a 20-character limit on names.
134229 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
134231         * m4/inttypes_h.m4: New file.
134232         * m4/uintmax_t.m4: New file.
134233         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
134236         -----
134238         Local Variables:
134239         coding: utf-8
134240         End:
134242         Copyright (C) 1997-2020 Free Software Foundation, Inc.
134244         Copying and distribution of this file, with or without
134245         modification, are permitted provided the copyright notice
134246         and this notice are preserved.